/* CJDK IT Support Services */

@font-face {
  font-family: "Exo 2";
  src: url("../fonts/exo-2-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("../fonts/exo-2-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy-950: #050927;
  --navy-900: #0a1034;
  --navy-800: #111850;
  --navy: #2b3190;
  --blue: #3554e6;
  --cyan: #5fd0ff;
  --red: #d3122a;
  --red-bright: #ef3340;
  --paper: #f3f5fc;
  --white: #fff;
  --ink: #10153d;
  --muted: #555d85;
  --line: #d9def2;
  --ok: #12804a;
  --radius: 14px;
  --shadow: 0 10px 30px rgb(16 21 61 / .12);
  --font-head: "Exo 2", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; font-style: italic; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; background: var(--navy); color: var(--white);
  transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(0 0 0 / .22); }
.btn:active { transform: none; }
.btn-red { background: linear-gradient(135deg, var(--red-bright), var(--red)); }
.btn-navy { background: var(--navy); }
.btn-ghost { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .55); color: var(--white); }
.btn-ghost:hover { background: rgb(255 255 255 / .14); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-big { padding: .9em 1.6em; font-size: 1.08rem; }
.btn-small { padding: .5em 1em; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .94); backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--navy);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand img { height: 54px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; font-family: var(--font-head); font-weight: 700; }
.site-nav > a:not(.btn) { padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; }
.site-nav > a:not(.btn):hover { background: #e7eafa; }
.site-nav > a[aria-current="page"] { color: var(--red); }
.nav-call { margin-left: 8px; }
.cart-count { background: var(--red); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: .8rem; display: inline-grid; place-items: center; }
.cart-count[hidden] { display: none; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; border-radius: 10px; width: 46px; height: 46px; place-items: center; cursor: pointer; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 940px) {
  :root { --header-h: 66px; }
  .brand img { height: 44px; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    background: #fff; border-bottom: 3px solid var(--navy); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.btn) { padding: 14px 12px; font-size: 1.1rem; }
  .nav-call { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy-950); overflow: clip; }
.hero-bg {
  position: absolute; inset: -4%; z-index: -1;
  background:
    radial-gradient(60% 70% at 72% 45%, rgb(53 84 230 / .35), transparent 70%),
    linear-gradient(90deg, rgb(5 9 39 / .96) 0%, rgb(5 9 39 / .72) 45%, rgb(5 9 39 / .45) 100%),
    url("../img/matrix.jpg") center / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: center; padding-block: clamp(40px, 7vw, 88px); }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: .9em; }
.eyebrow-red { color: var(--red); }
.hero h1 .it { color: var(--red-bright); font-size: 1.15em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d5dcff; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.4em; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #c2cbf7; font-size: .98rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--cyan); }

.hero-stage { position: relative; perspective: 1400px; max-width: 640px; width: 100%; margin-inline: auto; }
.scene { width: 100%; height: auto; overflow: visible; transform: rotateX(16deg) rotateY(-13deg) rotateZ(2deg); filter: drop-shadow(0 40px 50px rgb(0 0 0 / .55)); }
.scene .trace { stroke: var(--cyan); stroke-width: 2.5; stroke-dasharray: 100; stroke-opacity: .7; }
.scene .trace.flow { stroke: #fff; stroke-width: 3.5; stroke-opacity: 1; stroke-dasharray: 7 93; display: none; }
.scene .s-part, .scene .s-board, .scene .s-blades, .scene .s-gpufan { transform-box: fill-box; transform-origin: center; }
.s-cpu-mark { font: italic 900 34px var(--font-head); fill: var(--navy); letter-spacing: 1px; }
.s-cpu-sub { font: 700 9px var(--font-head); fill: var(--red); letter-spacing: 2px; }
.scene-status {
  position: absolute; left: 4%; bottom: 0; margin: 0;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgb(5 9 39 / .8); border: 1px solid rgb(95 208 255 / .5);
  font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}
.scene-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.scene-replay {
  position: absolute; right: 4%; bottom: 0; display: inline-flex; align-items: center; gap: 6px;
  background: rgb(5 9 39 / .8); color: #c2cbf7; border: 1px solid rgb(255 255 255 / .3); border-radius: 999px;
  padding: 8px 14px; font-size: .85rem; cursor: pointer;
}
.scene-replay:hover { color: #fff; border-color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: bg-zoom 24s ease-in-out infinite alternate; }
}
/* The build animation. Visitors who asked their device for reduced motion only see it after pressing the play button. */
  .is-playing .scene { animation: push-in 6.4s cubic-bezier(.2, .7, .2, 1) both; }
  .is-playing .s-cpu { animation: cpu-in 2.4s cubic-bezier(.6, 0, .2, 1) both; }
  .is-playing .s-shine { animation: shine 1.4s ease-in-out .3s both; }
  .is-playing .s-board { animation: board-in 1.1s ease-out 1.5s both; }
  .is-playing .s-glow { animation: fade-in 1.6s ease-out 1.5s both; }
  .is-playing .trace:not(.flow) { animation: draw 1.3s ease-out 2.1s both; }
  .is-playing .s-ram1 { animation: ram-in .8s cubic-bezier(.2, 1.2, .4, 1) 2.7s both; }
  .is-playing .s-ram2 { animation: ram-in .8s cubic-bezier(.2, 1.2, .4, 1) 2.95s both; }
  .is-playing .s-ssd { animation: ssd-in .8s cubic-bezier(.2, 1.2, .4, 1) 3.4s both; }
  .is-playing .s-gpu { animation: gpu-in .9s cubic-bezier(.2, 1.15, .4, 1) 3.9s both; }
  .is-playing .s-cooler { animation: cooler-in .9s cubic-bezier(.3, 1.3, .5, 1) 4.7s both; }
  .is-playing .s-blades { animation: spin 1s linear 5.5s infinite; }
  .is-playing .s-gpufan { animation: spin 1.4s linear 5.5s infinite; }
  .is-playing .s-ring { animation: ring 2.4s ease-in-out 5.6s infinite backwards; }
  .is-playing .trace.flow { display: block; animation: flow 2.2s linear 5.6s infinite backwards; }
  .is-playing .s-leds, .is-playing .scene-status { animation: fade-in .5s ease-out 5.6s both; }
  .is-playing .scene-replay { animation: fade-in .5s ease-out 6.2s both; }
  .is-playing .s-led { animation: blink 1.6s steps(2, jump-none) 5.8s infinite; }
  .is-playing .s-led2 { animation-delay: 6.1s; }
  .is-playing .s-led3 { animation-delay: 6.4s; }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .7s ease-out both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .2s; }
  .hero-copy > :nth-child(4) { animation-delay: .3s; }
  .hero-copy > :nth-child(5) { animation-delay: .4s; }
}
@media (prefers-reduced-motion: reduce) {
  .is-playing:not(.is-requested) .scene,
  .is-playing:not(.is-requested) .scene *,
  .is-playing:not(.is-requested) .scene-status,
  .is-playing:not(.is-requested) .scene-replay { animation: none !important; }
  .is-playing:not(.is-requested) .trace.flow { display: none !important; }
}
@keyframes bg-zoom { to { transform: scale(1.08) translate(-1%, -1%); } }
@keyframes push-in { from { transform: rotateX(34deg) rotateY(-26deg) rotateZ(6deg) scale(.82); } }
@keyframes cpu-in {
  0% { transform: scale(2.05) translateY(8px) rotate(-6deg); }
  45% { transform: scale(2.1) translateY(-6px) rotate(3deg); }
  100% { transform: none; }
}
@keyframes shine { from { transform: translateX(-90px); opacity: 0; } 50% { opacity: .9; } to { transform: translateX(120px); opacity: 0; } }
@keyframes board-in { from { opacity: 0; transform: scale(.82); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes ram-in { from { opacity: 0; transform: translate(240px, -300px) rotate(55deg); } }
@keyframes ssd-in { from { opacity: 0; transform: translate(-420px, 90px) rotate(-35deg); } }
@keyframes gpu-in { from { opacity: 0; transform: translate(-160px, 280px) rotate(14deg); } }
@keyframes cooler-in { from { opacity: 0; transform: translateY(-190px) scale(2.3) rotate(-90deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0%, 100% { stroke-opacity: .35; } 50% { stroke-opacity: 1; } }
@keyframes flow { 0% { stroke-dashoffset: 100; opacity: 0; } 12%, 88% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes blink { from { opacity: 1; } to { opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 520px; padding-bottom: 46px; }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--navy); color: #fff; overflow: hidden; border-block: 3px solid var(--red); }
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; flex: none; }
.ticker li { padding: 14px 26px; font-family: var(--font-head); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; white-space: nowrap; }
.ticker li::after { content: "|"; margin-left: 52px; color: var(--red-bright); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 32s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section-light { background: var(--paper); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark p { color: #cfd6fb; }
.section-matrix { background: linear-gradient(rgb(5 9 39 / .9), rgb(10 16 52 / .94)), url("../img/circuit.jpg") center / cover; }
.section-support { background: linear-gradient(120deg, var(--navy-950) 30%, #1a0a2c 100%); }
.section-contact { background: linear-gradient(rgb(5 9 39 / .88), rgb(5 9 39 / .95)), url("../img/matrix.jpg") center / cover; }
.section-head { max-width: 44em; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section-head-row h2 { margin: 0; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 3px solid var(--navy); }
.split-media-plain img { border: 0; box-shadow: 0 0 80px rgb(53 84 230 / .35); }
.callout { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy); border-left: 5px solid var(--red); padding-left: 16px; margin-top: 1.4em; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 1.4em 0 1.8em; }
.ticks li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ticks .icon { color: var(--cyan); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-rev .split-media { order: -1; }
  .ticks { grid-template-columns: 1fr; }
}

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.service { background: rgb(255 255 255 / .05); border: 1px solid rgb(142 160 255 / .28); border-radius: var(--radius); padding: 22px; transition: transform .2s, border-color .2s, background-color .2s; }
.service:hover { transform: translateY(-4px); border-color: var(--cyan); background: rgb(95 208 255 / .08); }
.service-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: linear-gradient(135deg, var(--red-bright), var(--red)); margin-bottom: 14px; }
.service-icon .icon { width: 28px; height: 28px; }
.service p { font-size: .95rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 5px solid var(--navy); }
.steps span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font: 800 1.2rem var(--font-head); margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Scroll reveal: progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: reveal auto linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.97); } }
  }
}

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 12px; margin-top: 1.6em; }
.contact-list a { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center; text-decoration: none; padding: 14px; border-radius: var(--radius); background: rgb(255 255 255 / .06); border: 1px solid rgb(142 160 255 / .28); font-size: 1.15rem; font-weight: 600; }
.contact-list a:hover { border-color: var(--cyan); }
.contact-list span { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--red); }
.contact-list b { font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }

.panel { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.form { display: grid; gap: 14px; }
.form h3 { font-size: 1.4rem; margin: 0; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; font-size: 1rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(53 84 230 / .2); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.section-dark .panel p { color: var(--muted); }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; border: 2px solid; }
.notice-ok { background: #e6f6ee; border-color: #8fd3ae; color: #0b5c34; }
.notice-err { background: #fdebed; border-color: #f0a0aa; color: #8f0d1d; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(90deg, rgb(5 9 39 / .95), rgb(5 9 39 / .6)), url("../img/cpu-dark.jpg") center right / cover; color: #fff; padding-block: clamp(36px, 6vw, 64px); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 .2em; }
.page-hero p { color: #cfd6fb; margin: 0; max-width: 40em; }
.crumbs { font-size: .9rem; color: #aab6ff; margin-bottom: 10px; }
.crumbs a { color: inherit; }

/* ---------- Shop ---------- */
.shop-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search { display: flex; flex: 1 1 260px; max-width: 460px; }
.search input { flex: 1; min-width: 0; padding: 11px 14px; border: 2px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: #fff; }
.search button { border: 0; background: var(--navy); color: #fff; padding: 0 18px; border-radius: 0 999px 999px 0; cursor: pointer; }
.shop-bar select { padding: 11px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 16px; border-radius: 999px; background: #fff; border: 2px solid var(--line); text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); }
.chip:hover { border-color: var(--navy); }
.chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgb(16 21 61 / .2); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9edfb; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card.is-out .card-media img { opacity: .55; }
.tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font: 700 .75rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; background: var(--navy); color: #fff; }
.tag-refurbished { background: var(--ok); }
.tag-used { background: #7a4b00; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-brand { margin: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.card-title { margin: 0; font-size: 1.1rem; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-short { margin: 0; color: var(--muted); font-size: .92rem; }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { margin: 0; font-family: var(--font-head); }
.price strong { font-size: 1.3rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-size: .9rem; }
.stock-out { font-weight: 700; color: var(--red); font-size: .9rem; }
.empty { text-align: center; padding: 56px 20px; background: #fff; border-radius: var(--radius); border: 2px dashed var(--line); }
.empty .icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--navy); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }

/* ---------- Product ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.gallery-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumbs button { width: 76px; height: 60px; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-style: normal; color: var(--navy); }
.product-info .price strong { font-size: 2rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.pill { padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; background: #e7eafa; color: var(--navy); }
.pill-ok { background: #e6f6ee; color: #0b5c34; }
.pill-out { background: #fdebed; color: #8f0d1d; }
.buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { background: #e7eafa; }
.qty input { width: 48px; text-align: center; border: 0; font-weight: 700; -moz-appearance: textfield; appearance: textfield; background: none; }
.qty input::-webkit-inner-spin-button { appearance: none; }
.specs { width: 100%; border-collapse: collapse; margin-top: 8px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.prose { white-space: pre-line; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.cart-item img { width: 84px; height: 64px; object-fit: contain; background: #e9edfb; border-radius: 8px; }
.cart-item h3 { margin: 0 0 4px; font-size: 1rem; }
.cart-item h3 a { text-decoration: none; }
.cart-item .each { color: var(--muted); font-size: .9rem; margin: 0; }
.cart-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cart-line { font: 800 1.05rem var(--font-head); min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.icon-btn { border: 0; background: none; cursor: pointer; padding: 8px; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { color: var(--red); background: #fdebed; }
@media (max-width: 560px) { .cart-item { grid-template-columns: 64px 1fr; } .cart-item img { width: 64px; height: 52px; } .cart-ctl { grid-column: 1 / -1; justify-content: space-between; } }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.4rem var(--font-head); color: var(--navy); padding: 12px 0; border-block: 2px solid var(--line); }
.total-row b { font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #c2cbf7; padding-top: 56px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; }
.footer-logo img { height: 52px; width: auto; }
.footer-tag { margin-top: 14px; font-family: var(--font-head); font-style: italic; font-weight: 700; color: #fff; }
.site-footer h2 { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-base { margin-top: 40px; padding-block: 18px; border-top: 1px solid rgb(255 255 255 / .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; }
.footer-base p { margin: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgb(0 0 0 / .35); font-weight: 600; max-width: calc(100% - 32px); }
.toast a { color: var(--cyan); margin-left: 8px; }
.toast[hidden] { display: none; }

.narrow { max-width: 760px; }
.center { text-align: center; }
.mt { margin-top: 24px; }
[hidden] { display: none !important; }

/* ---------- Small refinements ---------- */
.section-light .crumbs { color: var(--muted); }
.form-note .icon { display: inline-block; vertical-align: -.2em; }
.section-light .hero-actions { justify-content: center; }
@media (max-width: 520px) {
  .scene-status, .scene-replay { font-size: .72rem; padding: 6px 10px; }
  .scene-status { left: 0; }
  .scene-replay { right: 0; }
}
