:root {
    --bg: #0a0908;
    --bg-2: #11100e;
    --fg: #ece8df;
    --mute: #6f6a5e;
    --line: #1f1d1a;
    --accent: #3a5fb5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
html { scrollbar-width: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }

body {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
}

::selection { background: var(--accent); color: var(--fg); }

a { color: inherit; text-decoration: none; }

/* TOP NAV */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mute);
    background: linear-gradient(to bottom, rgba(10,9,8,0.92), transparent);
}

.topbar .brand { color: var(--fg); display: flex; align-items: center; gap: 10px; }
.topbar .brand .logo {
    font-family: 'Anton', sans-serif;
    font-size: 18px;
    letter-spacing: -0.02em;
    line-height: 1;
}

.topbar .brand .logo .d {
    display: inline-block;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 3px;
    vertical-align: top;
    margin-top: 3px;
}

.topbar nav { display: flex; gap: 22px; align-items: center; position: absolute; left: 50%; transform: translateX(-50%); }
.topbar nav a { position: relative; padding: 4px 0; }
.topbar nav a.active { color: var(--fg); }
.topbar nav a.active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 1px; background: var(--accent);
}

.topbar nav a:hover { color: var(--fg); }
.topbar .cart {
    color: var(--fg);
    border: 1px solid var(--line);
    padding: 6px 10px;
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.topbar .cart:hover { background: var(--fg); color: var(--bg); }
.topbar .cart .n { color: var(--accent); }
.topbar .cart:hover .n { color: var(--bg); }

main { padding: 80px 56px 40px; max-width: 1360px; margin: 0 auto; }

/* HERO — compact, top-left */
.hero {
    padding: 40px 0 24px;
    border-bottom: 1px solid var(--line);
    max-width: 560px;
}

.hero .crumb {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 14px;
}

.hero .crumb span { color: var(--fg); }
.hero h1 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.hero h1 .it {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    text-transform: lowercase;
    font-size: 0.7em;
    letter-spacing: 0;
    margin-left: 0.15em;
}

.hero .lead {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--mute);
    line-height: 1.45;
    max-width: 480px;
}

.hero .lead em {
    color: var(--accent);
    font-style: italic;
}

/* TICKER */
.ticker {
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mute);
}

.ticker-track {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll 70s linear infinite;
}

.ticker-track span .dot {
    display: inline-block;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    margin: 0 16px 2px;
    vertical-align: middle;
}

@keyframes scroll { to { transform: translateX(-50%); } }

/* FILTER BAR */
.filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 16px;
}

.filter .cats {
    display: flex;
    gap: 0;
    border: 1px solid var(--line);
}

.filter .cats button {
    background: transparent;
    color: var(--mute);
    border: none;
    border-right: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter .cats button:last-child { border-right: none; }
.filter .cats button:hover { color: var(--fg); }
.filter .cats button.active { background: var(--fg); color: var(--bg); }

.filter .cats button .count {
    font-size: 9px;
    opacity: 0.6;
}

.filter .right {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
}

.filter .right .sort { color: var(--fg); cursor: pointer; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.filter .right .sort:hover { border-color: var(--accent); }

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 24px;
    padding: 40px 0 60px;
}

.product { position: relative; cursor: pointer; }

.product .img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--bg-2);
    overflow: hidden;
    border: 1px solid var(--line);
}

.product .img {
    width: 100%; height: 100%;
    filter: grayscale(1) contrast(1.05) brightness(0.85);
    transition: filter 0.4s, transform 0.6s;
}

.product:hover .img {
    filter: grayscale(0) contrast(1) brightness(1);
    transform: scale(1.02);
}

.product .img svg { display: block; width: 100%; height: 100%; }

.product .badge {
    position: absolute;
    top: 10px; left: 10px;
    font-size: 9px;
    letter-spacing: 0.18em;
    padding: 3px 6px;
    color: var(--fg);
    background: var(--accent);
}

.product .badge.sold { background: var(--mute); }
.product .badge.low  { background: transparent; border: 1px solid var(--fg); }

.product .quick {
    position: absolute;
    inset: auto 10px 10px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s;
}

.product:hover .quick { opacity: 1; transform: translateY(0); }

.product .quick button {
    flex: 1;
    background: var(--fg);
    color: var(--bg);
    border: none;
    padding: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.product .quick button:hover { background: var(--accent); color: var(--fg); }
.product .quick button.icon { flex: 0 0 38px; padding: 0; }

.product .meta {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 6px;
}

.product .meta .name {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg);
}

.product .meta .name .cat {
    color: var(--mute);
    margin-right: 6px;
}

.product .meta .price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--fg);
    font-variant-numeric: tabular-nums;
}

.product .sub {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
    margin-top: 2px;
}

/* FEATURED ROW */
.featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    padding: 50px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.featured .card {
    position: relative;
    padding: 32px 28px;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--bg-2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.3s;
}

.featured .card:hover { background: #15130f; }

.featured .card .bg {
    position: absolute; inset: 0;
    z-index: 0;
    opacity: 0.55;
    filter: grayscale(0.4);
    transition: opacity 0.4s;
}

.featured .card:hover .bg { opacity: 0.8; }
.featured .card .bg svg { width: 100%; height: 100%; display: block; }
.featured .card > * { position: relative; z-index: 1; }

.featured .card .kicker {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mute);
}

.featured .card h3 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 0.92;
    letter-spacing: -0.01em;
    max-width: 80%;
}

.featured .card h3 .it {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    color: var(--accent);
    font-size: 0.7em;
    text-transform: lowercase;
    letter-spacing: 0;
}

.featured .card .foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
}

.featured .card .foot .price { color: var(--fg); font-size: 12px; }

.featured .card .arrow {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 30px;
    color: var(--fg);
    transition: transform 0.3s;
}

.featured .card:hover .arrow { transform: translateX(6px); }

/* CTA BOTTOM */
.cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 50px 0 40px;
}

.cta a {
    padding: 50px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    transition: background 0.3s;
}

.cta a:first-child { border-right: 1px solid var(--line); }
.cta a:hover { background: var(--bg-2); }

.cta .kicker {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mute);
}

.cta .label {
    font-family: 'Anton', sans-serif;
    font-size: 72px;
    line-height: 0.9;
}

.cta .label .it {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    color: var(--accent);
    text-transform: lowercase;
}

.cta .bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
}

.cta .arrow {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 30px;
    color: var(--fg);
    transition: transform 0.3s;
}

.cta a:hover .arrow { transform: translateX(8px); }

footer.foot-strip {
    display: flex;
    justify-content: space-between;
    position: relative;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
    padding-bottom: 20px;
}
footer.foot-strip span:nth-child(2) {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* CART DRAWER */
.scrim {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed;
    top: 0; right: 0;
    width: 420px;
    max-width: 92vw;
    height: 100vh;
    background: var(--bg);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.drawer .head h4 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: 28px;
    letter-spacing: -0.01em;
}

.drawer .head .x {
    cursor: pointer;
    color: var(--mute);
    font-size: 18px;
    transition: color 0.2s;
}

.drawer .head .x:hover { color: var(--fg); }

.drawer .items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 24px;
}

.drawer .item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

.drawer .item .thumb {
    width: 60px; height: 75px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    overflow: hidden;
}

.drawer .item .thumb svg { width: 100%; height: 100%; display: block; filter: grayscale(1); }

.drawer .item .info .n {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg);
}

.drawer .item .info .s {
    font-size: 10px;
    color: var(--mute);
    margin-top: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.drawer .item .qty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--mute);
    margin-top: 6px;
}

.drawer .item .qty button {
    background: transparent;
    color: var(--mute);
    border: 1px solid var(--line);
    width: 20px; height: 20px;
    cursor: pointer;
    font-size: 11px;
}

.drawer .item .qty button:hover { color: var(--fg); border-color: var(--fg); }
.drawer .item .qty span { color: var(--fg); min-width: 16px; text-align: center; }
.drawer .item .price { font-size: 12px; color: var(--fg); font-variant-numeric: tabular-nums; }

.drawer .empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--mute);
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 22px;
}

.drawer .empty span { color: var(--accent); }

.drawer .totals {
    padding: 22px 24px;
    border-top: 1px solid var(--line);
}

.drawer .totals .row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
}

.drawer .totals .row.total {
    font-family: 'Anton', sans-serif;
    font-size: 22px;
    color: var(--fg);
    letter-spacing: 0;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.drawer .totals .row.total span:last-child { color: var(--fg); }

.drawer .totals button.checkout {
    margin-top: 16px;
    width: 100%;
    background: var(--accent);
    color: var(--fg);
    border: none;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.drawer .totals button.checkout:hover { background: var(--fg); color: var(--bg); }

/* anims */
.anim-1, .anim-2, .anim-3 { opacity: 0; transform: translateY(8px); }
.reveal .anim-1 { animation: fadeUp 0.7s 0.1s ease-out forwards; }
.reveal .anim-2 { animation: fadeUp 0.7s 0.35s ease-out forwards; }
.reveal .anim-3 { animation: fadeUp 0.7s 0.6s ease-out forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* NARROW LAPTOPS ≤1440 */
@media (max-width: 1440px) {
    main { padding: 76px 40px 32px; }
    .grid { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; padding: 32px 0 50px; }
    .cta a { padding: 40px 28px; min-height: 180px; }
    .cta .label { font-size: 56px; }
    .topbar nav { gap: 16px; }
}

@media (max-width: 1280px) {
    main { padding: 72px 28px 28px; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
    .hero h1 { font-size: 38px; }
    .cta .label { font-size: 46px; }
    .filter { padding: 22px 0; }
    .filter .cats button { padding: 8px 12px; font-size: 10px; }
}
