:root {
    --bg: #050505;
    --green: #00ff9c;
    --border: rgba(0, 255, 156, 0.2);
}

* {
    box-sizing: border-box;
    transition: width 0.35s ease,
        max-width 0.35s ease,
        margin 0.35s ease,
        margin-left 0.35s ease,
        margin-right 0.35s ease,
        padding 0.35s ease,
        gap 0.35s ease,
        font-size 0.35s ease,
        opacity 0.35s ease;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--green);
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    position: relative;
    font-size: clamp(0.85rem, 1.2vw, 1rem)
}

body.resizing * {
    transition: none;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(0,0,0,1);
    border-bottom: 1px solid var(--border);
}

.logo {
    letter-spacing: 2px;
}

.logo a {
    text-decoration: none;
    color: var(--green);
}

.nav-status {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* LIVE BANNER */
.live-banner {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background-color: rgba(0,0,0,1);
    padding: 6px 0;
    position: fixed;
    z-index: 9;
}

#ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll 170s linear infinite;
    font-size: 0.85rem;
    opacity: 0.8;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* MOBILE TICKER */
@media screen and (max-width: 1430px) {
    #ticker {
        font-size: 0.75rem;
        padding-left: 50%;
        animation: scroll 190s linear infinite;
    }
}

/* MATRIX RAIN */
#matrix {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #050505;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
}

.product-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 120px;
    padding: 0 20px;
    opacity: 0.99;
}

.product-images {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;

}

.product-images img {
    max-width: 300px;
    border: 1px solid var(--border);
    box-shadow: 0 0 20px rgba(0,255,156,0.05);
    opacity: 0.99;
}

.product-info {
    max-width: 600px;
    text-align: center;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.product-info ul {
    text-align: left;
    margin: 10px 0 20px 0;
    list-style:inside;
}

.product-details {
    border: 1px solid var(--border);
    padding: 20px;
    background-color: rgba(0,0,0,0.85);
    box-shadow: 0 0 20px rgba(0,255,156,0.05);
    z-index: 2;
}

.text {
    max-width: 500px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.buy-btn {
    color: var(--green);
    background: rgba(0, 0, 0, 0.85);
    border:1px solid var(--border);
    padding:8px 12px;
    border-radius:6px;
    cursor:pointer;
    text-decoration: none;
}

.buy-btn:hover { 
    background:#2a2a2a;
}

.buy-btn:focus-within { 
    outline:2px solid #555;
}

/* GRID NODES */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 20px 20px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    margin-top: 100px;
}

.node {
    border: 1px solid var(--border);
    padding: 20px;
    background-color: rgba(0,0,0,0.85);
    box-shadow: 0 0 20px rgba(0,255,156,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.node:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(0,255,156,0.15);
}

.node h3 {
    margin-top: 0;
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    letter-spacing: 1px;
}

.node p {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem);
    opacity: 0.8;
}

/* SCANLINES */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    mix-blend-mode: overlay;
    z-index: 1;
}
