/* ==========================================================================
   YWW ATELIER — storefront stylesheet
   01 tokens · 02 base · 03 header · 04 hero · 05 promos · 06 catalog
   07 editorial · 08 services · 09 newsletter · 10 footer
   11 overlays · 12 product page · 13 utilities · 14 responsive
   ========================================================================== */

/* 01 tokens ---------------------------------------------------------------- */
:root {
  --ink: #14110d;
  --ink-soft: #3f382e;
  --muted: #867c6e;
  --line: rgba(20, 17, 13, 0.13);
  --line-strong: rgba(20, 17, 13, 0.28);
  --paper: #fbf8f2;
  --paper-2: #f3eee4;
  --paper-3: #eae2d3;
  --white: #fffefb;
  --accent: #a4472f;
  --accent-ink: #82301c;
  --ok: #3f6b4f;

  --serif: "Cormorant Garamond", "Canela", Georgia, "Times New Roman", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --maxw: 1400px;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(20, 17, 13, 0.06), 0 6px 18px -12px rgba(20, 17, 13, 0.25);
  --shadow-md: 0 18px 50px -24px rgba(20, 17, 13, 0.35);
  --shadow-lg: 0 40px 90px -40px rgba(20, 17, 13, 0.45);
}

/* 02 base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: top 0.25s var(--ease);
}
.skip:focus { top: 12px; }

/* 03 header ---------------------------------------------------------------- */
.announce {
  background: var(--ink);
  color: rgba(251, 248, 242, 0.82);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
  padding-block: 6px;
}
.announce__mid { display: inline-flex; align-items: center; gap: 10px; }
.announce__mid b { color: #fff; font-weight: 500; letter-spacing: 0.18em; }
.announce a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.announce a:hover { border-color: rgba(251, 248, 242, 0.6); }
.announce__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.header.is-stuck { box-shadow: 0 12px 30px -26px rgba(20, 17, 13, 0.6); }

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: 78px;
}

.brand { display: inline-flex; align-items: baseline; gap: 10px; }
.brand__mark {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.nav { display: flex; justify-content: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
.nav__link--sale { color: var(--accent); }

.util { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { background: rgba(20, 17, 13, 0.06); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.3; }

.count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  letter-spacing: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.25s var(--ease-out);
}
.count.is-on { opacity: 1; transform: scale(1); }

.burger { display: none; }

/* language switch ---------------------------------------------------------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
  flex: 0 0 auto;
}
.lang-switch button {
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border-radius: 99px;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-on { background: var(--ink); color: var(--paper); }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }


/* 04 hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  height: clamp(520px, 76vh, 760px);
  overflow: hidden;
  background: var(--paper-3);
  isolation: isolate;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.06);
  transition: transform 7.5s linear;
}
.hero__slide.is-active .hero__media img { transform: scale(1); }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.72) 0%, rgba(12, 10, 8, 0.46) 40%, rgba(12, 10, 8, 0.1) 74%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.42) 0%, rgba(12, 10, 8, 0) 48%);
}
.hero__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  color: #fdfaf4;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(253, 250, 244, 0.78);
}
.hero__kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.7; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 20px 0 18px;
  text-wrap: balance;
}
.hero__title em { font-style: italic; }
.hero__text { max-width: 44ch; color: rgba(253, 250, 244, 0.82); font-size: 15px; line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__ui {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  color: rgba(253, 250, 244, 0.85);
}
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 34px;
  height: 2px;
  background: rgba(253, 250, 244, 0.34);
  transition: background 0.3s;
}
.hero__dot[aria-selected="true"] { background: #fdfaf4; }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(253, 250, 244, 0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fdfaf4;
  transition: background 0.25s, border-color 0.25s;
}
.hero__arrow:hover { background: rgba(253, 250, 244, 0.16); border-color: rgba(253, 250, 244, 0.8); }
.hero__arrow svg { width: 16px; height: 16px; stroke-width: 1.4; }
.hero__index {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(253, 250, 244, 0.75);
}

/* 05 promos ---------------------------------------------------------------- */
.promo { padding: clamp(48px, 7vw, 88px) 0 0; }
.promo__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.promo__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: clamp(24px, 3vw, 44px);
  overflow: hidden;
  background: var(--paper-2);
  color: var(--ink);
  isolation: isolate;
}
.promo__card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.promo__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgba(251, 248, 242, 0.97) 2%,
    rgba(251, 248, 242, 0.92) 24%,
    rgba(251, 248, 242, 0.6) 50%,
    rgba(251, 248, 242, 0.22) 74%,
    rgba(251, 248, 242, 0) 94%
  );
}
.promo__card:hover img { transform: scale(1.05); }
.promo__eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft); }
.promo__title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.08;
  font-weight: 500;
  margin: 10px 0 8px;
  max-width: 18ch;
}
.promo__text { color: var(--ink-soft); font-size: 13.5px; max-width: 40ch; }
.promo__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: gap 0.25s var(--ease), border-color 0.25s;
}
.promo__link:hover { gap: 14px; border-color: var(--ink); }

/* 06 catalog --------------------------------------------------------------- */
.catalog { padding: clamp(56px, 8vw, 104px) 0 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-head__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.section-head__eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.section-head__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section-head__note { max-width: 46ch; color: var(--ink-soft); font-size: 13.5px; margin-top: 12px; }

.tabs { display: flex; flex-wrap: wrap; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tab {
  position: relative;
  padding: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.tab:hover { color: var(--ink-soft); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 34px) clamp(12px, 1.6vw, 24px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; display: flex; flex-direction: column; }
.card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), opacity 0.4s;
}
.card:hover .card__media img { transform: scale(1.045); }
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.card__badge--soft { background: var(--white); color: var(--accent-ink); }

.card__tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease-out);
}
.card:hover .card__tools,
.card:focus-within .card__tools { opacity: 1; transform: none; }
.card__tool {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 254, 251, 0.94);
  color: var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.card__tool:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.card__tool svg { width: 16px; height: 16px; stroke-width: 1.5; }
.card__tool.is-on { background: var(--ink); color: var(--paper); }

.card__cart {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out), background 0.2s;
}
.card:hover .card__cart { opacity: 1; transform: none; }
.card__cart:hover { background: var(--accent); }
.card__cart:disabled { opacity: 0.55; cursor: default; }

.card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.card__cat { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.card__name { font-family: var(--serif); font-size: 18px; line-height: 1.25; font-weight: 500; letter-spacing: 0; }
.card__name a { transition: color 0.2s; }
.card__name a:hover { color: var(--accent-ink); }
.price { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price__now { font-size: 14px; letter-spacing: 0.02em; }
.price__was { font-size: 12.5px; color: var(--muted); text-decoration: line-through; }
.price--sale .price__now { color: var(--accent-ink); }

.catalog__more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 52px); }

/* 07 editorial banner ------------------------------------------------------ */
.editorial { padding: clamp(56px, 8vw, 110px) 0; }
.editorial__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
  background: var(--ink);
  color: var(--paper);
  min-height: 460px;
  overflow: hidden;
}
.editorial__body {
  padding: clamp(32px, 4.4vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.editorial__eyebrow { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(251, 248, 242, 0.55); }
.editorial__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.04;
}
.editorial__title em { font-style: italic; color: #e7cdb8; }
.editorial__text { color: rgba(251, 248, 242, 0.72); font-size: 14px; max-width: 42ch; line-height: 1.8; }
.editorial__media { position: relative; overflow: hidden; min-height: 320px; }
.editorial__media img { width: 100%; height: 100%; object-fit: cover; }

/* 08 services -------------------------------------------------------------- */
.services { padding: 0 0 clamp(56px, 8vw, 100px); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service { display: flex; gap: 14px; align-items: flex-start; }
.service__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.service__icon svg { width: 20px; height: 20px; stroke-width: 1.2; }
.service__title { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 3px; }
.service__text { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* 09 newsletter ------------------------------------------------------------ */
.newsletter { position: relative; isolation: isolate; overflow: hidden; background: var(--paper-3); }
.newsletter img.bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 9, 7, 0.72), rgba(10, 9, 7, 0.82));
}
.newsletter__inner {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 16px;
  padding: clamp(56px, 8vw, 108px) 0;
  color: #fdfaf4;
}
.newsletter__eyebrow { font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(253, 250, 244, 0.7); }
.newsletter__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  max-width: 20ch;
}
.newsletter__text { color: rgba(253, 250, 244, 0.74); font-size: 13.5px; max-width: 46ch; }
.newsletter__form {
  display: flex;
  width: min(520px, 100%);
  margin-top: 10px;
  border-bottom: 1px solid rgba(253, 250, 244, 0.5);
  transition: border-color 0.25s;
}
.newsletter__form:focus-within { border-color: #fdfaf4; }
.newsletter__form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  padding: 14px 4px;
  color: #fdfaf4;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.newsletter__form input::placeholder { color: rgba(253, 250, 244, 0.55); }
.newsletter__form input:focus { outline: none; }
.newsletter__form button {
  padding: 14px 2px 14px 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fdfaf4;
  white-space: nowrap;
}
.newsletter__form button:hover { color: #e7cdb8; }

/* 10 footer ---------------------------------------------------------------- */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(44px, 6vw, 80px); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(36px, 4vw, 60px);
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.footer__desc { font-size: 13px; color: var(--muted); line-height: 1.75; }
.footer__title { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 16px; color: var(--ink); }
.footer__list { display: flex; flex-direction: column; gap: 9px; }
.footer__list a { font-size: 13px; color: var(--muted); transition: color 0.2s, transform 0.2s; display: inline-block; }
.footer__list a:hover { color: var(--ink); transform: translateX(3px); }
.footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--muted); }
.footer__contact a:hover { color: var(--ink); }
.footer__social { display: flex; gap: 8px; margin-top: 4px; }
.footer__social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer__social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.footer__social svg { width: 15px; height: 15px; }

/* 11 overlays -------------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 10, 8, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* search */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--paper);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease-out);
  padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.search-panel.is-open { transform: none; }
.search-panel__top { display: flex; align-items: center; gap: 18px; }
.search-panel__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 12px;
}
.search-panel__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0;
}
.search-panel__field input:focus { outline: none; }
.search-panel__field input::placeholder { color: var(--muted); }
.search-panel__field input::-webkit-search-cancel-button,
.search-panel__field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-panel__close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.search-panel__close:hover { background: rgba(20, 17, 13, 0.06); }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; align-items: center; }
.search-suggest span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.chip {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 11.5px;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.search-results { margin-top: 22px; display: grid; gap: 6px; max-height: 46vh; overflow: auto; }
.search-results:empty { display: none; }
@media (min-width: 900px) {
  .search-results { grid-template-columns: 1fr 1fr; column-gap: 28px; }
}
.search-hit { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 2px; transition: background 0.2s; }
.search-hit:hover { background: rgba(20, 17, 13, 0.05); }
.search-hit img { width: 46px; height: 58px; object-fit: cover; background: var(--paper-2); }
.search-hit strong { font-weight: 500; font-size: 14px; font-family: var(--serif); }
.search-hit small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.search-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

/* drawer */
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 95;
  width: min(430px, 92vw);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.45s var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer--left { right: auto; left: 0; transform: translateX(-102%); }
.drawer--left.is-open { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.02em; }
.drawer__close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.drawer__close:hover { background: rgba(20, 17, 13, 0.07); }
.drawer__body { flex: 1; overflow: auto; padding: 8px 24px 24px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 20px 24px 26px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }

.cart-line { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line__media { width: 74px; aspect-ratio: 3/4; overflow: hidden; background: var(--paper-2); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-family: var(--serif); font-size: 16px; line-height: 1.3; }
.cart-line__meta { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 30px; height: 32px; display: grid; place-items: center; font-size: 14px; color: var(--ink-soft); }
.qty button:hover { background: rgba(20, 17, 13, 0.05); }
.qty span { min-width: 30px; text-align: center; font-size: 13px; }
.cart-line__price { font-size: 13.5px; }
.cart-line__remove { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cart-line__remove:hover { color: var(--accent-ink); }

.cart-empty { display: grid; place-items: center; gap: 12px; padding: 64px 0; text-align: center; color: var(--muted); }
.cart-empty strong { font-family: var(--serif); font-size: 22px; color: var(--ink); font-weight: 500; }

.ship-bar { display: flex; flex-direction: column; gap: 8px; }
.ship-bar__text { font-size: 11.5px; color: var(--ink-soft); }
.ship-bar__track { height: 2px; background: var(--paper-3); overflow: hidden; }
.ship-bar__fill { height: 100%; width: 0; background: var(--ink); transition: width 0.5s var(--ease); }

.totals { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.totals__row { display: flex; justify-content: space-between; color: var(--ink-soft); }
.totals__row--grand { font-size: 16px; color: var(--ink); padding-top: 8px; border-top: 1px solid var(--line); }
.totals__row--grand span:last-child { font-family: var(--serif); font-size: 20px; }

/* mobile menu */
.menu-list { display: flex; flex-direction: column; }
.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.01em;
}
.menu-list a span { font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em; color: var(--muted); }
.menu-foot { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; color: var(--muted); }

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__inner { position: relative; width: min(980px, 100%); }
.modal__inner--sm { width: min(600px, 100%); }
.modal__panel {
  position: relative;
  width: 100%;
  max-height: min(88vh, 760px);
  overflow: auto;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.45s var(--ease-out);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 254, 251, 0.92);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s;
}
.modal__close:hover { background: var(--ink); color: var(--paper); }

.quick { display: grid; grid-template-columns: 1fr 1fr; }
.quick__media { background: var(--paper-2); min-height: 420px; }
.quick__media img { width: 100%; height: 100%; object-fit: cover; }
.quick__body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.quick__cat { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.quick__title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 500; }
.quick__desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }
.quick__row { display: flex; flex-direction: column; gap: 8px; }
.quick__label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.sizes { display: flex; flex-wrap: wrap; gap: 7px; }
.size {
  min-width: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.size:hover { border-color: var(--ink); }
.size.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.swatches { display: flex; gap: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(20, 17, 13, 0.18); position: relative; }
.swatch.is-active::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.quick__buy { display: flex; gap: 10px; margin-top: 6px; }
.quick__buy .qty { border-color: var(--line-strong); }
.quick__buy .qty button { height: 48px; width: 38px; }
.quick__meta { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.quick__meta li { display: flex; gap: 8px; align-items: center; }
.quick__meta svg { width: 14px; height: 14px; }

/* checkout */
.checkout { width: 100%; padding: clamp(26px, 4vw, 42px); }
.checkout__eyebrow { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.checkout__title { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.1; margin: 10px 0 12px; }
.checkout__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.checkout__actions .btn { flex: 1; min-width: 160px; height: 44px; padding: 0 14px; font-size: 10px; }
.checkout code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 2px;
}

/* order summary inside checkout */
.order { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 4px; max-height: 34vh; overflow: auto; padding-right: 4px; }
.order__line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.order__img { width: 52px; height: 66px; object-fit: cover; background: var(--paper-2); }
.order__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order__name { font-family: var(--serif); font-size: 16px; line-height: 1.25; }
.order__meta { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.order__price { font-size: 13px; white-space: nowrap; }
.order__totals { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.pay-note { font-size: 11.5px; line-height: 1.65; color: var(--ink-soft); margin-top: 14px; }
.pay-note b { font-weight: 500; color: var(--ink); }
.pay-note a { border-bottom: 1px solid var(--line-strong); }
.pay-note a:hover { color: var(--accent-ink); border-color: var(--accent-ink); }
.pay-note--small { font-size: 11px; color: var(--muted); margin-top: 10px; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out), visibility 0.3s;
  max-width: min(92vw, 460px);
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 15px; height: 15px; flex: none; }

/* 12 product page ---------------------------------------------------------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); padding: 24px 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: 0.5; }

.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(48px, 6vw, 88px); }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery__main { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--paper-2); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery__thumb { aspect-ratio: 1; overflow: hidden; background: var(--paper-2); opacity: 0.62; transition: opacity 0.2s, outline-color 0.2s; outline: 1px solid transparent; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { opacity: 1; outline-color: var(--ink); }
.gallery__thumb:hover { opacity: 1; }

.pdp__info { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.pdp__cat { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.pdp__title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; }
.pdp__price { display: flex; align-items: baseline; gap: 10px; }
.pdp__price .price__now { font-size: 22px; font-family: var(--serif); }
.pdp__rating { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.pdp__desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }
.pdp__buy { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.pdp__buy .btn { flex: 1; min-width: 180px; }
.accordion { border-top: 1px solid var(--line); margin-top: 6px; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
}
.acc__btn svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.acc__item.is-open .acc__btn svg { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { font-size: 13px; color: var(--ink-soft); line-height: 1.75; padding-bottom: 16px; }

.pdp-more { padding-bottom: clamp(48px, 7vw, 100px); }

/* 13 utilities ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: transparent; color: #fdfaf4; border-color: #fdfaf4; }
.btn--line-light { background: transparent; color: #fdfaf4; border-color: rgba(253, 250, 244, 0.45); }
.btn--line-light:hover { background: #fdfaf4; color: var(--ink); border-color: #fdfaf4; }
.btn--block { width: 100%; }
.btn svg { width: 15px; height: 15px; stroke-width: 1.4; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover { gap: 14px; }
.link-arrow svg { width: 14px; height: 14px; }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

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

/* 14 responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav__link { padding-inline: 10px; font-size: 11px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer__grid > :nth-child(4) { display: none; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; height: 66px; }
  .burger { display: inline-grid; }
  .util .icon-btn--account,
  .util .icon-btn--wish { display: none; }
  .promo__grid { grid-template-columns: 1fr; }
  .promo__card { min-height: 300px; }
  .editorial__inner { grid-template-columns: 1fr; }
  .editorial__media { min-height: 300px; order: -1; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
  .pdp { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr; }
  .quick__media { min-height: 280px; aspect-ratio: 4/3; }
  .announce__inner { justify-content: center; }
  .announce__inner > :first-child, .announce__inner > :last-child { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .grid, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { height: clamp(460px, 72vh, 600px); }
  .hero__title { font-size: clamp(34px, 9vw, 46px); }
  .hero__ui { padding-bottom: 18px; }
  .hero__arrows { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .tabs { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .card__cart { opacity: 1; transform: none; bottom: 10px; left: 10px; right: 10px; }
  .card__tools { opacity: 1; transform: none; top: 10px; right: 10px; bottom: auto; flex-direction: row; }
  .card__tool { width: 34px; height: 34px; }
  .card__cart { height: 36px; font-size: 9px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .footer__grid > :nth-child(4) { display: block; }
  .drawer__head { padding: 18px 18px; }
  .drawer__body { padding: 8px 18px 18px; }
  .drawer__foot { padding: 16px 18px 20px; }
  .announce { font-size: 10px; letter-spacing: 0.1em; }
  .announce__mid { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .modal { padding: 0; place-items: end center; }
  .modal__panel { max-height: 92vh; }
  .toast { bottom: 16px; }
}

@media (max-width: 420px) {
  .grid { gap: 20px 10px; }
  .card__name { font-size: 16px; }
  .card__cart { height: 34px; font-size: 8.5px; letter-spacing: 0.12em; }
  .services__grid { grid-template-columns: 1fr; }
}

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

