.category-faq,
.category-intro {
    margin: 0 auto 36px;
    max-width: 960px;
}

.category-faq h2,
.category-intro h2 {
    margin-bottom: 16px;
}

.category-faq-list {
    display: grid;
    gap: 12px;
}

.category-faq details,
.product-faq details {
    border: 1px solid var(--border-color, #e5e5e5);
    padding: 16px 20px;
    background: var(--card-bg, #fff);
}

.category-faq summary,
.product-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.category-faq p,
.product-faq p {
    color: #555;
    line-height: 1.7;
    margin: 12px 0 0;
}

.content-freshness,
.product-updated {
    color: #666;
    font-size: .85rem;
    margin-top: 16px;
}

.spinner-luxury {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.05);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shop-main {
    margin-top: 40px;
}

.category-page-content {
    margin-top: 40px;
}

.category-page-intro {
    max-width: 600px;
    margin: 0 auto;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.shop-sidebar {
    background: var(--card-bg, #fff);
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 35px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.filter-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list li {
    margin-bottom: 12px;
}

.filter-list a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--accent);
    transform: translateX(5px);
}

.filter-list a.active {
    font-weight: 600;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Match product detail page container whitespace */
html body .container {
    max-width: 1440px;
    padding: 0 10px;
}



.page-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    line-height: 1.6;
}

/* Keep shared frontend filter defaults aligned with the luxury palette. */
html body .category-page-content .shop-layout .shop-sidebar .filter-list a,
html body .category-page-content .shop-layout .shop-sidebar .filter-list a:visited,
html body .category-page-content .shop-layout .shop-sidebar .filter-list a:active,
html body .category-page-content .shop-layout .shop-sidebar .filter-list a:focus {
    background: transparent !important;
    color: var(--text-color, #333333) !important;
}

html body .category-page-content .shop-layout .shop-sidebar .filter-list a:hover,
html body .category-page-content .shop-layout .shop-sidebar .filter-list a:focus-visible {
    background: var(--bg-light, #f7f7f7) !important;
    color: var(--primary, #1a1a1a) !important;
}

html body .category-page-content .shop-layout .shop-sidebar .filter-list a.active,
html body .category-page-content .shop-layout .shop-sidebar .filter-list a.active:hover,
html body .category-page-content .shop-layout .shop-sidebar .filter-list a.active:focus-visible {
    background: var(--primary, #1a1a1a) !important;
    color: #fff !important;
}

/* Keep the browser focus ring inside the monochrome Luxury palette. */
html body .category-page-content .shop-layout .shop-sidebar .filter-list a:focus-visible {
    outline: 2px solid var(--accent, #222222);
    outline-offset: 2px;
}

html body .category-page-content .shop-layout .shop-sidebar .filter-list a:focus:not(:focus-visible) {
    outline: none;
}

html body .category-page-content .shop-layout .shop-sidebar .slider,
html body .category-page-content .shop-layout .shop-sidebar input[type="range"] {
    accent-color: var(--primary, #1a1a1a);
}

html body .category-page-content .shop-layout .shop-sidebar input[type="range"]::-webkit-slider-runnable-track {
    background: var(--border-color, #e0e0e0);
}

html body .category-page-content .shop-layout .shop-sidebar input[type="range"]::-webkit-slider-thumb {
    background: var(--primary, #1a1a1a);
}

html body .category-page-content .shop-layout .shop-sidebar input[type="range"]::-moz-range-track {
    background: var(--border-color, #e0e0e0);
}

html body .category-page-content .shop-layout .shop-sidebar input[type="range"]::-moz-range-progress {
    background: var(--primary, #1a1a1a);
}

html body .category-page-content .shop-layout .shop-sidebar input[type="range"]::-moz-range-thumb {
    background: var(--primary, #1a1a1a);
    border: 0;
}

/* Product Grid moved to cards.css for global consistency */


/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 30px;
}

.result-count {
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-count i {
    color: var(--accent);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.sort-icon {
    color: #888;
    font-size: 0.9rem;
}

.sort-select {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    outline: none;
    cursor: pointer;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.empty-icon i {
    font-size: 4rem;
    opacity: 0.1;
    margin-bottom: 25px;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto 25px;
    color: #888;
}

.category-featured-link {
    margin-top: 28px;
    padding: 18px 22px;
    border: 1px solid #e5e0d8;
    background: #fbfaf8;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

.category-featured-link a {
    color: #222;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Infinite Scroll */
#infinite-scroll-sentinel {
    height: 10px;
    margin-top: 20px;
}

#loading-spinner, #end-of-list {
    padding: 40px 0;
    color: var(--text-light);
    display: none;
}

.loading-message {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.empty-state-description {
    max-width: 400px;
}

#loading-spinner p, #end-of-list p {
    margin-top: 15px;
    font-size: 0.9rem;
}

.hero-accent-line {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 15px;
    opacity: 0.3;
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}
