/* 
 * CSS for WooCommerce Category Archive (Single Category View)
 * Matches the Dark Hero + Sidebar Grid design
 */

:root {
    --bg-main: #fdfaf6;
    --bg-dark: #201f1e;
    --text-dark: #2a2a2a;
    --text-light: #888888;
    --text-dark-theme: #fdfaf6;
    --text-dark-theme-muted: #999999;
    --accent-orange: #fc7c36;
    --card-bg: #fdfaf6; /* card matches bg */
    --border-light: #e5e5e5;
    --font-heading: 'Inter', Helvetica, Arial, sans-serif;
    --font-body: 'Inter', Helvetica, Arial, sans-serif;
}

.category-main-wrapper {
    font-family: var(--font-body);
    color: var(--text-dark);
}

/* Dark Hero Section */
.category-hero {
    background-color: var(--bg-dark);
    color: var(--text-dark-theme);
    padding: 40px 0 60px 0;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-container .breadcrumb {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-dark-theme-muted);
    margin-bottom: 40px;
    background-color: transparent;
    padding: 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-left {
    max-width: 600px;
}

.hero-left .page-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 20px 0;
    letter-spacing: -1px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-left .cat-index {
    color: var(--accent-orange);
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
}

.hero-left .page-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark-theme-muted);
    margin: 0;
}

.hero-right.stats-grid {
    display: flex;
    gap: 40px;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-dark-theme-muted);
}

/* Layout: Sidebar + Grid */
.category-layout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    gap: 40px;
}

/* Sidebar */
.category-sidebar {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-light);
    padding-right: 30px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-header h3 {
    font-size: 12px;
    letter-spacing: 1px;
    margin: 0;
}

.sidebar-header .clear-filters {
    font-size: 10px;
    color: var(--text-light);
    text-decoration: underline;
}

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

.filter-group h4 {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-light);
    margin: 0 0 15px 0;
}

.filter-group label {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    color: var(--text-dark);
}

.filter-group input[type="checkbox"] {
    margin-right: 10px;
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    position: relative;
}

.filter-group input[type="checkbox"]:checked {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

/* Mock Price Slider */
.price-slider-mockup {
    margin-top: 20px;
}
.slider-track {
    height: 4px;
    background: var(--border-light);
    position: relative;
    border-radius: 2px;
}
.slider-fill {
    position: absolute;
    left: 20%;
    right: 30%;
    height: 100%;
    background: var(--text-dark);
}
.handle {
    width: 12px;
    height: 12px;
    background: var(--text-dark);
    border-radius: 50%;
    position: absolute;
    top: -4px;
}
.handle.h-left { left: 20%; }
.handle.h-right { left: 70%; }

.price-inputs {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 10px;
    color: var(--text-light);
}


/* Main Content Grid Area */
.category-main-content {
    flex-grow: 1;
}

.results-bar {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.results-sorting {
    display: flex;
    gap: 20px;
}

.view-toggle {
    color: var(--text-light);
}

/* Product Grid */
.product-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.custom-product-card {
    display: flex;
    flex-direction: column;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-image-area {
    position: relative;
    background: #f0ece6; /* light grey/beige block */
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    font-size: 9px;
    letter-spacing: 1px;
    font-weight: 700;
}

.badge-bestseller {
    left: 15px;
    color: #c9302c; /* Red text for bestseller */
}

.badge-art {
    right: 15px;
    color: var(--text-light);
}

.img-wrapper {
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 3px solid #2a2a2a; /* Frame representation */
    width: 75%;
    aspect-ratio: 3/4;
}

.product-card-link:hover .img-wrapper {
    transform: translateY(-5px);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover Action Button */
.hover-action {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 0.3s ease;
    z-index: 3;
}

.product-card-link:hover .hover-action {
    bottom: 20px;
}

.btn-see-wall {
    background: #2a2a2a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
}

.product-info-area {
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--text-light);
    margin: 0 0 5px 0;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.product-price {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

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

.product-price del {
    color: var(--text-light);
    font-weight: 400;
    margin-left: 5px;
}

.color-swatches {
    display: flex;
    gap: 5px;
}

.swatch {
    width: 12px;
    height: 12px;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.1);
}

.pagination-area {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.btn-load-more {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 12px 30px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.btn-load-more:hover {
    border-color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .category-layout-container {
        flex-direction: column;
    }
    
    .category-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0;
        padding-bottom: 20px;
    }
    
    .hero-left .page-title {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .product-grid-3col {
        grid-template-columns: 1fr;
    }
}
