/* =========================================================
   Macchina Mods — shared stylesheet
   Edit colors, fonts and spacing here in one place.
   ========================================================= */

/* ---- 0. Self-hosted fonts (no Google round-trip = no flicker) ---- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("assets/fonts/inter.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("assets/fonts/archivo.woff2") format("woff2");
}
@font-face {
  font-family: "Orbitron"; font-style: normal; font-weight: 400 900;
  font-display: swap; src: url("assets/fonts/orbitron.woff2") format("woff2");
}

/* ---- 1. Design tokens (your "settings") ---- */
:root {
  --bg:        #05060f;   /* deep space background  */
  --surface:   #111525;   /* cards / panels         */
  --surface-2: #1a1f33;   /* hover / borders        */
  --text:      #f4f4f8;   /* main text              */
  --muted:     #9aa0c0;   /* secondary text         */
  --accent:    #22d3ee;   /* electric cyan          */
  --accent-2:  #a855f7;   /* nebula purple          */
  --border:    #242a45;
  --radius:    14px;
  --maxw:      1140px;
  --shadow:    0 10px 40px rgba(0,0,0,.55);
}

/* ---- 2. Base / reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html { background: var(--bg); }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: transparent;            /* let the starfield show through */
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Space theme — fixed background layers behind all content
   ========================================================= */

/* Nebula clouds */
html::before {
  content: ""; position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background:
    radial-gradient(1000px 700px at 15% -5%,  rgba(168,85,247,.20), transparent 60%),
    radial-gradient(900px 600px at 90% 15%,   rgba(34,211,238,.16), transparent 60%),
    radial-gradient(800px 700px at 60% 100%,  rgba(99,102,241,.18), transparent 60%),
    var(--bg);
}

/* Twinkling starfield (two tiled layers for depth) */
html::after {
  content: ""; position: fixed; inset: -10%; z-index: -9; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px,  #ffffff, transparent),
    radial-gradient(1.2px 1.2px at 130px 80px, #cfe9ff, transparent),
    radial-gradient(1px 1px   at 90px 140px,   #ffffff, transparent),
    radial-gradient(1.6px 1.6px at 220px 50px, #ffffff, transparent),
    radial-gradient(1px 1px   at 300px 180px,  #d6c8ff, transparent),
    radial-gradient(1.2px 1.2px at 250px 250px,#ffffff, transparent),
    radial-gradient(1px 1px   at 40px 220px,   #bfe6ff, transparent);
  background-size: 340px 340px;
  animation: twinkle 5.5s ease-in-out infinite;
}

/* Larger, brighter stars that drift slowly (parallax) */
body::before {
  content: ""; position: fixed; inset: -10%; z-index: -8; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 60px 60px,   rgba(255,255,255,.95), transparent),
    radial-gradient(2.4px 2.4px at 200px 160px, rgba(180,220,255,.9), transparent),
    radial-gradient(2px 2px at 380px 280px, rgba(255,255,255,.85), transparent),
    radial-gradient(2.2px 2.2px at 320px 90px,  rgba(225,200,255,.9), transparent);
  background-size: 520px 520px;
  animation: drift 90s linear infinite;
}

/* An occasional shooting star */
body::after {
  content: ""; position: fixed; top: 10%; left: 80%; z-index: -7; pointer-events: none;
  width: 130px; height: 2px; border-radius: 2px;
  /* bright head on the LEFT (leading edge), tail fades to the right */
  background: linear-gradient(90deg, #fff, rgba(255,255,255,.6) 12%, transparent);
  box-shadow: 0 0 8px rgba(255,255,255,.7);
  opacity: 0; transform: translate(0,0) rotate(-22deg);
  animation: shoot 10s ease-in infinite;
}
/* extra shooting stars injected by script.js — same streak, scattered timing/position */
.shooting-star {
  position: fixed; z-index: -6; pointer-events: none;
  width: 130px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #fff, rgba(190,225,255,.75) 14%, transparent);
  box-shadow: 0 0 12px 1px rgba(255,255,255,.85);
  opacity: 0; transform: translate(0,0) rotate(-22deg);
  animation: shoot 10s ease-in infinite;
}

@keyframes twinkle { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes drift   { from { transform: translate3d(0,0,0); } to { transform: translate3d(-60px,-40px,0); } }
@keyframes shoot {
  0%       { opacity: 0; transform: translate(0,0) rotate(-22deg); }
  2%       { opacity: 1; }
  10%      { opacity: 1; }
  16%      { opacity: 0; transform: translate(-360px,145px) rotate(-22deg); }
  100%     { opacity: 0; transform: translate(-360px,145px) rotate(-22deg); }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  html::after, body::before, body::after { animation: none; }
  body::after, .shooting-star { display: none; }
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 { font-family: "Archivo", system-ui, sans-serif; }
h1,h2,h3 { line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; }

.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---- 3. Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06060a;
  box-shadow: 0 8px 24px rgba(34,211,238,.25);
}
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- 4. Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;                 /* see-through at the top of the page */
  border-bottom: 1px solid transparent;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* glowing gradient underline that fades in on scroll */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0; transition: opacity .3s ease;
}
/* frosted glass once the page is scrolled (toggled by script.js) */
.site-header.scrolled {
  background: rgba(8,9,18,.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 6px 30px rgba(0,0,0,.35);
}
.site-header.scrolled::after { opacity: .9; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: "Orbitron", system-ui, sans-serif; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px var(--accent); }
.brand img.logo { width: 34px; height: 34px; border-radius: 8px; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }
/* Shop nav hover mega-menu */
.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 500px; max-width: 92vw; padding: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
/* invisible bridge so the cursor can travel from link to panel without closing it */
.nav-dd-panel::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dd-title { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin: .1rem .2rem .7rem; }
.nav-dd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.nav-dd-card { display: flex; flex-direction: column; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .5rem; transition: border-color .15s ease, transform .15s ease; }
.nav-dd-card:hover { border-color: #3a4170; transform: translateY(-2px); }
.nav-dd-thumb { display: block; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: #161a2e; margin-bottom: .5rem; }
.nav-dd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-dd-name { display: block; font-size: .85rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.nav-dd-price { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.nav-dd-all { display: inline-block; margin: .85rem .2rem 0; font-size: .85rem; font-weight: 600; color: var(--accent); }
.nav-dd-all:hover { color: var(--accent); filter: brightness(1.15); }
@media (max-width: 860px) {
  /* Shop becomes a tap-to-expand dropdown inside the mobile menu, styled like the hover box */
  .nav-links .nav-dd > a { display: flex; align-items: center; justify-content: space-between; }
  .nav-dd > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; opacity: .65; margin-left: .5rem; }
  .nav-dd.nav-dd-open > a::after { transform: rotate(-135deg); }
  .nav-dd-panel {
    position: static; transform: none !important;
    width: auto; max-width: none; margin: .2rem 24px 1.1rem;
    opacity: 1; visibility: visible; pointer-events: auto;
    display: none; box-shadow: none;
  }
  .nav-dd.nav-dd-open .nav-dd-panel { display: block; padding: .9rem; }
  .nav-dd-panel::before { display: none; }
  .nav-dd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .nav-dd-card { padding: .4rem; }
  .nav-dd-name { font-size: .78rem; line-height: 1.2; }
  .nav-dd-price { font-size: .72rem; }
  .nav-links.open.dd-expanded { max-height: 100vh; }
}

/* ---- 5. Hero ---- */
.hero { position: relative; padding: clamp(4rem, 10vw, 8rem) 0; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 -220px 0; z-index: -2;
  background:
    radial-gradient(600px 300px at 70% 10%, rgba(168,85,247,.22), transparent 60%),
    radial-gradient(500px 340px at 15% 72%, rgba(34,211,238,.18), transparent 65%);
}
/* two-column hero: copy on the left, planet on the right */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem; }
.hero-copy { max-width: 620px; }

/* CSS black hole */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 360px; perspective: 800px; }
.blackhole {
  width: clamp(150px, 18vw, 230px); aspect-ratio: 1; border-radius: 50%;
  position: relative; animation: float 7s ease-in-out infinite;
  /* pure-black event horizon with a hot glowing rim */
  background: radial-gradient(circle at 50% 50%, #000 0%, #000 52%, #07060f 66%, transparent 70%);
  box-shadow:
    0 0 4px 2px rgba(0,0,0,.9),
    0 0 18px 5px rgba(34,211,238,.45),
    0 0 60px 10px rgba(168,85,247,.30);
}
/* bright photon ring hugging the horizon */
.blackhole::before {
  content: ""; position: absolute; inset: -4%; border-radius: 50%;
  box-shadow:
    inset 0 0 12px 2px rgba(120,235,255,.65),
    0 0 16px 1px rgba(120,235,255,.45);
  z-index: 2;
}
/* tilted, spinning accretion disk */
.blackhole::after {
  content: ""; position: absolute; inset: -42% -78%; border-radius: 50%;
  background: conic-gradient(from 210deg,
    rgba(34,211,238,0), #22d3ee 18%, #a855f7 42%, #ff8a4c 60%, #22d3ee 86%, rgba(34,211,238,0));
  -webkit-mask: radial-gradient(closest-side, transparent 54%, #000 59%, #000 82%, transparent 88%);
          mask: radial-gradient(closest-side, transparent 54%, #000 59%, #000 82%, transparent 88%);
  transform: rotateX(72deg) rotate(0deg);
  filter: blur(3px) saturate(150%) brightness(1.05);
  animation: disk-spin 16s linear infinite;
}
@keyframes disk-spin {
  from { transform: rotateX(72deg) rotate(0deg); }
  to   { transform: rotateX(72deg) rotate(360deg); }
}
/* computer parts spiralling into the hole (disk squashed into an ellipse) */
.hero-visual .orbit {
  position: absolute; inset: 0;
  transform: scaleY(.46);
  pointer-events: none;
}
.hero-visual .part {
  position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  /* ease-in = the part accelerates as gravity pulls it toward the core */
  animation: suck-in 5.4s cubic-bezier(.45, 0, .85, .4) infinite;
  animation-delay: var(--d, 0s);
}
.hero-visual .pi {
  display: grid; place-items: center; width: 100%; height: 100%;
  transform: scaleY(2.174);             /* undo the disk's vertical squash */
  border-radius: 11px;
  background: rgba(17,21,37,.78);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: #ffffff;
  /* heat up (cyan -> violet -> orange) as it falls toward the singularity */
  animation: heat 5.4s linear infinite;
  animation-delay: var(--d, 0s);
}
.hero-visual .pi svg {
  width: 22px; height: 22px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.4));
}
/* spiral inward: appear at the rim, grow into the disk, then get crushed to a bright mote */
@keyframes suck-in {
  0%   { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) scale(.45); }
  9%   { opacity: 1; transform: rotate(calc(var(--a) + 48deg)) translateX(calc(var(--r) * .92)) rotate(calc(-1 * var(--a) - 48deg)) scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--a) + 640deg)) translateX(0px) rotate(calc(-1 * var(--a) - 640deg)) scale(.04); }
}
/* glow shifts from cool cyan to hot orange and flares as it's consumed */
@keyframes heat {
  0%, 45% { box-shadow: 0 0 14px rgba(34,211,238,.25);  border-color: var(--border); }
  78%     { box-shadow: 0 0 18px rgba(168,85,247,.6);   border-color: rgba(168,85,247,.55); }
  100%    { box-shadow: 0 0 30px rgba(255,168,76,.95);  border-color: rgba(255,168,76,.9); filter: brightness(1.7); }
}
/* wispy "wind" — gas/debris streaks dragged into the hole behind the parts */
.hero-visual .wind {
  position: absolute; top: 50%; left: 50%;
  width: 84px; height: 2px; margin: -1px 0 0 -42px;
  border-radius: 2px;
  /* bright head points toward the core, tail fades outward */
  background: linear-gradient(90deg, rgba(170,228,255,.6), rgba(170,228,255,0) 78%);
  filter: blur(.4px);
  animation: wind-in 2.6s cubic-bezier(.4, 0, .9, .5) infinite;
  animation-delay: var(--wd, 0s);
}
/* sweep inward along a slight spiral while stretching out like a gust */
@keyframes wind-in {
  0%   { opacity: 0; transform: rotate(var(--a)) translateX(var(--r)) scaleX(.6); }
  16%  { opacity: .6; }
  100% { opacity: 0; transform: rotate(calc(var(--a) + 40deg)) translateX(8px) scaleX(1.35); }
}

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin  { from { transform: rotate(0); } to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .blackhole, .blackhole::after, .hero-visual .orbit, .hero-visual .pi { animation: none; }
  .hero-visual .wind { animation: none; display: none; }
  .hero-visual .part {
    animation: none; opacity: 1;
    transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; order: -1; }
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; margin-bottom: 1.4rem;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: .82rem; color: var(--muted); letter-spacing: .04em;
}
.hero .eyebrow .bolt { width: .95em; height: 1.05em; display: block; animation: bolt-rainbow 6s linear infinite; }
@keyframes bolt-rainbow { to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero .eyebrow .bolt { animation: none; } }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; margin: 1.5rem 0 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- 6. Sections ---- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 620px; margin-bottom: 3rem; }
.section-head p { color: var(--muted); margin-top: .8rem; }

/* ---- 7. Product / feature grid ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: rgba(17, 21, 37, .72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }

/* product card */
.product .thumb {
  aspect-ratio: 4 / 3; border-radius: 10px; margin-bottom: 1.2rem; overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), #0d0d14);
  display: grid; place-items: center; color: var(--muted); font-size: .85rem;
  border: 1px solid var(--border);
}
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product .thumb img.contain { object-fit: contain; padding: 8%; }
/* image placeholders (until real product photos are added) */
.thumb .ph { text-align: center; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.thumb .ph .pic { display: block; margin: 0 auto .5rem; opacity: .65; }
.thumb .ph .pic svg { width: 46px; height: 46px; }
.giftcard { aspect-ratio: 8 / 5; display: grid; place-items: center; text-align: center; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06121a; }
.giftcard .gc-amt { font-family: "Archivo", system-ui, sans-serif; font-weight: 900; font-size: 1.7rem; line-height: 1; }
.giftcard .gc-sub { font-size: .72rem; font-weight: 700; opacity: .8; margin-top: .35rem; letter-spacing: .06em; text-transform: uppercase; }
.product h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.product .specs { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.product .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product .price { font-size: 1.35rem; font-weight: 700; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; padding: .25rem .6rem; border-radius: 6px;
  background: rgba(34,211,238,.12); color: var(--accent); margin-bottom: 1rem;
  align-self: flex-start;
}
.tag.drop { background: rgba(168,85,247,.14); color: #c98bff; }
.tag.new { background: linear-gradient(135deg,#22d3ee,#a855f7); color: #06121a; }
.tag + .tag { margin-left: .4rem; }
/* "New arrival" sticker overlaid on the product image (top-left) */
.product .thumb { position: relative; }
.pd-media { position: relative; }
.thumb > .tag.new, .pd-media > .tag.new { position: absolute; top: 10px; left: 10px; z-index: 3; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.product h3 a { color: inherit; }
.product h3 a:hover { color: var(--accent); }

/* ---- Shop category filter ---- */
.shop-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  border-radius: 999px; padding: .55rem 1.3rem; font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease; }
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06121a; border-color: transparent; }
.grid .product.hidden { display: none; }

/* ---- Product detail page ---- */
.back-link { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--accent); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pd-media { aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), #0d0d14); display: grid; place-items: center; }
.pd-media .ph { text-align: center; color: var(--muted); font-size: .85rem; }
.pd-media .ph .pic { display: block; margin: 0 auto .5rem; opacity: .55; }
.pd-media .ph .pic svg { width: 64px; height: 64px; }
/* product image slider */
.pd-slider { position: relative; width: 100%; height: 100%; }
.pd-slides { display: flex; height: 100%; transition: transform .35s ease; }
.pd-slide { min-width: 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: rgba(15,19,34,.65); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); transition: background .15s; z-index: 2; }
.pd-arrow:hover { background: rgba(15,19,34,.95); }
.pd-prev { left: 10px; }
.pd-next { right: 10px; }
.pd-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 2; }
.pd-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(242,243,250,.45); cursor: pointer; transition: background .15s, transform .15s; }
.pd-dot.is-active { background: var(--text); transform: scale(1.2); }
.pd-slider.is-single .pd-arrow, .pd-slider.is-single .pd-dots { display: none; }
/* cookie consent banner */
.cookie-banner{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:120;width:calc(100% - 32px);max-width:760px;background:#161a2b;border:1px solid #2a3052;border-radius:14px;padding:16px 18px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;box-shadow:0 14px 44px rgba(0,0,0,.5);}
.cookie-banner p{margin:0;flex:1 1 280px;font-size:.88rem;color:#9aa0c0;line-height:1.55;}
.cookie-banner a{color:#f2f3fa;text-decoration:underline;}
.cookie-banner .cb-actions{display:flex;gap:8px;flex-shrink:0;}
.cookie-banner .cb-actions .btn{padding:9px 20px;font-size:.85rem;}
@media(max-width:560px){.cookie-banner{flex-direction:column;align-items:stretch;}.cookie-banner .cb-actions{justify-content:flex-end;}}
.pd-info h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: .7rem 0 .3rem; }
.pd-price { font-size: 1.8rem; font-weight: 700; margin-bottom: 1.3rem; }
.pd-desc { color: var(--muted); margin-bottom: 1.4rem; }
.pd-specs { list-style: none; display: grid; gap: .6rem; margin: 0 0 1.8rem; border-top: 1px solid var(--border); padding-top: 1.3rem; }
.pd-specs li { display: flex; gap: 1rem; font-size: .95rem; }
.pd-specs li span { color: var(--muted); min-width: 92px; }
.pd-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pd-note { color: var(--muted); font-size: .85rem; }
/* product option selector (e.g. GPU choice) */
.pd-options { margin: 0 0 1.8rem; }
.pd-opt-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem; }
.opt-group { display: flex; gap: .7rem; flex-wrap: wrap; }
.opt { cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt span { display: block; padding: .65rem 1.1rem; border: 1px solid var(--border); border-radius: 10px;
  font-size: .92rem; font-weight: 600; color: var(--text); transition: border-color .15s ease, background .15s ease, color .15s ease; }
.opt input:checked + span { border-color: var(--accent); background: rgba(34,211,238,.12); color: var(--accent); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; gap: 1.8rem; } }

/* feature card (icons) */
.feature .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(168,85,247,.18)); font-size: 1.25rem;
  font-family: "Archivo", system-ui, sans-serif; font-weight: 800; color: var(--text); }
.feature .ico svg { width: 24px; height: 24px; }
.info-list .ico svg { width: 22px; height: 22px; color: var(--accent); display: block; }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---- 8. Logos strip ---- */
.logos { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos .row { display: flex; flex-wrap: wrap; gap: 1.8rem 3.2rem; align-items: center; justify-content: center; }
.logos .row img {
  width: auto; height: auto; max-height: 38px; max-width: 116px; object-fit: contain;
  /* flatten every logo to a uniform soft-white silhouette */
  filter: brightness(0) invert(1);
  opacity: .68; transition: opacity .2s ease, transform .2s ease;
}
/* per-brand size tuning so each logo reads at a balanced optical weight */
.logos .row img[alt="MSI"]    { max-height: 26px; }
.logos .row img[alt="Intel"]  { max-height: 46px; }
.logos .row img[alt="AMD"]    { max-height: 52px; max-width: 150px; }
.logos .row img[alt="ASUS"]   { max-height: 34px; max-width: 100px; }
.logos .row img[alt="Samsung"]{ max-height: 34px; max-width: 120px; }
.logos .row img[alt="ASRock"] { max-height: 18px; max-width: 92px; }
.logos .row img:hover { opacity: 1; transform: translateY(-2px); }
.logos-more { text-align: center; margin-top: 1.6rem; }
.logos-more a {
  font-weight: 600; font-size: .95rem; color: var(--muted);
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
.logos-more a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- 9. CTA band ---- */
/* animated gradient underline highlight (e.g. "trust" on the home page) */
.trust-underline { position: relative; color: #f2f3fa; font-weight: 700; white-space: nowrap; }
.trust-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #a855f7, #22d3ee);
  background-size: 200% 100%;
  box-shadow: 0 0 14px rgba(34,211,238,.55);
  animation: trustShine 3s linear infinite;
}
@keyframes trustShine { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .trust-underline::after { animation: none; } }

.cta-band { text-align: center; }
.cta-band .inner {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 24px; padding: clamp(2.75rem,6vw,4.5rem);
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(34,211,238,.22), transparent 60%),
    radial-gradient(110% 130% at 100% 120%, rgba(168,85,247,.24), transparent 55%),
    linear-gradient(180deg, #12172a, #0c1020);
  border: 1px solid rgba(34,211,238,.28);
  box-shadow: 0 30px 80px -30px rgba(34,211,238,.35), inset 0 1px 0 rgba(255,255,255,.06);
}
/* soft glowing orb behind the heading */
.cta-band .inner::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 480px; height: 480px; left: 50%; top: -65%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168,85,247,.4), transparent 65%); filter: blur(24px);
}
.cta-band h2 { font-size: clamp(1.85rem,4vw,2.6rem); margin: 0; }
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.1rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #22d3ee;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.32);
}
.cta-eyebrow svg { width: 14px; height: 14px; }

/* ---- 10. Forms ---- */
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.form label { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; display: block; }
.form input, .form textarea, .form select {
  width: 100%; padding: .85rem 1rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: .98rem;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.form textarea { min-height: 130px; resize: vertical; }

.info-list { list-style: none; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ico { font-size: 1.3rem; }

/* ---- 11. Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .6rem; }
.footer-grid a { color: var(--muted); font-size: .95rem; }
.footer-grid a:hover { color: var(--text); }
.checkout-note { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); font-size: .88rem; font-weight: 500; padding-bottom: .8rem; }
.checkout-note svg { width: 16px; height: 16px; flex: none; }
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; padding-bottom: 1.4rem; }
/* pre-made colored card badges (Visa, Mastercard, Amex, Discover, Diners) */
.pay-methods .pay-card { height: 34px; width: auto; border-radius: 5px; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
/* wallet badges built to match (brand background + logo) */
.pay-methods .pay-badge { height: 34px; width: 56px; border-radius: 5px; display: grid; place-items: center; padding: 0; border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pay-methods .pay-badge img { width: auto; height: auto; max-height: 18px; max-width: 44px; }
.pay-methods .pay-badge.ap { background: #000; }
.pay-methods .pay-badge.ap img { max-height: 21px; max-width: 48px; filter: brightness(0) invert(1); }
.pay-methods .pay-badge.gp { background: #fff; }
.pay-methods .pay-badge.sp { background: #5a31f4; }
.pay-methods .pay-badge.sp img { filter: brightness(0) invert(1); }
.pay-methods span { font-size: .72rem; font-weight: 600; letter-spacing: .03em; color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px; padding: .25rem .6rem; background: var(--surface); }

/* ---- Policy / legal page content ---- */
.policy { color: var(--text); }
.policy .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.policy h2 { font-size: 1.45rem; font-weight: 800; margin: 2.6rem 0 .8rem; }
.policy h2:first-of-type { margin-top: 0; }
.policy h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 .5rem; }
.policy p { color: var(--muted); margin-bottom: 1rem; }
.policy ul { margin: 0 0 1.2rem 1.2rem; color: var(--muted); }
.policy li { margin-bottom: .5rem; }
.policy strong { color: var(--text); font-weight: 600; }
.policy a { color: var(--accent); }
.policy a:hover { text-decoration: underline; }
.policy .contact-block { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; }

/* ---- Cart (placeholder — swaps to Shopify Buy Button cart later) ---- */
.nav-links { margin-left: auto; }
.cart-btn { position: relative; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; margin-left: 1.4rem; display: inline-flex; }
.cart-btn:hover { color: var(--accent); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: -3px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06121a;
  font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.cart-count[hidden] { display: none; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 90; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 90vw);
  background: var(--surface); border-left: 1px solid var(--border); transform: translateX(100%);
  transition: transform .28s ease; z-index: 100; display: flex; flex-direction: column; }
.cart-drawer.open { transform: none; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--border); }
.cart-head h3 { margin: 0; font-size: 1.2rem; }
.cart-close { background: none; border: 0; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.cart-close:hover { color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: .6rem 1.4rem; }
.cart-empty { color: var(--muted); padding: 1.5rem 0; text-align: center; }
.cart-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
.ci-name { font-weight: 600; }
.ci-price { color: var(--muted); font-size: .86rem; margin-top: .2rem; }
.ci-remove { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.ci-remove:hover { color: #f87171; }
.cart-foot { padding: 1.2rem 1.4rem; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; font-size: 1.05rem; }
.cart-note { color: var(--muted); font-size: .78rem; text-align: center; margin: .7rem 0 0; }
@media (max-width: 860px) {
  .cart-btn { margin-left: auto; order: 2; }
  .nav-toggle { order: 3; margin-left: .3rem; }
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }

/* ---- 12. Page hero (inner pages) ---- */
.page-hero { padding: clamp(3rem,7vw,5rem) 0 clamp(2rem,4vw,3rem); border-bottom: 1px solid var(--border); }
.page-hero p { color: var(--muted); margin-top: .8rem; max-width: 600px; }

/* ---- 13. Responsive ---- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 360px; }
  .nav-links a { display: block; padding: 1rem 24px; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =========================================================
   Game FPS performance (product pages)
   ========================================================= */
.fps-section { padding: 3rem 0 1rem; border-top: 1px solid #1b2036; margin-top: 2.5rem; }
.fps-head { margin-bottom: 1.6rem; }
.fps-head h2 { margin: 0 0 .45rem; }
.fps-head p { margin: 0; color: #9aa0c0; font-size: .92rem; max-width: 60ch; }
.fps-gpu-toggle { display: inline-flex; gap: .3rem; margin-top: 1.1rem; padding: .3rem;
  background: #0f1322; border: 1px solid #232a45; border-radius: 999px; }
.fps-gpu-btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem;
  padding: .5rem 1.15rem; border-radius: 999px; color: #9aa0c0; background: transparent; transition: color .15s, background .15s; }
.fps-gpu-btn:hover { color: #f2f3fa; }
.fps-gpu-btn.is-active { color: #06121a; background: linear-gradient(135deg, #22d3ee, #a855f7); }
@media (max-width: 560px) { .fps-gpu-btn { font-size: .78rem; padding: .45rem .85rem; } }
.fps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.fps-card { background: #0f1322; border: 1px solid #232a45; border-radius: 16px; overflow: hidden; }
.fps-thumb { position: relative; aspect-ratio: 3 / 4; background: #0b0e1a; }
.fps-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fps-badge { position: absolute; top: .5rem; left: .5rem; z-index: 1;
  font-size: .6rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: .22rem .5rem; border-radius: 6px; color: #06121a;
  background: linear-gradient(135deg, #76d900, #22d3ee); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.fps-body { padding: 1rem 1.1rem 1.2rem; }
.fps-game { display: block; font-weight: 700; font-size: .98rem; color: #f2f3fa; margin-bottom: .7rem; }
.fps-rows { display: flex; flex-direction: column; gap: .55rem; }
.fps-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  padding-top: .55rem; border-top: 1px solid #1b2036; }
.fps-row:first-child { padding-top: 0; border-top: 0; }
.fps-preset { font-size: .8rem; font-weight: 600; color: #9aa0c0; }
.fps-readout { display: flex; align-items: baseline; gap: .35rem; }
.fps-value { font-family: 'Orbitron', 'Archivo', sans-serif; font-size: 1.5rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #22d3ee, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fps-unit { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #9aa0c0; }
/* keep 4 cards per row on tablet and mobile */
@media (max-width: 900px) { .fps-grid { gap: .75rem; } }
@media (max-width: 560px) {
  .fps-grid { gap: .5rem; }
  .fps-thumb { border-radius: 0; }
  .fps-body { padding: .55rem .5rem .7rem; }
  .fps-game { font-size: .72rem; margin-bottom: .5rem; line-height: 1.2; }
  .fps-rows { gap: .4rem; }
  .fps-row { flex-direction: column; align-items: flex-start; gap: .1rem; padding-top: .4rem; }
  .fps-preset { font-size: .62rem; }
  .fps-readout { gap: .25rem; }
  .fps-value { font-size: 1.05rem; }
  .fps-unit { font-size: .58rem; }
}

/* =========================================================
   Budget range slider (Custom PCs page)
   ========================================================= */
.budget-out { color: #22d3ee; font-weight: 800; }
.budget-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  margin: .5rem 0 .25rem; cursor: pointer; outline: none;
  background: linear-gradient(90deg, #22d3ee, #a855f7) 0 / var(--fill, 50%) 100% no-repeat, #232a45; }
.budget-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
  border-radius: 50%; background: #f2f3fa; border: 3px solid #22d3ee; box-shadow: 0 2px 8px rgba(0,0,0,.45); cursor: pointer; }
.budget-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #f2f3fa;
  border: 3px solid #22d3ee; box-shadow: 0 2px 8px rgba(0,0,0,.45); cursor: pointer; }
.budget-slider:focus-visible { box-shadow: 0 0 0 3px rgba(34,211,238,.35); }
.budget-scale { display: flex; justify-content: space-between; font-size: .78rem; color: #9aa0c0; margin-top: .15rem; }
