:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface2: #1e1e1e;
    --border: #2a2a2a;
    --gold: #f5c842;
    --gold2: #e6b800;
    --text: #e0e0e0;
    --text2: #999;
    --danger: #e74c3c;
    --success: #2ecc71;
    --transition: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
header {
    background: rgba(10,10,10,0.95);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.25s;
    white-space: nowrap;
    cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); background: rgba(245,200,66,0.08); }

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1a0a 0%, #0a0a0a 50%, #1a0a0a 100%);
    text-align: center;
    padding: 4rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(245,200,66,0.04) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, 3%); }
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--gold); margin-bottom: 0.5rem; position: relative; }
.hero p { color: var(--text2); font-size: 1.1rem; max-width: 500px; margin: 0 auto; position: relative; }
.bolt-icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; position: relative; animation: boltPulse 2s ease-in-out infinite; }
@keyframes boltPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Category Slider */
.category-slider-section {
    padding: 3rem 0 1rem;
}
.category-slider {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    position: relative;
}
.slider-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem 0;
    flex: 1;
}
.slider-track::-webkit-scrollbar { display: none; }
.category-card {
    flex: 0 0 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}
.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(245,200,66,0.1);
}
.category-card .cat-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.category-card .cat-name { font-weight: 600; font-size: 0.9rem; }
.category-card .cat-count { font-size: 0.75rem; color: var(--text2); }
.slider-arrow {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-arrow:hover { border-color: var(--gold); color: var(--gold); }

/* Products */
main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.category-section { margin-bottom: 3.5rem; animation: fadeSlideIn 0.5s ease-out; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}
.category-header .cat-icon { font-size: 1.6rem; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 40px rgba(245,200,66,0.08);
}
.product-card .product-img {
    aspect-ratio: 1;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-card .product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}
.product-card .product-info { padding: 1rem; }
.product-card .product-name { font-weight: 600; margin-bottom: 0.3rem; }
.product-card .product-price-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.product-card .product-price { color: var(--gold); font-weight: 700; font-size: 1.15rem; }
.product-card .product-original { color: var(--text2); text-decoration: line-through; font-size: 0.85rem; }
.product-card .product-stock { font-size: 0.75rem; color: var(--danger); margin-top: 0.3rem; }

/* Promotions */
.promo-section {
    padding: 1rem 0 2rem;
}
.promo-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    padding: 0 1.5rem;
}
.promo-card {
    background: linear-gradient(135deg, #1a1a0a, #0a0a0a);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.promo-card .promo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: #000;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}
.promo-card h3 { color: var(--gold); margin-bottom: 0.5rem; }
.promo-card p { color: var(--text2); font-size: 0.9rem; }
.promo-card .countdown { color: var(--text); font-weight: 600; margin-top: 0.5rem; font-size: 0.9rem; }

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, var(--surface2) 25%, var(--surface) 50%, var(--surface2) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
.skeleton-title { height: 28px; width: 200px; margin-bottom: 1rem; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; }
.skeleton-card { height: 280px; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Ad banners */
.ad-banner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.ad-banner:hover { border-color: var(--gold); }
.ad-banner img { max-width: 100%; border-radius: 8px; max-height: 200px; object-fit: cover; }

footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 2rem;
    margin-top: 3rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h4 { color: var(--gold); margin-bottom: 1rem; font-size: 1rem; }
.footer-col a, .footer-col p { display: block; color: var(--text2); text-decoration: none; font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { text-align: center; color: var(--text2); font-size: 0.8rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--border); }
.footer-bottom .bolt { color: var(--gold); }
.empty-state { text-align: center; padding: 3rem; color: var(--text2); }
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--gold);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 300;
}
.toast.show { opacity: 1; }
@media (max-width: 600px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .category-card { flex: 0 0 140px; }
    .promo-grid { grid-template-columns: 1fr; }
}

/* ==================== ADMIN STYLES ==================== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.3rem; color: var(--text2); font-size: 0.85rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.btn { 
    background: var(--gold); 
    color: #000; 
    border: none; 
    padding: 0.7rem 1.5rem; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    font-size: 0.95rem; 
    transition: all 0.2s; 
}
.btn:hover { background: var(--gold2); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.admin-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background: var(--surface2);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.admin-list-item:hover { background: var(--border); }
