@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ivory: #F4EFE8;
  --ivory-light: #FBF8F4;
  --sand: #EAE3D9;
  --ink: #1A1A1A;
  --ink-soft: #3A3632;
  --taupe: #7A736B;
  --taupe-light: #9A9288;
  --line: #E2DBD1;
  --line-strong: #CFC6BA;
  --green: #5F7A45;
  --slate: #5B6B7A;
  --red: #A23B32;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --page: min(1200px, 100% - 32px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

main { flex: 1; width: var(--page); margin: 0 auto; }

img { display: block; max-width: 100%; }

a { color: inherit; }

button { font: inherit; color: inherit; cursor: pointer; }

[hidden] { display: none !important; }

.site-header {
  width: var(--page);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 0 8px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
}

.nav-link {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 0;
}

.lang-switch { display: flex; gap: 2px; }

.lang-switch button {
  background: none;
  border: 0;
  padding: 8px 7px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--taupe-light);
}

.lang-switch button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 0 6px;
}

.brand img { width: min(300px, 78vw); height: auto; }

.tagline {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding-left: .32em;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 20px 0 22px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, 100%);
  border-bottom: 1px solid var(--line-strong);
  padding: 4px 2px;
}

.search svg { width: 17px; height: 17px; fill: none; stroke: var(--taupe); stroke-width: 1.6; stroke-linecap: round; flex: none; }

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 6px 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.search input::placeholder { color: var(--taupe-light); }

.search input::-webkit-search-cancel-button { opacity: .5; }

.filters { display: flex; gap: 8px; }

.pill {
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  letter-spacing: .02em;
  transition: background .15s, color .15s, border-color .15s;
}

.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 14px;
  padding-bottom: 40px;
}

@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
  .brand img { width: 360px; }
}

.card { display: block; text-decoration: none; color: inherit; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

@media (hover: hover) {
  .card:hover .card-media img { transform: scale(1.03); }
}

.is-sold-out .card-media img,
.is-sold-out .gallery-track img { filter: grayscale(1); opacity: .6; }

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--ink);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 3px 8px;
  border-radius: 4px;
}

.card-body { padding-top: 10px; }

.card-brand, .p-brand {
  margin: 0;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--taupe);
}

.card-name {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.card-meta, .p-meta { margin: 2px 0 0; font-size: 12px; color: var(--taupe); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 6px; }

.price-now { font-size: 15px; font-weight: 500; }

.price-old { font-size: 12px; color: var(--taupe-light); text-decoration: line-through; }

.status { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }

.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.status-in_stock { color: var(--green); }
.status-coming_soon { color: var(--slate); }
.status-sold_out { color: var(--red); }

.skeleton .card-media { animation: pulse 1.4s ease-in-out infinite; }

.skeleton-line { height: 10px; border-radius: 4px; background: var(--sand); margin-top: 10px; animation: pulse 1.4s ease-in-out infinite; }

.skeleton-line.short { width: 55%; }

@keyframes pulse { 50% { opacity: .55; } }

.message {
  text-align: center;
  color: var(--taupe);
  padding: 40px 16px 60px;
  font-size: 14px;
}

.message button {
  display: block;
  margin: 14px auto 0;
  background: var(--ink);
  color: var(--ivory);
  border: 0;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 13px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--taupe);
  text-decoration: none;
  padding: 10px 0 14px;
}

.product { display: grid; gap: 22px; padding-bottom: 56px; }

@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .gallery { position: sticky; top: 16px; }
}

.gallery { position: relative; min-width: 0; }

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
  background: var(--sand);
  aspect-ratio: 1 / 1;
  overscroll-behavior-x: contain;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(251, 248, 244, .85);
  font-size: 18px;
  line-height: 1;
  display: none;
}

.gallery-arrow.prev { left: 10px; }
.gallery-arrow.next { right: 10px; }

@media (hover: hover) and (pointer: fine) and (min-width: 700px) {
  .gallery.multi .gallery-arrow { display: grid; place-items: center; }
}

.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }

.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: background .2s; }

.gallery-dots span.on { background: var(--ink); }

.thumbs { display: none; gap: 8px; margin-top: 12px; }

.thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: var(--sand);
}

.thumbs button.on { border-color: var(--ink); }

.thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .gallery.multi .thumbs { display: flex; }
  .gallery.multi .gallery-dots { display: none; }
}

.p-name {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.1;
}

.p-meta { font-size: 13px; margin-top: 6px; }

.product .price { margin-top: 14px; gap: 4px 10px; }

.product .price-now { font-size: 20px; }

.product .price-old { font-size: 14px; }

.price-badge {
  font-size: 12px;
  background: var(--ink);
  color: var(--ivory);
  padding: 2px 7px;
  border-radius: 4px;
  align-self: center;
}

.retail { margin: 4px 0 0; font-size: 13px; color: var(--taupe); }

.product .status { margin-top: 10px; font-size: 13px; }

.actions { display: grid; gap: 8px; margin-top: 20px; }

@media (min-width: 900px) {
  .actions.two { grid-template-columns: 1fr 1fr; }
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 14px;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--ink);
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--ink); color: var(--ivory); }

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

.section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }

.section-title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 400;
}

.text { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

.text + .text { margin-top: 12px; }

.notes-img { width: 100%; height: auto; border-radius: var(--radius); background: var(--ivory-light); }

.about { max-width: 640px; margin: 0 auto; padding-bottom: 60px; }

.about-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  margin: 6px 0 18px;
}

.site-footer {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 22px 0 max(22px, env(safe-area-inset-bottom));
  font-size: 12px;
  color: var(--taupe);
}

.footer-link { letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); }

.sheet { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }

.sheet-backdrop { position: absolute; inset: 0; background: rgba(26, 26, 26, .35); }

.sheet-panel {
  position: relative;
  width: min(440px, 100%);
  background: var(--ivory);
  border-radius: 14px 14px 0 0;
  padding: 18px 16px max(16px, env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
}

@media (min-width: 700px) {
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 14px; }
}

.sheet-title { margin: 0 0 4px; text-align: center; font-size: 13px; color: var(--taupe); }

.sheet-options { display: grid; gap: 8px; }

.sheet-cancel { background: none; border: 0; padding: 12px; color: var(--taupe); font-size: 14px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
