/* ==========================================================================
   RASSOIREET WOOCOMMERCE CART PAGE
   ========================================================================== */

/* Main Container (Classic & Block) */
.woocommerce-cart .ast-container,
.wp-block-woocommerce-cart {
    max-width: var(--container-max-width, 1200px) !important;
    padding: 4rem 2rem !important;
    font-family: var(--font-primary, 'Outfit', sans-serif) !important;
    margin: 0 auto;
}

/* ==========================================================================
   GUTENBERG WOOCOMMERCE CART BLOCK STYLING
   ========================================================================== */

/* Cart Main Area (Left Side) */
.wc-block-cart__main {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
    border: 1px solid #f0f0f0 !important;
    margin-right: 2rem;
}

/* Sidebar Totals Area (Right Side) */
.wc-block-cart__sidebar {
    background: #fdfbf7 !important; /* Cream/Green tint */
    border-radius: 16px !important;
    padding: 2.5rem !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03) !important;
    border: 1px solid #eaeaea !important;
}

/* Sidebar Title */
.wc-block-cart__totals-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    margin-bottom: 2rem !important;
    border-bottom: 2px solid #eaeaea !important;
    padding-bottom: 1rem !important;
    text-transform: uppercase;
}

/* Proceed to Checkout Button */
.wc-block-cart__submit-button,
.wc-block-components-checkout-button {
    background: var(--color-primary-green, #056839) !important;
    color: #fff !important;
    padding: 20px !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 20px rgba(5, 104, 57, 0.2) !important;
    border: none !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    margin-top: 1.5rem !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-button:hover {
    background: #034523 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(5, 104, 57, 0.3) !important;
}

/* Product Titles */
.wc-block-components-product-name {
    color: #1a1a1a !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}
.wc-block-components-product-name:hover {
    color: var(--color-primary-green, #056839) !important;
}

/* Total Price Values */
.wc-block-components-totals-item__value,
.wc-block-components-product-price {
    font-weight: 800 !important;
    color: #1a1a1a !important;
    font-size: 1.2rem !important;
}
.wc-block-components-totals-item--estimated-total .wc-block-components-totals-item__value {
    color: var(--color-primary-green, #056839) !important;
    font-size: 1.8rem !important;
}

/* Quantity Box */
.wc-block-components-quantity-selector {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    overflow: hidden !important;
}

/* Trash Icon (Remove) */
.wc-block-cart-item__remove-link {
    color: #ff4757 !important;
    background: #fff0f0 !important;
    padding: 8px !important;
    border-radius: 50% !important;
    transition: 0.3s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.wc-block-cart-item__remove-link:hover {
    background: #ff4757 !important;
    color: #fff !important;
    transform: scale(1.1) !important;
}

/* Product Images */
.wc-block-cart-item__image img {
    border-radius: 12px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}


/* ==========================================================================
   CLASSIC WOOCOMMERCE CART STYLING (Fallback)
   ========================================================================== */

.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
}

.woocommerce-cart-form {
    flex: 1 1 60%;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form__contents thead th {
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 700;
    color: #777;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    text-align: left;
}

.woocommerce-cart-form__contents tbody td {
    padding: 2rem 0;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* Product Thumbnail */
.product-thumbnail img {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Product Name */
.product-name a {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    transition: 0.3s;
}
.product-name a:hover {
    color: var(--color-primary-green, #056839);
}

/* Price */
.product-price, .product-subtotal {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.1rem;
}
.product-subtotal {
    color: var(--color-primary-green, #056839);
    font-size: 1.2rem;
}

/* Quantity */
.product-quantity .quantity {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 45px;
}
.product-quantity .quantity input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Remove Button */
.product-remove a.remove {
    color: #ff4757 !important;
    font-weight: bold;
    font-size: 1.5rem;
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background: #fff0f0;
    transition: 0.3s;
    text-decoration: none;
}
.product-remove a.remove:hover {
    background: #ff4757;
    color: #fff !important;
    transform: scale(1.1);
}

.cart-collaterals {
    flex: 1 1 35%;
}

.cart_totals {
    background: #fdfbf7;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
}

.cart_totals h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #eaeaea;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart_totals table th {
    text-align: left;
    padding: 1.2rem 0;
    color: #555;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid #eaeaea;
}

.cart_totals table td {
    text-align: right;
    padding: 1.2rem 0;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.1rem;
    border-bottom: 1px solid #eaeaea;
}

.order-total th, .order-total td {
    font-size: 1.4rem;
    border-bottom: none !important;
    padding-top: 2rem !important;
}
.order-total td strong {
    color: var(--color-primary-green, #056839);
    font-size: 1.8rem;
}

.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-primary-green, #056839) !important;
    color: #fff !important;
    padding: 20px !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(5, 104, 57, 0.2);
}
.checkout-button:hover {
    background: #034523 !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(5, 104, 57, 0.3);
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .wp-block-woocommerce-cart {
        flex-direction: column !important;
    }
    .wc-block-cart__main {
        margin-right: 0 !important;
        margin-bottom: 2rem !important;
    }
}
