:root {
    --primary: #c5a059;
    --primary-light: #e0c08d;
    --accent: #3b82f6;
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 25, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(10, 10, 12, 0.75);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Elements */
.background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
    z-index: -2;
}

.glow {
    position: fixed; top: -10%; left: -10%; width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.05) 0%, transparent 70%);
    filter: blur(80px); z-index: -1; pointer-events: none;
}

/* Typography Enhancements */
h1, h2, h3 { letter-spacing: -0.02em; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* Header & Nav */
.store-header {
    position: sticky; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 8%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #000; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-weight: 800; font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}
.logo-text { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.5px; }

.back-link { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: var(--transition); }
.back-link:hover { color: var(--text-main); }

/* Store Hero */
.hero-section {
    padding: 6rem 8% 4rem; text-align: center;
    max-width: 1000px; margin: 0 auto;
}
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(197, 160, 89, 0.1); color: var(--primary);
    font-size: 0.85rem; font-weight: 700; margin-bottom: 1.5rem;
    text-transform: uppercase; letter-spacing: 1px;
}
.store-title {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1;
    margin-bottom: 1.5rem;
}
.store-subtitle {
    color: var(--text-muted); font-size: 1.2rem; max-width: 600px; margin: 0 auto 3rem;
}

/* Filters */
.store-filters {
    padding: 0 8%; margin-bottom: 4rem; display: flex; gap: 1rem; justify-content: center;
}
.search-box input, .store-filters select {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    color: white; padding: 12px 24px; border-radius: 12px; outline: none;
    font-family: inherit; transition: var(--transition);
}
.search-box input:focus, .store-filters select:focus {
    border-color: var(--primary); background: rgba(255,255,255,0.06);
}

/* Products Grid */
.products-grid {
    padding: 0 8% 6rem;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem;
}

.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; padding: 1.5rem;
    display: flex; flex-direction: column;
    transition: var(--transition); backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
}
.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.product-img-container {
    width: 100%; height: 260px; border-radius: 16px;
    margin-bottom: 1.5rem; overflow: hidden; background: #fff;
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.product-img { max-width: 90%; max-height: 90%; object-fit: contain; transition: var(--transition); }
.product-card:hover .product-img { transform: scale(1.08); }

.product-info { display: flex; flex-direction: column; gap: 0.5rem; }
.product-category { color: var(--primary); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.product-name { font-size: 1.25rem; font-weight: 700; color: #fff; line-height: 1.3; }
.product-price { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0.5rem 0 1rem; }

.buy-btn {
    width: 100%; padding: 1rem; border-radius: 14px; border: none;
    background: var(--text-main); color: #000;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 10px;
}
.buy-btn:hover { background: var(--primary); color: #000; transform: scale(1.02); }

/* Cart UI */
#cart-btn {
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    padding: 10px; border-radius: 12px; transition: var(--transition);
}
#cart-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); }

#cart-sidebar {
    background: #0a0a0c !important; border-left: 1px solid var(--border);
    padding: 2rem;
}
.cart-item {
    display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem;
    padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}

/* Admin Dashboard UI */
.admin-dashboard { background: transparent !important; }
.admin-nav { gap: 10px !important; border-bottom: 1px solid var(--border) !important; margin-bottom: 40px !important; }
.nav-btn {
    padding: 12px 20px !important; border-radius: 12px 12px 0 0 !important;
    transition: var(--transition) !important;
}
.nav-btn.active { background: rgba(197, 160, 89, 0.1) !important; border-bottom: 2px solid var(--primary) !important; color: var(--primary) !important; }

.admin-table { background: var(--bg-card); border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.admin-table th { background: rgba(255,255,255,0.03); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* Status Badges */
.badge-status {
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
}

/* Modals */
.login-box {
    background: #0f172a; border: 1px solid var(--border); border-radius: 30px;
    padding: 3rem !important; box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card { animation: fadeInUp 0.6s ease forwards; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    .store-header { padding: 1rem 5%; }
    .hero-section { padding: 4rem 5% 2rem; }
    .products-grid { padding: 0 5% 4rem; grid-template-columns: 1fr; }
    .store-filters { flex-direction: column; padding: 0 5%; }
}
