/**
 * QuickED WooCommerce Overrides
 * Loaded at priority 999 AFTER Elementor to guarantee cascade wins.
 */

/* -- NAV LOGO FIX -- */
body .nav .nav-logo,
.nav .nav-logo {
    height: 36px !important;
    max-height: 36px !important;
    max-width: 220px !important;
    width: auto !important;
    object-fit: contain !important;
}

/* -- GLOBAL TYPOGRAPHY RESET -- */
.woocommerce-checkout,
.woocommerce-checkout * {
    font-family: 'DM Sans', sans-serif;
}


/* ==============================================================
   CHECKOUT PAGE (WARM BENTO MOCKUP DESIGN)
   ============================================================== */

/* -- CHECKOUT GRID & LAYOUT -- */
body.woocommerce-checkout .page-wrapper {
    max-width: 1060px !important;
    overflow-x: hidden !important;
}
body.woocommerce-checkout .page-body {
    padding: 2rem 2.25rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: hidden !important;
}
body.woocommerce-checkout .page-body > .woocommerce {
    max-width: 100% !important;
}

body.woocommerce-checkout form.checkout {
    display: grid !important;
    grid-template-columns: 1fr 420px !important;
    gap: 1.25rem !important;
    align-items: start !important;
}

/* Force Customer Details (Left Col) to stack */
body.woocommerce-checkout #customer_details {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin: 0 !important;
}

/* Make Sections look like Cards */
body.woocommerce-checkout .col-1,
body.woocommerce-checkout .col-2,
body.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #FFFFFF !important;
    border: 1px solid #E8E4DC !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Hide the duplicate "Your Order" heading since it's now a card */
body.woocommerce-checkout h3#order_review_heading {
    display: none !important;
}

/* Section Headings */
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3 {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #1A1A1A !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* -- FORM FIELDS GRID -- */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 1rem !important;
}

body.woocommerce-checkout form .form-row {
    width: 100% !important;
    margin: 0 0 1.1rem 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout form .form-row-wide,
body.woocommerce-checkout form .form-row.notes {
    grid-column: 1 / -1 !important;
}

/* -- FIELD LABELS -- */
body.woocommerce-checkout form .form-row label {
    display: block !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    color: #B5AFA5 !important;
    margin-bottom: 0.4rem !important;
    line-height: 1.4 !important;
}
body.woocommerce-checkout form .form-row .required {
    color: #E8843A !important;
    text-decoration: none !important;
}

/* -- INPUT STYLES -- */
body.woocommerce-checkout form .form-row input.input-text,
body.woocommerce-checkout form .form-row textarea,
body.woocommerce-checkout form .form-row select,
body.woocommerce-checkout .select2-container--default .select2-selection--single {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.88rem !important;
    padding: 0.75rem 0.9rem !important;
    border: 1.5px solid #E8E4DC !important;
    border-radius: 10px !important;
    background: #FAF8F5 !important;
    color: #1A1A1A !important;
    width: 100% !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    outline: none !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
}

body.woocommerce-checkout form .form-row input.input-text:focus,
body.woocommerce-checkout form .form-row textarea:focus,
body.woocommerce-checkout form .form-row select:focus {
    border-color: #1A1A1A !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.06) !important;
}

/* Select2 specific fixes */
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: normal !important;
    color: #1A1A1A !important;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    right: 12px !important;
}

/* -- ORDER REVIEW TABLE -- */
body.woocommerce-checkout table.shop_table {
    border: none !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    border-collapse: collapse !important;
}
body.woocommerce-checkout table.shop_table th {
    display: none !important; /* Hide table headers */
}
body.woocommerce-checkout table.shop_table td {
    padding: 1rem 0 !important;
    border-bottom: 1px solid #E8E4DC !important;
    border-top: none !important;
    vertical-align: middle !important;
    color: #1A1A1A !important;
}
body.woocommerce-checkout table.shop_table .product-name {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
}
body.woocommerce-checkout table.shop_table .product-total {
    text-align: right !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
}
body.woocommerce-checkout table.shop_table tfoot th {
    display: table-cell !important; /* Bring back headers for the totals area */
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.82rem !important;
    color: #8C8578 !important;
    padding: 0.6rem 0 !important;
    border: none !important;
    font-weight: 600 !important;
}
body.woocommerce-checkout table.shop_table tfoot td {
    text-align: right !important;
    padding: 0.6rem 0 !important;
    border: none !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}
body.woocommerce-checkout table.shop_table .order-total th {
    padding-top: 1rem !important;
    border-top: 2px solid #1A1A1A !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #1A1A1A !important;
    display: table-cell !important; 
}
body.woocommerce-checkout table.shop_table .order-total td {
    padding-top: 1rem !important;
    border-top: 2px solid #1A1A1A !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    color: #1A1A1A !important;
}

/* -- PAYMENT BOX -- */
body.woocommerce-checkout #payment {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 2rem !important;
}
body.woocommerce-checkout #payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.woocommerce-checkout #payment ul.payment_methods li {
    background: #FAF8F5 !important;
    border: 1.5px solid #E8E4DC !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    margin-bottom: 0.5rem !important;
}
body.woocommerce-checkout #payment ul.payment_methods li label {
    color: #1A1A1A !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    margin-bottom: 0 !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
body.woocommerce-checkout #payment .payment_box {
    background: transparent !important;
    border: none !important;
    padding: 1rem 0 0 0 !important;
    color: #8C8578 !important;
    font-size: 0.82rem !important;
    font-family: 'DM Sans', sans-serif !important;
}
body.woocommerce-checkout #payment .payment_box p {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.82rem !important;
    margin: 0 0 0.5rem 0 !important;
}
body.woocommerce-checkout #payment .payment_box::before {
    display: none !important;
}

/* Authorize.net CC Fields inside Payment Box */
body.woocommerce-checkout #payment .payment_box .form-row {
    margin-bottom: 1rem !important;
}
body.woocommerce-checkout #payment .payment_box fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.woocommerce-checkout #payment .payment_box input.input-text {
    background: #FFFFFF !important;
    font-family: 'JetBrains Mono', monospace !important;
    letter-spacing: 0.04em !important;
}

/* -- PLACE ORDER BUTTON -- */
body.woocommerce-checkout #payment .place-order {
    padding: 1.5rem 0 0 !important;
}
body.woocommerce-checkout #payment #place_order {
    width: 100% !important;
    background: #E8843A !important;
    color: white !important;
    border: none !important;
    border-radius: 16px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1rem !important;
    padding: 1.25rem 1.5rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
}
body.woocommerce-checkout #payment #place_order:hover {
    background: #D4752E !important;
    transform: translateY(-1px) !important;
}


/* ==============================================================
   GLOBAL WOOCOMMERCE STYLES (BUTTONS, CART, NOTICES)
   ============================================================== */

/* -- GLOBAL WOOCOMMERCE BUTTONS -- */
.woocommerce-page .button,
.woocommerce-page a.button,
.woocommerce-page button.button,
.woocommerce-page input.button {
    background: #D4582A !important;
    color: white !important;
    border-radius: 6px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    border: none !important;
    padding: 0.85rem 1.75rem !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}
.woocommerce-page .button:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button:hover {
    background: #b84a24 !important;
    color: white !important;
}

/* -- NOTICES -- */
body.woocommerce-page .woocommerce-message,
body.woocommerce-page .woocommerce-info,
body.woocommerce-page .woocommerce-error {
    border-top: none !important;
    border-left: 4px solid #D4582A !important;
    background: #fdf5f0 !important;
    color: #1a1815 !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
    padding: 1rem 1.25rem !important;
    margin-bottom: 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    line-height: 1.5 !important;
}

body.woocommerce-page .woocommerce-error {
    border-left-color: #c53030 !important;
    background: #fff5f5 !important;
}

body.woocommerce-page .woocommerce-message::before,
body.woocommerce-page .woocommerce-info::before,
body.woocommerce-page .woocommerce-error::before {
    display: none !important;
    content: none !important;
}

/* -- COUPON -- */
body.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    margin-bottom: 1.5rem !important;
}
body.woocommerce-checkout form.checkout_coupon {
    border: 1.5px solid #ddd5ca !important;
    border-radius: 6px !important;
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
}

/* -- PRIVACY TEXT -- */
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.78rem !important;
    color: #6b6560 !important;
    margin-bottom: 1rem !important;
}
body.woocommerce-checkout .woocommerce-privacy-policy-text p {
    font-size: 0.78rem !important;
    color: #6b6560 !important;
}
body.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: #D4582A !important;
}

/* -- CART PAGE -- */
body.woocommerce-cart .page-wrapper {
    overflow-x: hidden !important;
}
body.woocommerce-cart .page-body {
    overflow: hidden !important;
}
body.woocommerce-cart table.cart {
    border: 1px solid #ddd5ca !important;
    border-radius: 10px !important;
    border-collapse: separate !important;
    overflow: hidden !important;
    width: 100% !important;
    margin-bottom: 2rem !important;
    background: #FFFFFF !important;
}

body.woocommerce-cart table.cart th {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #6b6560 !important;
    background: #f3efe8 !important;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid #ddd5ca !important;
    text-align: left !important;
}

body.woocommerce-cart table.cart td {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    padding: 1.25rem !important;
    color: #1a1815 !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #ddd5ca !important;
}

body.woocommerce-cart table.cart tr:last-child td {
    border-bottom: none !important;
}

body.woocommerce-cart table.cart img {
    width: 60px !important;
    border-radius: 6px !important;
}

body.woocommerce-cart table.cart .product-quantity input {
    font-family: 'JetBrains Mono', monospace !important;
    border: 1.5px solid #ddd5ca !important;
    border-radius: 6px !important;
    padding: 0.5rem !important;
    width: 70px !important;
    text-align: center !important;
}

body.woocommerce-cart table.cart td.actions {
    background: #FAFAF7 !important;
    padding: 1.25rem !important;
}

body.woocommerce-cart table.cart td.actions .coupon {
    display: inline-flex !important;
    gap: 0.5rem !important;
    float: left !important;
}

body.woocommerce-cart table.cart td.actions .button {
    float: right !important;
}

body.woocommerce-cart .cart-collaterals {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 2rem !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: 420px !important;
    background: #FFFFFF !important;
    border: 1px solid #ddd5ca !important;
    border-radius: 10px !important;
    padding: 1.5rem !important;
    float: none !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #ddd5ca !important;
}

body.woocommerce-cart .cart-collaterals table.shop_table {
    border: none !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

body.woocommerce-cart .cart-collaterals th,
body.woocommerce-cart .cart-collaterals td {
    background: transparent !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #ddd5ca !important;
}

body.woocommerce-cart .cart-collaterals tr:last-child th,
body.woocommerce-cart .cart-collaterals tr:last-child td {
    border-bottom: none !important;
}

body.woocommerce-cart .cart-collaterals .order-total .amount {
    color: #D4582A !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1.2rem !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    padding-top: 1rem !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

/* -- MY ACCOUNT -- */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    border: 1.5px solid #ddd5ca !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #ddd5ca !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 0.75rem 1rem !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: #1a1815 !important;
    text-decoration: none !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f3efe8 !important;
    color: #D4582A !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #D4582A !important;
    color: white !important;
}

/* -- RESPONSIVE -- */
@media (max-width: 860px) {
    body.woocommerce-checkout form.checkout {
        grid-template-columns: 1fr !important;
    }
    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    /* -- GLOBAL MOBILE OVERFLOW FIX -- */
    body.woocommerce-checkout,
    body.woocommerce-cart,
    body.woocommerce-order-received {
        overflow-x: hidden !important;
    }
    body.woocommerce-checkout .page-wrapper,
    body.woocommerce-cart .page-wrapper,
    body.woocommerce-order-received .page-wrapper {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    body.woocommerce-checkout .page-body,
    body.woocommerce-cart .page-body,
    body.woocommerce-order-received .page-body {
        padding: 0.75rem !important;
        border-radius: 16px !important;
    }

    /* Tighten card padding on mobile */
    body.woocommerce-checkout .col-1,
    body.woocommerce-checkout .col-2,
    body.woocommerce-checkout .woocommerce-checkout-review-order {
        border-radius: 16px !important;
        padding: 1.25rem !important;
    }

    /* Prevent tables from causing horizontal overflow */
    body.woocommerce-checkout table.shop_table,
    body.woocommerce-order-received table.shop_table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* -- CART TABLE: STACKED CARD REFLOW -- */
    body.woocommerce-cart table.cart,
    body.woocommerce-cart table.cart thead,
    body.woocommerce-cart table.cart tbody,
    body.woocommerce-cart table.cart tfoot,
    body.woocommerce-cart table.cart tr,
    body.woocommerce-cart table.cart th,
    body.woocommerce-cart table.cart td {
        display: block !important;
        width: 100% !important;
    }

    /* Hide the table header row */
    body.woocommerce-cart table.cart thead {
        display: none !important;
    }

    /* Each product row becomes a card */
    body.woocommerce-cart table.cart tbody tr {
        background: #FFFFFF !important;
        border: 1px solid #E8E4DC !important;
        border-radius: 16px !important;
        padding: 1.25rem !important;
        margin-bottom: 0.75rem !important;
        position: relative !important;
    }

    /* Remove default cell borders */
    body.woocommerce-cart table.cart tbody td {
        border: none !important;
        border-bottom: none !important;
        padding: 0.3rem 0 !important;
        text-align: left !important;
    }

    /* Remove button — position top-right of card */
    body.woocommerce-cart table.cart td.product-remove {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        padding: 0 !important;
    }
    body.woocommerce-cart table.cart td.product-remove a {
        font-size: 1.4rem !important;
    }

    /* Hide the tiny thumbnail on mobile to save space */
    body.woocommerce-cart table.cart td.product-thumbnail {
        display: none !important;
    }

    /* Product name — make it prominent */
    body.woocommerce-cart table.cart td.product-name {
        font-size: 1rem !important;
        font-weight: 700 !important;
        padding-right: 2rem !important; /* room for the X button */
        padding-bottom: 0.5rem !important;
    }

    /* Price & subtotal — inline label style */
    body.woocommerce-cart table.cart td.product-price,
    body.woocommerce-cart table.cart td.product-subtotal {
        font-family: 'JetBrains Mono', monospace !important;
        font-size: 0.92rem !important;
        font-weight: 700 !important;
    }
    body.woocommerce-cart table.cart td.product-price::before {
        content: 'Price: ' !important;
        font-family: 'DM Sans', sans-serif !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.06em !important;
        color: #B5AFA5 !important;
        margin-right: 0.5rem !important;
    }
    body.woocommerce-cart table.cart td.product-subtotal::before {
        content: 'Subtotal: ' !important;
        font-family: 'DM Sans', sans-serif !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.06em !important;
        color: #B5AFA5 !important;
        margin-right: 0.5rem !important;
    }

    /* Quantity input */
    body.woocommerce-cart table.cart td.product-quantity::before {
        content: 'Qty: ' !important;
        font-family: 'DM Sans', sans-serif !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.06em !important;
        color: #B5AFA5 !important;
        margin-right: 0.5rem !important;
        vertical-align: middle !important;
    }
    body.woocommerce-cart table.cart td.product-quantity input {
        width: 50px !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    /* Actions row (coupon + update button) */
    body.woocommerce-cart table.cart td.actions {
        border-radius: 0 0 16px 16px !important;
        padding: 1rem !important;
        margin-top: 0.5rem !important;
    }
    body.woocommerce-cart table.cart td.actions .coupon {
        float: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    body.woocommerce-cart table.cart td.actions .coupon input {
        width: 100% !important;
    }
    body.woocommerce-cart table.cart td.actions .button {
        float: none !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Cart specific mobile fixes */
    body.woocommerce-cart .cart-collaterals {
        justify-content: stretch !important;
    }
    body.woocommerce-cart .cart-collaterals .cart_totals {
        max-width: 100% !important;
    }
}

/* -- FIX BILLING CARD PADDING SPECIFICITY -- */
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2,
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    padding: 2.25rem !important; /* Forces the internal spacing back */
    background: #FFFFFF !important;
    border: 1px solid #E8E4DC !important;
    border-radius: 24px !important;
    box-sizing: border-box !important; /* Ensures the padding doesn't break the grid width */
    margin-bottom: 0 !important;
}

/* Ensure mobile styling maintains breathing room */
@media (max-width: 768px) {
    body.woocommerce-checkout .col2-set .col-1,
    body.woocommerce-checkout .col2-set .col-2,
    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout #customer_details .col-2 {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
}

/* ==============================================================
   SINGLE PRODUCT PAGE (WARM BENTO DESIGN)
   ============================================================== */

/* -- PAGE WRAPPER -- */
body.single-product .page-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
body.single-product .page-wrapper {
    max-width: 1060px !important;
}

/* -- MAIN GRID -- */
body.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(300px, 4fr) 5fr !important;
    gap: 1.5rem !important;
    align-items: start !important;
}

/* -- BENTO CARDS -- */
body.single-product .woocommerce-product-gallery,
body.single-product .summary.entry-summary,
body.single-product .woocommerce-tabs {
    background: #FFFFFF !important;
    border: 1px solid #E8E4DC !important;
    border-radius: 24px !important;
    padding: 2.25rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Make the tabs span the full width at the bottom */
body.single-product .woocommerce-tabs {
    grid-column: 1 / -1 !important;
}

/* -- PRODUCT GALLERY -- */
body.single-product .woocommerce-product-gallery img {
    border-radius: 16px !important;
    width: 100% !important;
    height: auto !important;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
    padding: 0 !important;
    list-style: none !important;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: 80px !important;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    border-radius: 8px !important;
    cursor: pointer !important;
    opacity: 0.6 !important;
    transition: opacity 0.2s !important;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover {
    opacity: 1 !important;
}

/* -- PRODUCT SUMMARY -- */
body.single-product .summary .product_title {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #1A1A1A !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.15 !important;
}

body.single-product .summary .price {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #D4582A !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
}

body.single-product .summary .woocommerce-product-details__short-description {
    font-size: 0.95rem !important;
    color: #8C8578 !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
}

/* -- HIDE MAGNIFYING GLASS FALLBACK -- */
body.single-product .woocommerce-product-gallery__trigger {
    display: none !important;
}

/* -- ADD TO CART FORM (BASE) -- */
body.single-product .summary form.cart {
    display: block !important; 
    margin-bottom: 2rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #E8E4DC !important;
}

/* Flexbox for Simple Products */
body.single-product .summary form.cart:not(.variations_form) {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
}

/* Quantity Input & Button Styling */
body.single-product .summary form.cart .quantity input.qty {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    width: 80px !important;
    height: 52px !important;
    border: 1.5px solid #E8E4DC !important;
    border-radius: 12px !important;
    text-align: center !important;
    background: #FAF8F5 !important;
    color: #1A1A1A !important;
}

body.single-product .summary form.cart button.single_add_to_cart_button {
    height: 52px !important;
    flex: 1 !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
}

/* -- VARIABLE PRODUCT STYLES (DROPDOWNS) -- */
body.single-product .summary table.variations {
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    border: none !important;
}
body.single-product .summary table.variations th,
body.single-product .summary table.variations td {
    display: block !important; /* Stacks label above dropdown */
    padding: 0 0 0.5rem 0 !important;
    border: none !important;
    text-align: left !important;
    background: transparent !important;
}
body.single-product .summary table.variations th {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #B5AFA5 !important;
    padding-bottom: 0.35rem !important;
}
body.single-product .summary table.variations select {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.88rem !important;
    padding: 0.75rem 0.9rem !important;
    border: 1.5px solid #E8E4DC !important;
    border-radius: 10px !important;
    background: #FAF8F5 !important;
    color: #1A1A1A !important;
    width: 100% !important;
    min-height: 48px !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    appearance: none !important;
    /* Custom Theme Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%23B5AFA5' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
}
body.single-product .summary table.variations select:focus {
    border-color: #1A1A1A !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.06) !important;
}
body.single-product .summary .reset_variations {
    display: inline-block !important;
    margin-top: 0.5rem !important;
    font-size: 0.75rem !important;
    color: #D4582A !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* Flexbox for Variable Product Bottom Row */
body.single-product .summary .woocommerce-variation-add-to-cart {
    display: flex !important;
    gap: 1rem !important;
    align-items: center !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #E8E4DC !important;
    margin-top: 1rem !important;
}
body.single-product .summary .woocommerce-variation-price {
    margin-bottom: 1rem !important;
}
/* -- PRODUCT META (SKU, Category) -- */
body.single-product .summary .product_meta {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.82rem !important;
    color: #B5AFA5 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    padding-top: 1.5rem !important;
    border-top: 1px solid #E8E4DC !important;
}
body.single-product .summary .product_meta a {
    color: #D4582A !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* -- WOOCOMMERCE TABS (DESCRIPTION & ADDITIONAL INFO) -- */
body.single-product .woocommerce-tabs ul.tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    display: flex !important;
    gap: 2rem !important;
    border-bottom: 1.5px solid #E8E4DC !important;
}
body.single-product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
body.single-product .woocommerce-tabs ul.tabs li a {
    display: block !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-weight: 700 !important;
    color: #B5AFA5 !important;
    text-decoration: none !important;
    padding-bottom: 1rem !important;
    margin-bottom: -1.5px !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s !important;
}
body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: #1A1A1A !important;
    border-bottom-color: #D4582A !important;
}

body.single-product .woocommerce-tabs .panel {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #1A1A1A !important;
}
body.single-product .woocommerce-tabs .panel h2 {
    display: none !important; /* Hides the redundant "Description" heading inside the tab */
}

/* -- ADDITIONAL INFO TABLE FIX -- */
body.single-product table.shop_attributes {
    border: 1px solid #E8E4DC !important;
    border-radius: 10px !important;
    border-collapse: separate !important;
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important;
}
body.single-product table.shop_attributes th {
    width: 150px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-weight: 700 !important;
    color: #8C8578 !important;
    background: #FAF8F5 !important;
    padding: 1rem !important;
    border-bottom: 1px solid #E8E4DC !important;
    border-right: 1px solid #E8E4DC !important;
}
body.single-product table.shop_attributes td {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.95rem !important;
    color: #1A1A1A !important;
    padding: 1rem !important;
    border-bottom: 1px solid #E8E4DC !important;
    background: #FFFFFF !important;
}
body.single-product table.shop_attributes tr:last-child th,
body.single-product table.shop_attributes tr:last-child td {
    border-bottom: none !important;
}

/* -- RESPONSIVE -- */
@media (max-width: 860px) {
    body.single-product div.product {
        grid-template-columns: 1fr !important;
    }
    body.single-product .woocommerce-product-gallery,
    body.single-product .summary.entry-summary,
    body.single-product .woocommerce-tabs {
        padding: 1.5rem !important;
    }
    body.single-product .woocommerce-tabs ul.tabs {
        gap: 1rem !important;
        overflow-x: auto !important; /* Allow tabs to scroll horizontally on small screens */
    }
}

/* ==============================================================
   SHOP & CATEGORY PAGES (PRODUCT GRID)
   ============================================================== */

/* -- THE GRID LAYOUT -- */
body.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
body.woocommerce ul.products::before, 
body.woocommerce ul.products::after {
    display: none !important; /* Cleans up old WooCommerce floats */
}

/* -- INDIVIDUAL PRODUCT CARDS -- */
body.woocommerce ul.products li.product {
    background: #FFFFFF !important;
    border: 1px solid #E8E4DC !important;
    border-radius: 24px !important;
    padding: 1.5rem !important;
    transition: all 0.3s !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.woocommerce ul.products li.product:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.06) !important;
    transform: translateY(-4px) !important;
    border-color: #E8843A !important;
}

/* -- CARD ELEMENTS -- */
/* Product Image */
body.woocommerce ul.products li.product img {
    border-radius: 12px !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

/* Remove underline from product link wrapper */
body.woocommerce ul.products li.product a {
    text-decoration: none !important;
}

/* Date badge — displayed above the title */
body.woocommerce ul.products li.product .quicked-product-date {
    display: inline-block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    color: #E8843A !important;
    background: #FFF3EB !important;
    padding: 0.3rem 0.7rem !important;
    border-radius: 99px !important;
    margin-bottom: 0.6rem !important;
}

/* Product Title */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #1A1A1A !important;
    margin: 0 0 0.5rem 0 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-decoration: none !important;
}

/* Product Price */
body.woocommerce ul.products li.product .price {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #D4582A !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
    text-align: left !important;
    text-decoration: none !important;
}

/* Add to Cart Button Placement */
body.woocommerce ul.products li.product .button {
    margin-top: auto !important; /* Pushes button to the very bottom of the card */
    width: 100% !important;
}

/* Fix "On Sale" Badges */
body.woocommerce ul.products li.product .onsale {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: #1A1A1A !important;
    color: #FFFFFF !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 0.3rem 0.7rem !important;
    border-radius: 99px !important;
    z-index: 9 !important;
    margin: 0 !important;
    line-height: 1 !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

/* -- RESPONSIVE TWEAKS -- */
@media (max-width: 768px) {
    body.woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 1rem !important;
    }
    body.woocommerce ul.products li.product {
        padding: 1.25rem !important;
    }
}
@media (max-width: 480px) {
    body.woocommerce ul.products {
        grid-template-columns: 1fr !important; /* Single column on phones */
    }
}


/* ==============================================================
   ORDER CONFIRMATION / THANK YOU PAGE
   ============================================================== */

/* -- PAGE LAYOUT -- */
body.woocommerce-order-received .page-wrapper {
    max-width: 780px !important;
}
body.woocommerce-order-received .page-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* -- SUCCESS BANNER -- */
body.woocommerce-order-received .woocommerce-order p.woocommerce-thankyou-order-received,
body.woocommerce-order-received .woocommerce-order > p:first-child {
    background: #f0fdf4 !important;
    border: 1.5px solid #bbf7d0 !important;
    border-radius: 16px !important;
    padding: 1.5rem 2rem !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #166534 !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    line-height: 1.4 !important;
}

/* -- ORDER SUMMARY STRIP (order number, date, total, email, payment) -- */
body.woocommerce-order-received ul.woocommerce-thankyou-order-details,
body.woocommerce-order-received ul.order_details {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 0.75rem !important;
}
body.woocommerce-order-received ul.order_details li {
    background: #FFFFFF !important;
    border: 1px solid #E8E4DC !important;
    border-radius: 16px !important;
    padding: 1.25rem 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.82rem !important;
    color: #8C8578 !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    font-weight: 600 !important;
    overflow: hidden !important;
    min-width: 0 !important;
}
body.woocommerce-order-received ul.order_details li strong {
    display: block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
    margin-top: 0.4rem !important;
    text-transform: none !important;
    letter-spacing: -0.02em !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
}

/* -- SECTION HEADINGS -- */
body.woocommerce-order-received h2.woocommerce-order-details__title,
body.woocommerce-order-received h2.woocommerce-column__title,
body.woocommerce-order-received .woocommerce-order h2 {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #1A1A1A !important;
    margin: 0 0 1.25rem 0 !important;
    padding: 0 !important;
}

/* -- ORDER DETAILS TABLE (line items) -- */
body.woocommerce-order-received .woocommerce-order-details {
    background: #FFFFFF !important;
    border: 1px solid #E8E4DC !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
body.woocommerce-order-received table.woocommerce-table--order-details,
body.woocommerce-order-received table.shop_table.order_details {
    border: none !important;
    width: 100% !important;
    border-collapse: collapse !important;
}
body.woocommerce-order-received table.shop_table thead th {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #B5AFA5 !important;
    padding: 0 0 0.75rem 0 !important;
    border-bottom: 1.5px solid #E8E4DC !important;
    background: transparent !important;
}
body.woocommerce-order-received table.shop_table tbody td {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.92rem !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid #E8E4DC !important;
    color: #1A1A1A !important;
    vertical-align: top !important;
    background: transparent !important;
}
body.woocommerce-order-received table.shop_table tbody td.product-name {
    font-weight: 700 !important;
}
body.woocommerce-order-received table.shop_table tbody td.product-total {
    text-align: right !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-weight: 700 !important;
}
body.woocommerce-order-received table.shop_table tfoot th {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #8C8578 !important;
    padding: 0.6rem 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    text-transform: none !important;
}
body.woocommerce-order-received table.shop_table tfoot td {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-align: right !important;
    padding: 0.6rem 0 !important;
    border: none !important;
    background: transparent !important;
}
/* Total row emphasis */
body.woocommerce-order-received table.shop_table tfoot tr:last-child th {
    padding-top: 1rem !important;
    border-top: 2px solid #1A1A1A !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #1A1A1A !important;
}
body.woocommerce-order-received table.shop_table tfoot tr:last-child td {
    padding-top: 1rem !important;
    border-top: 2px solid #1A1A1A !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1A1A1A !important;
}

/* -- CUSTOMER DETAILS / BILLING ADDRESS -- */
body.woocommerce-order-received .woocommerce-customer-details {
    background: #FFFFFF !important;
    border: 1px solid #E8E4DC !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
}
body.woocommerce-order-received .woocommerce-customer-details address {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.92rem !important;
    font-style: normal !important;
    line-height: 1.7 !important;
    color: #1A1A1A !important;
    padding: 0 !important;
    border: none !important;
}
body.woocommerce-order-received .woocommerce-customer-details address p {
    margin-bottom: 0.25rem !important;
}

/* -- RESPONSIVE ORDER CONFIRMATION -- */
@media (max-width: 768px) {
    body.woocommerce-order-received ul.order_details {
        grid-template-columns: 1fr 1fr !important;
    }
    body.woocommerce-order-received .woocommerce-order-details,
    body.woocommerce-order-received .woocommerce-customer-details {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    body.woocommerce-order-received .woocommerce-order p.woocommerce-thankyou-order-received,
    body.woocommerce-order-received .woocommerce-order > p:first-child {
        padding: 1.25rem !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
    }
}
@media (max-width: 480px) {
    body.woocommerce-order-received ul.order_details {
        grid-template-columns: 1fr !important;
    }
}