/* Vars on body + dialog: native <dialog> is top-layer and otherwise falls back to Times */
body.shop,
.shop,
body.shop dialog,
.shop dialog {
  --ink: #000;
  --bg: #000;
  --paper: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.12);
  --surface: #111;
  --surface-2: #1a1a1a;
  --danger: #ff5c5c;
  --header-bg: rgba(0, 0, 0, 0.94);
  --cta-bg: #fff;
  --cta-fg: #000;
  --photo-bg: #fff;
  --chip-on: #fff;
  --input-fg: #fff;
  --nav-hover: #fff;
  --glow-outer: rgba(247, 244, 238, 0.16);
  --glow-core: transparent;
  --hint: rgba(255, 255, 255, 0.38);
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(1rem, 3vw, 2rem);
  --max: 1200px;
  color: var(--text);
  font-family: var(--font-body);
}

html[data-theme="light"] body.shop,
html[data-theme="light"] .shop,
html[data-theme="light"] body.shop dialog,
html[data-theme="light"] .shop dialog {
  --ink: #fff;
  --bg: #fff;
  --paper: #fff;
  --text: #111;
  --muted: #666;
  --line: rgba(17, 17, 17, 0.12);
  --surface: #fff;
  --surface-2: #f4f4f4;
  --header-bg: rgba(255, 255, 255, 0.94);
  --cta-bg: #111;
  --cta-fg: #fff;
  --photo-bg: #fff;
  --chip-on: #111;
  --input-fg: #111;
  --nav-hover: #111;
  --glow-outer: rgba(17, 17, 17, 0.12);
  --glow-core: transparent;
  --hint: rgba(17, 17, 17, 0.4);
}

html[data-theme="dark"] { color-scheme: dark; background: #000; }
html[data-theme="light"] { color-scheme: light; background: #fff; }

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body.shop {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
}

#cursor-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow: hidden;
  background: transparent;
}

html[data-theme="dark"] #cursor-glow {
  mix-blend-mode: screen;
}

html[data-theme="light"] #cursor-glow {
  mix-blend-mode: multiply;
}

@media (hover: none), (pointer: coarse) {
  #cursor-glow {
    display: none;
  }
}

.cursor-glow-inner {
  position: absolute;
  transition: opacity 0.3s;
}

.cursor-glow-outer {
  height: 11rem;
  width: 11rem;
  border-radius: 50%;
  filter: blur(18px);
}

html[data-theme="dark"] .cursor-glow-outer {
  background: radial-gradient(
    circle,
    rgba(247, 244, 238, 0.16) 0%,
    rgba(247, 244, 238, 0.06) 42%,
    transparent 72%
  );
}

html[data-theme="light"] .cursor-glow-outer {
  background: radial-gradient(
    circle,
    rgba(17, 17, 17, 0.12) 0%,
    rgba(17, 17, 17, 0.045) 44%,
    transparent 72%
  );
}

.cursor-glow-core {
  display: none;
}

body.shop a,
.shop a {
  color: inherit;
  text-decoration: none;
}

body.shop .shop-nav-inline a,
body.shop a.header-link,
body.shop .footer-legal a,
body.shop .footer-legal__btn,
body.shop .link-quiet,
body.shop .section-head a,
body.shop .product-card__name,
.shop .shop-nav-inline a,
.shop a.header-link,
.shop .footer-legal a,
.shop .footer-legal__btn,
.shop .link-quiet,
.shop .section-head a,
.shop .product-card__name {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

body.shop .shop-nav-inline a.is-active,
body.shop .shop-nav-inline a:hover,
body.shop a.header-link.is-active,
body.shop a.header-link:hover,
body.shop .footer-legal a:hover,
body.shop .footer-legal__btn:hover,
body.shop .link-quiet:hover,
body.shop .section-head a:hover,
body.shop .product-card:hover .product-card__name,
body.shop .product-card:focus-visible .product-card__name {
  text-decoration-color: currentColor;
}

body.shop button,
body.shop input,
body.shop textarea,
body.shop select,
.shop button,
.shop input,
.shop textarea,
.shop select {
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.shop-page {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Telegram's iOS browser lets the document scroll under its see-through top bar, above the
   sticky header. There the page scrolls inside its own box, which ends at the bar. */
html.in-telegram,
html.in-telegram body {
  height: 100%;
  overflow: hidden;
}

html.in-telegram .shop-page {
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.shop-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem var(--pad);
  min-height: 68px;
  box-sizing: border-box;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.shop-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
  height: 56px;
  width: 63px; /* 56 × logo.png 2552/2260 — same slot in both themes */
  isolation: isolate;
  mix-blend-mode: normal;
}

.shop-logo img {
  display: block;
  height: 56px;
  width: 63px;
  max-width: none;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  filter: none;
  opacity: 1;
}

/*
  Dual pins: logo.png = white (dark header), logo-light.png = black (light header).
  Do not stack in one grid cell — the black pin is second in the DOM and paints on
  top if display:none loses. !important beats `body.shop img` / UA [hidden] quirks.
*/
.shop-logo img.shop-logo__img--dark {
  display: block !important;
}

.shop-logo img.shop-logo__img--light,
html[data-theme="dark"] .shop-logo img.shop-logo__img--light,
html:not([data-theme="light"]) .shop-logo img.shop-logo__img--light,
html[data-theme="light"] .shop-logo img.shop-logo__img--dark {
  display: none !important;
}

html[data-theme="light"] .shop-logo img.shop-logo__img--light {
  display: block !important;
}

.shop-nav-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.shop-nav-inline a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    text-decoration-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-nav-inline a.is-active,
.shop-nav-inline a:hover {
  color: var(--nav-hover);
  text-decoration-color: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.1rem;
  flex-shrink: 0;
}

.header-link,
body.shop .shop-logout .header-link {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    text-decoration-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.header-link.is-active,
.header-link:hover,
body.shop .shop-logout .header-link:hover,
body.shop .shop-logout .header-link:focus-visible {
  color: var(--nav-hover);
  text-decoration-color: currentColor;
}

.bag {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  flex-shrink: 0;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.bag:hover,
.bag:focus-visible {
  opacity: 0.72;
}

.shop-nav-panel {
  border-top: 1px solid var(--line);
  animation: navIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-nav-panel[hidden] {
  display: none !important;
}

.shop-nav-panel__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.35rem var(--pad) 0.85rem;
}

.shop-logout {
  margin: 0;
}

.shop-logout button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.shop-nav-panel a,
body.shop .shop-nav-panel .shop-logout button {
  padding: 0.85rem 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    text-decoration-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-nav-panel > .shop-nav-panel__inner > :last-child,
body.shop .shop-nav-panel .shop-logout button {
  border-bottom: 0;
}

body.shop .shop-nav-panel .shop-logout button {
  width: 100%;
  text-align: left;
}

.shop-nav-panel a.is-active,
.shop-nav-panel a:hover,
body.shop .shop-nav-panel .shop-logout button:hover,
body.shop .shop-nav-panel .shop-logout button:focus-visible {
  color: var(--nav-hover);
  text-decoration-color: currentColor;
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.bag-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  display: grid;
  place-items: center;
}

@media (max-width: 719px) {
  .shop-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: grid;
    justify-self: start;
  }

  .shop-logo {
    justify-self: center;
  }

  .header-actions {
    justify-self: end;
    gap: 0;
  }

  .shop-nav-inline,
  .header-link,
  .header-actions .shop-logout {
    display: none;
  }
}

@media (min-width: 720px) {
  .nav-toggle,
  .shop-nav-panel {
    display: none !important;
  }
}

.shop-main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 3rem;
}

.shop-footer {
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
}

body.shop a.footer-social,
.footer-social {
  display: inline-flex;
  margin-top: -0.35rem;
  line-height: 0;
  color: var(--muted);
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.shop a.footer-social:hover,
body.shop a.footer-social:focus-visible,
.footer-social:hover,
.footer-social:focus-visible {
  color: var(--nav-hover);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-legal__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.15rem;
}

.footer-legal a,
.footer-legal__btn {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    text-decoration-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-legal a:hover,
.footer-legal__btn:hover {
  color: var(--nav-hover);
  text-decoration-color: currentColor;
}

.footer-legal__btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.legal-doc {
  max-width: 46rem;
}

.legal-doc p,
.legal-doc li {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
}

.legal-doc p + p,
.legal-doc p + .legal-doc__list,
.legal-doc .legal-doc__list + p,
.legal-doc .legal-doc__h + p,
.legal-doc p + .legal-doc__h {
  margin-top: 0.65rem;
}

.legal-doc__lead {
  color: var(--muted);
  letter-spacing: 0.02em;
}

.legal-doc__h {
  margin: 1.25rem 0 0.45rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  scroll-margin-top: 5.5rem;
}

.legal-doc__h:first-child {
  margin-top: 0;
}

.legal-doc__h:target {
  outline: 1px solid var(--line);
  outline-offset: 6px;
}

.legal-doc__num {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
}

body.shop .legal-doc a,
.shop .legal-doc a,
.legal-doc a {
  color: var(--nav-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.legal-doc a:hover {
  color: var(--muted);
}

.legal-doc__status {
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.legal-doc__list {
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.legal-doc__list--numbered {
  gap: 0.75rem;
}

.legal-doc__list--numbered li {
  padding: 0.15rem 0;
}

.legal-doc__list--numbered li[id] {
  scroll-margin-top: 5.5rem;
}

.legal-doc__list--numbered li:target {
  color: var(--text);
}

.legal-doc__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-doc__nav a:hover {
  color: var(--nav-hover);
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: -0.35rem 0 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.legal-tabs__link {
  padding: 0.45rem 0.1rem 0.55rem;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

body.shop a.legal-tabs__link {
  color: var(--muted);
  text-decoration: none;
}

.legal-tabs__link:hover {
  color: var(--nav-hover);
}

.legal-tabs__link.is-active,
body.shop a.legal-tabs__link.is-active {
  color: var(--nav-hover);
  border-bottom-color: var(--chip-on);
}

.cookie-toast {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #141414;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.75rem;
  font-family: var(--font-body);
}

.cookie-toast[hidden] {
  display: none !important;
}

.cookie-toast__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.cookie-toast__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-toast__text a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.cookie-toast__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

body.shop button.cookie-toast__btn,
.shop button.cookie-toast__btn,
body.shop .cookie-toast__btn,
.shop .cookie-toast__btn,
.cookie-toast__btn {
  min-height: 44px;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid #fff;
  background: #fff;
  color: #000 !important;
  -webkit-text-fill-color: #000;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

body.shop .cookie-toast__btn:hover,
.shop .cookie-toast__btn:hover,
.cookie-toast__btn:hover {
  opacity: 0.9;
  color: #000 !important;
  -webkit-text-fill-color: #000;
}

.cookie-toast__btn:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-toast:not([hidden]) {
    animation: cookieIn 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes cookieIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

dialog.shop-modal,
.shop-modal {
  width: min(28rem, calc(100vw - 2rem));
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  min-height: 0;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #000;
  color: #fff;
  color-scheme: dark;
  overflow: auto;
  font-family: var(--font-body);
}

.shop-modal--wide {
  width: min(36rem, calc(100vw - 2rem));
}

.shop-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.shop-modal__panel {
  padding: 1.15rem 1.2rem 1.3rem;
  display: grid;
  gap: 1.15rem;
  height: auto;
}

.shop-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.shop-modal__head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-modal__close {
  width: 36px;
  height: 36px;
  margin: -0.35rem -0.4rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-modal__close:hover,
.shop-modal__close:focus-visible {
  color: var(--nav-hover);
}

.shop-modal__body {
  display: grid;
  gap: 0.95rem;
}

.contact-row {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0;
  border: 0;
  color: var(--text);
  text-decoration: none;
}

body.shop a.contact-row {
  color: var(--text);
  text-decoration: none;
}

.contact-row:hover .contact-row__value {
  color: var(--muted);
}

.contact-row__icon {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  color: var(--text);
}

.contact-row__icon svg {
  width: 14px;
  height: 14px;
  color: inherit;
  fill: currentColor;
}

.contact-row__icon svg path {
  fill: currentColor;
}

.contact-row__copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.contact-row__kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row__value {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  word-break: break-word;
}

.contact-legal {
  margin-top: 0.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.7rem;
}

.contact-legal__name {
  margin: 0;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-ids {
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-id {
  display: grid;
  gap: 0.15rem;
}

.contact-id dt {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-id dd {
  margin: 0;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--text);
}

.info-card {
  display: grid;
  gap: 0.35rem;
}

.info-card__title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.info-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
}

.info-card a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.info-card a:hover {
  color: var(--muted);
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.info-pills span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-card__sign {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .shop-modal[open]:not(.is-closing),
  .lightbox[open]:not(.is-closing) {
    animation: fadeUp 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .shop-modal[open]:not(.is-closing)::backdrop,
  .lightbox[open]:not(.is-closing)::backdrop {
    animation: shopOverlayIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .shop-modal.is-closing,
  .lightbox.is-closing {
    animation: shopFadeOut 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .shop-modal.is-closing::backdrop,
  .lightbox.is-closing::backdrop {
    animation: shopOverlayOut 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes shopOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shopOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes shopFadeOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.flash {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.flash--error {
  border-color: rgba(255, 92, 92, 0.45);
  color: #ffb4b4;
}

.flash--ok {
  border-color: rgba(255, 255, 255, 0.25);
}

.account-verify {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.account-verify__text {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted, var(--text));
}

.account-verify__btn {
  width: 100%;
}

.hero-slider {
  position: relative;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  overflow: hidden;
  touch-action: pan-y;
  min-height: min(58vh, 520px);
  height: min(58vh, 520px);
  background: #0a0a0a;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1), visibility 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide__hit {
  display: block;
  position: absolute;
  inset: 0;
  color: #f4f1ea;
  text-decoration: none;
  cursor: default;
}

a.hero-slide__hit.is-linked {
  cursor: pointer;
}

a.hero-slide__hit.is-linked:hover .hero-slide__title {
  opacity: 0.88;
}

.hero-slide__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide__media[data-hero-poster]:not(.is-playing) {
  opacity: 0;
}

.hero-slide__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

.hero-slide__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 3.25rem;
  max-width: 34rem;
  color: #f4f1ea;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55), 0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-slide__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3.1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #f7f4ee;
  -webkit-text-fill-color: #f7f4ee;
}

.hero-slide__text {
  margin: 0;
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  color: rgba(255, 255, 255, 0.82);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  max-width: 28rem;
}

.hero-slider__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 0 var(--pad);
  pointer-events: none;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: auto;
}

.hero-slider__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-slider__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

@media (max-width: 719px) {
  .hero-slider {
    min-height: min(52vh, 420px);
    height: min(52vh, 420px);
  }

  .hero-slide__copy {
    padding-bottom: 3rem;
    max-width: 100%;
  }
}

/* Light theme: keep cream/white type on the photo (same as dark). Page ink stays on nav/catalog. */
html[data-theme="light"] .hero-slider {
  color: #f4f1ea;
}

html[data-theme="light"] .hero-slider .hero-slide__shade {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

html[data-theme="light"] .hero-slider .hero-slide__hit,
html[data-theme="light"] .hero-slider a.hero-slide__hit,
html[data-theme="light"] .hero-slider .hero-slide__copy {
  color: #f4f1ea;
  -webkit-text-fill-color: #f4f1ea;
  mix-blend-mode: normal;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55), 0 8px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .hero-slider .hero-slide__title,
html[data-theme="light"] .hero-slider a.hero-slide__hit .hero-slide__title {
  color: #f7f4ee !important;
  -webkit-text-fill-color: #f7f4ee !important;
}

html[data-theme="light"] .hero-slider .hero-slide__text,
html[data-theme="light"] .hero-slider a.hero-slide__hit .hero-slide__text {
  color: rgba(255, 255, 255, 0.82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
}

html[data-theme="light"] .hero-slider .hero-slider__dot {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

html[data-theme="light"] .hero-slider .hero-slider__dot.is-active {
  background: #fff;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head h1,
.section-head h2,
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.section-head a,
.link-quiet {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    text-decoration-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.shop button.link-quiet,
.shop button.link-quiet {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: inherit;
  appearance: none;
}

.section-head a:hover,
.link-quiet:hover {
  color: var(--nav-hover);
  text-decoration-color: currentColor;
}

.section-head .section-head__link {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    text-decoration-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-head .section-head__link:hover,
.section-head .section-head__link:focus-visible {
  color: var(--muted);
  text-decoration-color: currentColor;
}

.home-divider {
  margin: 1.75rem 0 1.5rem;
  padding: 0 var(--pad);
}

.home-divider__line {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-top: 1px solid #3a3a3a;
  background: transparent;
  height: 0;
  color: transparent;
  overflow: hidden;
}

@media (min-width: 900px) {
  .home-divider {
    margin: 2.25rem 0 2rem;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0.85rem;
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drops-more {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.btn-show-more {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  padding: 0.35rem 0.1rem 0.45rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.btn-show-more:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.btn-show-more:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
}

.btn-show-more.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.btn-show-more[hidden] {
  display: none;
}

.product-card__media {
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-card__media img,
.product-card__media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1), transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card__media img,
.product-card:hover .product-card__media video {
  opacity: 1;
  transform: scale(1.02);
}

.product-card__media .ph {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-card__name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    text-decoration-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card__name,
.product-card:focus-visible .product-card__name {
  text-decoration-color: currentColor;
}

.product-card__price {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-chip {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--nav-hover);
  border-color: var(--chip-on);
}

.filter-chip:active {
  opacity: 0.85;
}

.size-filters {
  margin-bottom: 1.75rem;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin: 2.5rem 0 0.5rem;
}

.pager__num,
.pager__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pager__num:hover,
.pager__step:hover {
  color: var(--nav-hover);
  border-color: var(--chip-on);
}

.pager__num.is-active {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-fg);
}

.pdp {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 960px) {
  .pdp {
    grid-template-columns: 72px minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.5rem 2rem;
    align-items: start;
  }
}

.pdp-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

@media (min-width: 960px) {
  .pdp-thumbs {
    flex-direction: column;
    overflow: visible;
  }
}

.pdp-thumb {
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  border: 1px solid transparent;
  background: var(--bg);
  background-clip: padding-box;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pdp-thumb:hover:not(.is-active) {
  opacity: 0.72;
}

.pdp-thumb:active {
  opacity: 0.88;
}

.pdp-thumb.is-active {
  border-color: var(--text);
  opacity: 1;
}

/* Dark: quiet unselected tiles (no white box). Selected = white ring. */
html[data-theme="dark"] .pdp-thumb,
html:not([data-theme="light"]) .pdp-thumb {
  background: #000;
  border-color: transparent;
}

html[data-theme="dark"] .pdp-thumb.is-active,
html:not([data-theme="light"]) .pdp-thumb.is-active {
  border-color: #fff;
}

/* Light: selected = black ring (unselected stay frameless on white). */
html[data-theme="light"] .pdp-thumb {
  background: #fff;
  border-color: transparent;
}

html[data-theme="light"] .pdp-thumb.is-active {
  border-color: #111;
}

.pdp-thumb img,
.pdp-thumb video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.pdp-main {
  aspect-ratio: 1;
  background: var(--photo-bg);
  display: grid;
  place-items: center;
  position: relative;
  touch-action: pan-y;
}

.pdp-main img,
.pdp-main video {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
}

.pdp-main .media-ghost {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  opacity: 1;
}

.pdp-main .media-ghost.is-out {
  animation: shopGhostOut 150ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes shopGhostOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.pdp-info h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pdp-price {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.size-btn {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.size-btn:hover:not(.is-disabled),
.size-btn.is-selected {
  color: var(--nav-hover);
  border-color: var(--chip-on);
}

.size-btn:active:not(.is-disabled) {
  opacity: 0.85;
}

.size-btn.is-disabled {
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

.cta-bar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  background: var(--cta-bg);
  color: var(--cta-fg);
  min-height: 48px;
  margin-bottom: 0.75rem;
  border: 0;
  width: 100%;
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-bar:hover:not(.is-disabled),
.cta-bar:focus-visible:not(.is-disabled) {
  opacity: 0.9;
}

.cta-bar--single {
  grid-template-columns: 1fr;
}

.cta-bar.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.cta-bar button {
  border: 0;
  background: transparent;
  height: 100%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--cta-fg);
}

.cta-bar .cta-label {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: inherit;
  padding: 0.85rem 0.5rem;
  color: #000;
}

.pdp-buy {
  margin-bottom: 1.5rem;
}

.pdp-cart-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  align-items: baseline;
  margin-top: 0.15rem;
}

body.shop .pdp-cart-remove,
.pdp-cart-remove {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
  width: auto;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: inherit;
  color: var(--muted);
  appearance: none;
}

.pdp-specs {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.pdp-spec dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pdp-spec dd {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fff;
}

.accordion {
  border-top: 1px solid var(--line);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion-panel {
  overflow: hidden;
  height: 0;
}

.accordion details[open] > .accordion-panel {
  height: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion-panel {
    transition: height 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary span {
  display: inline-block;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion details[open] > summary span,
.accordion details.is-expanded > summary span {
  transform: rotate(-180deg);
}

.accordion-body {
  padding: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.accordion-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.cart-layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img,
.cart-item video,
.cart-item .ph {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.cart-item .ph {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.65rem;
}

.cart-item__meta h2 {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-item__meta .size,
.cart-item__meta .price {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.qty-pill button {
  border: 0;
  background: transparent;
  width: 28px;
  height: 28px;
  cursor: pointer;
  color: #000;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qty-pill button:hover:not(:disabled) {
  opacity: 0.55;
}

.qty-pill button:active:not(:disabled) {
  opacity: 0.72;
}

.qty-pill button:disabled {
  opacity: 0.35;
  cursor: default;
}

.cart-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-item__side .line-total {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.icon-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.cart-summary {
  background: var(--surface);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cart-summary .total {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
}

.cart-summary__continue {
  display: block;
  text-align: center;
  margin-top: 0.15rem;
}

.checkout-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.checkout-layout--wide {
  max-width: none;
}

@media (min-width: 960px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1.4fr) 300px;
  }

  .checkout-layout--wide {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

.checkout-form {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.checkout-block {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.checkout-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkout-block__hint {
  margin: -0.35rem 0 0;
}

.form-stack--fluid {
  max-width: none;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  cursor: pointer;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.choice-chip:hover span {
  color: var(--nav-hover);
  border-color: var(--chip-on);
}

.choice-chip input:checked + span {
  border-color: var(--chip-on);
  color: var(--chip-on);
  background: color-mix(in srgb, var(--chip-on) 6%, transparent);
}

.choice-chip input:focus-visible + span {
  outline: 1px solid var(--chip-on);
  outline-offset: 2px;
}

.checkout-map-wrap {
  display: grid;
  gap: 0.5rem;
}

[data-checkout-map].is-pickup [data-map-wrap],
[data-checkout-map].is-pickup [data-address-field] {
  display: none !important;
}

[data-checkout-map].is-pickup [data-pickup-note] {
  display: block !important;
}

.checkout-map {
  width: 100%;
  height: min(420px, 58vh);
  min-height: 280px;
  background: #111;
  border: 1px solid var(--line);
  z-index: 1;
}

.point-suggest {
  display: grid;
  margin: 0 0 0.75rem;
  border: 1px solid var(--line);
}

.point-suggest[hidden] {
  display: none;
}

.point-suggest__title {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

body.shop .point-suggest__item,
.point-suggest__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

body.shop .point-suggest__item:hover,
body.shop .point-suggest__item:focus-visible,
.point-suggest__item:hover,
.point-suggest__item:focus-visible {
  background: var(--line);
}

.point-suggest__dist {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}

.checkout-map__status {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.checkout-pickup-note {
  margin: 0;
  padding: 0.9rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Yandex Maps balloons on dark shop chrome */
.checkout-map ymaps,
.checkout-map .ymaps-2-1-79-map {
  color: #111;
}

/* Dark map tiles to match the shop (light theme keeps the normal map) */
html:not([data-theme="light"]) .checkout-map ymaps[class*="-ground-pane"] {
  filter: invert(1) hue-rotate(180deg) grayscale(0.85) brightness(0.82) contrast(0.95);
}

.checkout-summary__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-summary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 0.95rem;
  position: sticky;
  top: calc(68px + 0.75rem);
  max-height: calc(100dvh - 68px - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.checkout-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.checkout-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
}

.checkout-line__thumb img,
.checkout-line__thumb video,
.checkout-line__thumb .ph {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #0a0a0a;
  border: 1px solid var(--line);
  display: block;
}

.checkout-line__thumb .ph {
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.checkout-line__main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.checkout-line__name {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-line__meta,
.checkout-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

.checkout-line__price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 500;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.checkout-delivery-real {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--hint);
  font-weight: 400;
}

.checkout-summary__total strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
}

.checkout-facts {
  margin: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
}

.checkout-fact {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: start;
}

.checkout-fact--stack {
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

.checkout-fact dt {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-fact dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  word-break: break-word;
  color: var(--text);
}

.checkout-fact dd.is-empty {
  color: var(--muted);
}

.checkout-fact__sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.checkout-fact__sub:not(.is-empty) {
  color: rgba(255, 255, 255, 0.85);
}

.checkout-summary__note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.checkout-summary__note + .checkout-summary__note {
  margin-top: 0.45rem;
}

.checkout-submit:disabled,
button[data-checkout-submit]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.checkout-hint {
  margin-top: 0.25rem;
}

/* Must beat body.shop a/button { color: inherit } — else white-on-white CTA */
body.shop .btn-primary,
.shop .btn-primary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: 0;
  background: var(--cta-bg);
  color: var(--cta-fg);
  -webkit-text-fill-color: var(--cta-fg);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.shop .btn-primary:hover,
.shop .btn-primary:hover,
.btn-primary:hover {
  opacity: 0.9;
  color: var(--cta-fg);
}

body.shop .btn-ghost,
.shop .btn-ghost,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.shop .btn-ghost:hover,
.shop .btn-ghost:hover,
.btn-ghost:hover {
  opacity: 0.88;
  border-color: var(--chip-on);
}

body.shop .btn-ghost:active,
.shop .btn-ghost:active,
.btn-ghost:active {
  opacity: 0.8;
}

.field-error {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--danger);
}

.checkout-optional {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-lead {
  margin: 0;
  padding: 0.85rem 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cart-added {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.cart-added img,
.cart-added video,
.cart-added .ph {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #0a0a0a;
  border: 1px solid var(--line);
  display: block;
}

.cart-added .ph {
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: var(--muted);
}

.cart-added__copy {
  display: grid;
  gap: 0.15rem;
}

.cart-added__name {
  margin: 0;
  font-size: 0.78rem;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-added__meta,
.cart-added__price {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-body);
}

.cart-added--compact {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.auth-gate__hint {
  margin: 0 0 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.auth-tabs__btn {
  flex: none;
  padding: 0.6rem 0.2rem 0.7rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-tabs__btn.is-active {
  color: #fff;
  border-bottom-color: #fff;
}

.auth-form[hidden] {
  display: none;
}

.auth-form__error {
  margin: -0.25rem 0 0;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 90, 90, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.35);
  color: #ff8a8a;
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-form__error[hidden] {
  display: none;
}

#auth-modal .btn-ghost {
  margin-top: 1rem;
  width: 100%;
}

.success-box__thanks {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fff;
  text-align: left;
  max-width: 36rem;
}

.success-lines {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 36rem;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.success-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.success-line__name {
  grid-column: 1;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.success-line__meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.72rem;
}

.success-line strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.success-ship {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: left;
  width: 100%;
  max-width: 36rem;
}

.success-total {
  width: 100%;
  max-width: 36rem;
}

.success-box .contact-row {
  width: 100%;
  max-width: 36rem;
  text-align: left;
}

.form-stack {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

.form-note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-field input[type="checkbox"] {
  flex: none;
  margin-top: 0.12rem;
  width: 0.85rem;
  height: 0.85rem;
  accent-color: #fff;
}

.checkbox-field a {
  color: #fff;
  text-decoration: underline;
}

.form-stack--tight {
  margin-bottom: 2rem;
}

.form-stack label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.form-stack label.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--hint);
}

.form-stack label.checkbox-field a {
  color: inherit;
  font-size: inherit;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--hint);
  letter-spacing: 0;
}

.form-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.25rem 0 0;
}

.form-stack input,
.form-stack textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--input-fg);
  outline: none;
}

.form-stack input:focus,
.form-stack textarea:focus {
  border-color: color-mix(in srgb, var(--chip-on) 40%, transparent);
}

.success-box {
  max-width: 480px;
  margin: 2rem auto;
  text-align: center;
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.success-box__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.success-box .order-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  margin: 0;
}

.success-steps {
  margin: 0.5rem 0 0.75rem;
  padding: 0 0 0 1.15rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  display: grid;
  gap: 0.45rem;
}

.archive-list {
  display: grid;
  gap: 1.25rem;
}

.archive-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.15rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.archive-card__media {
  aspect-ratio: 1;
  background: var(--surface);
}

.archive-card__media img,
.archive-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-card h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.archive-card__date,
.archive-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.archive-body {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 40rem;
}

.archive-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .archive-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.archive-gallery figure {
  margin: 0;
  background: var(--surface);
}

.archive-gallery img,
.archive-gallery video {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  background: #000;
}

.archive-gallery figcaption {
  padding: 0.5rem 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.account-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .account-grid {
    grid-template-columns: minmax(0, 1fr) 19rem;
  }
}

.account-form {
  max-width: 420px;
}

.account-form label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-form .field-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.account-form input::placeholder {
  color: rgba(255, 255, 255, 0.28);
  text-transform: none;
  letter-spacing: 0.02em;
}

.info-tip {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

body.shop .info-tip__btn,
.info-tip__btn {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

body.shop .info-tip__btn:hover,
body.shop .info-tip__btn:focus-visible,
.info-tip__btn:hover,
.info-tip__btn:focus-visible {
  color: #fff;
  border-color: #fff;
}

.info-tip__pop {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  z-index: 8;
  display: none;
  width: max-content;
  max-width: 16rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-transform: none;
}

.info-tip:hover .info-tip__pop,
.info-tip:focus-within .info-tip__pop {
  display: block;
}

.account-form .field-hint {
  text-transform: none;
  letter-spacing: 0;
}

.avatar-edit {
  position: relative;
  display: inline-grid;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
}

.avatar-edit .avatar {
  width: 88px;
  height: 88px;
}

.avatar-edit__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.avatar-edit input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-size: 0;
}

.avatar-edit__veil {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.avatar-edit:hover .avatar-edit__veil,
.avatar-edit:focus-within .avatar-edit__veil {
  opacity: 1;
}

.avatar-pick {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.account-summary {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  padding: 0;
  background: transparent;
}

.account-summary .avatar {
  width: 96px;
  height: 96px;
}

.account-summary .account-nick {
  font-size: 1rem;
  letter-spacing: 0.03em;
}

@media (min-width: 860px) {
  .account-summary {
    position: sticky;
    top: 5.5rem;
    border-left: 1px solid var(--line);
    padding: 0.15rem 0 0 1.75rem;
  }
}

.account-stats {
  margin: 0.2rem 0 0;
  display: grid;
  gap: 0.95rem;
}

.account-stats > div {
  display: grid;
  gap: 0.25rem;
}

.account-stats dt {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.account-stats dd {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #fff;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}

.avatar--sm {
  width: 72px;
  height: 72px;
  font-size: 1.35rem;
}

.avatar--placeholder {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1px solid var(--line);
}

.account-nick {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.account-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-body);
}

/* Modal is sized to match the square stage + controls, not a generic wide dialog */
#avatar-crop-modal {
  width: min(22rem, calc(100vw - 2rem));
}

.avatar-crop {
  display: grid;
  gap: 1.1rem;
  width: 100%;
}

.avatar-crop__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.avatar-crop__stage.is-dragging {
  cursor: grabbing;
}

.avatar-crop__stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  pointer-events: none;
}

/* Circular vignette sized to the stage's shortest side, so it reaches almost
   edge-to-edge of the square (à la Telegram/Instagram avatar croppers).
   Hard-edged mask (no gradient feather) + a crisp ring drawn on top. */
.avatar-crop__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle closest-side at 50% 50%,
    transparent 0 92%,
    rgba(0, 0, 0, 0.62) 92%
  );
}

.avatar-crop__vignette::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.avatar-crop__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.avatar-crop__corner--tl {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}

.avatar-crop__corner--tr {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
}

.avatar-crop__corner--bl {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
}

.avatar-crop__corner--br {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}

/* Controls live in their own row below the preview, not floating on top of it */
.avatar-crop__controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar-crop__rotate {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.avatar-crop__rotate svg {
  display: block;
}

.avatar-crop__rotate:hover,
.avatar-crop__rotate:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--surface-2);
}

.avatar-crop__rotate:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}

.avatar-crop__zoom {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.avatar-crop__zoom-icon {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.avatar-crop__zoom-icon--sm {
  width: 8px;
  height: 8px;
}

.avatar-crop__range {
  flex: 1;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0;
  display: block;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.avatar-crop__range::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.avatar-crop__range::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.avatar-crop__range::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}

.avatar-crop__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.badge-first {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-left: 0.35em;
  vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask: url("../img/badge-first.png") center / contain no-repeat;
  mask: url("../img/badge-first.png") center / contain no-repeat;
}

.account-main {
  display: grid;
  gap: 0.25rem;
}

.section-title {
  margin: 2.25rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-list {
  display: grid;
  gap: 0.75rem;
}

.order-card {
  background: var(--surface);
  padding: 1rem 1.15rem;
  display: grid;
  gap: 0.55rem;
}

a.order-card {
  transition: background 0.2s ease;
}

a.order-card:hover {
  background: var(--surface-2);
}

a.order-card:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.order-card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.order-card__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.order-card__status {
  font-size: 0.75rem;
  color: var(--muted);
}

.order-card__total {
  font-size: 0.95rem;
}

.order-detail {
  display: grid;
  gap: 2rem;
  max-width: 920px;
}

@media (min-width: 900px) {
  .order-detail {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
    gap: 2.5rem;
  }
}

.order-detail__meta {
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.order-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0.85rem 0 0;
  padding: 0 1.25rem;
}

.order-hold {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--hint);
}

.order-cancel-dialog {
  width: min(22rem, calc(100vw - 2rem));
}

.order-cancel-dialog[open] {
  animation: none !important;
  transform: none !important;
}

.order-cancel-dialog__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.order-cancel-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.order-cancel-dialog__actions .btn-primary,
.order-cancel-dialog__actions .btn-ghost {
  width: 100%;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.order-cancel .order-pay {
  margin-top: 0;
}

.order-detail__status {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.order-detail__sep {
  opacity: 0.45;
}

.order-detail__items {
  border-top: 1px solid var(--line);
}

.order-line .cart-item__meta h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.order-detail__aside {
  display: grid;
  gap: 1.35rem;
  padding-top: 0.15rem;
}

.order-detail__block {
  display: grid;
  gap: 0.35rem;
}

.order-detail__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-detail__value {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.order-detail__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.order-detail__total {
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 0;
}

.empty-state {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  padding: 2.5rem 0 3rem;
  max-width: 28rem;
}

.empty-state__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.empty-state__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.empty-state__cta {
  width: auto;
  min-width: 12rem;
  margin-top: 0.5rem;
  padding: 0 1.25rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  opacity: 0.72;
}

.theme-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.theme-toggle__moon {
  display: none;
}

html[data-theme="light"] .theme-toggle__sun {
  display: none;
}

html[data-theme="light"] .theme-toggle__moon {
  display: grid;
}

.cta-bar .cta-label {
  color: var(--cta-fg);
}

/*
  Gallery / hero / lightbox chevrons.
  Must beat `body.shop button { color: inherit }` or dark theme paints them white.
  Quiet #111 glyph only — no halo, chip, or drop-shadow. Hidden until hover/focus-visible.
*/
body.shop button.media-nav,
.shop button.media-nav,
body.shop dialog button.media-nav,
html[data-theme="dark"] body.shop button.media-nav,
html[data-theme="light"] body.shop button.media-nav,
html[data-theme="dark"] body.shop dialog button.media-nav,
html[data-theme="light"] body.shop dialog button.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
  filter: none;
  -webkit-filter: none;
  color: #111;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

body.shop button.media-nav[hidden],
.shop button.media-nav[hidden] {
  display: none;
}

body.shop button.media-nav--prev,
.shop button.media-nav--prev { left: 6px; }

body.shop button.media-nav--next,
.shop button.media-nav--next { right: 6px; }

body.shop .shop-chevron,
.shop .shop-chevron,
body.shop button.media-nav .shop-chevron,
.shop button.media-nav .shop-chevron {
  display: block;
  width: 11px;
  height: 17px;
  color: #111;
  fill: #111;
  filter: none;
  -webkit-filter: none;
  box-shadow: none;
  text-shadow: none;
  transition: transform 0.18s ease;
}

body.shop button.media-nav .shop-chevron path,
.shop button.media-nav .shop-chevron path {
  fill: #111;
  stroke: #fff;
  stroke-opacity: 0.2;
  stroke-width: 1px;
  paint-order: stroke fill;
  filter: none;
}

body.shop .media-stage:hover > button.media-nav,
body.shop .media-stage.is-nav-visible > button.media-nav,
body.shop .media-stage:focus-visible > button.media-nav,
body.shop button.media-nav:focus-visible,
.shop .media-stage:hover > button.media-nav,
.shop .media-stage.is-nav-visible > button.media-nav,
.shop .media-stage:focus-visible > button.media-nav,
.shop button.media-nav:focus-visible,
html[data-theme="light"] body.shop .media-stage:hover > button.media-nav,
html[data-theme="light"] body.shop .media-stage.is-nav-visible > button.media-nav,
html[data-theme="light"] body.shop .media-stage:focus-visible > button.media-nav,
html[data-theme="light"] body.shop button.media-nav:focus-visible,
html[data-theme="dark"] body.shop .media-stage:hover > button.media-nav,
html[data-theme="dark"] body.shop .media-stage.is-nav-visible > button.media-nav,
html[data-theme="dark"] body.shop .media-stage:focus-visible > button.media-nav,
html[data-theme="dark"] body.shop button.media-nav:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

body.shop button.media-nav--prev:hover .shop-chevron,
body.shop button.media-nav--prev:focus-visible .shop-chevron,
.shop button.media-nav--prev:hover .shop-chevron,
.shop button.media-nav--prev:focus-visible .shop-chevron {
  transform: translateX(-1px);
}

body.shop button.media-nav--next:hover .shop-chevron,
body.shop button.media-nav--next:focus-visible .shop-chevron,
.shop button.media-nav--next:hover .shop-chevron,
.shop button.media-nav--next:focus-visible .shop-chevron {
  transform: translateX(1px);
}

body.shop button.media-nav:focus-visible,
.shop button.media-nav:focus-visible {
  outline: 1px solid rgba(17, 17, 17, 0.55);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body.shop button.media-nav,
  .shop button.media-nav,
  body.shop .shop-chevron,
  .shop .shop-chevron {
    transition: none;
  }

  body.shop button.media-nav--prev:hover .shop-chevron,
  body.shop button.media-nav--prev:focus-visible .shop-chevron,
  body.shop button.media-nav--next:hover .shop-chevron,
  body.shop button.media-nav--next:focus-visible .shop-chevron,
  .shop button.media-nav--prev:hover .shop-chevron,
  .shop button.media-nav--prev:focus-visible .shop-chevron,
  .shop button.media-nav--next:hover .shop-chevron,
  .shop button.media-nav--next:focus-visible .shop-chevron {
    transform: none;
  }
}

/*
  Homepage hero: mid-gray chevron so it reads on dark and light photos.
  No white stroke/halo. Product gallery (.pdp-main) and lightbox stay #111.
*/
body.shop .hero-slider button.media-nav,
.shop .hero-slider button.media-nav,
html[data-theme="dark"] body.shop .hero-slider button.media-nav,
html[data-theme="light"] body.shop .hero-slider button.media-nav {
  color: #c8c8c8;
  filter: none;
  -webkit-filter: none;
  box-shadow: none;
  text-shadow: none;
}

body.shop .hero-slider .shop-chevron,
.shop .hero-slider .shop-chevron,
body.shop .hero-slider button.media-nav .shop-chevron,
.shop .hero-slider button.media-nav .shop-chevron {
  color: #c8c8c8;
  fill: #c8c8c8;
  filter: none;
  -webkit-filter: none;
}

body.shop .hero-slider button.media-nav .shop-chevron path,
.shop .hero-slider button.media-nav .shop-chevron path,
body.shop .hero-slider .shop-chevron path,
.shop .hero-slider .shop-chevron path {
  fill: #c8c8c8;
  stroke: none;
  stroke-opacity: 0;
  stroke-width: 0;
  filter: none;
}

body.shop .pdp-main button.media-nav,
.shop .pdp-main button.media-nav,
body.shop .pdp-main .shop-chevron,
.shop .pdp-main .shop-chevron,
body.shop .pdp-main button.media-nav .shop-chevron,
.shop .pdp-main button.media-nav .shop-chevron {
  color: #111;
  fill: #111;
}

body.shop .pdp-main button.media-nav .shop-chevron path,
.shop .pdp-main button.media-nav .shop-chevron path,
body.shop .pdp-main .shop-chevron path,
.shop .pdp-main .shop-chevron path {
  fill: #111;
}

html[data-theme="light"] body.shop--archive,
html[data-theme="light"] body.shop--archive-album {
  --ink: #fff;
  --bg: #fff;
  --paper: #fff;
  --header-bg: rgba(255, 255, 255, 0.94);
  --surface-2: #f4f4f4;
}

.shop--archive .shop-main {
  padding-bottom: 3.5rem;
}

body.shop--archive-album .shop-main {
  max-width: none;
  padding: 0 0 3.5rem;
}

body.shop--archive-album {
  overflow-x: clip;
}

.archive-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem 1.05rem;
}

.archive-album-card {
  display: block;
  color: inherit;
  cursor: pointer;
}

.archive-album-card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.archive-album-card__media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 5;
}

.archive-album-card__media img,
.archive-album-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.archive-album-card:hover .archive-album-card__media img,
.archive-album-card:hover .archive-album-card__media video {
  opacity: 0.88;
}

.archive-album-card__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.16rem 0.42rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

.archive-album-card__ph {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.archive-album-card__meta {
  margin: 0.58rem 0 0;
  display: grid;
  gap: 0.16rem;
}

.archive-album-card__date,
.archive-album-card__name {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.archive-album-card__date {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.archive-album-card:hover .archive-album-card__date,
.archive-album-card:hover .archive-album-card__name {
  color: var(--text);
}

.archive-album-hero {
  background: transparent;
  color: var(--text);
  text-align: center;
  padding: 4.2rem 1.25rem 3.4rem;
}

.archive-album-hero__back {
  display: inline-block;
  margin: 0 0 1.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-album-hero__back:hover,
.archive-album-hero__back:focus-visible {
  color: var(--text);
}

.archive-album-hero__date {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text);
}

.archive-album-hero__date-long {
  margin: 0.7rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-album-hero__title {
  margin: 1.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.archive-album-hero__lede {
  margin: 1.35rem auto 0;
  max-width: 36rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  line-height: 1.75;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-album-empty {
  padding: 2rem var(--pad);
}

.archive-album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: min(1520px, 100%);
  margin: 0 auto;
  padding: 0.85rem clamp(12px, 2vw, 28px) 0;
}

.archive-album-cell {
  margin: 0;
  padding: 0;
  border: 0;
  background: #111;
  display: block;
  width: 100%;
  cursor: zoom-in;
  overflow: hidden;
}

.archive-album-cell:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.archive-album-cell img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.archive-album-cell--video,
.archive-album-cell--embed {
  grid-column: 1 / -1;
  cursor: default;
  background: #000;
}

.archive-album-cell--video video,
.archive-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #000;
}

.archive-embed {
  position: relative;
  width: 100%;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .archive-album-card__media img,
  .archive-album-card__media video {
    transition: none;
  }
}

.lightbox {
  width: min(92vw, 1100px);
  max-height: 92dvh;
  border: 0;
  padding: 2.5rem 3rem;
  background: transparent;
  color: var(--text);
  position: relative;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox__stage {
  margin: 0;
  display: grid;
  place-items: center;
  position: relative;
}

.lightbox__stage img,
.lightbox__stage video {
  grid-area: 1 / 1;
  max-width: 92vw;
  max-height: 82dvh;
  object-fit: contain;
  background: #000;
}

.lightbox__stage .media-ghost {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 1;
}

.lightbox__stage .media-ghost.is-out {
  animation: shopGhostOut 150ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lightbox__stage video[hidden],
.lightbox__stage img[hidden] {
  display: none;
}

.lightbox figcaption {
  margin-top: 0.6rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.lightbox__close {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  top: 8px;
  right: 12px;
  font-size: 2rem;
  width: 44px;
  height: 44px;
}

.lightbox.media-stage {
  overflow: visible;
}

html[data-theme="light"] .legal-doc a:hover,
html[data-theme="light"] .checkbox-field a,
html[data-theme="light"] .success-box__thanks {
  color: var(--text);
}

html[data-theme="light"] .checkbox-field input[type="checkbox"] {
  accent-color: #111;
}

html[data-theme="light"] .account-form input::placeholder {
  color: rgba(17, 17, 17, 0.35);
}

html[data-theme="light"] .footer-copy {
  color: rgba(17, 17, 17, 0.4);
}

html[data-theme="light"] body.shop .info-tip__btn,
html[data-theme="light"] .info-tip__btn {
  color: rgba(17, 17, 17, 0.6);
  border-color: rgba(17, 17, 17, 0.45);
}

html[data-theme="light"] .info-tip__pop {
  background: #fff;
  color: #111;
}

html[data-theme="light"] body.shop .info-tip__btn:hover,
html[data-theme="light"] body.shop .info-tip__btn:focus-visible,
html[data-theme="light"] .info-tip__btn:hover,
html[data-theme="light"] .info-tip__btn:focus-visible {
  color: #111;
  border-color: #111;
}

html[data-theme="light"] .cookie-toast {
  background: #fff;
  border-color: rgba(17, 17, 17, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .cookie-toast__text a,
html[data-theme="light"] .cookie-toast__text a:hover {
  color: #111;
}

html[data-theme="light"] .cookie-toast__btn,
html[data-theme="light"] body.shop .cookie-toast__btn {
  background: #111;
  border-color: #111;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

html[data-theme="light"] dialog.shop-modal,
html[data-theme="light"] .shop-modal {
  background: var(--paper);
  color: #111;
  color-scheme: light;
  border-color: rgba(17, 17, 17, 0.16);
}

html[data-theme="light"] .account-stats dd {
  color: #111;
}

@media (max-width: 900px) {
  .archive-index,
  .archive-album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 0.75rem;
  }
}

@media (max-width: 560px) {
  .archive-index,
  .archive-album-grid {
    grid-template-columns: 1fr;
  }
}

/* LIGHT_DOCS: legal / contacts / CMS HTML black-on-white. Hero cream stays below. */
html[data-theme="light"] .legal-doc,
html[data-theme="light"] .legal-doc p,
html[data-theme="light"] .legal-doc li,
html[data-theme="light"] .legal-doc span,
html[data-theme="light"] .legal-doc a,
html[data-theme="light"] .legal-doc a:hover,
html[data-theme="light"] .legal-doc h1,
html[data-theme="light"] .legal-doc h2,
html[data-theme="light"] .legal-doc h3,
html[data-theme="light"] .legal-doc h4,
html[data-theme="light"] .legal-doc h5,
html[data-theme="light"] .legal-doc h6,
html[data-theme="light"] .legal-doc strong,
html[data-theme="light"] .legal-doc em,
html[data-theme="light"] .legal-doc b,
html[data-theme="light"] .legal-doc i,
html[data-theme="light"] .legal-doc u,
html[data-theme="light"] .legal-doc td,
html[data-theme="light"] .legal-doc th,
html[data-theme="light"] .legal-doc div,
html[data-theme="light"] .legal-doc blockquote,
html[data-theme="light"] .legal-doc figcaption,
html[data-theme="light"] .legal-doc__list--numbered li:target,
html[data-theme="light"] .legal-doc__nav a:hover {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html[data-theme="light"] .legal-doc .legal-doc__h,
html[data-theme="light"] .legal-doc .legal-doc__lead,
html[data-theme="light"] .legal-doc .legal-doc__num,
html[data-theme="light"] .legal-doc .legal-doc__status,
html[data-theme="light"] .legal-doc .legal-doc__nav,
html[data-theme="light"] .contact-row__kicker,
html[data-theme="light"] .contact-id dt,
html[data-theme="light"] .info-card__title,
html[data-theme="light"] .info-card__sign,
html[data-theme="light"] .footer-legal,
html[data-theme="light"] .footer-legal a,
html[data-theme="light"] .footer-legal__btn {
  color: #666 !important;
  -webkit-text-fill-color: #666 !important;
}

html[data-theme="light"] .footer-legal a:hover,
html[data-theme="light"] .footer-legal__btn:hover {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html[data-theme="light"] .contact-row,
html[data-theme="light"] body.shop a.contact-row,
html[data-theme="light"] .contact-row__icon,
html[data-theme="light"] .contact-row__value,
html[data-theme="light"] .contact-row:hover .contact-row__value,
html[data-theme="light"] .contact-legal__name,
html[data-theme="light"] .contact-id dd,
html[data-theme="light"] .info-card p,
html[data-theme="light"] .info-card a,
html[data-theme="light"] .info-card a:hover,
html[data-theme="light"] .shop-modal__close:hover,
html[data-theme="light"] .shop-modal__close:focus-visible,
html[data-theme="light"] .section-head a:hover,
html[data-theme="light"] .link-quiet:hover {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

html[data-theme="light"] .contact-row__icon svg,
html[data-theme="light"] .contact-row__icon svg path,
html[data-theme="light"] .shop-modal .contact-row svg,
html[data-theme="light"] .shop-modal .contact-row svg path {
  color: #111 !important;
  fill: #111 !important;
  filter: none;
}

/* HERO_ON_PHOTO: cream type in both themes — last so it beats stray light-theme ink. */
html[data-theme="light"] .hero-slider .hero-slide__hit,
html[data-theme="light"] .hero-slider a.hero-slide__hit,
html[data-theme="light"] .hero-slider .hero-slide__copy,
html[data-theme="light"] .hero-slider .hero-slide__title,
html[data-theme="light"] .hero-slider a.hero-slide__hit .hero-slide__title {
  color: #f7f4ee !important;
  -webkit-text-fill-color: #f7f4ee !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55), 0 8px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .hero-slider .hero-slide__text,
html[data-theme="light"] .hero-slider a.hero-slide__hit .hero-slide__text {
  color: rgba(255, 255, 255, 0.82) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.82) !important;
}

/* Card reveal only. A full-page fade made every navigation blink. */
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.is-in) {
    opacity: 1;
    transform: translateY(6px);
  }

  .reveal {
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  body.shop img.media-fade { transition: opacity 320ms ease-out, transform 280ms ease-out; }
  body.shop img.media-is-pending { opacity: 0 !important; }
}

/* Avoid a white flash while lazy-loaded product photos are still arriving. */
body.shop .product-card__media, body.shop .blog-card__media, body.shop .blog-row__media { background: var(--surface); }

@keyframes shopPageIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shopVtOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes shopVtIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  @view-transition {
    navigation: none;
  }

  .shop-main,
  .cart-item,
  .success-box,
  .shop-nav-panel,
  .cookie-toast:not([hidden]),
  .shop-modal[open],
  .lightbox[open],
  .shop-modal.is-closing,
  .lightbox.is-closing {
    animation: none !important;
    transform: none !important;
  }

  html.is-leaving .shop-page {
    opacity: 1;
    transition: none;
  }

  .reveal,
  .reveal:not(.is-in),
  .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .shop-nav-inline a,
  .header-link,
  .bag,
  .theme-toggle,
  .shop-nav-panel a,
  .footer-legal a,
  .footer-legal__btn,
  .filter-chip,
  .size-btn,
  .choice-chip span,
  .btn-primary,
  .btn-ghost,
  .cta-bar,
  .pdp-thumb,
  .shop-modal__close,
  .accordion summary,
  .archive-album-card__date,
  .archive-album-card__name,
  .hero-slide,
  .product-card__media img,
  .product-card__media video,
  .archive-album-card__media img,
  .archive-album-card__media video,
  .product-card__name,
  .link-quiet,
  .section-head a,
  .qty-pill button,
  .pdp-main img,
  .pdp-main video,
  .lightbox__stage img,
  .lightbox__stage video,
  .media-ghost,
  .accordion-panel {
    transition: none;
  }

  .product-card:hover .product-card__media img,
  .product-card:hover .product-card__media video,
  .archive-album-card:hover .archive-album-card__media img,
  .archive-album-card:hover .archive-album-card__media video {
    transform: none;
  }

  .accordion summary span,
  .accordion details[open] > summary span,
  .accordion details.is-expanded > summary span {
    transition: none;
    transform: none;
  }

  .accordion details::details-content,
  .accordion-panel {
    transition: none;
    height: auto;
  }
}



.checkout-verify {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
}

.checkout-verify p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.checkout-verify .btn-primary {
  width: auto;
}

#checkout_email[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Gallery taps react at once on phones (no double-tap zoom wait). */
.pdp-thumb,
.pdp-main,
.media-nav {
  touch-action: manipulation;
}

/* ===== SEO pages: crumbs, catalog texts, brands (2026-11-06) ===== */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--nav-hover); }
.crumbs [aria-current] { color: var(--text); }

.pdp-sold {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}
.pdp-sold-note, .pdp-brand, .pdp-trust {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.pdp-sold-note a, .pdp-brand a, .pdp-trust a {
  color: var(--nav-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.pdp-trust { margin-top: 1.25rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pdp-more { margin-top: 3rem; }

.seo-text { margin-top: 2.5rem; max-width: 46rem; }
.seo-text p { font-size: 0.8rem; color: var(--muted); }
.brand-links { margin-top: 2.5rem; }
.brand-links__title {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== Blog ===== */
.blog-lead {
  max-width: 46rem;
  margin: -0.5rem 0 1.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}
.blog-lead a { color: var(--nav-hover); text-decoration: underline; text-underline-offset: 0.18em; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 2rem 1.25rem;
}
.blog-grid + .blog-shop, .blog-shop + .blog-grid { margin-top: 2.5rem; }
.blog-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }

.blog-card { display: flex; flex-direction: column; gap: 0.5rem; color: var(--text); text-decoration: none; }
.blog-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--photo-bg);
  display: grid;
  place-items: center;
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.blog-card:hover .blog-card__media img { transform: scale(1.03); }
.blog-card__media .ph { color: var(--muted); font-size: 0.7rem; letter-spacing: 0.12em; }
.blog-card__rubric {
  margin: 0.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.blog-card:hover .blog-card__title { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.blog-card__excerpt { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--muted); }

.blog-post { max-width: 46rem; margin: 0 auto; }
.blog-post__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.blog-post__meta {
  margin: 0.85rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-post__meta a { color: var(--muted); }
.blog-post__meta a:hover { color: var(--nav-hover); }
.blog-post__lead { margin: 1.25rem 0 0; font-size: 1.02rem; line-height: 1.55; }
.blog-post__cover { margin: 1.75rem 0 0; background: var(--photo-bg); }
.blog-post__cover img { display: block; width: 100%; height: auto; max-height: 34rem; object-fit: cover; }

.blog-toc {
  margin: 1.75rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
}
.blog-toc__title {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-toc ol { margin: 0; padding-left: 1.15rem; }
.blog-toc li { margin: 0.3rem 0; font-size: 0.85rem; line-height: 1.4; }
.blog-toc a { color: var(--text); text-decoration: none; }
.blog-toc a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

.blog-body { margin-top: 1.75rem; font-size: 0.98rem; line-height: 1.65; }
.blog-body > *:first-child { margin-top: 0; }
.blog-body p, .blog-body ul, .blog-body ol, .blog-body blockquote, .blog-body table, .blog-body figure { margin: 0 0 1.05rem; }
.blog-body h2 {
  margin: 2.4rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  scroll-margin-top: 5.5rem;
}
.blog-body h3 {
  margin: 1.75rem 0 0.6rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  scroll-margin-top: 5.5rem;
}
.blog-body ul, .blog-body ol { padding-left: 1.25rem; }
.blog-body li { margin: 0.35rem 0; }
.blog-body a { color: var(--nav-hover); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.blog-body a:hover { color: var(--muted); }
.blog-body blockquote {
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 2px solid var(--chip-on);
  color: var(--muted);
}
.blog-body img { display: block; max-width: 100%; height: auto; }
.blog-body figcaption { margin-top: 0.45rem; font-size: 0.75rem; color: var(--muted); }
.blog-body table { width: 100%; border-collapse: collapse; font-size: 0.85rem; display: block; overflow-x: auto; }
.blog-body th, .blog-body td { padding: 0.5rem 0.6rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.blog-body th { font-weight: 600; background: var(--surface-2); }

.blog-agents {
  margin-top: 2rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.blog-agents p { margin: 0.25rem 0; font-size: 0.72rem; color: var(--muted); }

/* Product strips inside and after articles */
.blog-shop {
  margin: 2rem 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.blog-post + .blog-shop, .blog-shop--end { margin-top: 3rem; }
.blog-shop__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.blog-shop__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-shop__all { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; }
.blog-shop__all:hover { color: var(--nav-hover); }
.blog-shop__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 0.85rem; }
@media (min-width: 700px) {
  .blog-shop__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .blog-shop--end .blog-shop__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.blog-shop--single .blog-shop__grid { grid-template-columns: minmax(0, 14rem); }
.blog-shop__item { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.blog-shop__media { aspect-ratio: 1; background: var(--photo-bg); display: grid; place-items: center; overflow: hidden; }
.blog-shop__media img { width: 100%; height: 100%; object-fit: contain; }
.blog-shop__media .ph { color: #888; font-size: 0.7rem; letter-spacing: 0.12em; }
.blog-shop__name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.blog-shop__name:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.blog-shop__price { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.blog-shop__buy { margin: 0; }
.blog-shop__btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 0.6rem 0.5rem;
  border: 0;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 180ms ease;
}
.blog-shop__btn:hover { opacity: 0.85; }
.blog-body .blog-shop a { text-decoration: none; color: inherit; }
.blog-body .blog-shop .blog-shop__btn { color: var(--cta-fg); }
.blog-body .blog-shop p { margin: 0; }

.blog-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--chip-on);
  text-align: center;
}
.blog-cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-cta__text { margin: 0.6rem auto 0; max-width: 32rem; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
.blog-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.15rem; }
.blog-body .blog-cta a.btn-primary { color: var(--cta-fg); text-decoration: none; }
.blog-body .blog-cta a.btn-ghost { text-decoration: none; }

/* FAQ */
.faq { max-width: 46rem; }
.faq__group { margin-top: 2rem; scroll-margin-top: 5.5rem; }
.faq__h {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq__q { margin: 0; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.faq .accordion-body p { font-size: 0.85rem; }
body.shop .blog-shop .blog-shop__btn,
body.shop .blog-shop .blog-shop__btn:hover {
  background: var(--cta-bg);
  color: var(--cta-fg);
  text-decoration: none;
}
.blog-shop__buy { margin-top: auto; }
.blog-shop__item > a.blog-shop__btn { margin-top: auto; }
body.shop .blog-shop .blog-shop__btn { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; }
/* body.shop a resets colour/underline: article and helper links need the higher specificity */
body.shop .blog-body a:not([class]),
body.shop .blog-lead a,
body.shop .pdp-sold-note a,
body.shop .pdp-brand a,
body.shop .pdp-trust a,
body.shop .seo-text a {
  color: var(--nav-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
body.shop .crumbs a { color: var(--muted); }
body.shop .crumbs a:hover { color: var(--nav-hover); }
/* Product page: one row «Оригинал · Доставка · Возврат» + brand link */
.pdp-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdp-trust__links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
body.shop .pdp-trust a { color: var(--nav-hover); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
body.shop .pdp-trust a:hover { text-decoration-color: currentColor; }
/* Footer: two tidy columns (documents left, help right) */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem 3rem;
  width: 100%;
  max-width: 46rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col li { margin: 0; }
.footer-col__sub::before {
  content: "— ";
  color: var(--muted);
}
.footer-col__sub { padding-left: 0.15rem; }
/* the accordion already draws the line above */
.accordion + .pdp-trust { border-top: 0; padding-top: 0; }
/* footer columns close together, centred */
.footer-cols {
  justify-content: center;
  column-gap: clamp(2.5rem, 8vw, 5rem);
  width: auto;
  max-width: none;
}

/* ===== Blog v2: editorial index (2026-11-06) ===== */
.blog-hero { padding: 0.5rem 0 2.25rem; border-bottom: 1px solid var(--line); margin-bottom: 2.25rem; }
.blog-hero__kicker {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 7.5vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.blog-hero__lead { max-width: 40rem; margin: 1.1rem 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-meta > * + *::before { content: "·"; margin: 0 0.55rem; }
body.shop .blog-meta a { color: var(--text); }

/* layout: content + rubric column on the right */
.blog-layout { display: grid; gap: 2rem; }
.blog-side { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.blog-side__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.blog-side__box { padding-top: 1rem; border-top: 1px solid var(--line); }
.blog-side__text { margin: 0 0 0.6rem; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
body.shop .blog-side__link { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text); }
body.shop .blog-side__link:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.blog-rubrics__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.blog-rubrics__list li { border-bottom: 1px solid var(--line); }
body.shop .blog-rubrics__link {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: baseline;
  padding: 0.7rem 0.5rem 0.7rem 0;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, padding 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-rubrics__num, .blog-rubrics__count { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; }
.blog-rubrics__name { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
body.shop .blog-rubrics__link:hover { color: var(--text); padding-left: 0.35rem; }
body.shop .blog-rubrics__link.is-active { background: var(--cta-bg); color: var(--cta-fg); padding-left: 0.5rem; }
body.shop .blog-rubrics__link.is-empty { opacity: 0.45; }

/* mobile: rubrics become a swipeable row above the list */
@media (max-width: 979px) {
  .blog-side__box { display: none; }
  .blog-rubrics__list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    border: 0;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }
  .blog-rubrics__list::-webkit-scrollbar { display: none; }
  .blog-rubrics__list li { border: 0; flex: none; }
  body.shop .blog-rubrics__link { display: flex; gap: 0.5rem; padding: 0.55rem 0.75rem; border: 1px solid var(--line); }
  body.shop .blog-rubrics__link:hover { padding-left: 0.75rem; }
  body.shop .blog-rubrics__link.is-active { padding-left: 0.75rem; border-color: var(--cta-bg); }
  .blog-rubrics__num { display: none; }
  .blog-side .blog-side__title { display: none; }
}
@media (min-width: 980px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 3.5rem; align-items: start; }
  .blog-side { order: 2; position: sticky; top: 5.5rem; }
}

/* featured post */
body.shop .blog-feature { display: grid; gap: 1.25rem; color: var(--text); margin-bottom: 2.75rem; }
.blog-feature__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--photo-bg); }
.blog-feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.blog-feature:hover .blog-feature__media img { transform: scale(1.03); }
.blog-feature__badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.45rem 0.6rem;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.blog-feature__title {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.6vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
}
.blog-feature__excerpt { max-width: 42rem; margin: 0.8rem 0 0; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.blog-feature__more {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}
@media (min-width: 1200px) {
  body.shop .blog-feature { grid-template-columns: 1.35fr 1fr; align-items: end; gap: 2rem; }
  .blog-feature__media { aspect-ratio: 4 / 3; }
}

/* the index of posts */
.blog-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.blog-row { border-bottom: 1px solid var(--line); }
body.shop .blog-row__link {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  color: var(--text);
}
.blog-row__num { display: none; }
.blog-row__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--photo-bg); }
.blog-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1); }
.blog-row__body { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.blog-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.98rem, 2.2vw, 1.3rem);
  line-height: 1.15;
}
.blog-row__excerpt { font-size: 0.8rem; line-height: 1.45; color: var(--muted); display: none; }
.blog-row__link:hover .blog-row__media img { transform: scale(1.05); }
.blog-row__link:hover .blog-row__title { text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
.blog-index__shop { list-style: none; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) {
  body.shop .blog-row__link { grid-template-columns: 2.75rem 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; }
  .blog-row__num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    padding-top: 0.15rem;
    transition: color 180ms ease;
  }
  .blog-row__link:hover .blog-row__num { color: var(--text); }
  .blog-row__excerpt { display: block; }
}

/* ----- article page ----- */
.blog-post { max-width: 72rem; margin: 0 auto; }
.blog-post__head { max-width: 44rem; }
.blog-post__title { overflow-wrap: anywhere; }
.blog-post__head .blog-meta { margin-bottom: 1rem; }
.blog-post__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 5.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.blog-post__lead { max-width: 44rem; margin: 1.25rem 0 0; font-size: 1.05rem; line-height: 1.55; color: var(--muted); }
.blog-post__cover { margin: 2rem 0 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--photo-bg); }
.blog-post__cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; }

.blog-post__layout { display: grid; grid-template-columns: minmax(0, 44rem); gap: 1.5rem; margin-top: 2rem; }
.blog-post__content { min-width: 0; }
.blog-post__side { min-width: 0; }
.blog-post__rubrics { display: none; }
.blog-post .blog-body { margin-top: 0; font-size: 1.02rem; }

.blog-post .blog-toc { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.blog-post .blog-toc summary { list-style: none; cursor: pointer; padding: 0.8rem 0; margin: 0; }
.blog-post .blog-toc summary::-webkit-details-marker { display: none; }
.blog-post .blog-toc summary::after { content: "+"; float: right; font-family: var(--font-mono); }
.blog-post .blog-toc[open] summary::after { content: "−"; }
.blog-post .blog-toc ol { margin: 0 0 0.9rem; padding: 0; list-style: none; counter-reset: toc; }
.blog-post .blog-toc li { counter-increment: toc; margin: 0; }
body.shop .blog-post .blog-toc a {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  padding: 0.35rem 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}
body.shop .blog-post .blog-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.66rem; padding-top: 0.12rem; }
body.shop .blog-post .blog-toc a:hover { color: var(--text); }

@media (min-width: 1100px) {
  .blog-post__layout { grid-template-columns: minmax(0, 44rem) 15.5rem; justify-content: space-between; column-gap: 4rem; row-gap: 3rem; }
  .blog-post__cover, .blog-post__content { grid-column: 1; }
  .blog-post__side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 2rem; }
  .blog-post__rubrics { display: block; }
  .blog-post .blog-toc summary { pointer-events: none; }
  .blog-post .blog-toc summary::after { content: ""; }
}
.blog-post + .blog-shop, .blog-post ~ .blog-cta { max-width: 72rem; margin-left: auto; margin-right: auto; }

/* ===== Footer v3: columns + wordmark (2026-11-06) ===== */
.shop-footer.site-footer {
  display: block;
  margin-top: 4rem;
  padding: 3rem var(--pad) 1.25rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; min-width: 0; }
.site-footer__h {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hint);
}
body.shop .site-footer__col a,
.site-footer__btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
body.shop .site-footer__col a:hover,
.site-footer__btn:hover { color: var(--text); text-decoration-color: currentColor; }
.site-footer__drops { grid-column: 1 / -1; }
.site-footer__text { margin: 0; max-width: 18rem; font-size: 0.84rem; line-height: 1.45; color: var(--muted); }
body.shop .site-footer__col a.site-footer__tg {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
body.shop .site-footer__col a.site-footer__tg:hover { background: var(--cta-bg); color: var(--cta-fg); border-color: var(--cta-bg); }
.site-footer__mark {
  margin: 3rem auto 0;
  max-width: var(--max);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 21vw, 17rem);
  line-height: 0.78;
  letter-spacing: -0.02em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
}
.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hint);
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); }
  .site-footer__drops { grid-column: auto; }
}
/* Product strips: price on the button with a trolley icon, size under the name */
.blog-shop__size { margin: 0; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
body.shop .blog-shop .blog-shop__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.blog-shop__btn .icon-cart { flex: none; }
.blog-shop__btn span { white-space: nowrap; }
.blog-shop__item { gap: 0.35rem; }
.blog-shop__item .blog-shop__buy, .blog-shop__item > a.blog-shop__btn { margin-top: auto; padding-top: 0.45rem; }
.blog-shop__item .blog-shop__buy .blog-shop__btn { width: 100%; }
.bag .icon-cart { display: block; }
/* footer fixes: buttons look like links; wordmark always fits */
body.shop .site-footer__col .site-footer__btn {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  text-align: left;
}
body.shop .site-footer__col .site-footer__btn:hover { color: var(--text); }
.site-footer__mark {
  font-size: min(15.5vw, 12.5rem);
  line-height: 0.8;
  margin-top: 2.5rem;
  white-space: nowrap;
  overflow: hidden;
}
/* in-text call to action under the intro */
.blog-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  margin: 1.6rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--chip-on);
  background: var(--surface);
}
.blog-body .blog-callout__text { margin: 0; flex: 1 1 18rem; font-size: 0.9rem; line-height: 1.5; }
body.shop .blog-body a.blog-callout__btn {
  flex: none;
  padding: 0.65rem 1rem;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 180ms ease;
}
body.shop .blog-body a.blog-callout__btn:hover { opacity: 0.85; }
/* Telegram CTA in the footer: same language as the site's main buttons */
body.shop .site-footer__col a.site-footer__tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 19rem;
  min-height: 48px;
  margin-top: 0.5rem;
  padding: 0 1.25rem;
  border: 0;
  background: var(--cta-bg);
  color: var(--cta-fg);
  -webkit-text-fill-color: var(--cta-fg);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.shop .site-footer__col a.site-footer__tg:hover { background: var(--cta-bg); color: var(--cta-fg); opacity: 0.86; }
.site-footer__tg svg { flex: none; }
.site-footer__handle {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--hint);
}
/* blog titles: same treatment as the shop's headings (caps, tracked), sane sizes */
.blog-feature__title,
.blog-row__title,
.blog-post__title,
.blog-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-feature__title { font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.15; }
.blog-row__title { font-size: clamp(0.85rem, 1.6vw, 1.02rem); line-height: 1.25; }
.blog-card__title { font-size: 0.85rem; line-height: 1.25; }
.blog-post__title { font-size: clamp(1.35rem, 3.4vw, 2.4rem); line-height: 1.12; }
.blog-hero__title { letter-spacing: 0.02em; }
@media (min-width: 1200px) {
  body.shop .blog-feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; }
  .blog-feature__media { aspect-ratio: 4 / 3; }
}
@media (min-width: 1100px) { .blog-post__side { align-self: start; max-height: calc(100vh - 7rem); overflow-y: auto; scrollbar-width: none; } }
@media (min-width: 980px) { .blog-side { align-self: start; } }

/* ===== Blog + footer on the shop's own type scale (2026-11-06) =====
   headings: Syne 700 1.1rem .08em caps (.page-title, .pdp-info h1)
   labels:   body 0.72rem .14em caps (nav) / 0.8rem .1em caps (accordion)
   names:    mono 0.72rem .04em caps (.product-card__name), prices mono 0.75rem
   text:     body 0.9rem / 1.55 (.accordion-body) */
.blog-hero { padding: 0 0 1.5rem; margin-bottom: 2rem; }
.blog-hero .page-title { margin: 0; }
.blog-hero__lead { max-width: 46rem; margin: 0.75rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }

.blog-meta { font-size: 0.72rem; letter-spacing: 0.04em; }
.blog-side__title { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--muted); }
body.shop .blog-rubrics__link {
  grid-template-columns: 1fr auto;
  padding: 0.65rem 0;
  font-size: 0.72rem;
}
.blog-rubrics__name { font-family: var(--font-body); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.blog-rubrics__count { font-family: var(--font-mono); font-size: 0.72rem; }
body.shop .blog-rubrics__link:hover { padding-left: 0; color: var(--nav-hover); }
body.shop .blog-rubrics__link.is-active { background: none; color: var(--nav-hover); padding-left: 0; }
body.shop .blog-rubrics__link.is-active .blog-rubrics__name { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
@media (max-width: 979px) {
  body.shop .blog-rubrics__link, body.shop .blog-rubrics__link:hover, body.shop .blog-rubrics__link.is-active { padding: 0.45rem 0.75rem; }
  body.shop .blog-rubrics__link.is-active { border-color: var(--chip-on); }
  body.shop .blog-rubrics__link.is-active .blog-rubrics__name { text-decoration: none; }
}
.blog-side__text { font-size: 0.8rem; }
body.shop .blog-side__link { font-size: 0.72rem; letter-spacing: 0.04em; }

.blog-feature__title,
.blog-post__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-feature__excerpt, .blog-post__lead { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.blog-feature__media img, .blog-row__media img, .blog-card__media img { transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.blog-feature:hover .blog-feature__media img,
.blog-row__link:hover .blog-row__media img,
.blog-card:hover .blog-card__media img { transform: scale(1.02); }

.blog-row__title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-row__excerpt { font-size: 0.8rem; }
@media (min-width: 700px) {
  body.shop .blog-row__link { grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; }
}
.blog-card__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.blog-card__rubric { font-size: 0.72rem; }
.blog-card__excerpt { font-size: 0.8rem; }

/* article text */
.blog-post .blog-body { font-size: 0.9rem; line-height: 1.6; }
.blog-body h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-body h3 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; }
.blog-body th, .blog-body td { font-size: 0.8rem; }
body.shop .blog-post .blog-toc a { font-size: 0.8rem; }
body.shop .blog-post .blog-toc a::before { font-size: 0.72rem; }
.blog-agents p { font-size: 0.72rem; }

/* blocks inside articles use the shop's own labels and buttons */
.blog-shop__title { font-family: var(--font-body); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em; }
.blog-shop__all { font-size: 0.72rem; letter-spacing: 0.14em; }
.blog-shop__name { font-size: 0.72rem; }
.blog-shop__size { font-size: 0.72rem; }
body.shop .blog-shop .blog-shop__btn { min-height: 44px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.02em; }
.blog-cta__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; }
.blog-cta__text { font-size: 0.9rem; }
.blog-body .blog-callout__text { font-size: 0.9rem; }
body.shop .blog-body a.blog-callout__btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

/* footer: nav-sized caps links, no decoration */
.shop-footer.site-footer { padding-bottom: 1.5rem; }
.site-footer__h { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--hint); }
body.shop .site-footer__col a,
body.shop .site-footer__col .site-footer__btn {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
body.shop .site-footer__col a.site-footer__tg { font-size: 0.78rem; letter-spacing: 0.08em; }
.site-footer__text { font-size: 0.8rem; }
.site-footer__handle { font-size: 0.72rem; letter-spacing: 0.04em; }
.site-footer__bar { margin-top: 2.5rem; font-size: 0.72rem; letter-spacing: 0.04em; }
.blog-post__cover { position: relative; }
.blog-post__credit, .blog-body figcaption {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.blog-post__cover .blog-post__credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 0.3rem 0.5rem; background: rgba(0,0,0,0.6); color: #fff; }
.blog-body figure { margin: 1.75rem 0; }
.blog-body figure img { width: 100%; height: auto; }
/* Telegram in the footer: a plain link like the others, with the icon */
body.shop .site-footer__col a.site-footer__tg,
body.shop .site-footer__col a.site-footer__tg:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: auto;
  max-width: none;
  min-height: 0;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: none;
  -webkit-text-fill-color: currentColor;
  opacity: 1;
}
body.shop .site-footer__col a.site-footer__tg { color: var(--muted); }
body.shop .site-footer__col a.site-footer__tg:hover { color: var(--text); }
.site-footer__tg svg { width: 16px; height: 16px; }
/* Syne and Instrument Sans have no Cyrillic: Russian letters fall back to the system font.
   Mixed Russian + Latin headings in the blog/CTA use that same font for every letter, so words like SWOOP match. */
:root { --font-mixed: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.blog-hero .page-title,
.blog-feature__title,
.blog-row__title,
.blog-post__title,
.blog-body h2,
.blog-cta__title,
.faq__h {
  font-family: var(--font-mixed);
  font-weight: 700;
}
/* featured post: text block starts at the top edge of the picture */
@media (min-width: 1200px) { body.shop .blog-feature { align-items: start; } }
.blog-feature__body > .blog-meta { margin-top: 0; }

/* ===== Catalog / brand page bottom: quiet (2026-11-06) ===== */
/* blog cards in shop pages: product-grid rhythm, title only */
.blog-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 0.85rem;
}
@media (min-width: 900px) {
  .blog-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.25rem; }
}
.blog-grid--compact .blog-card { gap: 0.5rem; }
.blog-grid--compact .blog-card__media { aspect-ratio: 1; }
.blog-grid--compact .blog-card__excerpt { display: none; }
.blog-grid--compact .blog-card__rubric { margin: 0.15rem 0 0; color: var(--muted); }
.blog-grid--compact .blog-card__title { color: var(--text); }

/* brands: one line of links in the nav style */
.brand-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1.25rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-line__title { color: var(--hint); margin-right: 0.25rem; }
body.shop .brand-line a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
body.shop .brand-line a:hover,
body.shop .brand-line a.is-active { color: var(--nav-hover); text-decoration-color: currentColor; }

/* SEO text: last, small, quiet; links not highlighted */
.seo-text { max-width: 46rem; margin-top: 1.75rem; }
.seo-text p { margin: 0; font-size: 0.75rem; line-height: 1.6; color: var(--hint); }
.seo-text p + p { margin-top: 0.6rem; }
body.shop .seo-text a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.18em; }
body.shop .seo-text a:hover { color: var(--text); text-decoration-color: currentColor; }
/* photo source line under every picture */
.blog-post__cover { aspect-ratio: auto; overflow: visible; background: none; }
.blog-post__cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--photo-bg); }
.blog-post__cover .blog-post__credit {
  position: static;
  margin: 0.5rem 0 0;
  padding: 0;
  background: none;
  color: var(--hint);
}
.blog-post__credit, .blog-body figcaption { font-size: 0.72rem; letter-spacing: 0.02em; color: var(--hint); }
/* CTA: just the line and one compact button */
.blog-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  padding: 0;
  border: 0;
  text-align: center;
}
.blog-cta__title { margin: 0; }
body.shop a.blog-cta__btn,
body.shop .blog-body a.blog-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 2rem;
  background: var(--cta-bg);
  color: var(--cta-fg);
  -webkit-text-fill-color: var(--cta-fg);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
body.shop a.blog-cta__btn:hover { opacity: 0.86; }
/* SEO text across the page width: two columns on wide screens */
.seo-text { max-width: none; }
@media (min-width: 900px) {
  .seo-text { column-count: 2; column-gap: 3rem; }
  .seo-text p { break-inside: avoid; }
}
/* CTA band: copy + four items from the catalog */
.blog-cta {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 3rem 0 0;
  padding: 1.5rem;
  border: 0;
  background: var(--surface);
  text-align: left;
}
.blog-cta__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.blog-cta__title { margin: 0; font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.blog-cta .blog-cta__text { margin: 0 0 0.4rem; font-size: 0.8rem; line-height: 1.5; color: var(--muted); max-width: 22rem; }
.blog-cta__items { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
body.shop a.blog-cta__item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--photo-bg); }
.blog-cta__item img { width: 100%; height: 100%; object-fit: contain; transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.blog-cta__item:hover img { transform: scale(1.03); }
.blog-cta__price {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  padding: 0.15rem 0.35rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
@media (min-width: 760px) {
  .blog-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; padding: 1.75rem; }
}
.blog-post__content .blog-cta { grid-template-columns: 1fr; }
@media (min-width: 760px) { .blog-post__content .blog-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
/* less air between the last block and the footer */
.shop-footer.site-footer { margin-top: 3rem; }
.shop-main > .blog-cta:last-child, .shop-main > .pager:last-child { margin-bottom: 0; }
.shop-footer.site-footer { margin-top: 0; }
html[data-theme="light"] .blog-cta { background: var(--surface-2); }
html[data-theme="light"] .blog-shop { background: var(--surface-2); border-color: transparent; }
@media (max-width: 520px) { .blog-cta__price { display: none; } }
/* CTA items: brand under the photo instead of a price tag */
body.shop a.blog-cta__item { aspect-ratio: auto; overflow: visible; background: none; display: flex; flex-direction: column; gap: 0.4rem; }
.blog-cta__item img { aspect-ratio: 1; background: var(--photo-bg); }
.blog-cta__brand {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.shop a.blog-cta__item:hover .blog-cta__brand { color: var(--text); }
/* CTA: catalog as a quiet link, not a button */
body.shop a.blog-cta__btn,
body.shop .blog-body a.blog-cta__btn {
  display: inline;
  min-height: 0;
  padding: 0;
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}
body.shop a.blog-cta__btn:hover { opacity: 1; color: var(--muted); }
/* CTA photos fill the square (no white bars) */
.blog-cta__item img { object-fit: cover; }

/* ===== Brands: logos, filter, brand page head ===== */
.brand-logo { display: block; height: 18px; width: auto; max-width: 120px; color: currentColor; }
.brand-logo--text { height: auto; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.brand-line { align-items: center; gap: 1rem 1.75rem; }
body.shop .brand-line a { display: inline-flex; align-items: center; color: var(--muted); opacity: 0.8; transition: color 180ms ease, opacity 180ms ease; text-decoration: none; }
body.shop .brand-line a:hover, body.shop .brand-line a.is-active { color: var(--text); opacity: 1; }
.brand-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.brand-head__logo .brand-logo { height: 34px; max-width: 220px; }
.brand-filter { margin: -0.75rem 0 1.5rem; }
.brand-filter__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand-filter__toggle::-webkit-details-marker { display: none; }
.brand-filter__toggle::after { content: "+"; font-family: var(--font-mono); }
.brand-filter[open] .brand-filter__toggle::after { content: "−"; }
.brand-filter[open] .brand-filter__toggle { color: var(--text); }
.brand-filter__list { margin: 0.75rem 0 0; }
.filter-chip__count { font-family: var(--font-mono); opacity: 0.6; margin-left: 0.25rem; }
/* SEO text flows across two columns on wide screens (even a single paragraph) */
@media (min-width: 900px) {
  .seo-text p { break-inside: auto; }
}
/* SEO text: one column across the full page width */
.seo-text { column-count: auto !important; max-width: none; }
.seo-text p { max-width: none; }

/* every heading that can hold Russian text: one font for all letters (Syne has no Cyrillic) */
.section-head h1, .section-head h2, .page-title, .pdp-info h1, .empty-state__title, .faq__h,
.blog-feature__title, .blog-row__title, .blog-post__title, .blog-body h2, .blog-cta__title {
  font-family: var(--font-mixed);
  font-weight: 700;
}
/* brand logos: size comes from BrandService::logoHtml (equal optical area); a calm, even wall */
.brand-logo { height: auto; max-width: none; flex: none; }
.brand-line { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.brand-line__title { flex-basis: 100%; }
.brand-head__logo .brand-logo { height: auto; max-width: none; }
/* Article photos: no wider than the text column, people framed from the top */
.blog-post__cover { margin: 0; }
.blog-post__cover img { aspect-ratio: 4 / 3; object-position: 50% 20%; }
.blog-body figure { max-width: 34rem; }
.blog-body figure img { max-height: 30rem; width: 100%; object-fit: cover; object-position: 50% 20%; background: var(--surface); }
/* Article «Частые вопросы» as an accordion */
.blog-body .blog-faq { margin-top: 0.5rem; }
.blog-body .blog-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; text-transform: none; letter-spacing: 0; }
.blog-body .blog-faq summary h3 { margin: 0; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; line-height: 1.4; }
.blog-body .blog-faq .accordion-body { color: var(--muted); }
.blog-body .blog-faq .accordion-body p { margin: 0 0 0.6rem; font-size: 0.9rem; }
body.shop a.brand-head__history { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
body.shop a.brand-head__history:hover { color: var(--text); }

.blog-post__photo-description { display: block; margin-top: 0.25rem; }

/* Keep complete editorial frames and shoe details visible. */
.blog-post__cover img { height: auto; max-height: 34rem; aspect-ratio: auto; object-fit: contain; object-position: center; background: transparent; }
.blog-body figure img { object-fit: contain; object-position: center; background: transparent; }

.brand-credits { margin: 0.75rem 0 0; max-width: 44rem; font-size: 0.68rem; line-height: 1.6; color: var(--muted); }
.brand-credits summary { cursor: pointer; }
.brand-credits p { margin-top: 0.65rem; }
body.shop .brand-credits a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

/* Photo credits stay quiet but readable in both themes. */
.blog-post__cover .blog-post__credit, .blog-body figcaption { color: var(--text); opacity: 0.68; }
body.shop .blog-post__credit a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }

/* Keep the cleaning action visible when this wide photo becomes a thumbnail. */
a[href$="/kak-vyvesti-pyatno-s-odezhdy"] :is(.blog-row__media, .blog-feature__media, .blog-card__media) img { object-position: 100% 50%; }

/* Brand control shares the category row; choices expand below it. */
#catalog-brand-toggle { font-family: var(--font-body); font-size: 0.68rem; font-weight: inherit; line-height: inherit; cursor: pointer; background: transparent; color: var(--muted); }
#catalog-brand-list { margin: -0.5rem 0 1.5rem; }
#catalog-brand-list[hidden] { display: none; }

/* Match category links, including the global shop link colour. */
body.shop #catalog-brand-toggle { color: inherit; }
body.shop #catalog-brand-toggle:hover { color: var(--nav-hover); }

/* Compact footer: two sections, then a centered social link. */
.site-footer .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 34rem; gap: 2rem 3rem; }
.site-footer__social { grid-column: 1 / -1; align-items: center; justify-self: center; }
.site-footer__bar { justify-content: center; text-align: center; }
img.brand-logo--image { object-fit: contain; filter: invert(1); }
html[data-theme="light"] img.brand-logo--image { filter: none; }
@media (max-width: 480px) {
  .shop-footer.site-footer { padding-top: 2rem; }
  .site-footer .site-footer__grid { gap: 1.75rem 1rem; }
  .site-footer__col { gap: 0.75rem; }
  .site-footer__col a, .site-footer__col .site-footer__btn { overflow-wrap: anywhere; }
  .site-footer__bar { flex-direction: column; gap: 0.5rem; margin-top: 1.75rem; }
}

.brand-line__title--sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
  body.shop .site-footer__col a, body.shop .site-footer__col .site-footer__btn { font-size: 0.68rem; letter-spacing: 0.04em; min-height: 24px; display: inline-flex; align-items: center; overflow-wrap: normal; }
}

@media (max-width: 359px) { .site-footer .site-footer__grid { grid-template-columns: 1fr; } .site-footer .site-footer__col { align-items: center; text-align: center; } }

/* One native horizontal scroller for touch, trackpads and keyboard. */
.brand-line.brand-carousel { display: block; overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: 1.75rem 0; scrollbar-width: none; overscroll-behavior-x: contain; }
.brand-carousel::-webkit-scrollbar { display: none; }
.brand-carousel__track, .brand-carousel__group { display: flex; align-items: center; width: max-content; }
.brand-carousel__group { gap: 2.5rem; padding-right: 2.5rem; }
.brand-carousel__group > a { flex: none; justify-content: center; min-width: 5.5rem; min-height: 44px; }
.brand-carousel:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
.seo-text[hidden] { display: none; }
@media (max-width: 600px) { .brand-carousel__group { gap: 1.75rem; padding-right: 1.75rem; } }

/* Footer columns face one another around a compact central gap. */
.site-footer .site-footer__grid { column-gap: 2rem; }
.site-footer nav[aria-label="Помощь"] { align-items: flex-end; text-align: right; }
@media (max-width: 480px) { .site-footer .site-footer__grid { column-gap: 1rem; } }
@media (max-width: 359px) { .site-footer nav[aria-label="Помощь"] { align-items: center; text-align: center; } }

/* A small editorial interlude between new arrivals and the catalog. */
.home-journal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.home-journal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
body.shop a.home-journal__card { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 1rem; text-decoration: none; }
.home-journal__card img { width: 88px; height: 88px; object-fit: cover; }
.home-journal__card h3 { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .home-journal__grid { gap: 1rem; } body.shop a.home-journal__card { grid-template-columns: 64px minmax(0, 1fr); gap: 0.75rem; } .home-journal__card img { width: 64px; height: 72px; } }
@media (max-width: 600px) { .home-journal { margin-top: 2rem; } .home-journal__grid { grid-template-columns: 1fr; } body.shop a.home-journal__card { grid-template-columns: 72px minmax(0, 1fr); } .home-journal__card img { width: 72px; height: 72px; } }

/* Blog sidebar uses the same quiet Telegram link as the footer. */
.blog-side__social { text-align: center; }
body.shop a.blog-side__tg { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
body.shop a.blog-side__tg:hover { color: var(--text); }
.blog-side__tg svg { width: 16px; height: 16px; flex: none; }
.blog-index__shop .blog-cta { margin: 0; }

/* Consistent cards: smaller selections are centred, never stretched into banners. */
.blog-shop .blog-shop__grid { display: flex; flex-wrap: nowrap; justify-content: center; gap: 0.85rem; }
.blog-shop .blog-shop__item { flex: 0 1 calc((100% - 2.55rem) / 4); width: calc((100% - 2.55rem) / 4); }
.blog-shop .blog-shop__name { min-height: 2.7em; }
.blog-shop .blog-shop__buy { margin-top: auto; }
body.shop .blog-cta__item img { display: block; height: auto; aspect-ratio: 1; background: transparent; }
body.shop .blog-shop .blog-shop__media { display: block; width: 100%; aspect-ratio: 1; height: auto; background: transparent; }
body.shop .blog-shop .blog-shop__media img { display: block; width: 100%; height: 100%; aspect-ratio: 1; max-height: none; margin: 0; object-fit: cover; }
@media (max-width: 600px) {
  .blog-shop .blog-shop__grid { overflow-x: auto; justify-content: flex-start; }
  .blog-shop .blog-shop__item { flex: 0 0 calc((100% - 0.85rem) / 2); width: calc((100% - 0.85rem) / 2); }
  .blog-shop[data-count="1"] .blog-shop__item { margin-inline: auto; }
}
.blog-side__social { border-top: 0; }
.shop-logo, .shop-logo img { width: 56px; height: 56px; border-radius: 0; }
.shop-logo img { padding: 5px; box-sizing: border-box; }
.shop-logo__img--dark { background: transparent; }
.shop-logo__img--light { background: transparent; }

.shop-logo img { padding: 0; }

/* Quiet grey wordmarks; only the hovered brand reaches full contrast. */
body.shop .brand-line a { opacity: 1; }
.brand-line img.brand-logo--image { opacity: 0.5; transition: opacity 180ms ease-out; }
.brand-line a:hover img.brand-logo--image, .brand-line a:focus-visible img.brand-logo--image, .brand-line a.is-active img.brand-logo--image { opacity: 1; }
html[data-theme="light"] .brand-line img.brand-logo--image { opacity: 0.48; }
html[data-theme="light"] .brand-line a:hover img.brand-logo--image, html[data-theme="light"] .brand-line a:focus-visible img.brand-logo--image, html[data-theme="light"] .brand-line a.is-active img.brand-logo--image { opacity: 1; }
/* Fine plus/minus indicators share the shop's restrained typography. */
.accordion summary { align-items: center; gap: 1rem; }
.accordion summary > span { display: none; }
.accordion summary::after { content: "+"; flex: none; font-family: var(--font-mono); font-size: 1.15rem; font-weight: 400; line-height: 1; color: var(--muted); }
.accordion details[open] > summary::after, .accordion details.is-expanded > summary::after { content: "−"; }

/* Secondary text remains readable on the white theme. */
html[data-theme="light"] body.shop, html[data-theme="light"] .shop, html[data-theme="light"] body.shop dialog, html[data-theme="light"] .shop dialog { --hint: #737373; }
