/* ==========================================================================
   Rubber Department — Design System
   Strict minimalism / dark luxury / black-white-red
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --black-2: #111111;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --line: #262626;
  --line-2: #333333;
  --white: #f5f5f5;
  --grey: #9a9a9a;
  --grey-2: #6b6b6b;
  --red: #e0152b;
  --red-dark: #b4101f;
  --red-soft: rgba(224, 21, 43, 0.12);

  --radius: 2px;
  --container: 1720px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* ---- Typography system: only 3 font families across the whole site ---- */
  --font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-display: "Anton", "Oswald", Impact, system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Unified type scale */
  --fs-heading: clamp(30px, 4.5vw, 50px);   /* all main block / page titles */
  --fs-subheading: 16px;                     /* component sub-titles */
  --fs-body: 15px;                           /* primary body copy */
  --fs-body-sm: 13px;                        /* secondary copy */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.55;
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.05; letter-spacing: 0.01em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 2vw, 24px); }

.muted { color: var(--grey); }
.accent { color: var(--red); }
.upper { text-transform: uppercase; letter-spacing: 0.14em; }
.center { text-align: center; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-2);
  background: transparent; color: var(--white);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.btn:hover { border-color: var(--white); background: var(--white); color: var(--black); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Header ------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1; white-space: nowrap;
}
.logo b { color: var(--red); font-weight: inherit; }
.logo small {
  display: block; font-family: var(--font-body); font-size: 9px; letter-spacing: 0.42em;
  color: var(--grey-2); margin-top: 3px; text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 42px; flex: 1; justify-content: center; }
.nav a {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 13px; color: var(--grey); transition: color 0.2s; position: relative; padding: 4px 0;
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
}

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--white);
  border-radius: var(--radius); transition: all 0.2s; position: relative;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--red); }
.icon-btn svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 9px; display: none; align-items: center; justify-content: center; line-height: 1;
}
.cart-badge.show { display: flex; }

.burger { display: none; }

/* ---- Search overlay ----------------------------------------------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(7, 7, 7, 0.96);
  backdrop-filter: blur(8px); display: none; padding-top: 14vh;
}
.search-overlay.open { display: block; animation: fade 0.2s var(--ease); }
.search-box { max-width: 720px; margin: 0 auto; padding: 0 28px; }
.search-box input {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--line-2);
  color: var(--white); font-family: var(--font-head); font-size: 32px; padding: 14px 0;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.search-box input:focus { outline: none; border-color: var(--red); }
.search-hint { margin-top: 14px; color: var(--grey-2); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.search-results { margin-top: 26px; display: grid; gap: 2px; max-height: 56vh; overflow-y: auto; }
.search-result {
  display: flex; align-items: center; gap: 16px; padding: 12px 14px; background: var(--panel);
  transition: background 0.15s; border-left: 2px solid transparent;
}
.search-result:hover { background: var(--panel-2); border-left-color: var(--red); }
.search-result img { width: 52px; height: 64px; object-fit: cover; background: var(--black-2); }
.search-result .sr-name { font-family: var(--font-head); text-transform: uppercase; font-size: 14px; letter-spacing: 0.04em; }
.search-result .sr-cat { color: var(--grey-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }
.search-result .sr-price { margin-left: auto; color: var(--red); font-family: var(--font-head); font-size: 15px; }
.search-close { position: absolute; top: 26px; right: 30px; }

/* ---- Age gate ----------------------------------------------------------- */
.age-gate {
  position: fixed; inset: 0; z-index: 500; background: var(--black);
  display: flex; align-items: center; justify-content: center; padding: 28px;
}
.age-gate__card { max-width: 480px; text-align: center; }
.age-gate__mark {
  font-family: var(--font-display); font-size: 84px; color: var(--red); line-height: 1; margin-bottom: 8px;
}
.age-gate h2 { font-size: 26px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.age-gate p { color: var(--grey); margin-bottom: 28px; font-size: var(--fs-body); }
.age-gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h));
  display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 75% 20%, rgba(224, 21, 43, 0.16), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #0c0c0c, #050505);
}
.hero__bg::after {
  content: ""; position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  border: 1px solid rgba(224,21,43,0.25); border-radius: 50%;
  box-shadow: inset 0 0 120px rgba(224,21,43,0.12);
}
.hero__inner {
  position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px;
  max-width: var(--container); width: 100%; text-align: left; align-items: flex-start;
}
.hero__media {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 1;
  width: min(50vw, 820px); pointer-events: none;
}
/* Muted backlight coming from off-screen on the right, behind the figure */
.hero__media::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: -12%; left: -18%;
  background:
    radial-gradient(66% 70% at 80% 58%, rgba(244, 244, 248, 0.60), rgba(244, 244, 248, 0.26) 45%, transparent 76%),
    radial-gradient(46% 48% at 90% 54%, rgba(255, 255, 255, 0.42), transparent 72%);
  pointer-events: none;
}
.hero__media img {
  position: relative;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  /* Enlarge the figure a little and shift it left; anchored to the top so the
     arms stay fully in view (bottom/legs crop under the block). translateY
     trims the gap above the head to ~25px. */
  transform: scale(1.1) translate(-6%, -11px);
  transform-origin: 50% 0%;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--grey);
  text-transform: uppercase; letter-spacing: 0.3em; font-size: 11px; margin-bottom: 26px;
}
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--red); }
.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 9vw, 132px); line-height: 0.9; text-transform: uppercase;
  letter-spacing: 0.005em;
}
.hero h1 em { font-style: normal; color: var(--red); display: block; }
.hero__sub { color: var(--grey); font-size: var(--fs-body); max-width: 520px; margin: 26px 0 36px; margin-left: 0; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--grey-2); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
}

/* ---- Sections ----------------------------------------------------------- */
.section { padding: 75px 0; border-bottom: 1px solid var(--line); }
.section--tight { padding: 60px 0; }
.section--flush { border-bottom: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-heading);
  text-transform: uppercase; line-height: 0.95;
}
.section-head .eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: 0.26em; font-size: 11px; display: block; margin-bottom: 12px; }
.section-link { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--grey); transition: color 0.2s; white-space: nowrap; }
.section-link:hover { color: var(--red); }

/* ---- Category tiles ----------------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.cat-tile {
  position: relative; aspect-ratio: 3/4; background: var(--panel); overflow: hidden;
  display: flex; align-items: flex-end; padding: 26px; transition: transform 0.4s var(--ease);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: all 0.5s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(7,7,7,0.92)); }
.cat-tile:hover img { opacity: 0.8; transform: scale(1.06); }
.cat-tile__body { position: relative; z-index: 2; }
.cat-tile__num { color: var(--red); font-family: var(--font-head); font-size: 12px; letter-spacing: 0.2em; }
.cat-tile h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; text-transform: uppercase; margin: 8px 0 4px; line-height: 1; }
.cat-tile span { color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---- Product grid / cards ---------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.card { position: relative; display: flex; flex-direction: column; background: transparent; }
.card__media {
  position: relative; aspect-ratio: 3/4; background: var(--panel); overflow: hidden;
  border: 1px solid var(--line);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.tag {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px;
  padding: 4px 8px; background: var(--red); color: #fff; line-height: 1;
}
.tag--ghost { background: rgba(0,0,0,0.7); border: 1px solid var(--line-2); color: var(--white); }
.tag--out { background: #2a2a2a; color: var(--grey); }
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  opacity: 0; transform: translateY(8px); transition: all 0.3s var(--ease);
}
.card:hover .card__quick { opacity: 1; transform: translateY(0); }
.card__body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.card__cat { color: var(--grey-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; }
.card__name { font-family: var(--font-head); text-transform: uppercase; font-size: 15px; letter-spacing: 0.02em; }
.card__name a:hover { color: var(--red); }
.card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.card__price { font-family: var(--font-head); font-size: 17px; letter-spacing: 0.02em; }
.card__price s { color: var(--grey-2); font-size: 13px; margin-right: 6px; }
.card__colors { display: flex; gap: 5px; }
.swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-2); }

/* ---- Advantages --------------------------------------------------------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.adv {
  padding: 52px 40px; background: var(--panel); border: 1px solid var(--line);
  transition: background 0.3s;
}
.adv:hover { background: var(--panel-2); }
.adv__icon { color: var(--red); width: 48px; height: 48px; margin-bottom: 26px; }
.adv h4 { font-size: var(--fs-subheading); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.adv p { color: var(--grey); font-size: var(--fs-body-sm); }

/* ---- Material / split block --------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.split__media { position: relative; min-height: 420px; background: var(--panel); overflow: hidden; border: 1px solid var(--line); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: 60px clamp(28px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-left: none; }
.split__body h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-heading); text-transform: uppercase; margin-bottom: 20px; line-height: 1.08; }
.split__body p { color: var(--grey); margin-bottom: 16px; font-size: var(--fs-body); }
.split__list { list-style: none; display: grid; gap: 12px; margin: 8px 0 28px; }
.split__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--grey); font-size: var(--fs-body); }
.split__list li::before { content: "—"; color: var(--red); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band { position: relative; padding: 170px 0; margin-top: 75px; border-top: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; text-align: center; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band h2 { position: relative; font-family: var(--font-display); font-weight: 400; font-size: clamp(46px, 9vw, 120px); text-transform: uppercase; line-height: 1.04; }
.cta-band p { position: relative; color: var(--grey); margin: 18px auto 32px; max-width: 480px; font-size: var(--fs-body); }

/* ---- Footer ------------------------------------------------------------- */
.footer { background: #060606; border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h5 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--grey-2); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: var(--grey); font-size: var(--fs-body-sm); transition: color 0.2s; }
.footer ul a:hover { color: var(--white); }
.footer__about p { color: var(--grey); font-size: 13px; margin-top: 16px; max-width: 280px; }
.footer__mark { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.footer__mark b { color: var(--red); }
.footer__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--grey-2); font-size: 12px; letter-spacing: 0.04em;
}
.footer__18 { border: 1px solid var(--red); color: var(--red); padding: 3px 9px; font-weight: 700; font-size: 11px; border-radius: 50%; }

/* ---- Page header (inner pages) ----------------------------------------- */
.page-head { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--grey-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span { color: var(--line-2); }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-heading); text-transform: uppercase; line-height: 0.95; }
.page-head p { color: var(--grey); margin-top: 12px; max-width: 620px; font-size: var(--fs-body); }

/* ---- Catalog layout ----------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 264px 1fr; gap: 36px; padding: 40px 0 90px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); }
#mobileMenu { display: none; }
#mobileMenu.open { display: block; }
.filter-group { border-bottom: 1px solid var(--line); padding: 20px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.filter-list { display: grid; gap: 11px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--grey); font-size: var(--fs-body-sm); transition: color 0.2s; user-select: none; }
.check:hover { color: var(--white); }
.check input { display: none; }
.check .box { width: 16px; height: 16px; border: 1px solid var(--line-2); border-radius: 2px; flex-shrink: 0; position: relative; transition: all 0.2s; }
.check input:checked + .box { background: var(--red); border-color: var(--red); }
.check input:checked + .box::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check .count { margin-left: auto; color: var(--grey-2); font-size: 12px; }

.color-list { display: flex; flex-wrap: wrap; gap: 10px; }
.color-pick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; position: relative; transition: transform 0.15s; }
.color-pick:hover { transform: scale(1.12); }
.color-pick.active { border-color: var(--red); }

.size-list { display: flex; flex-wrap: wrap; gap: 8px; }
.size-pick {
  min-width: 42px; padding: 8px 4px; text-align: center; border: 1px solid var(--line-2); background: transparent;
  color: var(--grey); font-family: var(--font-head); font-size: 13px; letter-spacing: 0.06em; transition: all 0.2s; border-radius: 2px;
}
.size-pick:hover { border-color: var(--white); color: var(--white); }
.size-pick.active { background: var(--white); color: var(--black); border-color: var(--white); }

.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs input {
  width: 100%; background: var(--panel); border: 1px solid var(--line-2); color: var(--white);
  padding: 9px 10px; font-size: 13px; border-radius: 2px;
}
.price-inputs input:focus { outline: none; border-color: var(--red); }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.catalog-count { color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.catalog-count b { color: var(--white); }
.sort-select, .field-select {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--white); padding: 10px 36px 10px 14px;
  font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; border-radius: 2px;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239a9a9a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.sort-select:focus, .field-select:focus { outline: none; border-color: var(--red); }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--panel); border: 1px solid var(--line-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 2px; }
.chip button { background: none; border: none; color: var(--grey); font-size: 14px; line-height: 1; }
.chip button:hover { color: var(--red); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--grey); grid-column: 1 / -1; }
.empty-state h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-heading); text-transform: uppercase; margin-bottom: 12px; color: var(--white); line-height: 0.95; }

.filters-toggle { display: none; }

/* ---- Product page ------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 40px 0 80px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.gallery__main { aspect-ratio: 3/4; background: var(--panel); border: 1px solid var(--line); overflow: hidden; position: relative; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery__thumb { width: 76px; aspect-ratio: 3/4; border: 1px solid var(--line-2); overflow: hidden; cursor: pointer; opacity: 0.6; transition: all 0.2s; flex-shrink: 0; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.active, .gallery__thumb:hover { opacity: 1; border-color: var(--red); }

.pdp__cat { color: var(--red); text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; margin-bottom: 14px; }
.pdp h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-heading); text-transform: uppercase; line-height: 0.95; }
.pdp__price { display: flex; align-items: baseline; gap: 14px; margin: 22px 0; }
.pdp__price .now { font-family: var(--font-head); font-size: 30px; }
.pdp__price .old { color: var(--grey-2); text-decoration: line-through; font-size: 18px; }
.pdp__price .save { background: var(--red-soft); color: var(--red); padding: 3px 9px; font-size: 12px; font-family: var(--font-head); letter-spacing: 0.06em; }
.pdp__stock { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 26px; }
.pdp__stock .dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf6a; }
.pdp__stock.out .dot { background: var(--grey-2); }
.pdp__stock.out { color: var(--grey); }

.variant { margin-bottom: 24px; }
.variant__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--grey); margin-bottom: 12px; display: flex; justify-content: space-between; }
.variant__label a { color: var(--red); }
.variant__opts { display: flex; flex-wrap: wrap; gap: 10px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 2px; }
.qty button { width: 44px; height: 48px; background: transparent; border: none; color: var(--white); font-size: 18px; }
.qty button:hover { color: var(--red); }
.qty span { min-width: 44px; text-align: center; font-family: var(--font-head); font-size: 16px; }

.pdp__actions { display: flex; gap: 12px; margin: 28px 0; }
.pdp__actions .btn { flex: 1; height: 52px; }

.pdp__meta { border-top: 1px solid var(--line); margin-top: 8px; }
.pdp__meta dl { display: grid; grid-template-columns: 160px 1fr; }
.pdp__meta dt, .pdp__meta dd { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-body-sm); }
.pdp__meta dt { color: var(--grey-2); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }

.pdp__desc { margin-top: 28px; color: var(--grey); }
.pdp__desc h3 { color: var(--white); font-size: var(--fs-subheading); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }

.accordion { border-top: 1px solid var(--line); margin-top: 8px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; background: none; border: none; color: var(--white); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-body); }
.acc-head .pm { color: var(--red); font-size: 20px; transition: transform 0.2s; }
.acc-item.open .pm { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); color: var(--grey); font-size: var(--fs-body); }
.acc-item.open .acc-body { max-height: 400px; }
.acc-body__inner { padding: 0 0 20px; }

/* ---- Cart --------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 40px 0 90px; align-items: start; }
.cart-items { display: grid; gap: 2px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px; background: var(--panel); border: 1px solid var(--line); align-items: center; }
.cart-item__media { width: 96px; aspect-ratio: 3/4; background: var(--black-2); overflow: hidden; border: 1px solid var(--line); }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-family: var(--font-head); text-transform: uppercase; font-size: 16px; letter-spacing: 0.02em; }
.cart-item__name a:hover { color: var(--red); }
.cart-item__variant { color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }
.cart-item__price { color: var(--grey); font-size: 13px; margin-top: 8px; }
.cart-item__end { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cart-item__total { font-family: var(--font-head); font-size: 18px; }
.cart-item__remove { background: none; border: none; color: var(--grey-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; transition: color 0.2s; }
.cart-item__remove:hover { color: var(--red); }
.qty--sm button { width: 34px; height: 38px; font-size: 15px; }
.qty--sm span { min-width: 34px; font-size: 14px; }

.summary { background: var(--panel); border: 1px solid var(--line); padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-subheading); margin-bottom: 22px; }
.summary__row { display: flex; justify-content: space-between; padding: 11px 0; color: var(--grey); font-size: var(--fs-body-sm); }
.summary__row.discount { color: var(--red); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; border-top: 1px solid var(--line); margin-top: 8px; }
.summary__total .lbl { text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; }
.summary__total .val { font-family: var(--font-head); font-size: 26px; }

.promo { display: flex; gap: 8px; margin: 18px 0; }
.promo input { flex: 1; background: var(--black-2); border: 1px solid var(--line-2); color: var(--white); padding: 12px 14px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; border-radius: 2px; }
.promo input:focus { outline: none; border-color: var(--red); }
.promo-msg { font-size: 12px; margin: -8px 0 14px; min-height: 16px; letter-spacing: 0.04em; }
.promo-msg.ok { color: #3fbf6a; }
.promo-msg.err { color: var(--red); }
.promo-applied { display: flex; justify-content: space-between; align-items: center; background: var(--red-soft); border: 1px solid var(--red); padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.promo-applied button { background: none; border: none; color: var(--red); font-size: 16px; }

/* ---- Forms / checkout --------------------------------------------------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 40px 0 90px; align-items: start; }
.form-section { margin-bottom: 38px; }
.form-section h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-subheading); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.form-section h3 .num { color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--white); padding: 13px 14px;
  font-size: var(--fs-body); border-radius: 2px; transition: border-color 0.2s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
.field textarea { resize: vertical; min-height: 90px; }
.field.error input, .field.error textarea { border-color: var(--red); }
.field .err-msg { color: var(--red); font-size: 11px; min-height: 13px; }

.pay-options { display: grid; gap: 12px; }
.pay-option {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 2px; cursor: pointer; transition: all 0.2s;
}
.pay-option:hover { border-color: var(--white); }
.pay-option.active { border-color: var(--red); background: var(--red-soft); }
.pay-option input { display: none; }
.pay-option .radio { width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; flex-shrink: 0; }
.pay-option.active .radio { border-color: var(--red); }
.pay-option.active .radio::after { content: ""; position: absolute; inset: 3px; background: var(--red); border-radius: 50%; }
.pay-option__title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-subheading); }
.pay-option__desc { color: var(--grey); font-size: 12px; }
.pay-option__logo { margin-left: auto; font-family: var(--font-head); color: var(--grey); letter-spacing: 0.1em; font-size: 13px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; cursor: pointer; color: var(--grey); font-size: 13px; }
.consent .box { width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 2px; flex-shrink: 0; margin-top: 2px; position: relative; transition: all 0.2s; }
.consent input { display: none; }
.consent input:checked + .box { background: var(--red); border-color: var(--red); }
.consent input:checked + .box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.consent a { color: var(--white); text-decoration: underline; }

.mini-cart { display: grid; gap: 14px; }
.mini-item { display: flex; gap: 12px; align-items: center; }
.mini-item img { width: 52px; aspect-ratio: 3/4; object-fit: cover; background: var(--black-2); border: 1px solid var(--line); }
.mini-item .mi-name { font-size: 13px; font-family: var(--font-head); text-transform: uppercase; }
.mini-item .mi-var { color: var(--grey-2); font-size: 11px; text-transform: uppercase; }
.mini-item .mi-price { margin-left: auto; font-family: var(--font-head); font-size: 14px; white-space: nowrap; }

/* ---- Order success ------------------------------------------------------ */
.success { text-align: center; padding: 90px 20px; max-width: 560px; margin: 0 auto; }
.success__check { width: 84px; height: 84px; margin: 0 auto 28px; border: 2px solid var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--red); }
.success__check svg { width: 40px; height: 40px; }
.success h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-heading); text-transform: uppercase; margin-bottom: 12px; line-height: 0.95; }
.success .order-no { color: var(--red); font-family: var(--font-head); font-size: 18px; letter-spacing: 0.1em; margin: 8px 0 20px; }
.success p { color: var(--grey); margin-bottom: 10px; }

/* ---- Info / content pages ----------------------------------------------- */
.content { padding: 50px 0 90px; }
.content-narrow { max-width: 820px; margin-right: auto; }
.prose h2 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 22px; margin: 40px 0 16px; }
.prose > :first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-subheading); text-transform: uppercase; letter-spacing: 0.08em; margin: 28px 0 12px; color: var(--white); }
.prose p { color: var(--grey); margin-bottom: 14px; font-size: var(--fs-body); }
.prose ul { color: var(--grey); margin: 0 0 18px 20px; display: grid; gap: 8px; }
.prose strong { color: var(--white); }
.callout { background: var(--panel); border-left: 3px solid var(--red); padding: 20px 24px; margin: 24px 0; color: var(--grey); }
.callout strong { color: var(--white); }

.size-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: var(--fs-body-sm); }
.size-table th, .size-table td { padding: 13px 16px; text-align: left; border: 1px solid var(--line); }
.size-table th { background: var(--panel); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; color: var(--grey); }
.size-table tr:hover td { background: var(--panel); }
.size-table td:first-child { font-family: var(--font-head); color: var(--white); }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 30px 0; }
.info-card { background: var(--panel); border: 1px solid var(--line); padding: 30px 26px; }
.info-card .ic-ico { color: var(--red); width: 28px; height: 28px; margin-bottom: 16px; }
.info-card h4 { font-size: var(--fs-subheading); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.info-card p { color: var(--grey); font-size: var(--fs-body-sm); }

/* Larger cards (mirrors the "Почему мы" / advantages cards) */
.info-cards--lg { gap: 24px 20px; }
.info-cards--lg .info-card { padding: 30px 40px; transition: background 0.3s; }
.info-cards--lg .info-card:hover { background: var(--panel-2); }
.info-cards--lg .ic-ico { width: 48px; height: 48px; margin-bottom: 16px; }
.info-cards--lg .info-card h4 { font-size: var(--fs-subheading); line-height: 1.3; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-block { display: grid; gap: 22px; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; }
.contact-line .cl-ico { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.contact-line .cl-label { color: var(--grey-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.contact-line .cl-val { font-size: 16px; margin-top: 2px; }
.contact-line a.cl-val:hover { color: var(--red); }
.socials { display: flex; gap: 10px; margin-top: 4px; }

/* ---- Toast -------------------------------------------------------------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 400; display: grid; gap: 10px; }
.toast {
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--red);
  padding: 16px 20px; min-width: 280px; max-width: 360px; border-radius: 2px;
  display: flex; gap: 14px; align-items: center; animation: toastIn 0.3s var(--ease);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.toast img { width: 40px; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line); }
.toast .t-title { font-family: var(--font-head); text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; }
.toast .t-sub { color: var(--grey); font-size: 12px; }
.toast.leaving { animation: toastOut 0.3s var(--ease) forwards; }

/* ---- Animations --------------------------------------------------------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  /* On tablet/mobile the reading column fills the width instead of being
     pinned left (which left an empty gap on the right). Desktop keeps the
     intentional narrow left-aligned column. */
  .content-narrow { max-width: none; margin-right: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: auto; }
  .hero__inner { padding-top: 28px; padding-bottom: 24px; }
  .hero__content { max-width: none; }
  .hero__media { position: static; width: 100%; height: clamp(300px, 44vh, 430px); overflow: hidden; }
  .hero__media img { height: 100%; object-fit: cover; object-position: center top; transform: scale(1.14); transform-origin: center top; }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .split { grid-template-columns: 1fr; }
  .split__body { border-left: 1px solid var(--line); border-top: none; }
  .catalog { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: 0; top: 0; z-index: 250; background: var(--black); padding: 24px;
    overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s var(--ease); display: none;
  }
  .filters.open { transform: translateX(0); display: block; }
  .filters-toggle { display: inline-flex; }
  .info-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .product-grid, .product-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .cat-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item__media { width: 72px; }
  .cart-item__end { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .pdp__meta dl { grid-template-columns: 120px 1fr; }
  .search-box input { font-size: 22px; }
  .toast-wrap { left: 18px; right: 18px; bottom: 18px; }
  .toast { min-width: 0; max-width: none; }
  /* Keep wide size tables inside their box on narrow phones so they never
     push the page wider than the viewport. */
  .size-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
