:root {
    --primary-color: #d4af37;
    /* Modern Gold */
    --primary-hover: #b8962e;
    --accent-color: #f7e7ce;
    /* Soft Champagne */
    --bg-dark: #0f172a;
    /* Deep Slate / Obsidian */
    --bg-surface: rgba(30, 41, 59, 0.7);
    /* Translucent surface */
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.2);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 0% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 0, 0, 0.05) 0%, transparent 50%);
}

/* Background Ethnic Animation - More Subtle */
.bg-ethnic-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    z-index: -2;
    background-image: url('data:image/svg+xml,<svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg"><path d="M60 0 L120 60 L60 120 L0 60 Z" fill="none" stroke="%23d4af37" stroke-width="0.3" opacity="0.08"/><circle cx="60" cy="60" r="15" fill="none" stroke="%23d4af37" stroke-width="0.3" opacity="0.05"/></svg>');
    background-repeat: repeat;
    animation: scrollBg 80s linear infinite;
    pointer-events: none;
}

@keyframes scrollBg {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-60px, -60px);
    }
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

/* Header - Modern Floating */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    padding: 1.25rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    margin: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 42px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.btn-login {
    background: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: var(--gold-glow);
}

/* Running Text - Integrated Header */
.running-text-container {
    background: linear-gradient(90deg, transparent, var(--bg-surface), transparent);
    color: var(--primary-color);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.running-text-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* Hero Section - Search Focus */
.hero {
    padding: 4rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-white) 30%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--gold-glow);
}

/* Category Chips */
.category-scroll {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem 1.5rem 3rem;
}

.cat-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.cat-pill:hover,
.cat-pill.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--gold-glow);
}

/* Product Grid - Bento Style */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 2rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 125%;
    /* 4:5 Aspect Ratio */
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.product-cat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer */
.main-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.main-footer p {
    color: var(--text-muted);
}

/* PWA Prompt - Compact & Smaller */
.install-prompt {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    left: auto;
    max-width: 140px;
    padding: 0.75rem;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
}

.install-prompt div {
    font-size: 0.65rem !important;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.btn-install {
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    font-weight: 800;
    font-size: 0.6rem;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-install:hover {
    box-shadow: var(--gold-glow);
    transform: scale(1.05);
}

@media (max-width: 640px) {
    header {
        margin: 0.5rem;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        padding: 1rem;
    }
}