:root {
    --bg: #050505;
    --bg-surface: #111111;
    --text: #e5e5e5;
    --text-dim: #888888;
    --neon: #00ffcc;
    --neon-dim: rgba(0, 255, 204, 0.2);
    --border: #333333;
}

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

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 255, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 2px;
}

.brand span {
    color: var(--neon);
}

.back-btn {
    position: absolute;
    left: 24px;
    color: var(--neon);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    transition: text-shadow 0.3s;
}

.back-btn:hover {
    text-shadow: 0 0 8px var(--neon);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
}

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.glitch {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    20% { clip: rect(65px, 9999px, 16px, 0); }
    40% { clip: rect(43px, 9999px, 5px, 0); }
    60% { clip: rect(78px, 9999px, 90px, 0); }
    80% { clip: rect(20px, 9999px, 40px, 0); }
    100% { clip: rect(89px, 9999px, 55px, 0); }
}

.hero-sub {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 50px;
}

.btn-neon {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--neon);
    color: var(--neon);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    background: transparent;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--neon-dim), inset 0 0 10px var(--neon-dim);
    position: relative;
    overflow: hidden;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--neon);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-neon:hover {
    color: var(--bg);
    box-shadow: 0 0 20px var(--neon), inset 0 0 20px var(--neon);
}

.btn-neon:hover::before {
    left: 0;
}

/* Products Section */
.products {
    padding: 60px 0 100px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--neon);
}

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

.product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    position: relative;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--neon);
    transition: width 0.4s ease;
}

.product-card:hover {
    border-color: var(--neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px var(--neon-dim);
}

.product-card:hover::after {
    width: 100%;
}

.img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.product-card:hover .img-box img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-price {
    margin-top: auto;
    font-size: 22px;
    font-weight: 700;
    color: var(--neon);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-arrow {
    font-size: 24px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.product-card:hover .icon-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Detail Page */
.detail-main {
    padding: 60px 0 100px;
}

.detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 40px;
}

@media (min-width: 900px) {
    .detail-wrapper {
        flex-direction: row;
        align-items: center;
        padding: 60px;
    }
}

.detail-img-box {
    flex: 1;
    position: relative;
}

.detail-img-box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--neon);
    z-index: 0;
}

.detail-img-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 1;
    filter: contrast(1.1);
}

.detail-data {
    flex: 1;
}

.detail-data h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.detail-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--neon);
    margin-bottom: 30px;
    font-family: monospace;
}

.detail-data p {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn-solid {
    display: inline-block;
    padding: 20px 50px;
    background: var(--neon);
    color: var(--bg);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-solid:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--neon);
}

/* Footer */
footer {
    padding: 30px 0;
    border-top: 1px dashed var(--border);
    color: var(--text-dim);
    font-family: monospace;
    font-size: 14px;
}

@media (max-width: 768px) {
    .glitch { font-size: 40px; }
}
