/* ============================================
   4FriendZoneDEV - GTA-Inspired Premium Theme
   ============================================ */

:root {
    --bg-primary: #080810;
    --bg-secondary: #0c0c1a;
    --bg-card: #111128;
    --bg-card-hover: #161640;
    --bg-surface: rgba(255, 255, 255, 0.02);

    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --accent-glow: rgba(0, 255, 136, 0.25);
    --accent-glow-strong: rgba(0, 255, 136, 0.5);
    --gold: #ffb800;
    --gold-dim: #cc9300;
    --purple: #7b2ff2;
    --purple-glow: rgba(123, 47, 242, 0.25);
    --red: #ff3355;
    --cyan: #00d4ff;

    --text: #f0f0f8;
    --text-secondary: #7878a0;
    --text-muted: #44446a;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 255, 136, 0.25);

    --radius: 10px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) var(--bg-primary);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
.hidden { display: none !important; }

/* --- Text Gradient Utility --- */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

/* --- Background Effects --- */
.bg-grid {
    position: fixed; inset: 0; z-index: -2;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.025) 1px, transparent 1px);
    background-size: 80px 80px;
}
.bg-noise {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at 20% 0%, rgba(0, 255, 136, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 100%, rgba(123, 47, 242, 0.04) 0%, transparent 50%);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 36px;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 800; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 2px;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    position: relative; overflow: hidden;
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.25), transparent);
    transform: translateX(-100%); transition: transform 0.5s;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-3px); }

.btn-glow:hover { box-shadow: 0 8px 40px var(--accent-glow), 0 0 80px var(--accent-glow); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 36px;
    background: transparent;
    color: var(--text);
    font-weight: 600; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 2px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s var(--ease);
}
.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-3px);
}

.btn-xl { padding: 18px 48px; font-size: 0.95rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 24px; height: 64px;
    background: transparent;
    transition: all 0.4s var(--ease);
}
.navbar.scrolled {
    background: rgba(8, 8, 16, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-display); font-size: 1.6rem;
    letter-spacing: 3px; color: var(--text);
    transition: 0.2s;
}
.nav-logo:hover { text-shadow: 0 0 30px var(--accent-glow); }
.logo-4 { color: var(--accent); font-size: 2rem; }
.logo-dev { color: var(--accent); }

.nav-links { display: flex; gap: 36px; }
.nav-link {
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2.5px;
    color: var(--text-secondary);
    position: relative; padding: 4px 0;
    transition: 0.3s;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.cart-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius);
    color: var(--text-secondary); transition: 0.2s;
}
.cart-btn:hover { color: var(--accent); background: rgba(0,255,136,0.05); }
.cart-count {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px;
    background: var(--accent); color: var(--bg-primary);
    font-size: 0.65rem; font-weight: 800;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(0); transition: 0.2s var(--ease-bounce);
}
.cart-count.visible { opacity: 1; transform: scale(1); }

/* ============================================
   HERO - CINEMATIC FULLSCREEN
   ============================================ */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

/* Slideshow */
.hero-slideshow { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.2s ease, transform 8s ease;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(8,8,16,0.5) 0%,
        rgba(8,8,16,0.3) 40%,
        rgba(8,8,16,0.7) 80%,
        rgba(8,8,16,1) 100%
    );
    z-index: 1;
}
.hero-vignette {
    position: absolute; inset: 0; z-index: 2;
    box-shadow: inset 0 0 200px rgba(0,0,0,0.5);
}

.hero-content {
    position: relative; z-index: 3;
    text-align: center; padding: 0 24px;
}

.hero-top-tag {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 24px;
    border: 1px solid var(--accent);
    border-radius: 50px;
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 4px; color: var(--accent);
    background: rgba(0,255,136,0.06);
    animation: fadeInUp 0.8s var(--ease) both;
}
.tag-dot {
    width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    margin: 28px 0 20px;
    line-height: 0.85;
    animation: fadeInUp 0.8s var(--ease) 0.15s both;
}
.hero-title-line1 {
    display: block;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 12px;
    color: var(--text-secondary);
}
.hero-title-line2 {
    display: block;
    font-size: clamp(5rem, 15vw, 13rem);
    letter-spacing: 6px;
    background: linear-gradient(135deg, var(--accent), var(--cyan), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s var(--ease) 0.15s both, shimmer 4s linear infinite;
    filter: drop-shadow(0 0 40px var(--accent-glow));
}

.hero-desc {
    font-size: 1.1rem; color: rgba(255, 255, 255, 0.85);
    max-width: 500px; margin: 0 auto 36px;
    line-height: 1.9;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s var(--ease) 0.3s both;
}

.hero-actions {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease) 0.45s both;
}

/* Indicators */
.hero-indicators {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 48px;
    animation: fadeInUp 0.8s var(--ease) 0.6s both;
}
.indicator {
    width: 32px; height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    transition: all 0.4s var(--ease);
}
.indicator.active {
    width: 48px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Scroll mouse */
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%); z-index: 3;
    animation: fadeInUp 0.8s var(--ease) 1s both;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex; justify-content: center; padding-top: 8px;
}
.scroll-wheel {
    width: 3px; height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

/* ============================================
   SHOWCASE - BULLWORTH
   ============================================ */
.showcase {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    text-align: center;
}
.showcase-accent-line {
    width: 2px; height: 60px;
    margin: 0 auto 40px;
    background: linear-gradient(180deg, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.showcase-label {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 20px;
}
.label-line { width: 40px; height: 1px; background: var(--accent); }
.label-text {
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 5px; color: var(--accent);
}

.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center; letter-spacing: 6px;
    margin-bottom: 16px;
}
.showcase-subtitle {
    text-align: center;
    font-size: 1rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 60px;
    line-height: 1.8;
}

/* Gallery */
.showcase-gallery {
    margin: 0 auto 64px;
    max-width: 100%;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}
.gallery-main-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}
.gallery-main-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.gallery-counter {
    font-family: var(--font-display);
    font-size: 1rem; letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
}

.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text);
    transition: all 0.3s var(--ease);
    opacity: 0;
}
.gallery-main:hover .gallery-nav { opacity: 1; }
.gallery-nav:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
}
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-thumbs {
    display: flex; gap: 12px; justify-content: center;
}
.thumb {
    width: 100px; height: 56px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.4;
    transition: all 0.3s var(--ease);
    background: var(--bg-card);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.7; }
.thumb.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Features */
.showcase-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}
.feature-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow);
}
.feature-icon {
    width: 48px; height: 48px;
    margin: 0 auto 16px;
    color: var(--accent);
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-title {
    font-family: var(--font-display);
    font-size: 1.2rem; letter-spacing: 2px;
    margin-bottom: 8px;
}
.feature-desc {
    font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6;
}

/* CTA */
.showcase-cta {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; flex-wrap: wrap;
}
.cta-price-box { text-align: right; }
.cta-label {
    display: block;
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 2px;
}
.cta-price {
    font-family: var(--font-display);
    font-size: 3rem; color: var(--gold);
    letter-spacing: 2px;
    line-height: 1;
}

/* HT (Hors Taxes) label */
.price-ht {
    font-size: 0.45em;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    vertical-align: super;
    letter-spacing: 1px;
    margin-left: 2px;
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-surface);
}
.trust-items {
    display: flex; justify-content: center;
    gap: 40px; flex-wrap: wrap;
}
.trust-item {
    display: flex; align-items: center; gap: 14px;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.85rem; font-weight: 700; }
.trust-item span { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   OTHER PRODUCTS (Static Cards)
   ============================================ */
.other-products {
    padding: 100px 0;
    text-align: center;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 6px;
    margin-bottom: 12px;
}
.section-desc {
    font-size: 0.95rem; color: var(--text-secondary);
}

.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    text-align: left;
}

.product-card-v2 {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
    cursor: pointer;
}
.product-card-v2::before {
    content: ''; position: absolute; inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent), var(--purple));
    opacity: 0; z-index: 0;
    transition: opacity 0.4s;
}
.product-card-v2:hover::before { opacity: 1; }
.product-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 50px var(--accent-glow);
}
/* Inner wrapper to sit above the gradient border */
.product-card-v2 > * { position: relative; z-index: 1; }

.card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-secondary);
}
.card-image-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.product-card-v2:hover .card-image-wrap img { transform: scale(1.1); }

.card-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 14px;
    background: var(--purple);
    color: white;
    font-size: 0.65rem; font-weight: 800;
    letter-spacing: 2px; border-radius: 50px;
}

.card-body {
    padding: 24px;
    background: var(--bg-card);
}
.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem; letter-spacing: 1px;
    margin-bottom: 8px;
}
.card-desc {
    font-size: 0.82rem; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 20px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-bottom {
    display: flex; align-items: center; justify-content: space-between;
}
.card-price {
    font-family: var(--font-display);
    font-size: 1.6rem; color: var(--gold);
    letter-spacing: 1px;
}
.btn-add-cart {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    background: rgba(0,255,136,0.08);
    border: 1px solid var(--border-hover);
    color: var(--accent);
    transition: all 0.3s var(--ease);
}
.btn-add-cart:hover {
    background: var(--accent); color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.card-hover-gallery {
    display: none; /* reserved for hover effect later */
}

/* ============================================
   STORE SECTION (Tebex API)
   ============================================ */
.store-section {
    padding: 60px 0 120px;
    text-align: center;
}
.categories-filter {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-bottom: 48px;
}
.filter-btn {
    padding: 10px 26px; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--border-hover); }
.filter-btn.active {
    color: var(--bg-primary); background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    text-align: left;
}

/* API Product Card (reuse same style as card-v2) */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    animation: fadeInUp 0.5s var(--ease) both;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow);
    border-color: var(--border-hover);
}
.product-card-image {
    position: relative; width: 100%;
    aspect-ratio: 16 / 10; overflow: hidden;
    background: var(--bg-secondary);
}
.product-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s var(--ease);
}
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-card-image .sale-tag {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 12px; background: var(--red);
    color: white; font-size: 0.65rem; font-weight: 800;
    letter-spacing: 1px; border-radius: var(--radius);
}
.product-card-body { padding: 20px; }
.product-card-category {
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); margin-bottom: 6px;
}
.product-card-name {
    font-family: var(--font-display);
    font-size: 1.3rem; letter-spacing: 1px;
    margin-bottom: 6px; line-height: 1.2;
}
.product-card-desc {
    font-size: 0.82rem; color: var(--text-secondary);
    line-height: 1.5; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price {
    font-family: var(--font-display);
    font-size: 1.4rem; color: var(--gold); letter-spacing: 1px;
}
.product-card-price .original-price {
    font-size: 0.85rem; color: var(--text-muted);
    text-decoration: line-through; margin-left: 8px;
}
.product-card-action {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: rgba(0,255,136,0.08);
    border: 1px solid var(--border-hover);
    color: var(--accent); transition: all 0.2s;
}
.product-card-action:hover {
    background: var(--accent); color: var(--bg-primary);
}

/* Loading */
.loading {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; padding: 80px 0; color: var(--text-muted);
}
.loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.empty-state {
    text-align: center; padding: 60px 0;
    color: var(--text-muted);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
    position: relative; width: 100%; max-width: 880px;
    max-height: 90vh; overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s var(--ease);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); background: rgba(0,0,0,0.5);
    color: var(--text-secondary); transition: 0.2s;
}
.modal-close:hover { background: var(--red); color: white; }

.modal-body { display: grid; grid-template-columns: 1fr 1fr; }

.modal-gallery {
    position: relative;
    overflow: hidden; background: var(--bg-secondary);
    display: flex; flex-direction: column;
}
.modal-gallery-main {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.modal-image {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Modal gallery nav arrows */
.modal-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--text); transition: all 0.3s var(--ease);
    opacity: 0; z-index: 5;
}
.modal-gallery:hover .modal-gallery-nav { opacity: 1; }
.modal-gallery-nav:hover {
    background: var(--accent); color: var(--bg-primary);
    border-color: var(--accent);
}
.modal-gallery-nav.hidden { display: none; }
.modal-gallery-prev { left: 10px; }
.modal-gallery-next { right: 10px; }

/* Modal gallery thumbnails */
.modal-gallery-thumbs {
    display: flex; gap: 6px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.3);
    overflow-x: auto;
    justify-content: center;
}
.modal-gallery-thumbs:empty { display: none; }
.modal-gallery-thumbs .modal-thumb {
    width: 56px; height: 40px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s var(--ease);
    cursor: pointer; flex-shrink: 0;
}
.modal-gallery-thumbs .modal-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.modal-gallery-thumbs .modal-thumb:hover { opacity: 0.8; }
.modal-gallery-thumbs .modal-thumb.active {
    opacity: 1;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.modal-info {
    padding: 36px; display: flex; flex-direction: column;
}
.modal-category {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--accent); margin-bottom: 10px;
}
.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem; letter-spacing: 2px;
    margin-bottom: 16px; line-height: 1.1;
}
.modal-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.modal-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.modal-original-price { color: var(--text-muted); text-decoration: line-through; }
.modal-sale-badge {
    padding: 3px 10px; background: var(--red); color: white;
    font-size: 0.6rem; font-weight: 800; letter-spacing: 1px;
    border-radius: var(--radius);
}
.modal-description {
    flex: 1; font-size: 0.85rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 28px;
    overflow-y: auto; max-height: 300px; padding-right: 8px;
}
.modal-description img { border-radius: var(--radius); margin: 8px 0; }
.modal-description h4 {
    font-family: var(--font-display);
    font-size: 1.1rem; letter-spacing: 1px;
    color: var(--text); margin-bottom: 10px;
}
.modal-description ul {
    list-style: none; padding: 0; margin: 12px 0 0;
}
.modal-description ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.83rem;
    line-height: 1.6;
}
.modal-description ul li::before {
    content: '';
    position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-glow);
}
.modal-description ol {
    padding-left: 20px; margin: 10px 0;
    color: var(--text-secondary);
}
.modal-description ol li {
    margin-bottom: 6px; line-height: 1.7;
}
.modal-description table {
    width: 100%; border-collapse: collapse;
    margin: 10px 0; font-size: 0.82rem;
}
.modal-description table td {
    padding: 6px 10px; color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.modal-description table strong {
    color: var(--text);
}
.modal-description code {
    background: rgba(0,255,136,0.08);
    color: var(--accent);
    padding: 2px 6px; border-radius: 4px;
    font-size: 0.8rem;
}
.modal-description h2, .modal-description h3 {
    color: var(--accent);
    font-family: var(--font-display);
    letter-spacing: 1px;
    margin: 16px 0 8px;
    font-size: 1rem;
}
.modal-description h2 { font-size: 1.15rem; }
.modal-description p {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
    position: fixed; inset: 0; z-index: 1500;
    background: rgba(0,0,0,0.6);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-sidebar {
    position: fixed; top: 0; right: 0; z-index: 1600;
    width: 400px; max-width: 100%; height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
}
.cart-sidebar.active { transform: translateX(0); }

.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.cart-title {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem; letter-spacing: 3px;
}
.cart-close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); color: var(--text-secondary);
    transition: 0.2s;
}
.cart-close:hover { background: rgba(255,51,85,0.1); color: var(--red); }

.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }

.cart-item {
    display: flex; gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeInUp 0.3s var(--ease) both;
}
.cart-item-image {
    width: 64px; height: 64px;
    border-radius: var(--radius); overflow: hidden;
    background: var(--bg-card); flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-weight: 600; font-size: 0.85rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px;
}
.cart-item-price {
    font-family: var(--font-display);
    font-size: 1rem; color: var(--gold); letter-spacing: 1px;
}
.cart-item-remove {
    align-self: center; flex-shrink: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); color: var(--text-muted); transition: 0.2s;
}
.cart-item-remove:hover { background: rgba(255,51,85,0.1); color: var(--red); }

.cart-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 12px; color: var(--text-muted); font-size: 0.85rem;
}

.cart-coupon { padding: 14px 24px; border-top: 1px solid var(--border); }
.coupon-input-group { display: flex; gap: 8px; }
.coupon-input {
    flex: 1; padding: 10px 14px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-size: 0.82rem; font-family: var(--font-body);
    outline: none; transition: 0.2s;
}
.coupon-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.coupon-input::placeholder { color: var(--text-muted); }
.coupon-btn {
    padding: 10px 18px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 0.75rem; font-weight: 700;
    color: var(--text-secondary); transition: 0.2s;
}
.coupon-btn:hover { border-color: var(--accent); color: var(--accent); }
.coupon-message { margin-top: 8px; font-size: 0.75rem; }
.coupon-message.success { color: var(--accent); }
.coupon-message.error { color: var(--red); }

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}
.cart-total {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; font-weight: 500;
}
.cart-total-price {
    font-family: var(--font-display);
    font-size: 1.4rem; color: var(--gold); letter-spacing: 1px;
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed; bottom: 24px; right: 24px; z-index: 3000;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.82rem; font-weight: 600;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    animation: toastIn 0.4s var(--ease) both;
    min-width: 260px;
}
.toast.success { border-color: var(--accent); }
.toast.error { border-color: var(--red); }
.toast-icon { flex-shrink: 0; width: 20px; height: 20px; }
.toast.removing { animation: toastOut 0.3s var(--ease) both; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 56px 0 28px;
}
.footer-content {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 36px;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem; letter-spacing: 2px;
}
.footer-text { color: var(--text-muted); font-size: 0.82rem; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: var(--text-secondary); font-size: 0.82rem;
    transition: 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 20px; border-top: 1px solid var(--border);
    font-size: 0.75rem; color: var(--text-muted);
}
.footer-powered strong { color: var(--accent); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.08s; }
.product-card:nth-child(3) { animation-delay: 0.16s; }
.product-card:nth-child(4) { animation-delay: 0.24s; }
.product-card:nth-child(5) { animation-delay: 0.32s; }
.product-card:nth-child(6) { animation-delay: 0.4s; }

/* ============================================
   BURGER MENU (Mobile)
   ============================================ */
.nav-right {
    display: flex; align-items: center; gap: 8px;
}
.burger-btn {
    display: none;
    flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
    padding: 8px;
    border-radius: var(--radius);
    transition: 0.2s;
}
.burger-btn:hover { background: rgba(255,255,255,0.05); }
.burger-line {
    display: block;
    width: 100%; height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s var(--ease);
}
.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet (1024px) --- */
@media (max-width: 1024px) {
    .showcase-features { grid-template-columns: repeat(2, 1fr); }
    .products-row { grid-template-columns: repeat(2, 1fr); }
    .trust-items { gap: 24px; }
    .container { padding: 0 20px; }
}

/* --- Mobile (768px) --- */
@media (max-width: 768px) {
    /* Navbar - burger menu */
    .burger-btn { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(8, 8, 16, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px 24px;
        gap: 0;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.9rem;
    }
    .nav-link:last-child { border-bottom: none; }
    .nav-link::after { display: none; }

    /* Hero */
    .hero { min-height: 100svh; }
    .hero-content { padding: 0 16px; }
    .hero-top-tag {
        font-size: 0.55rem; letter-spacing: 2px;
        padding: 6px 16px;
    }
    .hero-title { margin: 20px 0 16px; }
    .hero-title-line1 {
        font-size: clamp(2rem, 10vw, 4rem);
        letter-spacing: 6px;
    }
    .hero-title-line2 {
        font-size: clamp(3.5rem, 16vw, 7rem);
        letter-spacing: 2px;
    }
    .hero-desc {
        font-size: 0.9rem;
        max-width: 340px;
        margin-bottom: 28px;
        line-height: 1.7;
    }
    .hero-actions { gap: 12px; }
    .btn-primary, .btn-outline {
        padding: 12px 28px;
        font-size: 0.78rem;
        width: 100%;
        justify-content: center;
    }
    .hero-indicators { margin-top: 32px; gap: 6px; }
    .indicator { width: 24px; }
    .indicator.active { width: 36px; }
    .hero-scroll { bottom: 20px; }

    /* Showcase */
    .showcase { padding: 60px 0; }
    .showcase-accent-line { height: 40px; margin-bottom: 24px; }
    .showcase-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        letter-spacing: 3px;
    }
    .showcase-subtitle {
        font-size: 0.88rem;
        margin-bottom: 36px;
        padding: 0 8px;
    }
    .showcase-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 40px;
    }
    .feature-card { padding: 20px 14px; }
    .feature-icon { width: 36px; height: 36px; margin-bottom: 10px; }
    .feature-title { font-size: 1rem; }
    .feature-desc { font-size: 0.72rem; }
    .showcase-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .cta-price-box { text-align: center; }
    .cta-price { font-size: 2.2rem; }
    .btn-xl {
        padding: 16px 36px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }

    /* Gallery */
    .gallery-main { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
    .gallery-main-overlay { padding: 12px 16px; }
    .gallery-counter { font-size: 0.8rem; }
    .gallery-nav { opacity: 1; width: 36px; height: 36px; }
    .gallery-nav svg { width: 18px; height: 18px; }
    .gallery-prev { left: 8px; }
    .gallery-next { right: 8px; }
    .gallery-thumbs { gap: 6px; }
    .thumb { width: 52px; height: 32px; border-radius: 6px; }

    /* Trust bar */
    .trust-bar { padding: 32px 0; }
    .trust-items {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .trust-item { justify-content: center; }

    /* Other products */
    .other-products { padding: 60px 0; }
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        letter-spacing: 3px;
    }
    .products-row { grid-template-columns: 1fr; gap: 16px; }
    .card-title { font-size: 1.3rem; }
    .card-desc { font-size: 0.8rem; }
    .card-price { font-size: 1.4rem; }

    /* Store */
    .store-section { padding: 40px 0 80px; }
    .categories-filter { gap: 8px; margin-bottom: 32px; }
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.68rem;
    }
    .products-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Modal */
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal {
        max-height: 95vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .modal-body { grid-template-columns: 1fr; }
    .modal-gallery { max-height: 280px; }
    .modal-gallery-nav { opacity: 1; width: 32px; height: 32px; }
    .modal-gallery-thumbs .modal-thumb { width: 44px; height: 32px; }
    .modal-info { padding: 20px; }
    .modal-title { font-size: 1.4rem; }
    .modal-price { font-size: 1.5rem; }
    .modal-description { max-height: 140px; font-size: 0.82rem; }

    /* Cart */
    .cart-sidebar { width: 100%; }
    .cart-header { padding: 16px 20px; }
    .cart-items { padding: 12px 20px; }
    .cart-coupon { padding: 12px 20px; }
    .cart-footer { padding: 16px 20px; }

    /* Footer */
    .footer { padding: 40px 0 24px; }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-links { justify-content: center; }
    .footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    /* Toast */
    .toast-container {
        bottom: 16px; right: 16px; left: 16px;
    }
    .toast {
        min-width: auto; width: 100%;
        font-size: 0.78rem;
        padding: 12px 16px;
    }
}

/* --- Small phone (480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero-title-line1 { font-size: clamp(1.8rem, 12vw, 3rem); }
    .hero-title-line2 { font-size: clamp(2.8rem, 18vw, 5rem); }
    .hero-desc { font-size: 0.82rem; }

    .showcase-features { grid-template-columns: 1fr; }
    .feature-card {
        display: flex; align-items: center; gap: 16px;
        text-align: left; padding: 18px;
    }
    .feature-icon { margin: 0; width: 40px; height: 40px; flex-shrink: 0; }
    .feature-title { margin-bottom: 2px; font-size: 0.95rem; }
    .feature-desc { font-size: 0.72rem; }

    .gallery-thumbs { flex-wrap: wrap; justify-content: center; }
    .thumb { width: 48px; height: 30px; }

    .label-line { width: 24px; }
    .label-text { font-size: 0.6rem; letter-spacing: 3px; }

    .card-image-wrap { aspect-ratio: 16 / 9; }

    .modal-close { top: 10px; right: 10px; width: 34px; height: 34px; }
}
