/* ============================================================
   PRODUCTS.CSS — Sunvoz Shop/Product Collection Page Styles
   ============================================================ */

/* 1. Shop Header */
.shop-header {
    background-color: var(--bg-secondary);
    padding: var(--space-10) 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.shop-header-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.shop-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-weight: 700;
}

.shop-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.product-count {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--accent-pale);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

/* Decorative background shapes for shop header */
.shop-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-full);
    background-color: var(--accent-pale);
    opacity: 0.25;
    filter: blur(50px);
    z-index: 1;
}

.shop-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: var(--radius-full);
    background-color: var(--gold-light);
    opacity: 0.15;
    filter: blur(50px);
    z-index: 1;
}

/* 2. Filter Section */
.filter-section {
    padding: var(--space-6) 0 var(--space-4) 0;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-primary);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.filter-search {
    flex: 1 1 300px;
    position: relative;
    display: flex;
    align-items: center;
}

.filter-search svg {
    position: absolute;
    left: var(--space-4);
    color: var(--text-secondary);
    pointer-events: none;
}

.filter-search-input {
    width: 100%;
    padding: 12px 16px 12px 46px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--bg-card);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-search-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.filter-dropdowns {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Select design */
.filter-select {
    padding: 12px 40px 12px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--bg-card);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' fill='none' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    transition: border-color var(--transition), background-color var(--transition);
    min-width: 160px;
}

.filter-select:hover {
    border-color: var(--accent);
}

.filter-select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

/* Active Filter Chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.active-filters:empty {
    margin-top: 0;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: var(--accent-pale);
    border: 1px solid rgba(45, 106, 79, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    cursor: default;
    animation: fadeIn 0.2s ease;
}

.filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 0;
    color: var(--accent);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.filter-chip-remove:hover {
    color: var(--error);
}

/* 3. Product Grid & Empty State */
.shop-grid-section {
    padding: var(--space-8) 0 var(--space-11) 0;
    background-color: var(--bg-primary);
    min-height: 400px;
}

/* Responsive grid styling is mostly handled in base.css,
   but we add specific styles for shop here if needed. */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

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

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-dropdowns {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-2);
    }
    .filter-select {
        min-width: 0;
        padding-left: 12px;
        padding-right: 28px;
        background-position: right 12px center;
        font-size: 0.8rem;
    }
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-10) 0;
    max-width: 400px;
    margin: 0 auto;
}

.empty-state-icon {
    margin-bottom: var(--space-4);
    color: var(--text-light);
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}
