/* ============================================================
   GILGAMEZ STORE — Storefront Styles & SPA Layouts
   Enforces Rule #1 (Clean CSS separation) and Rule #6 (Responsive)
   ============================================================ */

.store-header {
    padding: 120px 0 30px;
    text-align: center;
}

.store-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.store-header p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filters */
.filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--store-accent, #8b5cf6);
    color: #fff;
    border-color: var(--store-accent, #8b5cf6);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding-bottom: 80px;
}

.product-card {
    background: #0f1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
}

.product-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

.product-title {
    font-weight: 600;
    margin: 14px 14px 4px;
    font-size: 1.05rem;
    color: #fff;
}

.product-pub {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 14px;
}

/* SPA Views */
.spa-view {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading Spinner */
.store-loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner-ring {
    display: inline-block;
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--store-accent, #8b5cf6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* View Utility Classes (Rule #1) */
.view-content-centered {
    padding-top: 120px;
    text-align: center;
}

.view-content-constrained {
    padding-top: 120px;
    max-width: 720px;
    margin: 0 auto;
}

.view-title-large {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.view-tagline {
    color: #94a3b8;
    margin-bottom: 32px;
}

.view-text-lead {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 16px;
}

.view-text-body {
    color: #94a3b8;
    line-height: 1.8;
}

.view-cta-button {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.spa-view-hidden {
    display: none;
}

/* 5-Tier Responsive Breakdown (Rule #6) */

/* 1. Desktop 4K / Large (1920px+) */
@media (min-width: 1920px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 32px;
    }
    .product-img {
        height: 220px;
    }
    .store-header h1 {
        font-size: 3.5rem;
    }
}

/* 2. Desktop / Laptop (1280px - 1440px) is covered by base styles */

/* 3. Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* 4. Mobile Landscape (481px - 767px) */
@media (max-width: 768px) {
    .store-header {
        padding: 90px 0 20px;
    }
    .store-header h1 {
        font-size: 2.2rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    .product-img {
        height: 150px;
    }
}

/* 5. Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .store-header {
        padding: 80px 0 15px;
    }
    .store-header h1 {
        font-size: 1.8rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-img {
        height: 120px;
    }
    .product-title {
        font-size: 0.9rem;
        margin: 8px 8px 2px;
    }
    .product-pub {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}
