/* ══════════════════════════════════════════════════════
   SHOP E-COMMERCE STYLES
   ══════════════════════════════════════════════════════ */
body {
    background: var(--bg-gray, #f8fafc);
}

.shop-header {
    margin-top: 80px; /* navbar height */
    background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
    color: white;
    padding: 60px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-header::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png') opacity 0.1;
    pointer-events: none;
}

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

.shop-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}
.shop-header p {
    font-size: 1.1rem;
    color: var(--blue-100);
    margin-bottom: 30px;
}

.search-bar {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.search-bar i {
    color: var(--text-gray);
    padding: 0 15px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.search-bar button {
    border-radius: 40px;
    padding: 12px 30px;
}

/* ── SHOP LAYOUT ── */
.shop-section {
    padding: 50px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.shop-container {
    display: flex;
    gap: 40px;
}

/* ── SIDEBAR FILTERS ── */
.shop-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.filter-group {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border, #e2e8f0);
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    font-family: 'Space Grotesk', sans-serif;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

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

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

.filter-list label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-gray);
    transition: 0.2s;
}

.filter-list label:hover {
    color: var(--blue-600);
}

.filter-list input[type="radio"], 
.filter-list input[type="checkbox"] {
    accent-color: var(--blue-600);
    width: 16px; height: 16px;
}

.sort-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

/* ── MAIN GRID ── */
.shop-main {
    flex: 1;
}

.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

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

/* ── PRODUCT CARD OVERRIDES ── */
/* Inherits from style.css but adds extra styling for shop page */
.shop-grid .product-card {
    width: 100%;
}

.shop-grid .product-img {
    height: 240px;
}

.product-desc {
    padding: 0 18px 15px;
    font-size: 0.85rem;
    color: var(--text-gray);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    padding: 0 18px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-light, #94a3b8);
    font-weight: 500;
}

/* ── STATES ── */
.loading-spinner {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--text-gray);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--blue-500);
    margin-bottom: 15px;
    display: block;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius);
    border: 1px dashed var(--border, #e2e8f0);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-light, #94a3b8);
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .shop-header h1 { font-size: 2.5rem; }
    .shop-container { flex-direction: column; }
    .shop-sidebar { width: 100%; display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; }
    .filter-group { flex: 1; min-width: 200px; margin-bottom: 0; }
}

@media (max-width: 768px) {
    .shop-header { padding: 40px 5%; }
    .shop-header h1 { font-size: 2rem; }
    .search-bar button { padding: 10px 20px; }
    .shop-sidebar { flex-direction: column; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-header h1 { font-size: 1.8rem; }
    .search-bar { flex-direction: column; border-radius: 12px; padding: 10px; gap: 10px; }
    .search-bar input { padding: 5px 10px; text-align: center; }
    .search-bar i { display: none; }
    .search-bar button { width: 100%; border-radius: 8px; }
}
