/* ==========================================================================
   JOOLY BEAUTY LUXURY THEME - STITCH DESIGN SYSTEM EXTENSIONS
   Tailwind Luxury Palette:
   Deep Burgundy: #4a212f
   Luxe Petal Primary: #b85b82
   Champagne Gold: #c5a059
   Surface: #fbf6f7
   Pure White: #ffffff
   ========================================================================== */

/* Fix Smush / Lazyload logo enlargement */
header img[src*="logo"],
header img[data-src*="logo"],
header .lazyload[src*="logo"],
header .lazyloaded[src*="logo"],
.site-logo img {
    max-height: 40px !important;
    width: auto !important;
    max-width: 160px !important;
    object-contain: contain !important;
}

/* ==========================================================================
   WOOCOMMERCE CART & CHECKOUT LUXURY REDESIGN (STITCH _3 MATCH)
   ========================================================================== */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    width: 100%;
}

/* Empty Cart State */
.woocommerce-cart .cart-empty,
.wc-empty-cart-message .cart-empty {
    background: #ffffff !important;
    border: 1px solid #e7dbe0 !important;
    border-radius: 20px !important;
    padding: 3rem 1.5rem !important;
    text-align: center !important;
    color: #4a212f !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(184, 91, 130, 0.05) !important;
}

.woocommerce-cart .return-to-shop,
.wc-empty-cart-message + .return-to-shop {
    text-align: center !important;
    margin-top: 1.5rem !important;
}

.woocommerce-cart .return-to-shop .button,
.wc-empty-cart-message + .return-to-shop .button {
    background: #b85b82 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0.85rem 2.5rem !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px rgba(184, 91, 130, 0.25) !important;
}
.woocommerce-cart .return-to-shop .button:hover {
    background: #4a212f !important;
    transform: translateY(-1px) !important;
}

/* Cart Table Container */
.woocommerce-cart table.shop_table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e7dbe0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(184, 91, 130, 0.05) !important;
    margin-bottom: 2rem !important;
}

.woocommerce-cart table.shop_table th {
    background: #fdf8f9 !important;
    color: #4a212f !important;
    font-weight: 700 !important;
    padding: 1rem 1.25rem !important;
    font-size: 0.9rem !important;
    border-bottom: 1px solid #e7dbe0 !important;
}

.woocommerce-cart table.shop_table td {
    padding: 1.25rem !important;
    border-bottom: 1px solid #f2e9ec !important;
    vertical-align: middle !important;
}

.woocommerce-cart table.shop_table td.product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover !important;
    border-radius: 14px !important;
    border: 1px solid #e7dbe0 !important;
}

.woocommerce-cart table.shop_table td.product-name a {
    color: #4a212f !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    transition: color 0.2s ease !important;
}
.woocommerce-cart table.shop_table td.product-name a:hover {
    color: #b85b82 !important;
}

.woocommerce-cart table.shop_table td.product-price,
.woocommerce-cart table.shop_table td.product-subtotal {
    color: #4a212f !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
}

.woocommerce-cart table.shop_table td.product-remove a.remove {
    color: #b85b82 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}
.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
    background: #fdf8f9 !important;
    color: #4a212f !important;
}

/* Quantity Input */
.woocommerce .quantity .qty {
    border: 1px solid #e7dbe0 !important;
    border-radius: 12px !important;
    padding: 0.5rem !important;
    width: 4rem !important;
    text-align: center !important;
    font-weight: 700 !important;
    color: #4a212f !important;
    background: #fdf8f9 !important;
}

/* Actions Bar & Coupon */
.woocommerce-cart td.actions {
    background: #ffffff !important;
    padding: 1.25rem !important;
}

.woocommerce-cart .coupon {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
}

.woocommerce-cart .coupon input.input-text {
    border: 1px solid #e7dbe0 !important;
    border-radius: 9999px !important;
    padding: 0.65rem 1.25rem !important;
    background: #fdf8f9 !important;
    font-size: 0.9rem !important;
}

.woocommerce-cart .coupon button.button,
.woocommerce-cart td.actions > button.button {
    border-radius: 9999px !important;
    padding: 0.65rem 1.5rem !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    background: #fdf8f9 !important;
    color: #4a212f !important;
    border: 1px solid #e7dbe0 !important;
    transition: all 0.2s ease !important;
}
.woocommerce-cart .coupon button.button:hover,
.woocommerce-cart td.actions > button.button:hover {
    background: #b85b82 !important;
    color: #ffffff !important;
    border-color: #b85b82 !important;
}

/* Cart Collaterals & Totals */
.cart-collaterals {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

.cart_totals {
    width: 100% !important;
    max-width: 480px !important;
    background: #ffffff !important;
    border: 1px solid #e7dbe0 !important;
    border-radius: 20px !important;
    padding: 1.75rem !important;
    box-shadow: 0 4px 20px rgba(184, 91, 130, 0.05) !important;
}

.cart_totals h2 {
    color: #4a212f !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #e7dbe0 !important;
}

.cart_totals table.shop_table {
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 1.5rem !important;
}

.cart_totals table.shop_table tr th,
.cart_totals table.shop_table tr td {
    border: none !important;
    padding: 0.65rem 0 !important;
    background: transparent !important;
}

.cart_totals tr.order-total th,
.cart_totals tr.order-total td {
    font-size: 1.2rem !important;
    color: #b85b82 !important;
    font-weight: 800 !important;
    border-top: 1px solid #e7dbe0 !important;
    padding-top: 1rem !important;
}

.wc-proceed-to-checkout a.checkout-button {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    background: #b85b82 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 1rem 2rem !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 20px rgba(184, 91, 130, 0.25) !important;
    transition: all 0.3s ease !important;
}
.wc-proceed-to-checkout a.checkout-button:hover {
    background: #4a212f !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   CHECKOUT & PAYMENT GATEWAYS (STITCH _3 MATCH)
   ========================================================================== */
.woocommerce-checkout #customer_details {
    margin-bottom: 2rem !important;
}

.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}

/* Ensure full width and comfortable inputs across all viewports */
.woocommerce-checkout .form-row {
    width: 100% !important;
    float: none !important;
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .select2-container--default .select2-selection--single {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

.woocommerce-checkout .select2-container {
    width: 100% !important;
}

@media (min-width: 640px) {
    .woocommerce-checkout .form-row-first {
        width: 48.5% !important;
        float: right !important;
        clear: none !important;
    }
    .woocommerce-checkout .form-row-last {
        width: 48.5% !important;
        float: left !important;
        clear: none !important;
    }
}


.woocommerce-checkout h3 {
    color: #4a212f !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 1.25rem !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout form select,
.woocommerce-checkout textarea {
    border: 1px solid #e7dbe0 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    background: #fdf8f9 !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    color: #4a212f !important;
    transition: border-color 0.2s ease !important;
}
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout form select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #b85b82 !important;
    outline: none !important;
    background: #ffffff !important;
}

#order_review_heading {
    color: #4a212f !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
}

#order_review {
    background: #ffffff !important;
    border: 1px solid #e7dbe0 !important;
    border-radius: 20px !important;
    padding: 1.75rem !important;
    box-shadow: 0 4px 20px rgba(184, 91, 130, 0.05) !important;
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: #fdf8f9 !important;
    border-radius: 16px !important;
    border: 1px solid #e7dbe0 !important;
    padding: 1.25rem !important;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #e7dbe0 !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1rem !important;
}

#payment button#place_order {
    background: #b85b82 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    width: 100% !important;
    box-shadow: 0 6px 20px rgba(184, 91, 130, 0.25) !important;
    transition: all 0.3s ease !important;
}
#payment button#place_order:hover {
    background: #4a212f !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   MY ACCOUNT LOGIN / REGISTER / DASHBOARD (STITCH _4 & _5 MATCH)
   ========================================================================== */
.woocommerce-account .woocommerce {
    background: #ffffff !important;
    border: 1px solid #e7dbe0 !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    box-shadow: 0 6px 30px rgba(184, 91, 130, 0.05) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    display: block !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 14px !important;
    color: #4a212f !important;
    font-weight: 600 !important;
    background: #fdf8f9 !important;
    transition: all 0.2s ease !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
    background: #b85b82 !important;
    color: #ffffff !important;
}

.woocommerce-form-login,
.woocommerce-form-register {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 100% !important;
}

.woocommerce-account .woocommerce-form-login .form-row,
.woocommerce-account .woocommerce-form-register .form-row {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 0 1.25rem 0 !important;
}

.woocommerce-account .woocommerce-form-login input.input-text,
.woocommerce-account .woocommerce-form-register input.input-text {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 0.875rem !important;
    box-sizing: border-box !important;
}


.woocommerce-form-login .button,
.woocommerce-form-register .button {
    background: #b85b82 !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0.85rem 2rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}
.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    background: #4a212f !important;
}

/* Stitch _1 WooCommerce Pagination Styling */
.page-numbers {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    list-style: none !important;
    padding: 0 !important;
}

.page-numbers li {
    margin: 0 !important;
}

.page-numbers a,
.page-numbers span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 9999px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    color: #4a212f !important;
    background: #fdf8f9 !important;
    border: 1px solid #e7dbe0 !important;
}

.page-numbers a:hover {
    background: #b85b82 !important;
    color: #ffffff !important;
    border-color: #b85b82 !important;
}

.page-numbers span.current {
    background: #b85b82 !important;
    color: #ffffff !important;
    border-color: #b85b82 !important;
    box-shadow: 0 4px 14px rgba(184, 91, 130, 0.25) !important;
}

/* ==========================================================================
   RESET WOOCOMMERCE DEFAULT ARCHIVE GRID OVERRIDES (PREVENT CRUMPLED CARDS)
   ========================================================================== */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

/* Ensure clean grid container */
#productCatalogGrid {
    display: grid !important;
    width: 100% !important;
}

/* Smush image placeholder fix strictly for main product image container */
#productCatalogGrid article .aspect-square > a > img,
#featured-products article .aspect-square > a > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    opacity: 1 !important;
}

/* Strictly enforce emoji size and inline display so WP Twemoji doesn't expand */
img.wp-smiley,
img.emoji {
    display: inline-block !important;
    border: none !important;
    box-shadow: none !important;
    height: 1.15em !important;
    width: 1.15em !important;
    max-height: 1.15em !important;
    max-width: 1.15em !important;
    min-height: auto !important;
    min-width: auto !important;
    margin: 0 0.15em !important;
    vertical-align: -0.15em !important;
    background: none !important;
    padding: 0 !important;
    aspect-ratio: auto !important;
}


/* ==========================================================================
   MOBILE RESPONSIVENESS FIX FOR SINGLE PRODUCT (STITCH _5)
   ========================================================================== */
@media (max-width: 1023px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    body.single-product {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    body.single-product #jooly-app {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    body.single-product main {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    body.single-product main .max-w-7xl {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
}


/* ==========================================================================
   HIDE FOOTER ON MOBILE ACROSS ENTIRE THEME (APP-STYLE EXPERIENCE)
   ========================================================================== */
@media (max-width: 1023px) {
    footer,
    footer.w-full,
    .site-footer,
    #colophon {
        display: none !important;
    }
}


/* ==========================================================================
   LUXURY WOOCOMMERCE CART (STITCH _6 MATCH)
   ========================================================================== */
.woocommerce-cart .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
}

.woocommerce-cart .cart-collaterals {
    width: 100% !important;
}

.woocommerce-cart .cart_totals {
    float: none !important;
    width: 100% !important;
    text-align: right !important;
}

.woocommerce-cart .cart_totals table.shop_table {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
    padding: 0.5rem 0 !important;
    border: none !important;
    background: transparent !important;
}

.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    padding: 0 !important;
}

/* Shipping Methods Styling in Cart Totals */
.woocommerce-cart ul#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 0.5rem 0 !important;
}

.woocommerce-cart ul#shipping_method li {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.25rem !important;
}

/* Hide raw table borders on cart items container */
.woocommerce-cart .woocommerce-cart-form {
    margin-bottom: 0 !important;
}

/* Mobile responsive constraints */
@media (max-width: 1023px) {
    body.woocommerce-cart {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
    body.woocommerce-cart #jooly-app,
    body.woocommerce-cart main {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }
}


/* ==========================================================================
   REMOVE HUGE HERO GAP ON MOBILE (FRONT PAGE)
   ========================================================================== */
@media (max-width: 767px) {
    #hero-scroll-container {
        height: auto !important;
        min-height: 0 !important;
    }
    #hero-scroll-container .sticky {
        position: relative !important;
        top: 0 !important;
        height: calc(100vh - 4rem) !important;
        max-height: 580px !important;
    }
    #category-section {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }
}


/* ==========================================================================
   JOOLY BEAUTY - LUXURY CHECKOUT CUSTOM STYLES
   Full WooCommerce & Multi-Currency Standards Integration
   ========================================================================== */

/* 1. Base Form & Field Controls */
.woocommerce-checkout .form-row {
    margin-bottom: 1.125rem !important;
    padding: 0 !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .woocommerce-checkout .form-row-first {
        width: 48.5% !important;
        float: right !important;
        clear: none !important;
    }
    .woocommerce-checkout .form-row-last {
        width: 48.5% !important;
        float: left !important;
        clear: none !important;
    }
    .woocommerce-checkout .form-row-wide {
        width: 100% !important;
        clear: both !important;
    }
}

.woocommerce-checkout label {
    display: block !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    color: #47232F !important; /* deep-burgundy */
    margin-bottom: 0.375rem !important;
}

.woocommerce-checkout label .required {
    color: #92400E !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
}

/* 2. Text Inputs, Textarea, Select */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout form select {
    width: 100% !important;
    background-color: #FFFFFF !important;
    border: 1px solid #E5D5D8 !important;
    border-radius: 0.75rem !important; /* rounded-xl */
    padding: 0.625rem 0.875rem !important;
    font-size: 0.875rem !important;
    color: #2D151E !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
}

.woocommerce-checkout input[type="text"]:focus,
.woocommerce-checkout input[type="email"]:focus,
.woocommerce-checkout input[type="tel"]:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout form select:focus {
    border-color: #79304B !important; /* primary */
    box-shadow: 0 0 0 3px rgba(121, 48, 75, 0.12) !important;
}

.woocommerce-checkout textarea {
    min-height: 90px !important;
    resize: vertical !important;
}

/* Select2 / Select WooCommerce Dropdown Styling */
.woocommerce-checkout .select2-container--default .select2-selection--single {
    height: 44px !important;
    border: 1px solid #E5D5D8 !important;
    border-radius: 0.75rem !important;
    padding: 0.4rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
    left: 8px !important;
    right: auto !important;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2D151E !important;
    padding-right: 0 !important;
    padding-left: 20px !important;
}

/* 3. Checkbox & Radio Alignment */
.woocommerce-checkout input[type="checkbox"],
.woocommerce-checkout input[type="radio"] {
    accent-color: #79304B !important;
    width: 1.125rem !important;
    height: 1.125rem !important;
    border-radius: 0.375rem !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    color: #47232F !important;
    font-weight: 600 !important;
}

/* 4. Payment Gateways Luxury Card Box */
.woocommerce-checkout #payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 1rem !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 1.25rem 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background-color: #FAF4F6 !important;
    border: 1px solid #E8D9DE !important;
    border-radius: 1rem !important;
    padding: 1rem 1.25rem !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
    background-color: #FFFFFF !important;
    border-color: #79304B !important;
    box-shadow: 0 4px 15px rgba(121, 48, 75, 0.08) !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #47232F !important;
    cursor: pointer !important;
    margin: 0 !important;
    width: auto !important;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #FAF4F6 !important;
    border-radius: 0.75rem !important;
    padding: 0.875rem 1rem !important;
    margin-top: 0.75rem !important;
    font-size: 0.75rem !important;
    color: #5C4A51 !important;
    line-height: 1.6 !important;
    border: 1px dashed #D6C2C9 !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    display: none !important;
}

/* 5. Terms & Conditions and Privacy */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 1.25rem !important;
    font-size: 0.75rem !important;
    color: #6E545E !important;
    line-height: 1.6 !important;
}

.woocommerce-checkout .woocommerce-privacy-policy-text {
    margin-bottom: 0.75rem !important;
}

/* 6. Place Order Button */
.woocommerce-checkout #place_order {
    width: 100% !important;
    background: linear-gradient(135deg, #79304B 0%, #5E2238 100%) !important;
    color: #FFFFFF !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.875rem 1.5rem !important;
    border-radius: 0.875rem !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(121, 48, 75, 0.28) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.woocommerce-checkout #place_order:hover {
    background: linear-gradient(135deg, #5E2238 0%, #47232F 100%) !important;
    box-shadow: 0 6px 20px rgba(121, 48, 75, 0.38) !important;
    transform: translateY(-1px) !important;
}

.woocommerce-checkout #place_order:active {
    transform: translateY(1px) !important;
}

/* 7. Loading Overlay for AJAX */
.woocommerce-checkout .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(2px) !important;
    border-radius: 1rem !important;
}

/* 8. Notices / Alerts Styling */
.woocommerce-NoticeGroup-checkout,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-radius: 1rem !important;
    border: 1px solid #E5D5D8 !important;
    padding: 0.875rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
    font-size: 0.8125rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
}

.woocommerce-error {
    background-color: #FEF2F2 !important;
    border-color: #FECACA !important;
    color: #991B1B !important;
}

.woocommerce-message {
    background-color: #F0FDF4 !important;
    border-color: #BBF7D0 !important;
    color: #166534 !important;
}



/* Responsive Checkout & Screen Reader overflow fix */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body.woocommerce-checkout #jooly-app,
body.woocommerce-checkout main {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    min-width: 0 !important;
}

.screen-reader-text,
.widget_shopping_cart_live_region {
    clip: rect(1px, 1px, 1px, 1px) !important;
    position: absolute !important;
    white-space: nowrap !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden !important;
    left: 0 !important;
    right: auto !important;
}



/* Select2 accessibility hidden position fix for RTL */
.select2-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
    left: 0 !important;
    right: auto !important;
    top: 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout label .optional {
    display: none !important;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100% !important;
}



/* Mobile Padding & Gateways Polish for Checkout */
@media (max-width: 1023px) {
    body.woocommerce-checkout main {
        padding-bottom: 7rem !important; /* clear space for floating dock */
    }
    
    .woocommerce-checkout #payment ul.payment_methods li {
        padding: 0.875rem !important;
    }
}

.woocommerce-checkout #payment ul.payment_methods li label img {
    max-height: 24px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}

.woocommerce-checkout #order_review {
    background: transparent !important;
}


/* Extra Checkout Polish */
@media (max-width: 991px) {
    body.woocommerce-checkout header.sticky {
        position: relative !important;
    }
    .jooly-checkout-stepper {
        margin-top: 10px !important;
    }
}


/* Sticky Mobile Place Order Bar */
@media (max-width: 1023px) {
    body.woocommerce-checkout {
        padding-bottom: 160px !important;
    }
    body.woocommerce-checkout #jooly-checkout-mobile-bar {
        position: fixed !important;
        bottom: 96px !important;
        left: 12px !important;
        right: 12px !important;
        z-index: 45 !important;
    }
}


/* Explicit Header Currency Selector Reset */
header select,
header select[aria-label="Currency Selector"] {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 4px !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: normal !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

header .relative.flex.items-center.bg-surface-container-low {
    display: inline-flex !important;
    align-items: center !important;
    height: 32px !important;
    padding: 2px 8px !important;
    border-radius: 9999px !important;
    background-color: #f6f3f2 !important;
}


/* Clean up duplicate billing titles in checkout */
.woocommerce-checkout .woocommerce-billing-fields > h3 {
    display: none !important;
}


/* ==========================================================================
   JOOLY BEAUTY MY ACCOUNT LUXURY STYLING
   ========================================================================== */
.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
}

.woocommerce-account table.my_account_orders {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 0.5rem !important;
    border: none !important;
}

.woocommerce-account table.my_account_orders th {
    background: #fbf8f9 !important;
    color: #591A1F !important;
    font-weight: 700 !important;
    padding: 0.875rem 1rem !important;
    border: none !important;
    font-size: 0.8125rem !important;
}

.woocommerce-account table.my_account_orders td {
    background: #ffffff !important;
    padding: 1rem !important;
    border-top: 1px solid #f0eded !important;
    border-bottom: 1px solid #f0eded !important;
    font-size: 0.875rem !important;
}

.woocommerce-account table.my_account_orders td:first-child {
    border-right: 1px solid #f0eded !important;
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.woocommerce-account table.my_account_orders td:last-child {
    border-left: 1px solid #f0eded !important;
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.woocommerce-account .woocommerce-Button,
.woocommerce-account .button {
    background: #79304B !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    padding: 0.625rem 1.25rem !important;
    font-weight: 700 !important;
    font-size: 0.8125rem !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .button:hover {
    background: #591A1F !important;
    box-shadow: 0 4px 12px rgba(121, 48, 75, 0.2) !important;
}

/* Account form inputs */
.woocommerce-account .woocommerce-EditAccountForm input.input-text,
.woocommerce-account .woocommerce-address-fields input.input-text {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
    border: 1px solid #E5D5D8 !important;
    padding: 0.625rem 1rem !important;
    font-size: 0.875rem !important;
}

.woocommerce-account .woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-account .woocommerce-address-fields input.input-text:focus {
    border-color: #79304B !important;
    box-shadow: 0 0 0 3px rgba(121, 48, 75, 0.12) !important;
    outline: none !important;
}


/* Auth Switcher and Mobile Layout Polish */
#jooly-auth-tabs button {
    white-space: nowrap !important;
}

@media (max-width: 640px) {
    #jooly-auth-tabs button {
        padding: 0.625rem 0.5rem !important;
        font-size: 0.75rem !important;
        gap: 0.25rem !important;
    }
    #jooly-auth-tabs button .material-symbols-outlined {
        font-size: 16px !important;
    }
}


/* Desktop Horizontal Category Carousel */
#jooly-cats-desktop-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(184, 91, 130, 0.25) transparent;
}
#jooly-cats-desktop-container::-webkit-scrollbar {
    height: 5px;
}
#jooly-cats-desktop-container::-webkit-scrollbar-track {
    background: transparent;
}
#jooly-cats-desktop-container::-webkit-scrollbar-thumb {
    background: rgba(184, 91, 130, 0.25);
    border-radius: 9999px;
}
#jooly-cats-desktop-container::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 91, 130, 0.5);
}


/* Strict Mobile Horizontal Drift Lock */
html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none !important;
}

#jooly-app, main, header, footer {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Allow horizontal scroll ONLY inside legitimate carousel containers */
.overflow-x-auto, #jooly-cats-desktop-container {
    overflow-x: auto !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
}


/* Hero Video Container Sizing (True 100vh Fullscreen) */
#hero-scroll-container {
    width: 100% !important;
    height: calc(100vh - 4rem) !important;
    min-height: 500px !important;
    position: relative !important;
    background-color: #000 !important;
    overflow: hidden !important;
}

@media (min-width: 640px) {
    #hero-scroll-container {
        height: calc(100vh - 5rem) !important;
        min-height: 600px !important;
    }
}

