/* di born — an editorial storefront on warm paper.
   Yeseva One carries the voice (headings, prices, the wordmark); Golos Text does the
   reading. Cream paper with a faint grain, ink for structure and buttons, mandarin
   as the one warm accent, a soft amber disc in the hero and a dark panel for banners
   and the footer. */

/* --- fonts -------------------------------------------------------------------- */
@font-face {
  font-family: "Yeseva One";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/yeseva-one-cyrillic-400-normal.8111b33269c0.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Yeseva One";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/yeseva-one-latin-ext-400-normal.8eb9eabb2380.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113;
}

@font-face {
  font-family: "Yeseva One";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/yeseva-one-latin-400-normal.63ff0f624ac3.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
  font-family: "Golos Text";
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-wght-normal.2b8fbbb33a14.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-text-latin-ext-wght-normal.b0503aa2cc13.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113;
}

@font-face {
  font-family: "Golos Text";
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-text-latin-wght-normal.f57df9832ab8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

/* --- tokens ------------------------------------------------------------------- */
:root {
  --paper: #fff;
  --paper-2: #f3f2ee; /* behind photos, soft panels */
  --amber-wash: #fff2cc; /* the sale band */
  --sun: #f5b93a;
  --sun-deep: #d99a1f;
  --mandarin: #ef5a1f;
  --mandarin-deep: #d0470f;
  --ink: #17140f;
  --cocoa: #1d1a16;
  --cocoa-2: #2a2621;
  --muted: #76716a;
  --line: rgb(23 20 15 / 9%);
  --display: "Yeseva One", Georgia, "Times New Roman", serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --wrap: 1240px;
  --r: 6px;
  --r-s: 4px;
  --shadow: 0 24px 50px -28px rgb(28 22 18 / 50%);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --dots: radial-gradient(rgb(252 251 247 / 10%) 1px, transparent 1.4px);
  --grid: radial-gradient(rgb(23 20 15 / 5%) 1px, transparent 1.3px); /* the paper's dot grid */
  --hatch: repeating-linear-gradient(
    -45deg,
    rgb(23 20 15 / 5%) 0 2px,
    transparent 2px 12px
  );
}

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

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

body {
  margin: 0;
  background: var(--paper);
  background-image: var(--grid);
  background-size: 22px 22px;
  color: var(--ink);
  font: 16px/1.55 var(--body);
  position: relative;
}

/* paper grain over everything, never over the pointer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: var(--grain);
  opacity: 0.04;
  mix-blend-mode: multiply;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  line-height: 1.05;
}

:focus-visible {
  outline: 3px solid var(--mandarin);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-s);
}

.skip:focus {
  top: 12px;
}

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

.wrap .wrap {
  padding: 0;
}

main.page {
  padding-top: 20px;
  padding-bottom: 72px;
}

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

.empty {
  padding: 56px 0;
  color: var(--muted);
  text-align: center;
}

/* --- buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  font: 500 0.9375rem/1 var(--body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  background: var(--mandarin);
  border-color: var(--mandarin);
  color: #fff;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

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

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

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* --- header ---------------------------------------------------------------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 86%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgb(23 20 15 / 6%);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo__word {
  display: inline-flex;
  align-items: baseline;
  font: 400 1.625rem/1 var(--display);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* the o of "born": a mandarin disc, the whole identity in one dot */
.logo__dot {
  display: inline-block;
  width: 0.58em;
  height: 0.58em;
  margin: 0 0.04em;
  border-radius: 50%;
  background: var(--mandarin);
  transition: transform 0.3s ease;
}

.logo:hover .logo__dot {
  transform: scale(1.12);
}

.logo--big .logo__word {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.top__nav {
  display: none;
}

.top__nav a {
  position: relative;
  padding: 6px 2px;
  font-weight: 500;
  text-decoration: none;
}

.top__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transition: right 0.22s ease;
}

.top__nav a:hover::after,
.top__nav a[aria-current]::after {
  right: 0;
}

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

.top__search {
  display: none;
  position: relative;
}

.top__search input {
  width: 190px;
  min-height: 42px;
  padding: 0 40px 0 16px;
  border: 0;
  border-radius: var(--r);
  background: var(--paper-2);
  font: inherit;
  color: inherit;
  transition:
    width 0.25s ease,
    border-color 0.2s;
}

.top__search input:focus {
  width: 260px;
  outline: none;
  box-shadow: 0 0 0 2px var(--ink);
}

.top__search button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.top__search svg,
.cart-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.langs {
  display: flex;
  gap: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.langs a {
  padding: 6px 7px;
  text-decoration: none;
  color: var(--muted);
}

.langs a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

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

.cart-btn b {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--mandarin);
  color: #fff;
  font: 600 0.75rem/20px var(--body);
  text-align: center;
}

.top__burger {
  width: 44px;
  height: 44px;
  margin-left: -8px;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.top__burger span,
.top__burger span::before,
.top__burger span::after {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.top__burger span {
  position: relative;
}

.top__burger span::before,
.top__burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.top__burger span::before {
  top: -7px;
}

.top__burger span::after {
  top: 7px;
}

.top__burger[aria-expanded="true"] span {
  background: transparent;
}

.top__burger[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.top__burger[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

.menu {
  background: var(--paper);
}

.menu__in {
  display: grid;
  gap: 4px;
  padding-top: 12px;
  padding-bottom: 20px;
}

.menu__link {
  padding: 12px 0;
  font: 500 1.375rem/1.1 var(--body);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.menu__foot,
.menu__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 14px;
  font-size: 0.9375rem;
}

.menu__langs a[aria-current] {
  font-weight: 700;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 900px) {
  .top__burger,
  .menu {
    display: none !important;
  }

  .top__nav {
    display: flex;
    gap: 22px;
    margin-left: 20px;
  }

  .top__search {
    display: block;
  }
}

/* --- hero: the one loud moment ------------------------------------------------- */
/* the first screen: headline and collage centred, the perks along the bottom */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  padding: 36px 0 0;
}

/* a hatched band behind the photos: paper, pencil, a workshop table */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 54%;
  height: 34%;
  background: var(--hatch);
  pointer-events: none;
}

.perks {
  display: grid;
  gap: 22px;
  width: 100%;
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  list-style: none;
}

.perk {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 14px;
  align-items: start;
}

.perk__icon {
  grid-row: span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
}

.perk__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.perk strong {
  font-weight: 600;
}

.perk span {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.perk a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--sun);
}

@media (min-width: 700px) {
  .perks {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: auto auto 0;
    padding-top: 40px;
  }
}

/* a low sun: one soft amber disc, nothing drawn on it */
.sun {
  position: absolute;
  width: min(80vw, 640px);
  aspect-ratio: 1;
  right: -24vw;
  top: -30vw;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffd978 0%, var(--sun) 45%, #eaa22e 100%);
  opacity: 0.6;
  pointer-events: none;
}

@media (min-width: 900px) {
  .sun {
    right: -8vw;
    top: -16vw;
    opacity: 0.85;
  }
}

.sun__core {
  fill: var(--sun);
}

.hero__in {
  position: relative;
  display: grid;
  gap: 32px;
  padding-bottom: 44px;
}

.hero__text {
  position: relative;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  font-size: clamp(2.75rem, 2rem + 5.5vw, 5.75rem);
  line-height: 0.98;
  max-width: 12ch;
}

.hero__lead {
  max-width: 44ch;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* an editorial collage: one tall photo and three small, straight edges */
.hero__cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 8px;
}

.hero__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  animation: float-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.15s + var(--i) * 0.09s);
}

.hero__card:first-child {
  grid-row: span 2;
  grid-column: span 2;
  aspect-ratio: auto;
}

.hero__card img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero__card:hover img {
  transform: scale(1.04);
}

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

.hero__price {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: var(--r-s);
  background: rgb(255 255 255 / 94%);
  color: var(--ink);
  font: 400 0.875rem/1.3 var(--display);
  white-space: nowrap;
}

.hero__price small {
  font: 600 0.625rem var(--body);
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero__price {
    left: 12px;
    bottom: 12px;
    padding: 5px 12px;
    font-size: 1.0625rem;
  }
}

.hero__picture img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .hero {
    padding-top: 56px;
  }

  .hero__in {
    flex: 1;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    align-content: center;
    gap: 48px;
    padding-bottom: 24px;
  }

  .hero__cards {
    gap: 12px;
  }
}

/* --- sections ------------------------------------------------------------------ */
.section {
  padding: 48px 0 8px;
}

.section:last-child {
  padding-bottom: 56px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section__head h2 {
  position: relative;
  padding-left: 22px;
}

/* a small amber square marks every rubric */
.section__head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--sun);
}

.more {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.more:hover {
  background: var(--sun);
}

/* the sale rubric is a dark panel: the discounts glow on it */
.section--sale {
  margin: 28px 0 8px;
  padding: 44px 0 52px;
  background: var(--cocoa);
  background-image: var(--dots);
  background-size: 14px 14px;
  color: var(--paper);
}

.section--sale .section__head h2::before {
  background: var(--mandarin);
}

.section--sale .more {
  background: var(--cocoa-2);
  color: var(--paper);
}

.section--sale .more:hover {
  background: var(--mandarin);
}

.dark .card__price,
.section--sale .card__price {
  color: var(--paper);
}

.dark .card__price small,
.dark .card__price s,
.section--sale .card__price small,
.section--sale .card__price s {
  color: rgb(255 255 255 / 55%);
}

.dark .card__photo,
.section--sale .card__photo {
  background: var(--cocoa-2);
}

.dark {
  background: var(--cocoa);
  color: var(--paper);
  background-image: var(--dots);
  background-size: 14px 14px;
}

.dark .section__head h2::before {
  background: var(--mandarin);
}

.dark .more {
  background: var(--cocoa-2);
  color: var(--paper);
}

.dark.section {
  padding: 48px 0 56px;
  margin: 20px 0;
}

/* --- product cards --------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 14px;
}

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

.card__photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgb(23 20 15 / 4%);
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card__photo img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgb(23 20 15 / 10%);
}

.badge--new {
  background: var(--sun);
}

.badge--sale {
  background: var(--mandarin);
  color: #fff;
}

.badge--out {
  color: var(--muted);
}

.card--out img {
  filter: grayscale(1);
  opacity: 0.6;
}

.card__name {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card__price {
  display: block;
  margin-top: 4px;
  font: 400 1.1875rem/1.2 var(--display);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.card__price small {
  font: 700 0.75rem var(--body);
  color: var(--muted);
}

.card__price s {
  margin-left: 6px;
  font: 400 0.875rem var(--body);
  color: var(--muted);
}

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

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- banners and category tiles ----------------------------------------------- */
.banners {
  display: grid;
  gap: 16px;
}

.banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--cocoa-2);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.3s ease;
}

a.banner:hover {
  transform: translateY(-4px);
}

.banner img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.banner__text {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: linear-gradient(transparent, rgb(36 24 17 / 70%));
}

.banner__text strong {
  font: 400 clamp(1.375rem, 1rem + 1.5vw, 2rem) / 1.1 var(--display);
}

.banner--plain .banner__text {
  position: static;
  padding: 28px 24px;
  background: var(--paper);
  color: var(--ink);
}

@media (min-width: 700px) {
  .banners {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .banners--1 .banner img {
    aspect-ratio: 21 / 7;
  }
}

.tiles {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.tiles::-webkit-scrollbar {
  display: none;
}

.tile {
  position: relative;
  flex: 0 0 160px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--paper-2);
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
}

.tile:hover {
  transform: translateY(-3px);
}

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

.tile span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgb(36 24 17 / 65%));
  color: #fff;
  font: 400 1.0625rem/1.2 var(--display);
}

.tile b {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 500 1rem/1 var(--body);
  transition: transform 0.25s ease;
}

.tile:hover b {
  transform: translateX(3px);
  background: var(--sun);
  color: var(--ink);
}

/* no photo yet: the name set large on a soft panel with a hatch */
.tile--plain {
  background: var(--paper-2);
  background-image: var(--hatch);
}

.tile--plain span {
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: none;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.1;
}

@media (min-width: 900px) {
  .tile {
    flex-basis: 190px;
  }
}

/* --- listing pages (category, search, collection) ----------------------------- */
.trail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.trail a {
  text-decoration: none;
}

.trail a:hover {
  color: var(--ink);
}

.trail a + a::before {
  content: "/";
  margin-right: 6px;
  color: var(--muted);
}

.heading {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  line-height: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chips a {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  text-decoration: none;
  font-size: 0.9375rem;
}

.chips a:hover,
.chips a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}

.sort {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  overflow-x: auto;
  font-size: 0.875rem;
}

.sort a {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.sort a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

/* --- product page --------------------------------------------------------------- */
.product {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}

.gallery {
  margin: 0 calc(-1 * var(--gutter));
}

.gallery__main {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.gallery__main::-webkit-scrollbar {
  display: none;
}

.gallery__main img,
.gallery__main video {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-2);
  scroll-snap-align: start;
}

/* 4px of room around the row: the active thumbnail's outline sits outside it */
.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin: 0 -4px;
  padding: 10px calc(var(--gutter) + 4px) 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery__thumbs a {
  flex: none;
  width: 64px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-s);
  background: var(--paper-2);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.gallery__thumbs a[aria-current],
.gallery__thumbs a:hover {
  opacity: 1;
}

.gallery__thumbs a[aria-current] {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

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

.gallery__video {
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
}

.product__info h1 {
  font-size: clamp(1.875rem, 1.3rem + 2.6vw, 3rem);
  line-height: 1.05;
}

.product__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 22px;
}

.tag--big {
  font: 400 2.25rem/1 var(--display);
  color: var(--ink);
}

.tag--big small {
  font: 700 0.875rem var(--body);
  color: var(--muted);
}

.product__price s {
  color: var(--muted);
}

.variants {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.variants legend {
  margin-bottom: 8px;
  font-weight: 600;
}

.variants > div,
.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variants legend {
  flex-basis: 100%;
}

.variants[hidden],
.options[hidden] {
  display: none;
}

.variant {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  min-width: 56px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--r);
  background: var(--paper-2);
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.variant input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.variant small {
  color: var(--muted);
  font-size: 0.75rem;
}

.variant:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
}

.variant:has(input:checked) small {
  color: rgb(247 239 223 / 70%);
}

.variant.is-out {
  opacity: 0.45;
  text-decoration: line-through;
}

.buy .btn {
  width: 100%;
  min-height: 56px;
  font-size: 1.0625rem;
}

.product__perks {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.product__perks a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--sun);
}

.product__out {
  padding: 14px 18px;
  border-radius: var(--r-s);
  background: var(--paper-2);
  color: var(--muted);
  font-weight: 600;
}

.product__text {
  margin-top: 28px;
  max-width: 62ch;
  line-height: 1.65;
}

.product__text p + p {
  margin-top: 12px;
}

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

  .gallery {
    margin: 0;
  }

  .gallery__main img,
  .gallery__main video {
    max-height: 72vh;
    border-radius: var(--r);
  }

  .gallery__thumbs {
    padding: 12px 4px 4px;
  }

  .gallery__thumbs a {
    width: 84px;
  }

  .product__info {
    position: sticky;
    top: 84px;
  }

  .buy .btn {
    width: auto;
    min-width: 260px;
  }
}

/* --- cart: page and drawer ----------------------------------------------------- */
.lines {
  list-style: none;
  padding: 0;
}

.line {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.line__photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-s);
  background: var(--paper-2);
}

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

.line__body > a {
  font-weight: 600;
  text-decoration: none;
}

.line__price {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.875rem;
}

.line__amount {
  font: 400 1.125rem/1.3 var(--display);
  white-space: nowrap;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  padding: 3px;
  border-radius: var(--r);
  background: var(--paper-2);
}

.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--r-s);
  background: var(--paper);
  color: var(--ink);
  font: 600 1.125rem/1 var(--body);
  cursor: pointer;
}

.qty button:hover {
  background: var(--ink);
  color: var(--paper);
}

.qty output {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.qty__remove {
  width: auto !important;
  padding: 0 12px;
  background: transparent !important;
  color: var(--muted) !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
}

.summary {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--r);
  background: var(--paper-2);
}

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.125rem;
}

.summary__total b,
.summary__total .tag--big {
  font: 400 1.875rem/1 var(--display);
  color: var(--ink);
}

.drawer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.drawer::backdrop {
  background: rgb(36 24 17 / 45%);
  backdrop-filter: blur(2px);
}

.drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(440px, 100%);
  overflow-y: auto;
  padding: 22px 20px 30px;
  background: var(--paper);
  box-shadow: -20px 0 60px rgb(36 24 17 / 25%);
  animation: slide-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.drawer__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.drawer__title {
  margin: 0 0 8px;
  font-size: 2rem;
}

.drawer .line {
  grid-template-columns: 64px minmax(0, 1fr);
}

.drawer .line__amount {
  grid-column: 2;
}

.drawer .btn {
  width: 100%;
}

/* --- checkout and the thank-you page ------------------------------------------ */
.checkout {
  display: grid;
  gap: 28px;
}

.checkout__form {
  display: grid;
  gap: 16px;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field input:not([type="radio"]),
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r);
  background: var(--paper-2);
  font: inherit;
  color: inherit;
}

.field textarea {
  min-height: 96px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--ink);
}

.field fieldset {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r);
  background: var(--paper-2);
  cursor: pointer;
}

.choice input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
}

.choice:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.choice input {
  accent-color: var(--ink);
}

.choice span {
  flex: 1;
}

.choice small {
  color: var(--muted);
}

.error {
  color: #b3261e;
  font-size: 0.9375rem;
}

.has-error input {
  box-shadow: 0 0 0 2px #b3261e;
}

.checkout__cart {
  align-self: start;
  padding: 22px;
  border-radius: var(--r);
  background: var(--paper-2);
}

.heading--small {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.mini {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mini li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mini__total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgb(23 20 15 / 12%);
  font-weight: 700;
}

.done {
  max-width: 560px;
  margin: 20px auto;
  display: grid;
  gap: 16px;
}

.done__lead {
  font-size: 1.125rem;
}

@media (min-width: 900px) {
  .checkout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
  }
}

.text {
  max-width: 68ch;
  line-height: 1.65;
}

.text p + p {
  margin-top: 14px;
}

/* --- footer ------------------------------------------------------------------- */
.foot {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 64px 0 28px;
  background: var(--cocoa);
  color: var(--paper);
  background-image: var(--dots);
  background-size: 14px 14px;
}

.foot__in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 36px;
}

.foot__brand .logo {
  color: var(--paper);
}

.foot__brand p {
  margin-top: 14px;
  max-width: 40ch;
  color: rgb(252 251 247 / 70%);
}

.foot__contacts {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.foot__phone {
  width: max-content;
  font: 400 1.75rem/1 var(--display);
  text-decoration: none;
  color: var(--sun);
}

.foot__ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  text-decoration: none;
  color: rgb(252 251 247 / 85%);
}

.foot__ig svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.foot__col h3 {
  margin-bottom: 14px;
  font: 600 0.9375rem/1.3 var(--body);
  color: var(--sun);
}

.foot__links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}

.foot__links a {
  text-decoration: none;
  color: rgb(252 251 247 / 85%);
}

.foot__links a:hover {
  color: var(--mandarin);
}

.foot__langs {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  font-size: 0.875rem;
}

.foot__langs a {
  color: rgb(252 251 247 / 60%);
  text-decoration: none;
}

.foot__langs a[aria-current] {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot__line {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: rgb(252 251 247 / 50%);
}

@media (min-width: 700px) {
  .foot__in {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

}

/* --- home: how to buy, instagram ------------------------------------------------ */
.steps {
  padding: 56px 0 24px;
}

.steps h2 {
  margin-bottom: 24px;
}

.steps__list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps__list li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 24px 22px 24px 70px;
  border-radius: var(--r);
  background: var(--paper-2);
  background-image: var(--hatch);
}

.steps__list b {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.125rem/1 var(--display);
}

.steps__list strong {
  font-weight: 600;
}

.steps__list span {
  color: var(--muted);
  font-size: 0.9375rem;
}

.ig {
  padding: 24px 0 56px;
}

.ig__in {
  display: grid;
  gap: 18px;
  padding: 32px 24px;
  border-radius: var(--r);
  background: var(--cocoa);
  background-image: var(--dots);
  background-size: 14px 14px;
  color: var(--paper);
}

.ig p {
  margin-top: 6px;
  color: rgb(255 255 255 / 65%);
}

.ig .btn {
  background: var(--mandarin);
  border-color: var(--mandarin);
  color: #fff;
}

.ig .btn:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

@media (min-width: 700px) {
  .steps__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .ig__in {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 40px 48px;
  }
}

/* --- motion --------------------------------------------------------------------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(0);
  }
}

@keyframes slide-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- reviews: stars on cards, the summary on the product page, the section, the form --- */
.stars { color: var(--sun); letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; opacity: 0.25; }
.stars i.on { opacity: 1; }
.card__rating { display: block; margin-top: 2px; color: var(--sun-deep); font-size: 0.8125rem; }
.card__rating span { color: var(--muted); }
.product__rating { margin: 0 0 12px; font-weight: 600; }
.product__rating a { margin-left: 4px; font-weight: 400; }
.reviews { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.review { padding: 16px 18px; border-radius: var(--r); background: var(--paper-2); }
.review p { margin: 0 0 6px; }
.review__meta { font-size: 0.875rem; }
.review__reply { padding: 8px 12px; border-left: 3px solid var(--mandarin); font-size: 0.9375rem; }
.review-page { max-width: 640px; }
.review-form { display: grid; gap: 18px; margin: 18px 0; }
.review-form input[type="text"], .review-form textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: var(--r); background: var(--paper-2); font: inherit; color: inherit; }
.review-form input:focus, .review-form textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--ink); }
.review-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.review-item legend { display: flex; gap: 10px; align-items: center; padding: 0 6px; font-weight: 600; }
.review-item legend img { width: 40px; height: 40px; border-radius: var(--r-s); object-fit: cover; }
.review-item textarea { margin-top: 10px; min-height: 80px; }
.rating { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating label { cursor: pointer; font-size: 1.75rem; color: var(--line); transition: color 0.1s; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--sun); }
.rating input:focus-visible + label { outline: 2px solid var(--ink); border-radius: 4px; }
.notice { padding: 10px 14px; border-radius: var(--r); background: var(--amber-wash); }
