/* D9 webshop mock — NOCTURNE + shop tipográfia (Oswald / Barlow Condensed) */
:root {
  --bg: #050505;
  --bg-deep: #000000;
  --panel: #0c0c0c;
  --panel-2: #101013;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8e8e8;
  --muted: #8a8a8a;
  --white: #f2f2f2;
  --red: #cd0505;
  --red-hot: #e10606;
  --red-deep: #8f0404;
  --ok: #1d9e57;
  --grad-red: linear-gradient(135deg, var(--red-hot), var(--red-deep));
  --glow-red: 0 14px 44px rgba(205, 5, 5, 0.35);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-ui: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg-deep); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(120% 70% at 50% 0%, rgba(205, 5, 5, 0.06), transparent 55%), var(--bg);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--red); color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.normal-case { text-transform: none; letter-spacing: 0.02em; }

.orb { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }
.orb-1 { width: 560px; height: 560px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(205, 5, 5, 0.22), transparent 65%); }
.orb-2 { width: 420px; height: 420px; bottom: -160px; left: -140px; background: radial-gradient(circle, rgba(143, 4, 4, 0.18), transparent 65%); }
.grain {
  position: fixed; inset: 0; z-index: 1; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.announce {
  position: relative; z-index: 50; overflow: hidden;
  background: var(--red); color: #0a0a0a; padding: 8px 0;
  font-family: var(--font-display); font-weight: 500; letter-spacing: 0.22em;
}
.announce-track { display: flex; gap: 36px; width: max-content; animation: marquee 28s linear infinite; }
.announce i { font-style: normal; }

.nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(12px, 4vw, 48px);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.18em; color: var(--white); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.brand i { font-style: normal; color: var(--red-hot); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-pill); color: var(--muted);
  font-weight: 600; font-size: 0.92rem; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.is-on { color: var(--white); background: rgba(255,255,255,.06); }
.nav-acts { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--white);
  display: grid; place-items: center;
}
.icon-btn:hover { border-color: rgba(225,6,6,.55); color: var(--red-hot); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 0.68rem; font-weight: 700; display: grid; place-items: center;
}
.badge[hidden] { display: none; }
.nav-user { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: 0.82rem; font-weight: 600; }
.nav-user:hover { border-color: var(--red); color: var(--red-hot); }
.burger { display: none; flex-shrink: 0; }
.mobile-menu {
  display: none;
  position: relative;
  z-index: 79;
  flex-direction: column;
  padding: 8px 16px 16px;
  background: rgba(8, 8, 10, 0.96);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-weight: 600;
}
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu.is-on { display: flex; }

.wrap { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.view { display: none; padding: 36px 0 80px; }
.view.is-on { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: var(--r-pill);
  font-weight: 700; letter-spacing: 0.14em; transition: transform .25s var(--ease), box-shadow .25s, background .2s, border-color .2s;
}
.btn-primary { background: var(--grad-red); color: #fff; box-shadow: var(--glow-red); border: 0; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--white); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: rgba(225,6,6,.55); color: var(--red-hot); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.18em; }
.field input, .field select, .field textarea,
input[type="email"], input[type="password"], input[type="search"], input[type="text"], input[type="tel"] {
  text-transform: none;
  letter-spacing: 0.03em;
}
.field input, .field select, .field textarea {
  min-height: 50px; padding: 12px 16px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(0,0,0,.45); outline: 0;
}
.field textarea { min-height: 110px; resize: vertical; text-transform: none; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(225,6,6,.6); box-shadow: 0 0 0 3px rgba(205,5,5,.14);
}
.field.is-bad input, .field.is-bad select { border-color: var(--red-hot); }
.err { color: var(--red-hot); font-size: 0.78rem; min-height: 1em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  min-height: calc(100svh - 140px); padding: 28px 0 50px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--muted);
  font-size: 0.76rem; letter-spacing: 0.24em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 10px 2px rgba(225,6,6,.55); }
.h1 { margin: 22px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(3.2rem, 9vw, 7.2rem); line-height: .92; letter-spacing: 0.06em; }
.h1 .l-dark { display: block; color: var(--white); }
.h1 .l-nine { display: block; color: var(--red-hot); }
.lead { margin: 22px 0 0; max-width: 46ch; color: #b4b4b4; text-transform: none; letter-spacing: 0.03em; font-size: 1.05rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stats { display: flex; gap: 36px; margin-top: 40px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--white); }
.stat b i { font-style: normal; color: var(--red-hot); }
.stat span { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.2em; }
.hero-visual {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
}
.hero-photo {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #0a0a0a;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5, 5, 5, 0.55) 100%),
    radial-gradient(80% 50% at 80% 10%, rgba(205, 5, 5, 0.18), transparent 60%);
  pointer-events: none;
}
.hero-seal {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: var(--r-pill);
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}
.hero-seal img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.hero-seal span {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--white);
  font-size: 0.85rem;
}
.hero-seal i { font-style: normal; color: var(--red-hot); }

.band { width: 110%; margin: 8px 0 8px -5%; transform: rotate(-1.4deg); background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-hot)); padding: 13px 0; overflow: hidden; }
.band-track { display: flex; gap: 40px; width: max-content; animation: marquee 22s linear infinite; }
.band-track span { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.18em; color: #0a0a0a; white-space: nowrap; }

.sec-head { margin: 56px 0 28px; }
.sec-index { display: inline-flex; align-items: center; gap: 12px; color: var(--red-hot); font-size: 0.78rem; letter-spacing: 0.28em; }
.sec-index::before { content: ""; width: 32px; height: 1px; background: var(--grad-red); }
.sec-title { margin: 12px 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: 0.08em; color: var(--white); }
.sec-title em { font-style: normal; color: var(--red-hot); }
.sec-note { margin: 10px 0 0; color: var(--muted); text-transform: none; letter-spacing: 0.03em; max-width: 52ch; }

.cards, .product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(170deg, var(--panel-2), var(--panel));
  transition: transform .4s var(--ease), box-shadow .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 70px rgba(0,0,0,.55), 0 0 0 1px rgba(225,6,6,.2); }
.card-visual { aspect-ratio: 1 / 1.15; overflow: hidden; position: relative; background: #111; }
.card-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform .5s var(--ease); }
.card:hover .card-visual img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; }
.tags { display: flex; gap: 8px; margin-bottom: 12px; }
.tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--muted); }
.tag-red { border-color: rgba(225,6,6,.5); color: var(--red-hot); background: rgba(205,5,5,.1); }
.card-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: 0.08em; color: var(--white); }
.card-sub { margin: 0 0 16px; color: var(--muted); font-size: 0.88rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; }
.price { font-family: var(--font-display); font-weight: 600; color: var(--white); }

.shop-bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-strong);
  color: var(--muted); font-weight: 600;
}
.filter.is-on, .filter:hover { border-color: var(--red); color: var(--white); background: rgba(205,5,5,.12); }
.sort select { min-height: 42px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: #0a0a0a; }

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp-photo { border-radius: 28px; overflow: hidden; background: #111; }
.pdp-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp h1 { margin: 10px 0 8px; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: 0.08em; }
.pdp-desc { text-transform: none; letter-spacing: 0.03em; color: #b8b8b8; }
.size-row, .qty { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.size-btn, .qty button {
  min-width: 48px; height: 44px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); font-weight: 700;
}
.size-btn.is-on { border-color: var(--red); background: rgba(205,5,5,.15); color: #fff; }
.qty { align-items: center; }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.pdp-meta { color: var(--muted); font-size: 0.82rem; padding-left: 18px; }
.wish-link { margin-left: 10px; color: var(--muted); }
.wish-link.is-on { color: var(--red-hot); }

.cart-layout, .check-layout, .account-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; }
.panel { border: 1px solid var(--line); background: rgba(12,12,12,.7); border-radius: 24px; padding: 22px; }
.cart-row { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 88px; height: 110px; object-fit: cover; border-radius: 12px; }
.cart-name { margin: 0; font-family: var(--font-display); color: var(--white); }
.cart-size { margin: 4px 0 10px; color: var(--muted); font-size: 0.82rem; }
.cart-remove { color: var(--muted); }
.cart-remove:hover { color: var(--red-hot); }
.summary .line { display: flex; justify-content: space-between; margin: 10px 0; color: var(--muted); }
.summary .line.total { color: var(--white); font-family: var(--font-display); font-size: 1.2rem; margin-top: 16px; }
.ship-bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.ship-bar span { display: block; height: 100%; background: var(--grad-red); width: 0; }

.steps { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 120px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; text-align: center;
}
.step.is-on { border-color: var(--red); color: #fff; background: rgba(205,5,5,.12); }
.step.is-done { color: var(--ok); }
.pay-opt, .ship-opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px;
  border: 1px solid var(--line-strong); border-radius: 16px; margin-bottom: 10px; cursor: pointer;
}
.pay-opt.is-on, .ship-opt.is-on { border-color: var(--red); background: rgba(205,5,5,.08); }
.card-preview {
  margin-top: 16px; padding: 22px; border-radius: 18px;
  background: linear-gradient(135deg, #1a1a1c, #0c0c0e);
  border: 1px solid var(--line-strong);
}
.card-preview .num { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.16em; margin: 18px 0 10px; }

.auth { max-width: 460px; margin: 20px auto; }
.auth h1 { font-family: var(--font-display); letter-spacing: 0.1em; }
.switch { margin-top: 18px; color: var(--muted); text-align: center; text-transform: none; }
.switch a { color: var(--red-hot); }

.order-ok { text-align: center; max-width: 560px; margin: 40px auto; }
.order-ok h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: 0.1em; }
.order-id { color: var(--red-hot); font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0.16em; }

.legal { max-width: 72ch; }
.legal p, .legal li { text-transform: none; letter-spacing: 0.03em; color: #b8b8b8; }

.footer {
  position: relative; z-index: 1; border-top: 1px solid var(--line);
  padding: 36px clamp(16px, 4vw, 48px) 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; max-width: 1240px; margin: 0 auto 24px; }
.footer h4 { margin: 0 0 12px; font-family: var(--font-display); letter-spacing: 0.16em; }
.footer a { display: block; color: var(--muted); margin: 6px 0; }
.footer a:hover { color: var(--red-hot); }
.footer-note { text-align: center; color: #555; font-size: 0.78rem; }

.drawer, .search-panel {
  position: fixed; top: 0; right: 0; z-index: 220; width: min(420px, 100%);
  height: 100%; background: #09090b; border-left: 1px solid var(--line);
  transform: translateX(110%); transition: transform .35s var(--ease), visibility .35s;
  display: flex; flex-direction: column;
  pointer-events: none;
  visibility: hidden;
}
.drawer.is-open, .search-panel.is-open {
  transform: none;
  pointer-events: auto;
  visibility: visible;
}
.overlay { position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.62); }
.overlay[hidden] { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-family: var(--font-display); letter-spacing: 0.12em; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search-box input { flex: 1; background: transparent; border: 0; outline: 0; min-height: 40px; }
.search-hits { padding: 12px 20px; overflow: auto; }
.search-hit { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.search-hit img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  z-index: 300; padding: 12px 22px; border-radius: var(--r-pill);
  background: #111; border: 1px solid var(--line-strong); opacity: 0; pointer-events: none;
  transition: .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.pay-badges { margin-top: 12px; font-size: 0.82rem; color: var(--muted); }
.pay-badges strong { color: var(--white); }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes levitate { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 980px) {
  .hero, .pdp, .cart-layout, .check-layout, .account-layout, .cards, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; width: min(100%, 420px); margin-top: 12px; }
  .nav-desk { display: none; }
  .nav-user { display: none; }
  .wish-btn { display: none; }
  .burger { display: grid; }
  .nav { gap: 8px; }
  .nav-acts { gap: 6px; flex-shrink: 0; }
  .brand { min-width: 0; }
  .brand span, .brand { font-size: 0.92rem; }
  .icon-btn { width: 40px; height: 40px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu.is-on { display: none !important; }
}
@media (max-width: 720px) {
  .product-grid, .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .product-grid, .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
