/* ==========================================================
   4. SHOP PAGE LAYOUT (Minimal tweaks)
========================================================== */
.woocommerce-products-header { text-align: center; padding: clamp(40px, 3.125vw, 60px) clamp(15px, 1.04vw, 20px) 0 clamp(15px, 1.04vw, 20px); border-bottom: none !important; margin-bottom: clamp(25px, 2.08vw, 40px); width: 100%; }
.woocommerce-products-header__title.page-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 2.4vw, 46px); color: #111111; font-weight: 300; margin-bottom: 40px; }
.woocommerce-result-count { margin: 0; color: #666; }
.woocommerce-ordering { margin: 0; }

#secondary.widget-area { width: 25%; position: sticky; top: 120px; align-self: flex-start; background: #ffffff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04); border: 1px solid #f5f5f5; padding: clamp(25px, 1.8vw, 35px) clamp(20px, 1.5vw, 30px); }
#secondary.widget-area .widget-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(18px, 1.15vw, 22px); color: #333; font-weight: 300; border-bottom: 1px solid #eaeaea; padding-bottom: 15px; margin-bottom: 20px; }
#secondary.widget-area ul { list-style: none; padding: 0; margin: 0; }
#secondary.widget-area ul li { padding-bottom: 15px; }
#secondary.widget-area ul li a { text-decoration: none; color: #666666; font-size: 15px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 300; transition: color 0.3s ease; }
#secondary.widget-area ul li.current-cat a, #secondary.widget-area ul li a:hover { color: #C08B4B; font-weight: 600; }
#secondary.widget-area select { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; width: 100%; padding: 12px; border: 1px solid #e0e0e0; border-radius: 8px; color: #555; background-color: transparent; font-size: 14px; font-weight: 300; }

/* 4-Column Luxury Shop Grid on Desktop */
ul.products { clear: both; display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: clamp(14px, 1.2vw, 24px) !important; padding: 0; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { width: 100% !important; margin: 0 !important; list-style: none; text-align: left; }
ul.products li.product.first { clear: none !important; margin-top: 0 !important; }
ul.products li.product img { border-radius: 0px; width: 100%; height: auto; object-fit: cover; aspect-ratio: 4 / 5; margin-bottom: 15px; }

/* Hide default ugly WooCommerce green sale badge */
.woocommerce span.onsale,
span.onsale {
    display: none !important;
}

.marbo-grid-category a { color: #C08B4B; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; text-decoration: none; display: block; margin-bottom: 5px; }
ul.products li.product .woocommerce-loop-product__title { font-family: 'Fraunces', serif; font-size: clamp(16px, 1.04vw, 20px); font-weight: 300; color: #111; margin-bottom: 5px; }
ul.products li.product .price { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #555; font-size: 15px; font-weight: 400; }

/* ==========================================================
   ADVANCED PRODUCT CARD CSS (RIGHT CART + INFINITE LOOP)
========================================================== */

/* --- 1. Main Media Wrapper --- */
.marbo-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1; /* CLS Safe: Forces perfect square */
    background-color: #f9f9f9;
    cursor: pointer;
}

/* Stack all images inside the wrapper */
.marbo-card-media img.marbo-gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease, transform 0.6s ease;
}

/* The currently visible image */
.marbo-card-media img.marbo-gallery-img.active {
    opacity: 1;
    z-index: 2;
}

/* Premium subtle zoom on hover */
.marbo-card-media:hover img.marbo-gallery-img.active {
    transform: scale(1.03); 
}

/* --- 2. 1-Second Progress Bar --- */
.marbo-progress-bar {
    position: absolute;
    bottom: 5px;
    left: 10px;
    right: 5px;
    height: 4px;
    width: 95%;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 5;
    opacity: 0; /* Hidden until hover */
    transition: opacity 0.3s ease;
}

.marbo-card-media:hover .marbo-progress-bar {
    opacity: 1;
}

.marbo-progress-fill {
    height: 100%;
    width: 0%; 
    background-color: #ffffff; /* White fill */
}

/* Triggered infinitely by JavaScript */
.marbo-progress-fill.animating {
    animation: marboFillBar 1200ms linear forwards;
}

@keyframes marboFillBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* --- 3. Expanding Quick Buy Button (MOVED TO RIGHT) --- */
.marbo-quick-buy-wrapper {
    position: absolute;
    bottom: 15px;
    right: 15px; /* <--- MOVED TO RIGHT SIDE */
    z-index: 10;
    opacity: 0; /* Hidden by default */
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.marbo-card-media:hover .marbo-quick-buy-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* Button Base (Small Circle) */
/* 1. Base State: Perfect Circle, Centered Icon, Hidden Text */
.marbo-quick-buy-wrapper .button.add_to_cart_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Keep flex-start for a smooth stretch */
    background-color: #fff !important;
    color: transparent !important; /* Hides the text while collapsed */
    border: 1px solid #eaeaea !important; 
    border-radius: 50% !important; /* CHANGED: 50% makes a perfect circle */
    height: 40px !important;
    width: 40px !important; /* CHANGED: Match height exactly */
    /* 11px left padding + 18px icon = 29px. Leaves 11px on the right out of 40. Perfect center! */
    padding: 0 0 0 11px !important; 
    margin: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; 
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important; 
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-radius 0.3s ease, color 0.3s ease, padding 0.3s ease, border-color 0.3s ease, background-color 0.3s ease !important;
}

/* Cart Icon (SVG) */
/* 2. Thin Cart Icon */
.marbo-quick-buy-wrapper .button.add_to_cart_button::before {
    content: "";
    flex-shrink: 0;
    display: block;
    width: 18px !important; /* Fixed width for perfect centering */
    height: 18px !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23111" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="21" r="1.5"></circle><circle cx="20" cy="21" r="1.5"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>') !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px !important; /* Space between icon and text when expanded */
    transition: none !important; 
}

/* 3. Hover State: Expands into Pill, Reveals Text */
.marbo-quick-buy-wrapper .button.add_to_cart_button:hover {
    width: 125px !important; 
    border-radius: 30px !important; /* Morphs from circle to pill shape */
    padding: 0 0 0 15px !important; /* Adjusts padding for the wider shape */
    background-color: #fff !important; 
    color: #111 !important; /* Reveals the text */
}


/* Fix WooCommerce Checked/Added states */
.marbo-quick-buy-wrapper .button.add_to_cart_button.loading::after,
.marbo-quick-buy-wrapper .button.add_to_cart_button.added::after { display: none !important; }
.marbo-quick-buy-wrapper .button.add_to_cart_button.added { width: 145px !important; background-color: #27ae60 !important; color: #fff !important; }
.marbo-quick-buy-wrapper .button.add_to_cart_button.added::before { filter: invert(1); }

/* --- 4. Minimalist Wishlist Button (Top-Right Corner of Product Card) --- */
.marbo-grid-wishlist-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 9 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, box-shadow 0.25s ease !important;
    outline: none !important;
}

.marbo-grid-wishlist-btn:hover {
    background: #ffffff !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}

.marbo-grid-wishlist-btn .heart-icon {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    transition: fill 0.25s ease, stroke 0.25s ease !important;
}

/* Micro-Pop Animation on Click */
.marbo-wishlist-toggle.is-animating .heart-icon {
    animation: marboHeartPop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

@keyframes marboHeartPop {
    0% { transform: scale(1); }
    25% { transform: scale(0.72); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* Filled State */
.marbo-wishlist-toggle.in-wishlist svg {
    fill: #111111 !important;
    stroke: #111111 !important;
}

/* ==========================================================
   2. SHOP LAYOUT, GRIDS & MOBILE FILTERS
========================================================== */

/* --- C. Responsive Grid System --- */
ul.products { display: grid !important; padding: 0; margin: 0; list-style: none; }
ul.products li.product { width: 100% !important; margin: 0 !important; }


/* ==========================================================
   TRANSPARENT ABSOLUTE HEADER & SMOOTH REVEAL (SHOP PAGE)
========================================================== */

/* 1. Remove the empty white space gap */
.woocommerce-products-header {
    display: none !important;
}

/* 2. Default State: Absolute, transparent, sits over the cover image. */
body.archive.woocommerce-page .site-header {
    position: absolute;
    top: 35px; /* Sits right under your announcement bar */
    left: 0;
    width: 100%;
    background-color: transparent;
    border-bottom: none;
    z-index: 1000;
    transform: none; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

/* Dynamically pushes header down when logged into WordPress Admin */
body.admin-bar.archive.woocommerce-page .site-header {
    top: 67px; /* 35px announcement bar + 32px admin bar */
}
@media screen and (max-width: 782px) {
    body.admin-bar.archive.woocommerce-page .site-header {
        top: 81px; /* Mobile admin bar is slightly thicker (46px) */
    }
}

/* 3. Pull the Cover Image UP behind the absolute header (Desktop/Tablet) */
/* 3. Pull the Hero Section UP behind the absolute header (Desktop/Tablet) */
.marbo-shop-hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #111111;
    margin-top: clamp(-100px, -5.2vw, -70px) !important; 
    margin-bottom: clamp(15px, 1.04vw, 25px) !important;
    height: var(--marbo-shop-hero-desktop-height, 55vh);
    border-radius: 0 !important;
    z-index: 1;
}

.marbo-shop-hero-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.marbo-shop-hero-section .marbo-hero-slide {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #111111;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.marbo-shop-hero-section .marbo-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--marbo-slide-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 0.5s ease;
}

/* High-End Ken Burns Animation on Active Slide or Single Banner */
.marbo-shop-hero-section .swiper-slide-active.marbo-hero-slide::before,
.marbo-shop-hero-section.is-single .marbo-hero-slide::before {
    animation: marboKenBurns 8s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

.marbo-shop-hero-section .marbo-hero-slide-link,
.marbo-shop-hero-section .marbo-hero-static-link {
    display: flex;
    align-items: flex-end; /* Position title and subtitle towards the bottom with elegant padding */
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    padding: clamp(60px, 6vw, 90px) 24px clamp(28px, 4.5vw, 56px) 24px;
    box-sizing: border-box;
}

.marbo-shop-hero-section .marbo-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.20) 0%,
        rgba(0, 0, 0, 0.15) 45%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.marbo-shop-hero-section .marbo-hero-slide-content {
    position: relative;
    z-index: 5;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.marbo-shop-hero-section .marbo-hero-slide-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: var(--marbo-shop-hero-title-size, clamp(28px, 3.2vw, 44px));
    font-weight: 400;
    color: #ffffff !important;
    line-height: 1.2;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.9);
    opacity: 1 !important;
}

.marbo-shop-hero-section .marbo-hero-slide-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: var(--marbo-shop-hero-sub-size, clamp(11px, 0.95vw, 13.5px));
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95) !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
    opacity: 1 !important;
}

/* Keyframes for smooth entrance animation */
@keyframes marboFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marboKenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Text entrance animation */
.marbo-shop-hero-section .swiper-slide-active .marbo-hero-slide-title,
.marbo-shop-hero-section.is-single .marbo-hero-slide-title {
    animation: marboFadeUp 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.15s forwards;
}

.marbo-shop-hero-section .swiper-slide-active .marbo-hero-slide-subtitle,
.marbo-shop-hero-section.is-single .marbo-hero-slide-subtitle {
    animation: marboFadeUp 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) 0.05s forwards;
}

@media (max-width: 768px) {
    .marbo-shop-hero-section {
        height: var(--marbo-shop-hero-mobile-height, 45vh);
    }
    .marbo-shop-hero-section .marbo-hero-slide::before {
        background-image: var(--marbo-slide-bg-mob, var(--marbo-slide-bg));
    }
}


/* 4. Force Menu, Icons, and Text to White when transparent */
body.archive.woocommerce-page .site-header:not(.smart-sticky) .left-nav a,
body.archive.woocommerce-page .site-header:not(.smart-sticky) .right-nav a,
body.archive.woocommerce-page .site-header:not(.smart-sticky) .nav-icon,
body.archive.woocommerce-page .site-header:not(.smart-sticky) .custom-text-logo,
body.archive.woocommerce-page .site-header:not(.smart-sticky) .hamburger-btn,
body.archive.woocommerce-page .site-header:not(.smart-sticky) .cart-trigger,
body.archive.woocommerce-page .site-header:not(.smart-sticky) .search-trigger,
body.archive.woocommerce-page .site-header:not(.smart-sticky) .header-action-btn i,
body.archive.woocommerce-page .site-header:not(.smart-sticky) .header-action-btn {
    color: #ffffff !important;
}

body.archive.woocommerce-page .site-header:not(.smart-sticky) .left-nav a::after,
body.archive.woocommerce-page .site-header:not(.smart-sticky) .right-nav a::after {
    background-color: #ffffff !important;
}

/* 5. Invert the Black Image Logo to White */
body.archive.woocommerce-page .site-header:not(.smart-sticky) .custom-logo-link img {
    filter: invert(1) brightness(100) !important;
}

/* ==========================================================
   SCROLLED STATE (SMOOTH SLIDE DOWN REVEAL)
========================================================== */

/* Keyframe animation for a premium, buttery-smooth slide-down effect */
@keyframes marboSlideDown {
    0% { 
        transform: translateY(-100%); 
        opacity: 0.5; /* Slight fade-in makes the motion feel smoother */
    }
    100% { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* 6. Scrolled State: Fixed, Solid White, Slides Down Smoothly */
body.archive.woocommerce-page .site-header.smart-sticky {
    position: fixed;
    top: 0; 
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: none; 
    animation: marboSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Prevents the sticky header from hiding behind the Admin Bar */
body.admin-bar.archive.woocommerce-page .site-header.smart-sticky {
    top: 32px; 
}
@media screen and (max-width: 782px) {
    body.admin-bar.archive.woocommerce-page .site-header.smart-sticky {
        top: 46px; 
    }
}

/* 7. Revert text, icons, and menu items back to black */
body.archive.woocommerce-page .site-header.smart-sticky .left-nav a,
body.archive.woocommerce-page .site-header.smart-sticky .right-nav a,
body.archive.woocommerce-page .site-header.smart-sticky .nav-icon,
body.archive.woocommerce-page .site-header.smart-sticky .custom-text-logo,
body.archive.woocommerce-page .site-header.smart-sticky .hamburger-btn,
body.archive.woocommerce-page .site-header.smart-sticky .cart-trigger,
body.archive.woocommerce-page .site-header.smart-sticky .search-trigger,
body.archive.woocommerce-page .site-header.smart-sticky .header-action-btn i,
body.archive.woocommerce-page .site-header.smart-sticky .header-action-btn {
    color: #111111 !important;
}

/* 8. Revert the Image Logo back to black */
body.archive.woocommerce-page .site-header.smart-sticky .custom-logo-link img {
    filter: none !important;
}


/* --- 3. PRODUCT CARDS: 4:5 ASPECT RATIO --- */
.marbo-card-media {
    aspect-ratio: 4 / 5 !important;
}

/* --- 4. STRICT 2% MARGINS ON GRID --- */
.marbo-shop-layout-full {
    padding: 0 2% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* --- 4B. LUXURY BREADCRUMBS (Shop & Category Archive) --- */
.woocommerce-breadcrumb {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 400 !important;
    color: #888888 !important;
    margin: clamp(14px, 1.5vw, 22px) 0 clamp(16px, 1.8vw, 24px) 0 !important;
    padding: 0 10px !important;
    letter-spacing: 0.2px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    line-height: 1.5 !important;
}

.woocommerce-breadcrumb a {
    color: #444444 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease, text-decoration 0.2s ease !important;
}

.woocommerce-breadcrumb a:hover {
    color: #111111 !important;
    text-decoration: underline !important;
}

.woocommerce-breadcrumb .marbo-breadcrumb-sep,
.woocommerce-breadcrumb span {
    color: #aaaaaa !important;
    user-select: none;
}

/* --- 5. FILTER ROW STYLING (Category & Sort) --- */
.marbo-shop-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(20px, 1.56vw, 30px);
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 10px;
}
.marbo-cat-filter, .woocommerce-ordering select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    color: #444;
    background-color: #fff;
    cursor: pointer;
}


.marbo-single-product-layout {
    max-width: 100%;
    margin: clamp(25px, 2.08vw, 40px) auto;
    padding: 0 2%;
}

/* ==========================================================
   PREMIUM SHOP TOOLBAR (SORT & FILTER ON LEFT, COUNT ON RIGHT)
========================================================== */

.marbo-shop-toolbar-row,
.marbo-shop-filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(8px, 0.8vw, 14px) 0;
    margin-bottom: clamp(12px, 1.2vw, 22px);
    border-bottom: none !important; /* Separator line completely removed */
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Left Group: Sorting select & Filter button */
.marbo-toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Right Group: Result Count */
.marbo-toolbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.marbo-toolbar-right .marbo-results-count,
.marbo-results-count {
    display: flex;
    align-items: center;
    margin: 0;
}

.marbo-results-count .woocommerce-result-count {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13.5px !important;
    color: #666666 !important;
    letter-spacing: 0.2px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

/* Sleek Sort Dropdown Styling */
.marbo-sort-wrapper {
    display: inline-flex;
    align-items: center;
}

.marbo-sort-wrapper form.woocommerce-ordering {
    margin: 0 !important;
    float: none !important;
}

.marbo-sort-wrapper select.orderby {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>') no-repeat right 14px center !important;
    padding: 8px 36px 8px 16px !important;
    border: 1px solid #e5e2dc !important;
    border-radius: 30px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #222222 !important;
    cursor: pointer !important;
    outline: none !important;
    height: 38px !important;
    transition: all 0.25s ease !important;
}

.marbo-sort-wrapper select.orderby:hover,
.marbo-sort-wrapper select.orderby:focus {
    border-color: #111111 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Slide-out Filter Drawer Trigger Button */
.marbo-filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1px solid #e5e2dc !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
    height: 38px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #222222 !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.marbo-filter-btn svg {
    stroke: #222222;
    transition: stroke 0.2s ease;
}

.marbo-filter-btn:hover {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.marbo-filter-btn:hover svg {
    stroke: #ffffff;
}

/* Mobile & Tablet Responsive Toolbar */
@media screen and (max-width: 768px) {
    .marbo-shop-toolbar-row,
    .marbo-shop-filters-row {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 15px !important;
        padding: 4px 0 10px 0 !important;
    }

    .marbo-toolbar-left {
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .marbo-sort-wrapper select.orderby {
        height: 35px !important;
        padding: 6px 28px 6px 12px !important;
        font-size: 12px !important;
    }

    .marbo-filter-btn {
        height: 35px !important;
        padding: 6px 13px !important;
        font-size: 12px !important;
    }

    .marbo-toolbar-right {
        margin-left: auto !important;
    }

    .marbo-results-count .woocommerce-result-count {
        font-size: 11.5px !important;
        text-align: right !important;
        white-space: nowrap !important;
    }
}

@media screen and (max-width: 480px) {
    .marbo-sort-wrapper select.orderby {
        max-width: 125px !important;
    }
}

/* ==========================================================
   SLIDE-OUT DRAWER UI
========================================================== */
.marbo-filter-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4); z-index: 999998;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.marbo-filter-overlay.active { opacity: 1; visibility: visible; }

.marbo-filter-drawer {
    position: fixed; top: 0; right: -450px; width: 400px; max-width: 90vw; height: 100vh;
    background: #fff; z-index: 999999; transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.marbo-filter-drawer.active { right: 0; }

.filter-drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: clamp(15px, 1.3vw, 25px) clamp(20px, 1.56vw, 30px); border-bottom: 1px solid #eaeaea;
}
.filter-drawer-header h3 { font-family: 'Poppins', sans-serif; font-size: clamp(16px, 1.04vw, 20px); font-weight: 500; margin: 0; color: #111; }
.filter-drawer-header button { background: none; border: none; font-size: 30px; color: #111; cursor: pointer; line-height: 1; }

.filter-drawer-body {
    padding: clamp(20px, 1.56vw, 30px); overflow-y: auto; flex: 1;
}

/* ==========================================================
   WOOCOMMERCE WIDGET OVERRIDES (Minimalist Skin)
========================================================== */
/* 1. Create distinct rows for Sort, Categories, and Price */
.filter-drawer-body .widget, 
.marbo-widget-wrapper { 
    margin-bottom: 30px; 
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea; /* Nice separator line */
    width: 100%;
}

.filter-drawer-body .widget-title { 
    font-family: 'Inter', sans-serif; 
    font-size: 13px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #111; 
    margin-bottom: 15px; 
    display: block;
    width: 100%;
}

/* 2. Sort Dropdown Formatting */
.marbo-widget-wrapper form.woocommerce-ordering {
    margin: 0;
    width: 100%;
}

.filter-drawer-body select {
    width: 100%; 
    padding: 14px 15px; 
    border: 1px solid #ddd; 
    border-radius: 6px;
    font-family: 'Inter', sans-serif; 
    font-size: 14px; 
    outline: none; 
    cursor: pointer;
    background-color: #fafafa;
    color: #333;
    appearance: auto; /* Ensures standard dropdown arrow shows */
}

.filter-drawer-body select:focus {
    border-color: #111;
}

/* 3. Categories & Stock Lists (BULLETPROOF BLOCK/FLOAT METHOD) */
.filter-drawer-body ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.filter-drawer-body ul li {
    padding: 12px 0; 
    border-bottom: 1px solid #f9f9f9;
    font-family: 'Inter', sans-serif; 
    font-size: 15px; 
    color: #444;
    display: block !important; /* Stops flexbox from squishing items */
}

/* Clearfix to contain the floating count */
.filter-drawer-body ul li::after {
    content: "";
    display: table;
    clear: both;
}

.filter-drawer-body ul li:last-child {
    border-bottom: none;
}

.filter-drawer-body ul li a { 
    text-decoration: none; 
    color: #444; 
    transition: color 0.2s;
    display: inline-block;
    max-width: 80%; /* Leaves room for the count */
}

.filter-drawer-body ul li a:hover { 
    color: #111; 
    font-weight: 500; 
}

.filter-drawer-body ul li .count { 
    font-size: 12px; 
    color: #888; 
    background: #f5f5f5; 
    padding: 2px 8px; 
    border-radius: 12px; 
    float: right; /* Pushes number to the far right natively */
    margin-top: 2px;
}

/* 4. Sub-Categories Styling */
.filter-drawer-body ul li ul.children {
    display: block !important;
    width: 100% !important;
    clear: both !important; /* Forces it below the parent category */
    margin: 12px 0 -12px 0; 
    padding: 0; 
    border-top: 1px solid #f9f9f9; 
}

.filter-drawer-body ul li ul.children li {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid #f9f9f9; 
    display: block !important;
}

/* 5. Premium Price Slider & Input Fixes */
.filter-drawer-body .price_slider_wrapper .ui-slider {
    background: #eaeaea; height: 4px; border: none; border-radius: 2px; margin-bottom: 25px; margin-top: 15px;
}
.filter-drawer-body .price_slider_wrapper .ui-slider-range { background: #111; }
.filter-drawer-body .price_slider_wrapper .ui-slider-handle {
    background: #fff; border: 2px solid #111; width: 18px; height: 18px; border-radius: 50%;
    top: -7px; outline: none; cursor: grab;
}
.filter-drawer-body .price_slider_amount { display: flex; justify-content: space-between; align-items: center; font-family: 'Inter', sans-serif; }

/* FIX: The Input Boxes for Min/Max Price */
.filter-drawer-body .price_slider_amount input[type="text"],
.filter-drawer-body .price_slider_amount input[type="number"],
.filter-drawer-body .wc-block-price-filter__controls input {
    border: 1px solid #dcdcdc !important; /* Softer gray border */
    border-radius: 6px !important; /* Rounded corners */
    font-size: 13px !important; /* Smaller text */
    padding: 8px 10px !important;
    width: 90px !important; /* Made wider so ₹15,999 won't cut off */
    text-align: center;
    color: #333;
    background: #fff;
}

.filter-drawer-body .price_slider_amount input:focus,
.filter-drawer-body .wc-block-price-filter__controls input:focus {
    border-color: #111 !important;
    outline: none !important;
}

.filter-drawer-body .price_slider_amount button {
    background: #111; color: #fff; border: none; padding: 8px 18px; border-radius: 25px; font-size: 12px; text-transform: uppercase; font-weight: 600; cursor: pointer; transition: background 0.3s;
}
.filter-drawer-body .price_slider_amount button:hover { background: #333; }
.filter-drawer-body .price_slider_amount .price_label { font-size: 14px; color: #555; }

/* 6. Fix the Massive White Space Gap */
/* Hides "Active Filters" or empty blocks WooCommerce injects invisibly */
.filter-drawer-body .widget:empty,
.filter-drawer-body .widget_layered_nav_filters,
.filter-drawer-body .wc-block-active-filters {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}


/* ==========================================================
   LUXURY WOOCOMMERCE PAGINATION
========================================================== */
.woocommerce-pagination {
    clear: both !important;
    width: 100% !important;
    text-align: center !important;
    margin: clamp(50px, 4.5vw, 80px) 0 clamp(20px, 2vw, 40px) 0 !important;
    padding-top: clamp(25px, 2.5vw, 40px) !important;
    border-top: 1px solid #edebe6 !important;
}

.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border: none !important;
    list-style: none !important;
}

.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Base style for circular numbers */
.woocommerce-pagination ul.page-numbers li .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #2b2b2b !important;
    background: #fbfaf8 !important;
    border: 1px solid #e5e2dc !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    padding: 0 !important;
}

/* Hover State for inactive numbers */
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
    background: #ffffff !important;
    color: #111111 !important;
    border-color: #111111 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Active State (Current Page) */
.woocommerce-pagination ul.page-numbers li span.current {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

/* Dots (...) */
.woocommerce-pagination ul.page-numbers li span.dots {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #888888 !important;
    width: 28px !important;
    min-width: 28px !important;
    letter-spacing: 2px !important;
    font-size: 14px !important;
}

/* Previous / Next Arrows (Pill shape) */
.woocommerce-pagination ul.page-numbers li a.next,
.woocommerce-pagination ul.page-numbers li a.prev {
    width: auto !important;
    min-width: unset !important;
    height: 42px !important;
    padding: 0 20px !important;
    border-radius: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #222222 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    letter-spacing: 0.3px !important;
}

.woocommerce-pagination ul.page-numbers li a.next svg,
.woocommerce-pagination ul.page-numbers li a.prev svg {
    stroke: currentColor !important;
    display: block !important;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.woocommerce-pagination ul.page-numbers li a.prev:hover svg {
    transform: translateX(-3px) !important;
}

.woocommerce-pagination ul.page-numbers li a.next:hover svg {
    transform: translateX(3px) !important;
}

.woocommerce-pagination ul.page-numbers li a.next:hover,
.woocommerce-pagination ul.page-numbers li a.prev:hover {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14) !important;
}

/* ==========================================================
   MOBILE & TABLET RESPONSIVENESS
========================================================== */
@media screen and (max-width: 768px) {
    .woocommerce-pagination {
        margin: 40px 0 20px !important;
        padding-top: 20px !important;
    }
    
    .woocommerce-pagination ul.page-numbers {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    
    /* Slightly smaller circles for mobile */
    .woocommerce-pagination ul.page-numbers li .page-numbers {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        font-size: 13px !important;
    }
    
    /* Smaller pills for mobile arrows */
    .woocommerce-pagination ul.page-numbers li a.next,
    .woocommerce-pagination ul.page-numbers li a.prev {
        height: 38px !important;
        padding: 0 15px !important;
        font-size: 12.5px !important;
    }
}
