/**
 * Cart Page Styles
 * 
 * Contains styles specifically for the WooCommerce cart page.
 * Includes cart table, product thumbnails, quantity controls, and cart totals.
 */

/* ==========================================================================
   CART PAGE LAYOUT
   ========================================================================== */

.mfn-cart-step .section.the_content {
    margin-top: 40px;
    padding: 0 50px;
}

/* ==========================================================================
   CART TABLE STYLES
   ========================================================================== */

.shop-sidecart-active .mfn-cart-step table.shop_table.cart th {
    font-size: 20px;
    color: #414042;
    font-weight: 600;
}

.shop-sidecart-active .mfn-cart-step table.shop_table .product-thumbnail a img {
    width: 141px;
    height: 141px;
}

.shop-sidecart-active .mfn-cart-step table.cart .product-thumbnail {
    min-width: 142px;
}

.shop-sidecart-active .mfn-cart-step table.shop_table td.product-name a {
    font-size: 18px;
    font-weight: 600;
    color: #414042;
    text-decoration: none;
}

.shop-sidecart-active .mfn-cart-step table.shop_table td.product-price,
.shop-sidecart-active .mfn-cart-step table.shop_table td.product-subtotal {
    font-size: 18px;
    font-weight: 600;
    color: #414042;
}

/* ==========================================================================
   QUANTITY CONTROLS
   ========================================================================== */

.shop-sidecart-active .mfn-cart-step .product-quantity .quantity .qty {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #008CC1;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.shop-sidecart-active .mfn-cart-step .product-quantity .quantity a.quantity-change {
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    font-size: 18px;
    background-color: #008CC1;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.shop-sidecart-active .mfn-cart-step .product-quantity .quantity a.quantity-change.plus {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.shop-sidecart-active .mfn-cart-step .product-quantity .quantity a.quantity-change.minus {
    border-bottom-right-radius: 18px;
    border-top-right-radius: 18px;
}

.shop-sidecart-active .mfn-cart-step .product-quantity .quantity {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   CART ACTIONS
   ========================================================================== */

.shop-sidecart-active .mfn-cart-step .product-remove .remove .icon {
    font-size: 20px;
    color: #008CC1;
}

.shop-sidecart-active.button-custom .mfn-cart-step .button,
.shop-sidecart-active.button-custom .mfn-cart-step .button:disabled {
    background-color: #008CC1;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.shop-sidecart-active .mfn-cart-step table.shop_table td.actions .coupon .input-text {
    padding: 10px;
    border: 2px solid #008CC1;
    border-radius: 8px;
    font-size: 14px;
}

/* ==========================================================================
   CART TOTALS
   ========================================================================== */

.shop-sidecart-active .mfn-cart-step .cart-collaterals {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.shop-sidecart-active .mfn-cart-step .cart-collaterals .cart_totals h4 {
    font-size: 20px;
    color: #414042;
    font-weight: 600;
    margin-bottom: 15px;
}

.shop-sidecart-active .mfn-cart-step .cart-collaterals th,
.shop-sidecart-active .mfn-cart-step .cart-collaterals td,
.shop-sidecart-active .mfn-cart-step .cart-collaterals td ul#shipping_method {
    padding: 8px 0;
    font-size: 16px;
    color: #414042;
}

.shop-sidecart-active .mfn-cart-step .cart-collaterals tr.order-total strong .amount {
    font-size: 20px;
    color: #008CC1;
    font-weight: 600;
}

.shop-sidecart-active .mfn-cart-step .mfn-woo-cart-link {
    background-color: #008CC1;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

/* ==========================================================================
   CART TERMS AND CONDITIONS
   ========================================================================== */

.shop-sidecart-active .mfn-cart-step .checkout-terms {
    padding: 2em 2em 4em;
    font-size: 0.8em;
    background-color: #fff;
    margin-bottom: 1em;
    border-radius: 8px;
}

.shop-sidecart-active .mfn-cart-step .checkout-terms p {
    line-height: 1.4em;
}

/* ==========================================================================
   CART SIDEBAR STYLES
   ========================================================================== */

.mfn-cart-holder.st-cart-container {
    z-index: 9999;
}

.mfn-cart-opened .mfn-cart-holder.st-cart-container {
    transform: translateX(0);
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col a.mfn-chp-remove {
    color: #008CC1;
    font-size: 16px;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-footer {
    margin-top: 10px;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content {
    max-height: 400px;
    overflow-y: auto;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col .quantity {
    display: flex;
    align-items: center;
}

.mfn-cart-holder.st-cart-container .mfn-ch-footer .mfn-chft-row,
.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-info h6 {
    font-size: 14px;
    color: #414042;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .cart-empty .cart-empty-icon svg {
    width: 60px;
    height: 60px;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .cart-empty .cart-empty-icon i.icon-cart {
    font-size: 60px;
}

.mfn-cart-holder.st-cart-container .mfn-ch-footer .mfn-ch-footer-totals .mfn-chft-row.mfn-chft-total .amount {
    font-size: 18px;
    font-weight: 600;
    color: #008CC1;
}

.mfn-cart-holder.st-cart-container .mfn-ch-footer .mfn-ch-footer-buttons .button {
    background-color: #008CC1;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.mfn-cart-holder.st-cart-container .mfn-ch-footer .mfn-ch-footer-buttons a {
    background-color: transparent;
    color: #008CC1;
    border: 2px solid #008CC1;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.mfn-cart-holder.st-cart-container .mfn-ch-footer .mfn-ch-footer-buttons a:hover {
    background-color: #008CC1;
    color: #ffffff;
}

.mfn-cart-holder.st-cart-container .mfn-ch-footer .mfn-ch-footer-buttons .button:hover {
    background-color: #006fa1;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col .quantity a.quantity-change.minus {
    border-radius: 0 6px 6px 0;
    background-color: #008CC1;
    color: #ffffff;
    padding: 6px 10px;
    text-decoration: none;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col .quantity a.quantity-change.plus {
    border-radius: 6px 0 0 6px;
    background-color: #008CC1;
    color: #ffffff;
    padding: 6px 10px;
    text-decoration: none;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col .quantity a.quantity-change {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 18px;
    text-align: center;
    font-size: 14px;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-footer .mfn-chpf-col .quantity .qty {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0;
    font-size: 14px;
}

.mfn-cart-holder.st-cart-container .mfn-ch-header h3 {
    font-size: 18px;
    color: #414042;
    font-weight: 600;
    margin: 0;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.mfn-cart-holder.st-cart-container .mfn-ch-header h3 svg {
    margin-right: 10px;
}

.mfn-cart-holder.st-cart-container .mfn-close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-image a img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-info h6 {
    font-size: 14px;
    color: #414042;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-info dl.variation,
.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-info .subscription-price {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.mfn-cart-holder.st-cart-container .mfn-ch-content .mfn-ch-product .mfn-chp-price .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 600;
    color: #008CC1;
}

.shop-sidecart-active .st-cart-container .subscription-price > span.subscription-details {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ==========================================================================
   WOOCOMMERCE BLOCK OVERRIDES
   ========================================================================== */

/* Hide product metadata description on cart page */
.wc-block-components-product-metadata__description {
    display: none;
}

/* ==========================================================================
   RESPONSIVE STYLES FOR CART
   ========================================================================== */

@media screen and (max-width: 1199px) {
    .mfn-cart-step .woocommerce .woocommerce-cart-form {
        margin-bottom: 30px;
    }
    
    .mfn-cart-step .woocommerce .cart-collaterals {
        width: 100%;
        float: none;
    }
    
    .mfn-cart-step .woocommerce table.shop_table td.actions .coupon {
        width: 100%;
        text-align: left;
    }
}

@media screen and (max-width: 959px) {
    .mfn-cart-step-1 .woocommerce .woocommerce-cart-form {
        margin-bottom: 20px;
    }
    
    .mfn-cart-step .woocommerce table.shop_table td.actions .coupon {
        display: block;
        margin-bottom: 15px;
    }
    
    .mfn-cart-step .woocommerce table.shop_table td.actions .coupon input.input-text {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .mfn-cart-step .woocommerce table.shop_table td.actions .coupon > button.button {
        width: 100%;
        padding: 12px;
    }
    
    .shop-sidecart-active .mfn-cart-step .product-quantity .quantity {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .mfn-cart-step .section.the_content {
        padding: 0 20px;
    }
    
    .shop-sidecart-active .mfn-cart-step table.shop_table td.product-name a {
        font-size: 16px;
    }
    
    .shop-sidecart-active .mfn-cart-step table.shop_table .product-thumbnail a img {
        width: 80px;
        height: 80px;
    }
    
    .shop-sidecart-active .mfn-cart-step table.cart .product-thumbnail {
        min-width: 85px;
    }
}

@media screen and (max-width: 600px) {
    .shop-sidecart-active .mfn-cart-step .cart-collaterals td ul#shipping_method {
        font-size: 14px;
    }
    
    .mfn-cart-step .section.the_content {
        margin-top: 20px;
        padding: 0 15px;
    }
    
    .mfn-cart-holder.st-cart-container {
        width: 100%;
        right: -100%;
    }
} 