/*
 Theme Name:   Drovianni
 Theme URI:    https://drovianni.com
 Description:  Дизайн-система Drovianni поверх Storefront. Два кольори, один шрифт,
               нульовий радіус, сітка по 8px. Перенесено з теми Shopify без змін
               у самій системі — змінились лише селектори під розмітку WooCommerce.
 Author:       Drovianni
 Template:     storefront
 Version:      1.0.0
 Text Domain:  drovianni
*/

/* Шрифт лежить у темі, не на серверах Google: віддача звідти передає IP
   кожного відвідувача третій стороні, а магазин працює на ЄС. */
/* Manrope, залитий у тему. Не з серверів Google: віддача звідти передає
   IP відвідувача третій стороні, а магазин працює на ЄС. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic-300.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext-300.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic-500.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext-500.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Drovianni Bucketoni — design tokens and primitives.
   Two colours only, plus tints of the base. 8px grid. Radius 0. */

/* Палітра галерейного магазину: біле тло, чорний текст, один зелений
   акцент на рядку тиражу. Тепла бежева система, що стояла тут раніше,
   лишилась в історії файлу. */
:root {
  --bg: #FFFFFF;
  --bg-deep: #F4F2EF;
  --ink: #000000;
  --muted: rgba(0, 0, 0, 0.65);
  --hair: rgba(0, 0, 0, 0.12);
  --hair-inv: rgba(255, 255, 255, 0.22);

  /* Єдиний колір на сторінці — і стоїть він рівно там, де аргумент
     купити: скільки таких узагалі буде. */
  --edition: #307A07;

  --gutter: clamp(16px, 3vw, 40px);
  --rhythm: clamp(56px, 7vw, 96px);
  --rhythm-sm: clamp(40px, 5vw, 64px);
  --wrap: 1440px;
  --wrap-text: 760px;
  --ease: 220ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--ink); }

/* ---------- layout ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap--text { max-width: var(--wrap-text); }

.section { padding-bottom: var(--rhythm); }
.section--top { padding-top: clamp(48px, 8vw, 120px); }
.section--tight { padding-bottom: var(--rhythm-sm); }

.stack { display: flex; flex-direction: column; }
.stack--8 { gap: 8px; }
.stack--16 { gap: 16px; }
.stack--24 { gap: 24px; }
.stack--32 { gap: 32px; }
.stack--48 { gap: 48px; }

.cols {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
}

/* ---------- type ---------- */

.h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.h1--product {
  max-width: none;
  font-size: clamp(32px, 4vw, 44px);
}

.h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
}

.body {
  margin: 0;
  max-width: 65ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.body--narrow { max-width: 52ch; }

.cap {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

.cap--muted { color: var(--muted); }

.item-name {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.link-plain { text-decoration: none; color: var(--ink); }

.link-cap {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
}

.link-cap:hover { color: var(--ink); }

.link-underline {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--hair);
  transition: border-color var(--ease);
}

.link-underline:hover { border-bottom-color: var(--ink); }

/* ---------- inverted surfaces ---------- */

.inverted {
  background: var(--ink);
  color: var(--bg);
}

.inverted .h1,
.inverted .h2,
.inverted .body,
.inverted .item-name { color: var(--bg); }

.inverted .link-cap:hover { color: var(--bg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}

.btn:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn--full { width: 100%; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

.inverted .btn {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.inverted .btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.inverted .btn--ghost {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}

.inverted .btn--ghost:hover {
  background: var(--bg);
  color: var(--ink);
}

/* ---------- fields ---------- */

.field {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  padding: 8px 0;
  outline: none;
  transition: border-color var(--ease);
}

.field::placeholder { color: var(--muted); }
.field:focus { border-bottom-color: var(--ink); }
textarea.field { resize: vertical; }

.inverted .field {
  border-bottom-color: var(--hair-inv);
  color: var(--bg);
}

.inverted .field:focus { border-bottom-color: var(--bg); }

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

/* ---------- section head (hairline row) ---------- */

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 48px;
}

.inverted .sec-head { border-bottom-color: var(--hair-inv); }

/* ---------- media ---------- */

.media {
  display: flex;
  align-items: flex-end;
  width: 100%;
  background: var(--bg-deep);
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.media--hero { padding: 24px var(--gutter); }

.media img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ---------- grids ---------- */

.grid { display: grid; }

.grid--rugs-home {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px;
}

.grid--rugs {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(32px, 5vw, 64px);
}

.grid--rugs-small {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
}

.grid--wear {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 32px;
}

.grid--wear-tight {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 32px;
}

.grid--cross {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
}

.grid--pair {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}

/* Проданий килим лишається в сітці, але видно одразу, що його вже немає. */
.card--gone .media img { opacity: 0.45; }
.card--gone .item-name { color: var(--muted); }

/* ---------- hairline rows ---------- */

.row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
}

.row--last { border-bottom: 1px solid var(--hair); }

.row__key { flex: 0 0 38%; }

.row__val {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  text-align: right;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(232, 225, 219, 0);
  border-bottom: 1px solid rgba(18, 16, 14, 0);
  transition: background-color var(--ease), border-color var(--ease);
}

.site-header.is-solid,
.site-header--opaque {
  background-color: rgba(232, 225, 219, 1);
  border-bottom-color: var(--hair);
}

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header__logo { display: block; padding: 8px 0; }

.site-header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
  background: none;
  padding: 0 0 4px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  border-bottom: 1px solid rgba(18, 16, 14, 0);
  transition: border-color var(--ease);
}

.site-nav a:hover,
.site-nav button:hover { border-bottom-color: var(--ink); }

.site-nav__cart { color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(64px, 10vw, 120px) var(--gutter) 48px;
}

.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer__brand { flex: 1 1 320px; max-width: 420px; }
.site-footer__brand img { display: block; width: 100%; max-width: 280px; height: auto; }
.site-footer__menu { flex: 0 1 160px; }
.site-footer__menu a { font-size: 16px; font-weight: 300; color: var(--bg); text-decoration: none; }
.site-footer__menu a:hover { text-decoration: underline; }
.site-footer__letters { flex: 1 1 280px; max-width: 360px; }

.site-footer__bottom {
  max-width: var(--wrap);
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hair-inv);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }

.newsletter {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.newsletter .field { flex: 1 1 160px; width: auto; }

/* ---------- product ---------- */

.pdp {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 64px);
  align-items: flex-start;
}

.pdp__gallery {
  flex: 2 1 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdp__buy {
  flex: 1 1 320px;
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.pdp__story { flex: 2 1 420px; }
.pdp__addons { flex: 1 1 320px; }

.pdp__reassure {
  flex: 1 1 260px;
  border-top: 1px solid var(--hair);
  padding-top: 24px;
}

.addon {
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: center;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--hair);
  padding: 16px 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}

.addon__mark {
  flex: 0 0 16px;
  height: 16px;
  border: 1px solid var(--ink);
  background: transparent;
  transition: background-color var(--ease);
}

.addon[aria-pressed='true'] .addon__mark { background: var(--ink); }

.addon__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.size-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
  border-top: 1px solid var(--hair);
  padding-top: 16px;
}

.opt {
  background: none;
  border: 0;
  padding: 0 0 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}

.opt:hover,
.opt[aria-pressed='true'] { border-bottom-color: var(--ink); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hair);
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: baseline;
}

.filters__group a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color var(--ease);
}

.filters__group a:hover,
.filters__group a[aria-current='true'] { border-bottom-color: var(--ink); }

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--bg);
  border-top: 1px solid var(--hair);
}

.sticky-bar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.has-sticky-bar { padding-bottom: 88px; }

.breadcrumb {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

/* ---------- delivery and payment ---------- */

.terms { display: flex; flex-direction: column; }

.terms__row { border-top: 1px solid var(--hair); }
.terms__row:last-child { border-bottom: 1px solid var(--hair); }

.terms__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}

.terms__summary::-webkit-details-marker { display: none; }
.terms__summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* Плюс, що стає мінусом. Іконок у дизайні немає, тож це дві лінії. */
.terms__sign {
  position: relative;
  flex: 0 0 12px;
  height: 12px;
}

.terms__sign::before,
.terms__sign::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: transform var(--ease);
}

.terms__sign::before { inset: 5px 0 5px 0; height: 1px; }
.terms__sign::after { inset: 0 5px 0 5px; width: 1px; }

.terms__row[open] .terms__sign::after { transform: scaleY(0); }

.terms__body { padding: 0 0 24px; max-width: 65ch; }
.terms__body p { margin: 0 0 12px; }
.terms__body p:last-child { margin-bottom: 0; }

/* ---------- measurements ---------- */

.measure { display: flex; flex-direction: column; }

.measure__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--hair);
}

.measure__row:last-child { border-bottom: 1px solid var(--hair); }

/* ---------- gift ---------- */

.gift {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding-top: 4px;
}

.gift input {
  appearance: none;
  flex: 0 0 16px;
  height: 16px;
  margin: 2px 0 0;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--ease);
}

.gift input:checked { background: var(--ink); }
.gift input:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.gift__note { display: flex; flex-direction: column; gap: 4px; }

/* ---------- cart drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  pointer-events: none;
}

.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(18, 16, 14, 0.4);
  opacity: 0;
  transition: opacity var(--ease);
  border: 0;
  padding: 0;
  cursor: pointer;
}

.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 420px);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--ease);
}

.drawer.is-open .drawer__panel { transform: none; }

.drawer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--hair);
}

.drawer__items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 24px;
}

.drawer__foot {
  padding: 24px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer__close {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--muted);
}

.line-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
}

.line-item:first-child { border-top: 0; }
.line-item__media { flex: 0 0 64px; }
.line-item__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; }

/* ---------- rich text from the admin ---------- */

.pdp__story p,
.pdp__story ul,
.pdp__story ol {
  margin: 0 0 16px;
  max-width: 65ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.pdp__story > *:last-child { margin-bottom: 0; }

.pdp__story h1,
.pdp__story h2,
.pdp__story h3 {
  margin: 32px 0 16px;
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
}

.pdp__story img { display: block; height: auto; margin: 32px 0; }

/* ---------- motion ---------- */

/* Без JS клас no-js лишається на html, і вміст просто видимий:
   інакше вся сторінка нижче героя була порожня. */
.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--ease), transform var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- focus ---------- */

/* Посилання «до вмісту» було невидиме навіть у фокусі, тобто клавіатурою
   ним скористатися не можна було взагалі. */
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 60;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
  transition: transform var(--ease);
}

.skip:focus { transform: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.inverted a:focus-visible,
.inverted button:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible,
.drawer__scrim:focus-visible { outline-color: var(--bg); }

/* Заголовок липкий, тож якір мусить лишати під нього місце. */
#main { scroll-margin-top: 96px; }

/* ---------- sticky bar ---------- */

/* Смуга дублювала кнопку, яка й так була на екрані. Тепер вона ховається,
   поки основна кнопка покупки видима. Стан за замовчуванням — показана,
   щоб без JS нічого не зникло. */
.sticky-bar { transition: transform var(--ease); }

.sticky-bar.is-hidden { transform: translateY(100%); }

/* ---------- line item properties ---------- */

.line-item__props {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ---------- drawer open ---------- */

body.is-locked { overflow: hidden; }

/* ---------- mobile ---------- */

/* Прозора шапка лежала на темному фото: пункти меню темним по темному.
   На вузькому екрані вона непрозора завжди, а меню тримається в один рядок. */
@media (max-width: 767px) {
  .site-header {
    background-color: rgba(232, 225, 219, 1);
    border-bottom-color: var(--hair);
  }

  .site-header__inner {
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-nav {
    gap: 14px;
    flex-wrap: nowrap;
  }

  .site-nav a,
  .site-nav button {
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .site-header__logo img { height: 26px; }
}
