/* --------------------------------------------------------------------------
   Scroll to Top — Premium Utility
-------------------------------------------------------------------------- */
#zl-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: var(--zl-rose-gold, #C0667A);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 99999; /* Ensure it stays above everything */
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#zl-scroll-top:hover {
    transform: translateY(-5px);
    background: #ffffff;
    color: var(--zl-rose-gold, #C0667A);
}

#zl-scroll-top svg {
    width: 20px;
    height: 20px;
}
/* --------------------------------------------------------------------------
   General Structure & Resets
-------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
}

body {
    padding-top: 0; /* Header is absolute, homepage content should underlay */
}

/* Push down content on ALL interior pages so they don't slide under the absolute transparent header */
body:not(.home) {
    padding-top: 120px; 
}

/* Container */
.zl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Header Styles
-------------------------------------------------------------------------- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: transparent;
    border-bottom: none;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

/* --------------------------------------------------------------------------
   Desktop Header Absolute Restructuring
-------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .site-header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }
    .main-navigation {
        grid-column: 1;
        justify-self: start;
        width: 100%;
        min-width: 0; /* CRITICAL: Prevents CSS Grid Blowout */
    }
    .site-branding {
        grid-column: 2;
        position: static;
        transform: none;
        z-index: 100;
        text-align: center;
        padding: 0 20px;
    }
    .header-cart, .header-actions {
        grid-column: 3;
        justify-self: end;
        min-width: 0;
    }
    .mobile-menu-container {
        display: contents; /* Ensure the injected div acts transparently to CSS grid and flex logic */
    }
    .mobile-account-links {
        display: none; /* Hide mobile specific links on PC */
    }
}

.site-branding {
    flex-shrink: 0;
}

.zl-logo-img {
    height: 60px; /* Base logo height */
    width: auto;
    display: block;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px; /* Extremely tight for minimalism */
    flex-wrap: nowrap; /* Force single line */
    white-space: nowrap;
}

.main-navigation a {
    color: var(--zl-text-color);
    font-weight: 400; /* Minimalist */
    text-transform: uppercase;
    font-size: 11px; /* True High-Fashion Minimalist Size */
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--zl-gold);
}

.zl-account-link {
    font-family: 'Outfit', sans-serif;
    transition: opacity 0.3s ease;
}

.zl-account-link:hover {
    opacity: 0.8;
}

.zl-account-link svg {
    vertical-align: middle;
}

/* Desktop spacing */
@media (min-width: 992px) {
    .header-cart {
        gap: 25px !important; /* Increase gap slightly for three items */
    }
}

/* Cart Icon */
.header-cart {
    flex-shrink: 0;
    margin-left: 20px;
}

.cart-customlocation {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--zl-text-color);
}

/* Cart count is textual, no background circle needed */
.cart-count {
    display: inline;
}

/* Hamburger (Hidden on PC) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-box {
    width: 26px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 26px !important;
    height: 1px !important;
    background-color: #ffffff !important;
    position: absolute;
    left: 0 !important;
    right: auto !important;
    transition: transform 0.15s ease;
    border-radius: 0 !important;
}

.hamburger-inner { top: 50%; margin-top: -0.5px; }
.hamburger-inner::before { content: ""; top: -6px !important; }
.hamburger-inner::after { content: ""; bottom: -6px !important; top: auto !important; }

.menu-toggle.toggled .hamburger-inner { background-color: transparent !important; }
.menu-toggle.toggled .hamburger-inner::before { transform: translate3d(0, 6px, 0) rotate(45deg); }
.menu-toggle.toggled .hamburger-inner::after { transform: translate3d(0, -6px, 0) rotate(-45deg); }


/* --------------------------------------------------------------------------
   Mobile & Tablet Responsive Header
-------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .header-wrapper {
        padding: 15px 20px;
    }

    .site-header-inner {
        position: relative;
        justify-content: center;
        display: flex;
        align-items: center; /* Vertically center ALL items in the header bar */
        min-height: 60px;
    }

    .site-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        text-align: center;
        z-index: 100;
    }

    .site-branding img, .site-branding .custom-logo {
        max-width: 100% !important;
        max-height: 40px !important;
        object-fit: contain;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 0px;
        top: 50%;
        transform: translateY(-50%); /* Perfect vertical centering with logo */
        z-index: 200;
    }

    .header-cart, .zl-cart-icon, .header-actions {
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%); /* Perfect vertical centering with logo */
        z-index: 200;
    }

    .zl-hide-mobile {
        display: none !important;
    }

    .header-cart {
        gap: 10px !important; /* Tighten gap on mobile where only Cart is shown */
    }

    .desktop-account-links {
        display: none !important;
    }

    /* ---- FULL-SCREEN MOBILE MENU OVERLAY ---- */
    .mobile-menu-container {
        display: none;
        flex-direction: column;
        justify-content: center; /* Center the nav links vertically */
        align-items: center;
        position: fixed; /* FIXED so it covers entire viewport, no content bleeding */
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(12, 12, 12, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 80px 20px 40px 20px; /* Top space for the X button */
        overflow-y: auto;
        z-index: 150; /* Above page content, below the hamburger X button */
    }

    .main-navigation.toggled .mobile-menu-container {
        display: flex;
    }

    .main-navigation ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0; /* Remove default gap */
    }

    .main-navigation ul li {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .main-navigation ul li a {
        display: block;
        padding: 20px 0;
        font-size: 14px;
        font-weight: 400;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: #ffffff;
        border-bottom: 1px solid rgba(192, 102, 122, 0.15); /* Very subtle rose gold separator */
        transition: color 0.3s ease, letter-spacing 0.3s ease;
    }

    .main-navigation ul li:last-child a {
        border-bottom: none;
    }

    .main-navigation ul li a:hover {
        color: var(--zl-rose-gold, #C0667A);
        letter-spacing: 5px; /* Subtle expand on hover */
    }

    .mobile-account-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 40px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 20px;
    }

    .mobile-login-btn {
        border: 1px solid #fff;
        padding: 12px 40px;
        color: #fff !important;
        text-decoration: none;
        font-size: 11px;
        letter-spacing: 1px;
        text-transform: uppercase;
        width: 80%;
        text-align: center;
        transition: background 0.3s, color 0.3s;
    }

    .mobile-login-btn:hover {
        background: #fff;
        color: #121212 !important;
    }

    .mobile-register-btn {
        color: #fff !important;
        text-decoration: underline;
        font-size: 11px;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
}

/* --------------------------------------------------------------------------
   Product Page & Archive Customizations
-------------------------------------------------------------------------- */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile default */
    gap: 20px;
    margin: 40px 0 !important;
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
}

body.woocommerce.single div.product,
body.woocommerce div.product {
    max-width: 1400px !important; /* Modern ultra-wide margin */
    margin: 60px auto !important;
    padding: 0 40px !important;
}

/* Clearfix for float layout to ensure tabs drop below */
body.woocommerce.single div.product::after,
body.woocommerce div.product::after {
    content: "";
    display: table;
    clear: both;
}

.woocommerce #content div.product div.images, 
.woocommerce div.product div.images, 
.woocommerce-page #content div.product div.images, 
.woocommerce-page div.product div.images {
    float: left !important;
    width: 55% !important; /* Left columns */
    margin-right: 5% !important;
    margin-bottom: 60px !important;
}

.woocommerce #content div.product div.summary, 
.woocommerce div.product div.summary, 
.woocommerce-page #content div.product div.summary, 
.woocommerce-page div.product div.summary {
    float: right !important;
    width: 40% !important;
    margin-top: 0 !important;
    clear: none !important;
    margin-bottom: 60px !important;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products,
.woocommerce div.product .up-sells.upsells {
    clear: both !important;
    float: none !important;
    width: 100% !important;
    padding-top: 40px !important;
}

/* Vertical Thumbnails */
.woocommerce-product-gallery {
    display: flex !important;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.woocommerce-product-gallery .flex-control-thumbs {
    margin: 0 !important;
    padding: 0 !important;
    width: 100px !important;
    flex-shrink: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
    overflow-y: auto;
    max-height: 800px;
}
.woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar {
    width: 0;
}
.woocommerce-product-gallery .flex-control-thumbs li {
    width: 100% !important;
    float: none !important;
}
.woocommerce-product-gallery .flex-control-thumbs img {
    margin: 0 !important;
}

.woocommerce-product-gallery .flex-viewport {
    width: calc(100% - 120px) !important;
    flex-grow: 1;
}

/* Mobile responsive single product gallery & layout */
@media (max-width: 991px) {
    /* Fix global header spacing on mobile so it's not so huge */
    body:not(.home) {
        padding-top: 90px !important; 
    }
    body.woocommerce.single div.product,
    body.woocommerce div.product {
        margin: 20px auto !important;
        padding: 0 20px !important;
    }
    .woocommerce div.product .product_title {
        font-size: 18px !important; /* Smaller title to fit 2 lines on mobile */
        margin-bottom: 8px !important;
        line-height: 1.3 !important;
    }
    .woocommerce #content div.product div.images, 
    .woocommerce div.product div.images, 
    .woocommerce-page #content div.product div.images, 
    .woocommerce-page div.product div.images {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important; /* Fix huge space between image and title */
    }
    .woocommerce #content div.product div.summary, 
    .woocommerce div.product div.summary, 
    .woocommerce-page #content div.product div.summary, 
    .woocommerce-page div.product div.summary {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    .woocommerce-product-gallery {
        flex-direction: column !important;
    }
    .woocommerce-product-gallery .flex-control-thumbs {
        flex-direction: row !important;
        width: 100% !important;
        overflow-x: auto;
    }
    .woocommerce-product-gallery .flex-viewport {
        width: 100% !important;
    }
    /* Mobile-specific price sizing */
    .woocommerce div.product p.price, 
    .woocommerce div.product span.price {
        font-size: 22px !important;
        gap: 8px !important;
        margin-bottom: 5px !important;
    }
    .woocommerce div.product p.price del,
    .woocommerce div.product span.price del {
        font-size: 12px !important;
    }
    .woocommerce div.product p.price ins,
    .woocommerce div.product span.price ins {
        font-size: 22px !important;
    }
    /* Mobile button - tighter, smaller */
    .woocommerce div.product form.cart {
        margin-top: 5px !important;
        margin-bottom: 20px !important;
    }
    .woocommerce div.product form.cart .single_add_to_cart_button {
        padding: 10px 30px !important;
        font-size: 11px !important;
    }
}

.woocommerce div.product .product_title {
    color: #ffffff;
    font-size: 32px;
}

.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    color: var(--zl-rose-gold, #C0667A);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 5px !important; /* Very tight gap to bring button close */
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
}

.woocommerce div.product p.price del, 
.woocommerce div.product span.price del {
    color: var(--zl-rose-gold, #C0667A);
    font-size: 14px; /* Half the size of the current price */
    opacity: 0.6;
    order: -1; /* Slashed price first (on the left) */
}

.woocommerce div.product p.price ins, 
.woocommerce div.product span.price ins {
    color: var(--zl-rose-gold, #C0667A);
    text-decoration: none;
    font-size: 28px;
    font-weight: 400;
}

/* Remove the SALE pseudo-element entirely */
.woocommerce div.product p.price ins::after {
    content: none;
}

/* Accordion Styles */
.zl-accordion {
    margin-top: 30px;
    border-top: 1px solid var(--zl-border);
}

.zl-accordion-item {
    border-bottom: 1px solid var(--zl-border);
}

.zl-accordion-header {
    width: 100%;
    text-align: left;
    background: transparent;
    color: var(--zl-gold);
    border: none;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--zl-font-heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zl-accordion-header:hover {
    color: var(--zl-text-color);
}

.zl-accordion-content {
    display: none;
    padding: 10px 0 20px 0;
    color: var(--zl-text-muted);
}

/* Tables for size chart */
.zl-size-chart {
    width: 100%;
    border-collapse: collapse;
}

.zl-size-chart th, .zl-size-chart td {
    padding: 10px;
    border: 1px solid var(--zl-border);
    text-align: center;
}

.zl-size-chart th {
    background: var(--zl-bg-alt);
    color: var(--zl-gold);
}

/* Care Guide List */
.zl-care-guide {
    margin: 0;
    padding-left: 20px;
}

.zl-care-guide li {
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Review Image Upload
-------------------------------------------------------------------------- */
.zl-reviews-section {
    margin-top: 50px;
    border-top: 2px solid var(--zl-gold);
    padding-top: 30px;
}

.comment-form-image-upload {
    margin-bottom: 20px;
}

.comment-form-image-upload label {
    display: block;
    margin-bottom: 5px;
    color: var(--zl-gold);
}

.comment-form-image-upload input[type="file"] {
    background: var(--zl-bg-alt);
    padding: 10px;
    border: 1px solid var(--zl-border);
    color: var(--zl-text-color);
    border-radius: 4px;
    width: 100%;
}

.review-uploaded-image {
    margin-top: 15px;
}

.review-uploaded-image img {
    max-width: 200px;
    height: auto;
    border: 2px solid var(--zl-gold);
    border-radius: 5px;
}

/* --------------------------------------------------------------------------
   Hide Default WordPress Sidebar / Widget Fallback
-------------------------------------------------------------------------- */
#secondary,
.widget-area,
.sidebar,
aside.widget-area,
.woocommerce-sidebar,
body:not(.woocommerce) > .widget,
.site-main + .widget-area {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Footer
-------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--zl-bg-alt);
    border-top: 2px solid var(--zl-gold);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.zl-product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    align-items: center; /* Vertically center content and image */
}

.zl-product-image-col {
    flex: 1 1 500px;
}

.zl-product-summary-col {
    flex: 1 1 400px;
}

/* Reduced whitespace on product pages */
.woocommerce-content-wrapper {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-column {
    flex: 1;
    min-width: 250px;
}

.footer-widget-column h3 {
    color: var(--zl-gold);
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-widget-column p {
    color: var(--zl-text-muted);
}

.footer-widget-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget-column ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--zl-border);
    padding-top: 20px;
    color: var(--zl-text-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Interactive Hero Slider CSS Additions
-------------------------------------------------------------------------- */
.zl-hero-slider a:hover {
    background-color: var(--zl-gold) !important;
    color: var(--zl-bg-color) !important;
    border-color: var(--zl-gold) !important;
}

/* Slider Controls Base (Desktop) */
.zl-slider-controls {
    position: absolute;
    bottom: 80px;
    right: 5%;
    display: flex;
    gap: 30px;
    z-index: 10;
}
.zl-control-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}
.zl-control-item.active, .zl-control-item:hover {
    opacity: 1 !important;
}
.zl-control-text {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}
.zl-control-item.active .zl-control-text {
    border-bottom: 2px solid #fff;
}
.zl-control-dot {
    display: none; /* Hidden on desktop */
}

/* Mobile Layout */
@media (max-width: 768px) {
    .zl-slide-content {
        left: 50% !important;
        top: 45% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        text-align: center !important;
        bottom: auto !important;
    }
    .zl-slide-content h2 {
        font-size: 2.5rem !important;
    }
    .zl-slide-content p {
        font-size: 1rem !important;
    }
    
    .zl-slider-controls {
        bottom: 30px !important;
        right: auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        gap: 15px; 
        align-items: flex-end;
    }
    
    .zl-control-item {
        position: relative; 
        margin-top: 30px; /* Room for text above */
    }
    
    .zl-control-dot {
        display: block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #fff;
    }
    
    .zl-control-text {
        display: none;
        border-bottom: none;
        padding-bottom: 0;
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .zl-control-item.active .zl-control-text {
        display: block;
        position: absolute;
        bottom: 20px; /* Above the dots */
        left: 50%;
        transform: translateX(-50%);
        border-bottom: none;
    }
}

/* Hide Quantity Selector for Minimalist Layout */
.woocommerce div.product form.cart div.quantity,
.woocommerce-page div.product form.cart div.quantity {
    display: none !important;
}

/* Hide Categories / Tags meta block below Add to Cart */
.woocommerce div.product .product_meta,
.woocommerce-page div.product .product_meta {
    display: none !important;
}

/* -----------------------------------------------------------------------
   Add to Cart Button — Transparent, Centered, Rounded, Text-only
   ----------------------------------------------------------------------- */
.woocommerce div.product form.cart,
.woocommerce-page div.product form.cart {
    display: flex !important;
    justify-content: flex-start !important; /* Align with price block */
    margin-top: 5px !important; /* Very tight — right below price */
    margin-bottom: 30px !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce-page div.product form.cart .single_add_to_cart_button,
button.single_add_to_cart_button {
    background: transparent !important;
    border: 1.5px solid var(--zl-rose-gold, #C0667A) !important;
    color: #ffffff !important;
    font-family: var(--zl-font-body) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-radius: 30px !important;   /* Curved corners */
    padding: 14px 48px !important;
    cursor: pointer !important;
    transition: background 0.3s ease, color 0.3s ease !important;
    /* Remove price span if injected by JS — price text is hidden via JS */
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
    background: var(--zl-rose-gold, #C0667A) !important;
    color: #ffffff !important;
}

/* Hide ALL price elements injected inside the Add to Cart form area */
.woocommerce div.product form.cart .woocommerce-variation-price,
.woocommerce div.product form.cart .woocommerce-variation-availability,
.woocommerce div.product form.cart .price,
.woocommerce div.product form.cart span.price,
.single_add_to_cart_button .woocommerce-Price-amount,
.single_add_to_cart_button .zl-btn-price,
.single_add_to_cart_button .amount {
    display: none !important;
}

/* --------------------------------------------------------------------------
   WooCommerce Archive / Shop / Category Pages Optimization
-------------------------------------------------------------------------- */
.woocommerce-products-header,
.woocommerce-products-header__title {
    text-align: center;
    margin-bottom: 10px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important; /* Remove float clearers from Woo since we use CSS Grid */
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    padding: 0 40px !important;
    margin: 15px 0 !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05); /* Very subtle border */
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Hover Effect: Lift up and add a glowing rose gold shadow */
.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border-color: var(--zl-border);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px !important;
    color: #ffffff;
    font-weight: 500;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

/* Price Alignment and Styling */
.woocommerce ul.products li.product .price {
    color: var(--zl-rose-gold, #C0667A) !important;
    font-size: 16px !important;
    margin-bottom: 20px !important;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.woocommerce ul.products li.product .price del {
    color: #888 !important;
    font-size: 13px !important;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 600;
}

/* Add to Cart Button for Shop Page */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product .button.product_type_variable {
    margin-top: auto !important; /* Pushes button to bottom of card */
    background: transparent !important;
    border: 1px solid var(--zl-rose-gold, #C0667A) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 12px 20px !important;
    text-align: center;
    font-weight: 500;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.3s ease, color 0.3s ease !important;
    display: block;
    width: 100%;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--zl-rose-gold, #C0667A) !important;
    color: #ffffff !important;
}

/* Refined Sale Badge */
.woocommerce ul.products li.product span.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    margin: 0;
    background: var(--zl-rose-gold, #C0667A);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: auto;
    min-width: auto;
    line-height: 1;
    z-index: 9;
}

/* Strict 2 Column Mobile Optimization */
@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important; /* Very tight gap for mobile */
        margin: 20px 0 !important;
        padding: 0 15px !important; /* Added margin on sides for mobile */
    }
    
    .woocommerce ul.products li.product {
        padding: 12px;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 13px !important; /* Prevent text wrapping awkwardly */
        line-height: 1.3;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 14px !important;
        margin-bottom: 15px !important;
        flex-direction: column; /* Stack slashed price on top of current price */
        align-items: flex-start;
        gap: 2px;
    }
    
    .woocommerce ul.products li.product .button.add_to_cart_button,
    .woocommerce ul.products li.product .button.product_type_variable {
        padding: 8px 10px !important;
        font-size: 10px !important;
        letter-spacing: 1px;
    }
    
    .woocommerce ul.products li.product span.onsale {
        top: 5px;
        right: 5px;
        padding: 4px 8px;
        font-size: 9px;
    }
}

/* -----------------------------------------------------------------------
   Related Products — Centered & Equal Margins
   ----------------------------------------------------------------------- */
.woocommerce div.product .related.products,
section.related.products {
    padding: 0 20px !important;
    margin: 40px auto !important;
    max-width: 1200px;
}

.woocommerce div.product .related.products h2,
section.related.products h2 {
    text-align: center !important;
    color: #ffffff;
    font-size: 26px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.woocommerce div.product .related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
    padding: 0 !important;
    margin: 0 auto !important;
}

@media (max-width: 991px) {
    .woocommerce div.product .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .woocommerce div.product .related.products h2,
    section.related.products h2 {
        font-size: 20px;
    }
}

/* -----------------------------------------------------------------------
   New Highlights Section — Homepage
   ----------------------------------------------------------------------- */
.zl-highlights-section {
    padding: 40px 20px 50px;
    background-color: var(--zl-bg, #121212);
    max-width: 1200px;
    margin: 0 auto;
}

.zl-highlights-title {
    text-align: center;
    color: #ffffff;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 35px;
    font-family: var(--zl-font-heading, 'Outfit', sans-serif);
}

.zl-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
}

.zl-highlight-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.zl-highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border-color: var(--zl-border, #C0667A);
}

.zl-highlight-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.zl-highlight-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--zl-rose-gold, #C0667A);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    z-index: 9;
}

.zl-highlight-img {
    width: 100%;
    aspect-ratio: 1/1; /* Ensure perfect grid even with different image ratios */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.zl-highlight-name {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.zl-highlight-price {
    color: var(--zl-rose-gold, #C0667A);
    font-size: 15px;
    margin-bottom: 0;
}

.zl-highlight-price del {
    color: #888;
    font-size: 12px;
}

.zl-highlight-price ins {
    text-decoration: none;
    font-weight: 600;
}

/* View More Button */
.zl-highlights-btn-wrap {
    text-align: center;
    margin-top: 35px;
}

.zl-highlights-view-more {
    display: inline-block;
    background: transparent;
    border: 1.5px solid var(--zl-rose-gold, #C0667A);
    color: #ffffff;
    border-radius: 30px;
    padding: 14px 48px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    font-family: var(--zl-font-body, 'Outfit', sans-serif);
}

.zl-highlights-view-more:hover {
    background: var(--zl-rose-gold, #C0667A);
    color: #ffffff;
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .zl-highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0;
    }
    .zl-highlight-card {
        padding: 12px;
    }
    .zl-highlight-name {
        font-size: 13px;
    }
    .zl-highlights-title {
        font-size: 20px;
        margin-bottom: 25px;
    }
    .zl-highlights-view-more {
        padding: 10px 30px;
        font-size: 11px;
    }
    .zl-highlight-badge {
        top: 5px;
        right: 5px;
        padding: 4px 8px;
        font-size: 9px;
    }
}

/* ==========================================================================
   PRODUCT DESCRIPTION ACCORDION & SIZE CHART (Zero Inline Styles)
   ========================================================================== */

.zl-product-accordion {
    margin: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.zl-accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.zl-accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--zl-text-color);
    transition: color 0.3s ease;
}

.zl-accordion-header:hover {
    color: var(--zl-primary-color, #c0667a);
}

.zl-icon {
    position: relative;
    width: 14px;
    height: 14px;
}

.zl-icon::before,
.zl-icon::after {
    content: '';
    position: absolute;
    background-color: var(--zl-text-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.zl-icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

.zl-icon::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
}

.zl-accordion-header:hover .zl-icon::before,
.zl-accordion-header:hover .zl-icon::after {
    background-color: var(--zl-primary-color, #c0667a);
}

.zl-accordion-item.active .zl-icon::after {
    transform: rotate(90deg) scale(0);
}

.zl-accordion-item.active .zl-icon::before {
    background-color: var(--zl-primary-color, #c0667a);
}

.zl-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--zl-text-muted);
}

.zl-accordion-item.active .zl-accordion-content {
    max-height: 1500px;
    padding-bottom: 30px;
    opacity: 1;
}

.zl-accordion-content p, 
.zl-accordion-content ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.zl-accordion-content ul li {
    margin-bottom: 8px;
    list-style-type: square;
}

.zl-accordion-content ul li::marker {
    color: var(--zl-primary-color, #c0667a);
}

/* Size Chart Table Styling */
.zl-size-chart-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
    margin-bottom: 20px;
}

.zl-size-chart-table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    background: transparent;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.zl-size-chart-table th,
.zl-size-chart-table td {
    padding: 16px 10px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

.zl-size-chart-table th {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background-color: rgba(255,255,255,0.03);
    text-transform: uppercase;
}

.zl-size-chart-table td {
    font-family: 'Open Sans', 'Lato', sans-serif;
    color: var(--zl-text-muted);
    font-weight: 600;
}

.zl-size-chart-table tbody tr:hover td {
    background-color: rgba(255,255,255,0.05);
    color: #fff;
}

/* ==========================================================================
   USER REQUEST OVERRIDES
   ========================================================================== */

/* 1. Ensure Add To Cart text is perfectly centered */
.single-product div.product form.cart .button.single_add_to_cart_button {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

/* 2. Hide User's Manual Elementor Dropdowns & WooCommerce Defaults to avoid duplicates */
.single-product .elementor-widget-accordion,
.single-product .elementor-widget-toggle,
.single-product .woocommerce-tabs,
.single-product .elementor-widget-woocommerce-product-data-tabs {
    display: none !important;
}

/* 3. Completely eradicate default WordPress Sidebar Widgets globally */
.widget_pages,
.widget_archive,
.widget_categories,
.widget_search,
.widget_meta {
    display: none !important;
}

/* ==========================================================================
   PREMIUM CRO FEATURES
   ========================================================================== */

/* Trust Badges */
.zl-trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0 35px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.zl-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--zl-text-muted);
}

.zl-badge-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--zl-gold);
}

.zl-badge-item span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .zl-trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
        margin: 15px 0 25px 0;
    }
    .zl-badge-item svg {
        width: 16px;
        height: 16px;
    }
    .zl-badge-item span {
        font-size: 0.75rem;
        letter-spacing: 0;
    }
}

/* Image Hover Reveal */
.zl-product-image-wrap {
    position: relative;
    overflow: hidden;
    display: block;
}

.zl-primary-img,
.zl-secondary-img {
    transition: opacity 0.4s ease-in-out;
}

.zl-secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.zl-secondary-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Only apply hover effects on devices that support hover (prevents sticky mobile taps) */
@media (hover: hover) {
    .woocommerce ul.products li.product:hover .zl-product-image-wrap .zl-primary-img {
        opacity: 0;
    }

    .woocommerce ul.products li.product:hover .zl-product-image-wrap .zl-secondary-img {
        opacity: 1;
    }
}

/* ==========================================================================
   SIDE CART DRAWER (OFF-CANVAS)
   ========================================================================== */

.zl-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.zl-side-cart {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%); /* Hardware accelerated sliding instead of right */
    width: 400px;
    height: 100vh;
    background: var(--zl-bg-solid);
    z-index: 9999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Safe-area padding for mobile notches/home indicators */
    padding-bottom: env(safe-area-inset-bottom);
}

body.zl-cart-open .zl-cart-overlay {
    opacity: 1;
    visibility: visible;
}

body.zl-cart-open .zl-side-cart {
    transform: translateX(0);
}

body.zl-cart-open {
    overflow: hidden;
}

.zl-side-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--zl-border);
    background: var(--zl-bg-solid);
    position: sticky;
    top: 0;
    z-index: 10;
}

.zl-side-cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--zl-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zl-cart-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.zl-cart-close:hover {
    color: var(--zl-gold);
}

.zl-side-cart-body {
    padding: 25px;
    flex-grow: 1;
}

/* Make WooCommerce mini cart fit inside */
.zl-side-cart-body .woocommerce-mini-cart__empty-message {
    text-align: center;
    margin-top: 3rem;
    color: var(--zl-text-muted);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.zl-side-cart-body .woocommerce-mini-cart__empty-message::before {
    content: "🛒"; /* Or a sad face, but a cart is more e-commerce appropriate */
    font-size: 4rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 5px;
}

.zl-side-cart-body .woocommerce-mini-cart-item {
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

@media (max-width: 480px) {
    .zl-side-cart {
        width: 85vw; /* Leaves 15vw of the blurred overlay visible to tap & close smoothly */
    }
}
