/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050505;
    --bg-card: #0c0c0c;
    --bg-card-hover: #141414;
    --accent: #00D632;
    --accent-bright: #00ff3c;
    --accent-dim: rgba(0, 214, 50, 0.12);
    --accent-glow: rgba(0, 214, 50, 0.25);
    --text: #ffffff;
    --text-muted: #8a8a8a;
    --text-dim: #444444;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(0, 214, 50, 0.4);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== PARTICLE CANVAS ========== */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== NAVBAR ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    transition: background 0.4s;
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.92);
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    white-space: nowrap;
    transition: all var(--transition);
}
.logo:hover { transform: scale(1.04); }
.logo-icon {
    font-size: 1.4rem;
    animation: pulse-glow 2s ease-in-out infinite;
}
.logo-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-wrapper { flex: 1; max-width: 300px; }
.search-inner {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    transition: color var(--transition);
}
#search {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}
#search::placeholder { color: var(--text-dim); }
#search:focus {
    border-color: var(--accent);
    background: rgba(0,214,50,0.04);
    box-shadow: 0 0 20px rgba(0,214,50,0.1);
}
#search:focus ~ .search-icon,
.search-inner:focus-within .search-icon { color: var(--accent); }

.nav-links { display: flex; gap: 4px; }
.nav-link {
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    opacity: 0;
    border-radius: inherit;
    transition: opacity var(--transition);
    z-index: -1;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::before { opacity: 0.08; }
.nav-link.active {
    color: #000;
    font-weight: 700;
}
.nav-link.active::before { opacity: 1; }

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 80px;
    overflow: hidden;
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(0,214,50,0.12) 0%, rgba(0,214,50,0.03) 40%, transparent 70%);
    pointer-events: none;
    animation: glow-pulse 4s ease-in-out infinite;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 28px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: dot-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-glow);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #00ff88 50%, var(--accent-bright) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--accent);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 100px;
    transition: all var(--spring);
    letter-spacing: -0.3px;
    position: relative;
    overflow: hidden;
}
.cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.cta-btn:hover::after { transform: translateX(100%); }
.cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(0,214,50,0.35), 0 0 80px rgba(0,214,50,0.15);
}
.cta-btn:active { transform: translateY(-1px) scale(0.98); }
.cta-btn svg { transition: transform 0.3s; }
.cta-btn:hover svg { transform: translateY(3px); }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}
.stat { text-align: center; }
.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text);
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* ========== CATEGORIES ========== */
.categories-section {
    padding: 0 0 80px;
    position: relative;
    z-index: 1;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 24px;
    text-align: center;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--spring);
    overflow: hidden;
}
.cat-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.cat-card:hover .cat-glow { opacity: 1; }
.cat-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 50px rgba(0,214,50,0.12), 0 0 0 1px var(--border-hover);
}
.cat-icon {
    font-size: 2.2rem;
    transition: transform var(--spring);
}
.cat-card:hover .cat-icon { transform: scale(1.2) rotate(-5deg); }
.cat-label { font-weight: 700; font-size: 0.9rem; }
.cat-count {
    font-size: 0.7rem;
    color: var(--text-dim);
    font-weight: 600;
    padding: 2px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 100px;
}

/* ========== PRODUCTS ========== */
.products-section {
    padding: 20px 0 100px;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.product-count {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 4px;
    font-weight: 500;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

/* ========== PRODUCT CARD ========== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--spring);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: card-appear 0.5s ease forwards;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: var(--border-hover);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.4),
        0 0 40px rgba(0,214,50,0.08),
        inset 0 1px 0 rgba(0,214,50,0.1);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,214,50,0.3);
    animation: badge-shine 3s ease-in-out infinite;
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
}
.product-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-card), transparent);
    z-index: 1;
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-info {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 8px;
    opacity: 0.7;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
    flex: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-rating {
    display: flex;
    gap: 2px;
}
.star {
    color: var(--accent);
    font-size: 0.8rem;
    opacity: 0.9;
}
.star.half { opacity: 0.5; }
.star.empty { opacity: 0.15; }

.buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent) 0%, #00c02e 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--spring);
    letter-spacing: -0.2px;
    position: relative;
    overflow: hidden;
}
.buy-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s;
}
.buy-btn:hover::before { left: 100%; }
.buy-btn:hover {
    box-shadow: 0 6px 25px rgba(0,214,50,0.35);
    transform: translateY(-2px);
}
.buy-btn:active { transform: translateY(0); }

/* ========== FOOTER ========== */
footer {
    border-top: 1px solid var(--border);
    padding: 50px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer-logo {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 12px;
    opacity: 0.3;
}
.disclaimer {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 6px;
}
.footer-sub {
    color: var(--text-dim);
    font-size: 0.68rem;
}

/* ========== NO RESULTS ========== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-dim);
    font-size: 1.1rem;
}
.no-results-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* ========== ANIMATIONS ========== */
@keyframes glow-pulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.05); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(0,214,50,0.4)); }
    50% { filter: drop-shadow(0 0 12px rgba(0,214,50,0.7)); }
}

@keyframes scroll-bounce {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes card-appear {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes badge-shine {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,214,50,0.3); }
    50% { box-shadow: 0 4px 25px rgba(0,214,50,0.5); }
}

@keyframes count-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animate-in classes */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: card-appear 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-container { flex-wrap: wrap; height: auto; padding: 12px 0; }
    .search-wrapper { order: 3; max-width: 100%; flex-basis: 100%; margin-top: 8px; }
    .nav-links {
        order: 4; flex-basis: 100%;
        overflow-x: auto; padding: 8px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .hero { min-height: 70vh; padding: 80px 20px 60px; }
    .hero-title { letter-spacing: -1.5px; }
    .hero-actions { flex-direction: column; gap: 24px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-info { padding: 14px; }
    .product-name { font-size: 0.88rem; }
    .product-price { font-size: 1.05rem; }
    .hero-stats { gap: 14px; }
    .stat-num { font-size: 1.4rem; }
}
