/* MTS Shop — static pages generated by _shop_sync.py.
   Mirrors the main site's look (src/index.css): near-black backdrop with red
   topographic arcs, smoked glass tiles, green glass buttons, Manrope headings. */

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./manrope-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070709;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --line: rgba(255, 255, 255, 0.1);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --green: #4ade80;
  --photo-bg: #ffffff;
  --head: 'Manrope Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    repeating-radial-gradient(circle at 89% 67%, rgba(239, 68, 68, 0.2) 0 1.4px, transparent 1.4px 30px),
    radial-gradient(74% 82% at 89% 67%, rgba(239, 68, 68, 0.14), transparent 74%),
    radial-gradient(55% 45% at 10% 100%, rgba(190, 40, 55, 0.12), transparent 68%),
    linear-gradient(180deg, #0b0b0e 0%, #070709 55%, #080608 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* Smoked glass tile — same recipe as .mts-tile on the main page. */
.tile {
  position: relative;
  background: rgba(24, 24, 30, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 44px rgba(0, 0, 0, 0.4);
}

@media (prefers-reduced-transparency: reduce) {
  .tile, .hdr { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20, 20, 25, 0.96); }
}

/* --- Header ------------------------------------------------------------ */

.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.logo-badge svg { width: 20px; height: 20px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-weight: 600; letter-spacing: 0.25em; font-size: 16px; color: #fff; }
.logo-sub { margin-top: 5px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }

.hdr-nav { display: flex; gap: 2px; }

.nav-pill {
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 15px;
  font-weight: 500;
  color: #d4d4d8;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-pill:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-pill.is-active { color: #fff; background: var(--red-soft); }

.lang {
  display: inline-flex;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(24, 24, 30, 0.6);
}

.lang button {
  border: 0;
  background: transparent;
  padding: 5px 9px;
  border-radius: 5px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.lang button[aria-pressed="true"] { background: rgba(5, 150, 105, 0.2); color: #34d399; }

@media (max-width: 719px) {
  .logo-sub { display: none; }
  .hdr-nav { order: 3; width: 100%; overflow-x: auto; margin: 0 -6px; }
  .nav-pill { padding: 6px 10px; }
}

/* --- Shared bits --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.98); }

.btn-green {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn-green:hover { background: rgba(34, 197, 94, 0.32); border-color: rgba(74, 222, 128, 0.72); }

.btn-ghost {
  background: rgba(9, 9, 11, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-ghost svg { color: #25d366; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.34); }

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 13px;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.chip-pick { color: #d1fae5; background: rgba(34, 197, 94, 0.1); border-color: rgba(74, 222, 128, 0.3); }
.chip-offer { margin: 12px 0 0; color: #fde68a; background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); }

.stamp { margin: 32px 0 0; font-size: 14px; color: var(--dim); text-align: center; }
.stamp a { color: var(--muted); }

/* --- List page ----------------------------------------------------------- */

.intro { text-align: center; max-width: 760px; margin: 0 auto; padding: 48px 0 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow span:first-child, .eyebrow span:last-child { width: 24px; height: 1px; background: rgba(239, 68, 68, 0.6); }

.intro h1 { margin-top: 18px; font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -0.01em; }
.lead { margin: 18px 0 0; font-size: 18px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 28px; }

.chip-f {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  color: #d4d4d8;
  background: rgba(24, 24, 30, 0.6);
  border: 1px solid var(--line);
}

.chip-f b { font-weight: 600; color: var(--dim); margin-left: 4px; }
.chip-f.is-active { color: #fff; border-color: rgba(248, 113, 113, 0.55); background: var(--red-soft); }
.chip-f.is-active b { color: #fca5a5; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card { overflow: hidden; transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.25, 1), border-color 0.28s ease; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }

@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-4px); border-color: rgba(248, 113, 113, 0.35); }
}

.card-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--photo-bg); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }

.card-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card-price { margin-top: auto; font-family: var(--head); font-size: 24px; font-weight: 700; color: #fff; }
.card-ship { font-size: 14px; color: var(--muted); min-height: 1em; }

.empty { padding: 28px; text-align: center; color: var(--muted); }

/* --- Product page -------------------------------------------------------- */

.crumbs { margin: 24px 0 18px; font-size: 15px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }

.pd { display: grid; gap: 24px; }

@media (min-width: 960px) {
  .pd { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .pd-gallery { position: sticky; top: 90px; }
}

.g-main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--photo-bg);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.g-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.g-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.g-thumb {
  padding: 0;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--photo-bg);
  border: 2px solid transparent;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb:hover { opacity: 1; }
.g-thumb.is-active { border-color: var(--red); opacity: 1; }

.pd-info h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }

.pd-price { margin-top: 18px; padding: 20px; }
.price { margin: 0; font-family: var(--head); font-size: 36px; font-weight: 700; line-height: 1.1; }
.price-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.pd-cta { display: grid; gap: 10px; margin-top: 18px; }

@media (min-width: 520px) {
  .pd-cta { grid-template-columns: 1fr 1fr; }
}

.buy-info { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

.facts { margin: 16px 0 0; padding: 6px 20px; }
.fact { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--muted); font-size: 15px; }
.fact dd { margin: 0; font-size: 15px; }

@media (max-width: 479px) {
  .fact { grid-template-columns: 1fr; gap: 2px; }
}

.de-note { margin: 24px 0 0; font-size: 14px; color: #fcd34d; }

.pd-desc, .pd-specs { margin-top: 24px; padding: 22px 24px; }
.pd-desc h2, .pd-specs h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }

.desc { font-size: 16px; color: #e4e4e7; overflow-wrap: anywhere; }
.desc p { margin: 0 0 12px; }
.desc strong, .desc b { color: #fff; }
.desc ul, .desc ol { margin: 0 0 14px; padding: 0; list-style: none; }
.desc li { margin: 6px 0; }
.desc h3, .desc h4 { margin: 18px 0 8px; font-size: 17px; }
.desc table { border-collapse: collapse; margin: 0 0 14px; }
.desc td, .desc th { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }

.pd-specs table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pd-specs th, .pd-specs td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pd-specs th { width: 42%; padding-right: 16px; font-weight: 500; color: var(--muted); }
.pd-specs tr:last-child th, .pd-specs tr:last-child td { border-bottom: 0; }

/* --- Lightbox ------------------------------------------------------------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.lb-img { max-width: 94vw; max-height: 88vh; object-fit: contain; background: var(--photo-bg); border-radius: 6px; }

.lb button {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(24, 24, 30, 0.7);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* --- Not found ----------------------------------------------------------- */

.nf { padding: 90px 0 40px; }
.nf .btn { margin-top: 28px; }

/* --- Footer, WhatsApp ---------------------------------------------------- */

.ftr { border-top: 1px solid var(--line); background: rgba(9, 9, 11, 0.6); }
.ftr-in { max-width: 1200px; margin: 0 auto; padding: 24px 16px 96px; font-size: 14px; color: var(--muted); }
.ftr-in p { margin: 4px 0; }
.ftr-in strong { color: #e4e4e7; }
.ftr-links a { color: var(--muted); }
.ftr-links a:hover { color: #fff; }

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 211, 102, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.wa-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
