/* ===================================================
   WC Category Filter v3 – Two-Column Layout
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --wcf-primary: #6d8b54;
    --wcf-primary-vibrant: #7da463;
    --wcf-primary-dark: #5a7345;
    --wcf-primary-light: #f1f5ee;
    --wcf-text-dark: #1e293b;
    --wcf-text-light: #4b5563;
    --wcf-bg-glass: rgba(255, 255, 255, 0.85);
    --wcf-shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --wcf-shadow-md: 0 10px 25px -5px rgba(109, 139, 84, 0.1), 0 8px 10px -6px rgba(109, 139, 84, 0.05);
    --wcf-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --wcf-shadow-premium: 0 25px 50px -12px rgba(109, 139, 84, 0.25);
    --wcf-radius: 20px;
    --wcf-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Astra Container Padding Removal */
.ast-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ── Two-column wrapper (Original combined version) ── */
.wcf-layout {
    font-family: 'Outfit', 'Inter', sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px 60px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Global Link Fix - Ensure no blue text inherited from theme */
.wcf-layout a {
    color: inherit !important;
    text-decoration: none !important;
}

.wcf-layout *, .wcf-layout *::before, .wcf-layout *::after {
    box-sizing: border-box;
}

/* ── Split Shortcodes Wrappers ── */
.wcf-sidebar-only,
.wcf-grid-only {
    width: 100%;
}

/* ── LEFT SIDEBAR ── */
.wcf-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    display: none;
    scroll-behavior: smooth;
}

.wcf-sidebar::-webkit-scrollbar {
    width: 4px;
}

.wcf-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.wcf-sidebar::-webkit-scrollbar-thumb {
    background: rgba(109, 139, 84, 0.2);
    border-radius: 10px;
}

.wcf-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(109, 139, 84, 0.4);
}

/* Price Filter Section */
.wcf-price-filter {
    margin-top: 30px;
    padding: 24px;
    background: var(--wcf-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--wcf-radius);
    box-shadow: var(--wcf-shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--wcf-transition);
}

.wcf-price-filter:hover {
    box-shadow: 0 15px 30px -5px rgba(109, 139, 84, 0.15);
}

.wcf-price-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #3a4a2d; /* Dark green for titles */
}

.wcf-price-slider-wrap {
    height: 3px;
    position: relative;
    background: #e5e7eb;
    margin: 30px 0 35px 0;
    border-radius: 2px;
}

/* Vertical ticks at ends */
.wcf-price-slider-wrap::before,
.wcf-price-slider-wrap::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 12px;
    background: #6d8b54;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
.wcf-price-slider-wrap::before { left: 0; }
.wcf-price-slider-wrap::after { right: 0; }

.wcf-price-slider-track {
    display: block;
    height: 100%;
    position: absolute;
    background: linear-gradient(90deg, var(--wcf-primary) 0%, var(--wcf-primary-dark) 100%);
    z-index: 1;
    border-radius: 2px;
}

.wcf-range-input {
    all: unset !important;
    position: absolute !important;
    width: 100% !important;
    height: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    pointer-events: none !important;
    margin: 0 !important;
    z-index: 5 !important;
}

.wcf-range-input::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--wcf-primary);
    cursor: pointer;
    margin-top: -6px;
    pointer-events: auto;
    -webkit-appearance: none;
}

.wcf-range-input::-moz-range-thumb {
    height: 18px !important;
    width: 18px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid var(--wcf-primary) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

.wcf-price-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-top: 15px;
}

.wcf-price-amount {
    font-size: 14px;
    color: #666;
}

.wcf-price-amount span {
    font-weight: 700;
    color: var(--wcf-text-dark);
}

.wcf-price-btn {
    all: unset;
    display: inline-block !important;
    background: linear-gradient(135deg, var(--wcf-primary), var(--wcf-primary-vibrant)) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: var(--wcf-transition) !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    box-shadow: 0 10px 20px rgba(109, 139, 84, 0.25) !important;
}

.wcf-price-btn:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 30px rgba(109, 139, 84, 0.35) !important;
    filter: brightness(1.1) !important;
}



.wcf-sidebar-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #3a4a2d;
}

/* Each accordion item */
.wcf-item {
    margin-bottom: 10px;
    border-radius: var(--wcf-radius);
    overflow: hidden;
    border: 1px solid rgba(109, 139, 84, 0.1);
    background: var(--wcf-bg-glass);
    backdrop-filter: blur(8px);
    transition: var(--wcf-transition);
    box-shadow: var(--wcf-shadow-sm);
}

.wcf-item.wcf-item--active {
    border-color: var(--wcf-primary);
    box-shadow: var(--wcf-shadow-md);
    transform: translateX(4px);
}

/* Header row */
.wcf-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 12px 14px !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: background 0.18s;
    outline: none !important;
    border-radius: 8px !important;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
}

.wcf-header:hover,
.wcf-item--active > .wcf-header {
    background: var(--wcf-primary-light);
}

.wcf-header-name {
    font-size: 14px;
    font-weight: 600;
    color: #3a4a2d;
    flex: 1;
    line-height: 1.35;
}

.wcf-item--active > .wcf-header .wcf-header-name {
    color: #6d8b54;
}

.wcf-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wcf-header-count {
    font-size: 11px;
    background: linear-gradient(135deg, var(--wcf-primary), var(--wcf-primary-vibrant));
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(109, 139, 84, 0.3);
}

.wcf-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wcf-primary);
    transition: var(--wcf-transition);
    line-height: 0;
    margin-left: 2px;
}

.wcf-chevron svg {
    display: block;
    width: 12px;
    height: auto;
}

.wcf-item--open .wcf-chevron {
    transform: rotate(180deg);
}

/* Sliding body */
.wcf-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.40s cubic-bezier(0.4, 0, 0.2, 1);
}

.wcf-body--open {
    max-height: 600px;
}

.wcf-body-inner {
    padding: 4px 8px 10px 14px;
    border-top: 1px solid #e5e7eb;
}

/* Sub-cat list */
.wcf-sub-list {
    list-style: none !important;
    margin: 6px 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    border: none !important;
}

.wcf-sub-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wcf-sub-btn {
    all: unset;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 10px 14px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--wcf-text-light) !important;
    text-align: left !important;
    transition: var(--wcf-transition) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.wcf-sub-btn:hover,
.wcf-sub-btn.wcf-sub-btn--active {
    background: var(--wcf-primary-light) !important;
    color: var(--wcf-primary) !important;
    padding-left: 18px !important;
    font-weight: 600 !important;
}

.wcf-sub-btn--active::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--wcf-primary);
    border-radius: 10px;
    margin-right: -4px;
}



.wcf-sub-name { flex: 1; }

.wcf-sub-count {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

/* ── RIGHT PRODUCTS AREA ── */
.wcf-products-area {
    flex: 1;
    min-width: 0;
}

/* Product grid */
.wcf-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.wcf-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    transition: var(--wcf-transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--wcf-shadow-md);
    animation: wcfFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.wcf-product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--wcf-shadow-premium);
    border-color: rgba(109, 139, 84, 0.2);
}

@keyframes wcfFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.wcf-product-img-wrap {
    width: 90%; /* Smaller than card to show some white space around it */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f4f4; /* Light off-white background as per image */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 12px 12px;
    border-radius: 15px; /* Internal rounding */
}

.wcf-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    display: block;
}

.wcf-product-info {
    padding: 0 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.wcf-product-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700; /* Bolder as per image */
    color: #000 !important; /* Pure black titles */
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 10px;
}

.wcf-product-price {
    font-weight: 700;
    font-size: 16px;
    color: #6d8b54;
    margin: 4px 0;
}

.wcf-product-price del {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 400;
    margin-right: 5px;
}

.wcf-product-price ins {
    text-decoration: none;
}

.wcf-product-footer {
    margin-top: auto;
}

.wcf-read-more {
    display: inline-block;
    background: #fff !important;
    color: #444 !important;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none; /* Removed uppercase for softer look */
    border: 1px solid #e1e1e1; /* Light gray border as per image */
    transition: var(--wcf-transition);
}

.wcf-product-card:hover .wcf-read-more {
    background: #f8f8f8 !important;
    border-color: #ccc;
}

/* Pagination */
.wcf-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 8px;
   flex-wrap: wrap;
flex-direction: row;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.wcf-pagination::-webkit-scrollbar {
    display: none;
}

.wcf-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.wcf-page-btn:hover {
    border-color: #6d8b54;
    color: #6d8b54;
    background: #f1f5ee;
}

.wcf-page-btn.wcf-page--active {
    background: var(--wcf-primary);
    border-color: var(--wcf-primary);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(109, 139, 84, 0.3);
}

/* Spinner / empty */
.wcf-spinner,
.wcf-no-products {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.wcf-spinner::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #f1f5ee;
    border-top-color: #6d8b54;
    border-radius: 50%;
    animation: wcfSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes wcfSpin {
    to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .wcf-layout {
        flex-direction: column-reverse;
        height: auto !important;
        overflow: visible !important;
    }
    /* Mobile: products area normal scroll */
    .wcf-products-area {
        height: auto !important;
        overflow: visible !important;
        position: static !important;
    }
    /* Mobile: sidebar is fixed drawer */
    .wcf-sidebar {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 !important;
        margin-top: 0;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }
    .wcf-sidebar.wcf-drawer-open {
        transform: translateX(0);
    }
    .wcf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* ── Top Bar (Sorting/Count) ───────────────────── */

/* Hide mobile controls on desktop */
.wcf-mobile-controls {
    display: none;
}

.wcf-mobile-result-count {
    display: block;
    font-size: 14px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 400;
}

/* Desktop result count styling */
.wcf-result-count {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 400;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.wcf-orderby {
    height: 38px;
    padding: 0 35px 0 14px;
    line-height: 38px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* Desktop top bar: result count LEFT, sorting RIGHT */
.wcf-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

/* Drawer Specific Components - Hidden on Desktop */
.wcf-drawer-header,
.wcf-drawer-backdrop,
.wcf-mobile-filter-btn {
    display: none;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    .wcf-main {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .wcf-mobile-controls {
        display: flex;
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
        margin-bottom: 20px;
        order: 1;
    }

    .wcf-mobile-controls .wcf-mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        height: 44px;
        background: var(--wcf-primary);
        color: #fff;
        font-weight: 600;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        cursor: pointer;
    }
    
    .wcf-orderby {
        flex: 1;
        height: 44px;
        padding: 0 40px 0 15px;
        line-height: 44px;
        border: 1.5px solid #3498db;
        border-radius: 12px;
    }

    .wcf-mobile-result-count {
        order: 2;
        margin-bottom: 20px;
        font-weight: 500;
    }
    
    .wcf-top-bar {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-bottom: 10px;
    }
    .wcf-result-count {
        display: block !important;
        font-size: 13px;
        flex: 0 0 100%;
        text-align: left;
    }
    .wcf-top-pagination {
        flex: 0 0 100%;
        justify-content: flex-start;
    }
    .wcf-top-bar-right {
        flex: 0 0 100%;
        justify-content: flex-start;
    }
    
    #wcf-products-area {
        order: 4;
    }
}

/* Moved global hides above media queries to fix precedence */

@media (max-width: 768px) {
    .wcf-drawer-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }
    .wcf-drawer-backdrop.wcf-backdrop-open {
        opacity: 1;
        visibility: visible;
    }
    .wcf-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-bottom: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #e2e8f0;
    }
    .wcf-drawer-title {
        font-size: 20px;
        font-weight: 700;
        color: #1e293b;
    }
    .wcf-drawer-close {
        background: none;
        border: none;
        font-size: 28px;
        line-height: 1;
        padding: 0;
        color: #64748b;
        cursor: pointer;
    }
    .wcf-drawer-header {
        padding: 20px 20px 15px 20px;
    }
    #wcf-categories-wrap, #wcf-dynamic-attributes {
        padding: 0 20px 20px 20px;
    }
    .wcf-desktop-prefix {
        display: none !important;
    }
    .wcf-attribute-label {
        display: none !important;
    }
    .wcf-attribute-filter {
        margin: 0 !important;
        border: none !important;
        border-bottom: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }
    .wcf-att-header {
        border: none !important;
        padding: 15px 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .wcf-att-body {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .wcf-attribute-list {
        padding: 5px 0 15px 0 !important;
    }
    .wcf-checkbox-custom {
        display: none !important;
    }
    .wcf-attribute-checkbox,
    .wcf-stock-checkbox {
        display: none !important;
    }
    .wcf-checkbox-label {
        padding: 8px 0;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        cursor: pointer;
    }
    /* Custom checkbox box */
    .wcf-checkbox-label::before {
        content: '';
        display: inline-block;
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        min-width: 20px;
        border: 2px solid #cbd5e1;
        border-radius: 5px;
        background: #fff;
    }
    .wcf-term-name {
        font-size: 15px;
        color: #475569;
    }
    /* Checked state */
    .wcf-attribute-checkbox:checked ~ .wcf-term-name,
    .wcf-stock-checkbox:checked ~ .wcf-term-name {
        color: var(--wcf-primary);
        font-weight: 600;
    }
    .wcf-checkbox-label:has(.wcf-attribute-checkbox:checked)::before,
    .wcf-checkbox-label:has(.wcf-stock-checkbox:checked)::before {
        background: var(--wcf-primary);
        border-color: var(--wcf-primary);
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='9' viewBox='0 0 12 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4.5L4.5 7.5L10.5 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
    }
    .wcf-placeholder-label {
        color: #1e293b;
        font-weight: 600;
        font-size: 16px;
    }
}

/* ── Attribute Filters (Toggle Style) ───────────────────── */
.wcf-attribute-filter {
    margin-top: 20px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.wcf-attribute-label {
    margin: 0 0 8px 5px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    font-family: 'Outfit', sans-serif !important;
}

.wcf-att-header {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: var(--wcf-shadow-sm) !important;
    transition: var(--wcf-transition) !important;
}

.wcf-att-header:hover {
    border-color: var(--wcf-primary) !important;
    box-shadow: var(--wcf-shadow-md) !important;
}

.wcf-item--open .wcf-att-header {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-color: var(--wcf-primary) !important;
}

.wcf-placeholder-label {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
}

.wcf-att-body {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--wcf-shadow-lg);
}

.wcf-item--open .wcf-att-body {
    max-height: 2000px; /* Very large to avoid scrolling */
    overflow: hidden !important;
}

.wcf-attribute-list {
    list-style: none !important;
    margin: 8px 0 0 !important;
    padding: 10px 5px !important;
}

.wcf-attribute-item {
    margin-bottom: 8px;
}

.wcf-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: color 0.2s;
}

.wcf-checkbox-label:hover {
    color: var(--wcf-primary);
}
/* ── Active Selection Badge ────────────────────────────── */
.wcf-active-badge {
    background: var(--wcf-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-left: 8px;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(109, 139, 84, 0.3);
}

.wcf-item--active .wcf-att-header {
    border-color: var(--wcf-primary) !important;
}

.wcf-attribute-checkbox,
.wcf-stock-checkbox {
    display: none;
}

.wcf-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.wcf-attribute-checkbox:checked + .wcf-checkbox-custom,
.wcf-stock-checkbox:checked + .wcf-checkbox-custom {
    background: var(--wcf-primary);
    border-color: var(--wcf-primary);
    box-shadow: 0 0 0 4px rgba(109, 139, 84, 0.15);
}

.wcf-checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.wcf-attribute-checkbox:checked + .wcf-checkbox-custom::after,
.wcf-stock-checkbox:checked + .wcf-checkbox-custom::after {
    display: block;
}

/* ── Category Landing Page Styling ── */
.wcf-landing-header {
    margin-bottom: 30px;
    text-align: center;
}

.wcf-landing-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--wcf-text-dark);
    margin: 0;
}

.wcf-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.wcf-cat-card {
    background: #fff;
    border-radius: var(--wcf-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--wcf-transition);
    border: 1px solid rgba(109, 139, 84, 0.1);
    box-shadow: var(--wcf-shadow-md);
}

.wcf-cat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--wcf-shadow-premium);
    border-color: var(--wcf-primary);
}

.wcf-cat-card-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    background: var(--wcf-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wcf-cat-card-img img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.wcf-cat-no-img {
    font-size: 40px;
}

.wcf-cat-card-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
    color: var(--wcf-text-dark);
}

.wcf-cat-count {
    font-size: 14px;
    color: var(--wcf-text-light);
    font-weight: 500;
}

/* ── Back Button ── */
.wcf-back-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wcf-primary);
    cursor: pointer;
    padding: 8px 15px;
    border: 1px solid var(--wcf-primary);
    border-radius: 30px;
    transition: var(--wcf-transition);
}

.wcf-back-btn:hover {
    background: var(--wcf-primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(109, 139, 84, 0.2);
}

/* ── Active Chips Styling ── */
.wcf-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.wcf-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--wcf-primary-light);
    border: 1px solid rgba(109, 139, 84, 0.2);
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wcf-primary-dark);
    transition: var(--wcf-transition);
}

.wcf-chip-remove {
    cursor: pointer;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.6;
}

.wcf-chip-remove:hover {
    opacity: 1;
    color: #ef4444;
}

.wcf-clear-all {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    text-decoration: underline;
    transition: var(--wcf-transition);
}

.wcf-clear-all:hover {
    color: #b91c1c;
}

/* ── Loading States ── */
.wcf-loading-fade {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
    filter: blur(1px);
}

.wcf-term-name {
    font-weight: 500;
}

/* ── Availability sub stock list ───────────────────────── */
.wcf-stock-sub {
    list-style: none;
    padding: 4px 0 4px 28px;
    margin: 0;
}
.wcf-stock-sub-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-secondary, #64748b);
    padding: 2px 0;
}
.wcf-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.wcf-stock-dot--in  { background: #22c55e; }
.wcf-stock-dot--out { background: #f87171; }

/* ── Availability 2-column grid ─────────────────────────── */
.wcf-avail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.wcf-avail-col .wcf-stock-sublabel {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 6px 0;
}
.wcf-avail-col .wcf-attribute-list {
    padding: 0 !important;
}
.wcf-avail-col .wcf-term-name {
    font-size: 13px;
}
.wcf-avail-col .wcf-term-count {
    font-size: 12px;
}


/* ════════════════════════════════════
   TOP BAR — single row, desktop + mobile
   ════════════════════════════════════ */

/* Hide old mobile result count */
.wcf-mobile-result-count { display: none !important; }

/* Desktop top bar — one row */
.wcf-top-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px;
    width: 100%;
}
.wcf-top-bar-left {
    flex: 0 0 auto;
}
#wcf-result-count {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}
.wcf-top-pagination {
    flex: 1 1 auto;
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.wcf-top-pagination .wcf-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
}
.wcf-top-bar-right {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* Mobile result count */
#wcf-mobile-result-count {
    display: none;
    font-size: 13px;
    color: #666;
    margin: 4px 0 8px 0;
}

/* ── Mobile overrides ── */
@media (max-width: 768px) {
    /* Hide desktop top bar on mobile */
    .wcf-top-bar {
        display: none !important;
    }
    /* Show mobile result count */
    #wcf-mobile-result-count {
        display: block !important;
        text-align: left;
        padding: 0 4px;
    }
    /* Mobile pagination top */
    #wcf-pagination-mobile-top {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        margin-bottom: 12px;
        order: 3;
    }
    /* Mobile filter panel - prevent cutoff */
    .wcf-sidebar {
        max-width: 100% !important;
        width: 100% !important;
    }
    .wcf-drawer {
        width: 85vw !important;
        max-width: 340px !important;
        overflow-y: auto !important;
    }
}
@media (min-width: 769px) {
    #wcf-mobile-result-count { display: none !important; }
    #wcf-pagination-mobile-top { display: none !important; }
}

/* ── Fix pagination layout ── */

/* Desktop top pagination - horizontal */
#wcf-top-pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Bottom pagination - horizontal */
.wcf-pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 16px 0 !important;
}


/* Current page highlight */
.wcf-page-btn.wcf-page--active {
    background: #6d8b54 !important;
    color: #fff !important;
    border-color: #6d8b54 !important;
    font-weight: 600 !important;
}

/* ── FORCE pagination horizontal ── */
#wcf-top-pagination,
.wcf-pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
}

#wcf-top-pagination .wcf-page-btn,
#wcf-pagination-mobile-top .wcf-page-btn,
.wcf-pagination .wcf-page-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    width: auto !important;
    flex: 0 0 auto !important;
}

/* ── Breadcrumbs Styling ── */
.wcf-breadcrumbs {
    font-size: 14px !important;
    color: #ffffff !important;
    text-align: center !important;
    margin-bottom: 20px;

    padding: 0 4px;
}
.wcf-breadcrumbs a {
    color: #ffffff !important;
    font-size: 19px !important;
    transition: var(--wcf-transition);
    text-decoration: none !important;
}
.wcf-breadcrumbs a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
    opacity: 0.85;
}
.wcf-breadcrumb-separator {
    color: #ffffff !important;
    font-size: 19px !important;
   
    
}
.wcf-breadcrumb-current {
    color: #ffffff !important;
    font-size: 19px !important;
   
}
