/*
 * Archive Product Bundle CSS
 * Assembled to reduce request count.
 * Includes: woocommerceOverrides.css, grid.css, filter.css, filterMinimal.css
 */

ul.products {
    list-style: none;
    padding: 0;
    margin: 0;
}


ul.products::before,
ul.products::after {
    display: none !important;
    content: none !important;
}


ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    float: none !important;
}


ul.products>*:not(li.product) {
    display: none !important;
}


.woocommerce-ordering,
.woocommerce-result-count {
    display: none;
}


ul.products li.product .product-image-container img,
ul.products li.product .product-image-container--style-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.view-button.active {
    background: var(--white-background, #ffffff);
    color: var(--primary-text, #7d1d60);
}


.product-grid.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.product-grid.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.filter-panel {
    display: none;
}

.filter-panel.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.sort-dropdown-menu.show {
    display: block !important;
}

.products-header .sort-dropdown {
    position: relative;
}

.sort-dropdown.show .sort-dropdown-icon {
    transform: rotate(180deg);
}


.sort-dropdown-item.active {
    background: var(--primary-background-hover, #f3f4f6);
    color: var(--black-text, #111827);
    font-weight: 500;
}


.sub-category-list {
    display: none;
}

.sub-category-list.show,
.sub-category-list:not(.hidden) {
    display: block;
}


.toggle-subcategory {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.toggle-subcategory:hover {
    background: #f8f9fa;
    color: var(--primary-text, #7d1d60);
}

.toggle-subcategory.empty {
    display: none;
}


.filter-items::-webkit-scrollbar {
    width: 5px;
}

.filter-items::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.filter-items::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.filter-items::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}


.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid var(--primary-color, #7d1d60);
    border-radius: 50%;
    animation: sqw-archive-filter-spin 1s linear infinite;
}

@keyframes sqw-archive-filter-spin {
    to {
        rotate: 360deg;
    }
}
/**
 * Minimal Filter Panel (utility-only fallback)
 * Most presentation is now handled by Tailwind classes in template markup.
 */
.filter-slide-overlay.active {
    pointer-events: auto;
}

.filter-panel-body::-webkit-scrollbar {
    width: 6px;
}

.filter-panel-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.filter-panel-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}

.filter-slide-panel.loading .filter-panel-body {
    pointer-events: none;
    opacity: 0.6;
}

body.filter-panel-open {
    overflow: hidden;
}

/* Archive layout v2 (image-like clean grid shell) */
.archive-showcase-layout .products-header {
    transition: box-shadow 0.24s ease, background-color 0.24s ease, border-color 0.24s ease;
}

.archive-showcase-layout .products-header.is-sticky {
    background: rgba(230, 229, 220, 0.92);
    backdrop-filter: blur(8px);
}

.archive-showcase-layout .products-header.has-shadow {
    box-shadow: 0 16px 30px -28px rgba(15, 23, 42, 0.72);
}

.archive-product-grid--framed {
    border: 0;
}

.archive-product-grid--framed > li.product {
    min-width: 0;
    border: 0;
}

.archive-product-grid--framed > li.product .product-card,
.archive-product-grid--framed > li.product .product-card-shell {
    min-height: 100%;
}

.archive-showcase-layout .category-bottom-content {
    max-height: 300px;
}

/* Archive taxonomy heading + child categories */
.archive-taxonomy-header__panel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.9rem 1rem;
    border: 1px solid #d7d5cc;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #ffffff 62%, var(--primary-background-hover) 100%);
    padding: 1.1rem 1.15rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.archive-taxonomy-header__content {
    min-width: 0;
    flex: 1 1 420px;
}

.archive-taxonomy-header__kicker {
    margin: 0 0 0.45rem;
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.archive-taxonomy-header__title {
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2.35rem);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #161616;
}

.archive-taxonomy-header__description {
    margin: 0.7rem 0 0;
    max-width: 64ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}

.archive-taxonomy-header__count {
    margin: 0.15rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border-radius: 9999px;
    border: 1px solid #d8d5cd;
    background: #ffffff;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    color: #1f2937;
}

.archive-taxonomy-header__count-number {
    font-weight: 700;
}

.archive-taxonomy-header__children {
    margin-top: 0.75rem;
    padding: 0;
}

.archive-taxonomy-header__children-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.52rem;
}

.archive-taxonomy-header__child-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #d8d5cd;
    border-radius: 9999px;
    background: #ffffff;
    padding: 0.45rem 0.82rem;
    font-size: 0.88rem;
    line-height: 1.1;
    font-weight: 600;
    text-decoration: none;
    color: #1f2937;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.archive-taxonomy-header__child-link:hover,
.archive-taxonomy-header__child-link:focus-visible {
    border-color: color-mix(in srgb, var(--primary-background, #7d1d60) 34%, #d8d5cd 66%);
    background: #f8f8f6;
    color: color-mix(in srgb, var(--primary-background, #7d1d60) 76%, #0f172a 24%);
}

.archive-taxonomy-header__child-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary-background, #7d1d60) 52%, #ffffff 48%);
    outline-offset: 2px;
}

.archive-taxonomy-header__child-count {
    border-radius: 9999px;
    background: #f3f4f6;
    padding: 0.18rem 0.45rem;
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 700;
    color: #64748b;
}

@media (min-width: 768px) {
    .archive-taxonomy-header__panel {
        padding: 1.35rem 1.45rem;
    }

    .archive-taxonomy-header__description {
        font-size: 1rem;
    }
}
