/* ==========================================================================
   PREMIUM WOOCOMMERCE CART & CHECKOUT
   ========================================================================== */

/* 1. Global Page Layout for Cart & Checkout */
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 4rem 5% !important;
}
.woocommerce-cart .ast-container,
.woocommerce-checkout .ast-container {
    width: 100% !important;
    max-width: 1200px !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .woocommerce-cart .site-content,
    .woocommerce-checkout .site-content {
        padding: 2rem 5% !important;
    }
}

/* 2. Cart Typography & Headers */
.woocommerce-cart .entry-title,
.wc-block-cart__title {
    font-family: var(--font-heading) !important;
    font-size: 3rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-align: center;
    margin-bottom: 3rem !important;
    color: var(--primary-color);
}

/* Headers inside blocks */
.wc-block-components-title,
.wc-block-cart__totals-title,
.wc-block-components-checkout-step__title,
.wc-block-components-order-summary__title,
.wc-block-checkout__title,
.wc-block-components-order-summary h2 {
    font-family: var(--font-heading) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 1.1rem !important;
    color: var(--primary-color) !important;
    border-bottom: 1px solid #eaeaea !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
}

/* 3. Products List (Left Column) */
.wc-block-cart-items td, 
.wc-block-cart-items th {
    padding: 1.5rem 0 !important;
    border-bottom: 1px solid #EAEAEA !important;
}
.wc-block-components-product-name,
.wc-block-components-order-summary .wc-block-components-product-name {
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    text-decoration: none !important;
    text-transform: capitalize !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
}
.wc-block-components-product-name:hover {
    color: var(--accent-color) !important;
}
.wc-block-components-product-price {
    font-family: var(--font-body) !important;
    font-weight: bold !important;
    color: var(--primary-color) !important;
    margin-top: 5px !important;
}

/* Hide Product Description in Checkout/Cart */
.wc-block-components-product-details__description,
.wc-block-components-product-metadata__description {
    display: none !important;
}
.wc-block-cart-item__quantity .wc-block-components-quantity-selector {
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    overflow: hidden;
}
.wc-block-components-quantity-selector button {
    background: transparent !important;
    color: var(--primary-color) !important;
}
.wc-block-components-quantity-selector input {
    font-family: var(--font-body) !important;
    font-weight: bold;
}

/* 4. Cart & Checkout Right Sidebar Boxes */
.wc-block-cart__totals,
.wc-block-components-order-summary {
    background-color: #FAFAFA !important;
    border: 1px solid #EAEAEA !important;
    padding: 2.5rem !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
}

/* Fix "Proceed to Checkout" Button */
.wc-block-cart .wc-block-components-button:not(.is-link),
.wc-block-components-checkout-place-order-button,
.woocommerce-cart .checkout-button,
.woocommerce-checkout #place_order {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 0 !important;
    text-transform: uppercase !important;
    padding: 18px 30px !important;
    font-size: 1.1rem !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    border: none !important;
    width: 100% !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1.5rem !important;
}
.wc-block-cart .wc-block-components-button:not(.is-link) span,
.wc-block-components-checkout-place-order-button span,
.woocommerce-cart .checkout-button span,
.woocommerce-checkout #place_order span {
    text-align: center !important;
    margin: 0 auto !important;
}
.wc-block-cart .wc-block-components-button:not(.is-link):hover,
.wc-block-components-checkout-place-order-button:hover,
.woocommerce-cart .checkout-button:hover,
.woocommerce-checkout #place_order:hover {
    background-color: var(--accent-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3) !important; /* Gold shadow */
}

/* 5. Checkout Page Adjustments */
.woocommerce-checkout h3 {
    font-family: var(--font-heading) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #FAFAFA;
    border: 1px solid #EAEAEA;
    padding: 2rem;
}
.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea,
.wc-block-components-text-input input,
.wc-block-components-combobox-control input,
.wc-block-components-select-input select {
    border-radius: 0 !important;
    border: 1px solid #EAEAEA !important;
    padding: 12px 15px !important;
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    color: var(--text-color) !important;
    box-shadow: none !important;
}
.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-combobox-control input:focus,
.wc-block-components-select-input select:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
}
.wc-block-components-radio-control__input {
    border-color: var(--primary-color) !important;
}
.wc-block-components-radio-control__input:checked {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* 6. Wishlist Page Styling */
.wishlist_table {
    border: 1px solid #EAEAEA !important;
    width: 100% !important;
}
.wishlist_table thead th {
    background-color: #FAFAFA !important;
    font-family: var(--font-heading) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 1.5rem !important;
    color: var(--primary-color) !important;
}
.wishlist_table tbody td {
    padding: 1.5rem !important;
    border-bottom: 1px solid #EAEAEA !important;
    vertical-align: middle !important;
}
.wishlist_table .product-name a {
    font-family: var(--font-body) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    text-transform: capitalize !important;
    text-decoration: none !important;
}
.wishlist_table .product-name a:hover {
    color: var(--accent-color) !important;
}
.yith-wcwl-share {
    display: none !important; /* Hide social share for a cleaner look */
}
