/* =========================================================
   LUMA — catalog styles
   Palette from the brand guide (02. Paleta de cores oficiais)
   ========================================================= */

:root {
  /* Brand */
  --sage: #7D8471;
  --cream: #F7F6F2;
  --beige: #D8C8B4;
  --gold: #CBB279;
  --ivory: #EFEDE6;

  /* Derived (for text and buttons that need stronger contrast) */
  --sage-deep: #5D6453;
  --ink: #34372F;
  --ink-soft: #676A5E;
  --line: #E2DDD2;
  --white: #FFFFFF;
  --danger: #9A4B3F;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 64px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--sage-deep); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

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

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

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.serif { font-family: var(--serif); }
.star { width: 14px; height: 14px; fill: var(--gold); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  text-align: center;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn--primary { background: var(--sage-deep); color: var(--white); }
.btn--primary:hover { background: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }

.link-underline {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--ink);
  border-radius: 50%;
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(125, 132, 113, .12); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--sage);
  color: var(--ivory);
  text-align: center;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 9px var(--gutter);
}
@media (max-width: 600px) { .announce { font-size: 10px; letter-spacing: .14em; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 calc(var(--gutter) - 10px);
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.header__left { display: flex; align-items: center; }
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.logo { display: block; padding: 6px 10px; }
.logo__mark, .footer__logo {
  display: block;
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
          mask: url("../img/logo.png") center / contain no-repeat;
}
.logo__mark { width: 92px; height: 45px; background: var(--sage-deep); }

.nav { display: none; gap: 28px; padding-left: 10px; }
.nav a {
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); padding: 6px 0; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.lang-btn {
  display: inline-flex; align-items: center; gap: 3px;
  height: 44px; padding: 0 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  color: var(--ink-soft);
}
.lang-btn span[data-lang] { padding: 2px 1px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.lang-btn span.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.lang-btn:hover span:not(.is-active) { color: var(--ink); }
.lang-btn__sep { opacity: .5; }
@media (max-width: 600px) {
  #header-ig { display: none !important; } /* Instagram stays in the menu and footer */
  .lang-btn { padding: 0 4px; }
}

.menu-list .menu-list__lang {
  text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft);
}

.bag-count {
  position: absolute; top: 6px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px;
  background: var(--gold); color: var(--ink);
  font-size: 10px; font-weight: 500; line-height: 17px; text-align: center;
}
.bag-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Medium-wide windows: tighten the menu so it keeps clear of the centred logo.
   Wider screens (1200px+) keep the original spacing. */
@media (min-width: 960px) and (max-width: 1199px) {
  .nav { gap: 18px; }
  .nav a { letter-spacing: .15em; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .menu-toggle { display: none; }
  .nav { display: flex; }
  .logo__mark { width: 108px; height: 52px; }
}

/* ---------- Hero / banners ---------- */
.hero { position: relative; background: var(--ivory); overflow: hidden; }
.hero__track { display: grid; touch-action: pan-y; }
.slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: auto 1fr;
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }

.slide__media { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%; overflow: hidden; background: var(--beige); }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.slide.is-active .slide__media img { transform: scale(1); }

.slide__text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px;
  padding: 36px var(--gutter) 64px;
}
.slide__title {
  margin: 0;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(34px, 8vw, 64px); line-height: 1.05; letter-spacing: -.005em;
  color: var(--ink);
}
.slide__sub { margin: 0; max-width: 34ch; color: var(--ink-soft); font-size: 15px; }
.slide__text .btn { margin-top: 10px; }

.hero__dots {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; gap: 4px;
}
.hero__dots button { width: 28px; height: 24px; display: grid; place-items: center; }
.hero__dots button::before { content: ""; width: 18px; height: 1.5px; background: var(--beige); transition: background .3s, width .3s; }
.hero__dots button[aria-current="true"]::before { background: var(--sage-deep); width: 26px; }

.hero__arrow { display: none; }

@media (min-width: 820px) {
  .slide { grid-template-rows: none; grid-template-columns: 1fr 1fr; min-height: min(78vh, 720px); }
  .slide__media { order: 2; aspect-ratio: auto; max-height: none; height: 100%; }
  .slide__text { order: 1; align-items: flex-start; text-align: left; padding: 64px clamp(40px, 6vw, 96px); }
  .hero__dots { left: 0; right: 50%; bottom: 40px; justify-content: flex-start; padding-left: clamp(36px, 6vw, 92px); }
  .hero__arrow {
    display: grid; place-items: center;
    position: absolute; bottom: 30px; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(247, 246, 242, .85); color: var(--ink);
    transition: background .2s;
  }
  .hero__arrow:hover { background: var(--cream); }
  .hero__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
  .hero__arrow--prev { right: 84px; }
  .hero__arrow--next { right: 32px; }
}

/* Plain intro, used only when there are no active banners */
.intro { text-align: center; padding: 72px var(--gutter) 24px; }
.intro__logo { width: 200px; height: 135px; margin: 0 auto; background: var(--sage-deep);
  -webkit-mask: url("../img/logo-tagline.png") center / contain no-repeat; mask: url("../img/logo-tagline.png") center / contain no-repeat; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section__head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section__title {
  margin: 10px 0 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 5vw, 48px); line-height: 1.1;
}

/* ---------- Toolbar (categories + sort) ---------- */
.toolbar {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.chips {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
  scroll-padding: 0 var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 40px;
  font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); background: transparent;
  transition: all .2s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--sage); color: var(--ink); }
.chip[aria-current="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }

.toolbar__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.count { font-size: 13px; color: var(--ink-soft); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.sort select {
  appearance: none; -webkit-appearance: none;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2334372F' stroke-width='1.2'/%3E%3C/svg%3E") right 2px center no-repeat;
  padding: 4px 18px 4px 2px; color: var(--ink); font-size: 13px;
}

@media (min-width: 720px) {
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .chips { margin: 0; padding: 2px 0; flex-wrap: wrap; }
  .toolbar__meta { gap: 28px; }
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
}
@media (min-width: 720px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 28px; } }

.empty { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--ink-soft); }

/* ---------- Product card ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__frame { position: relative; }

.card__media {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  background: var(--white);
  overflow: hidden;
}
.card__track { position: absolute; inset: 0; }
.card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: var(--white);
}
.card__img--main { object-fit: contain; transition: transform 1.2s var(--ease), opacity .6s var(--ease); }
.card__img--alt  { object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }

/* The hover swap: white-background shot → lifestyle shot.
   Only on devices that can actually hover (mouse / trackpad). */
@media (hover: hover) and (pointer: fine) {
  .card--has-alt .card__media:hover .card__img--alt,
  .card--has-alt .card__media:focus-visible .card__img--alt { opacity: 1; transform: scale(1); }
  .card--has-alt .card__media:hover .card__img--main { opacity: 0; }
  .card:not(.card--has-alt) .card__media:hover .card__img--main { transform: scale(1.04); }
}

/* On touch screens there is no hover, so the two photos become a
   swipeable pair inside the card, with two small dots. */
.card__dots { display: none; }
@media (hover: none), (pointer: coarse) {
  .card--has-alt .card__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .card--has-alt .card__track::-webkit-scrollbar { display: none; }
  .card--has-alt .card__img {
    position: relative; inset: auto; flex: 0 0 100%;
    scroll-snap-align: start; opacity: 1; transform: none;
  }
  .card--has-alt .card__dots {
    display: flex; gap: 5px;
    position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
    pointer-events: none;
  }
  .card__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(52, 55, 47, .25); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); transition: background .2s; }
  .card__dots i.is-on { background: var(--ink); }
}

/* Tags on the photo: Sold out / Sale / custom label from the Sheet */
.badges {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  pointer-events: none;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  background: var(--cream); color: var(--ink);
  font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.badge--soldout { background: var(--ink); color: var(--cream); }
.badge--sale { background: var(--gold); color: var(--ink); }
.card.is-soldout .card__img { opacity: .55; }

.card__body { padding-top: 14px; display: grid; gap: 4px; }
.card__cat { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.card__name {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(18px, 2.2vw, 21px); line-height: 1.2;
}
.card__name a:hover { color: var(--sage-deep); }
/* Price sits in a small box with a thin gold border so it stands out */
.price {
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  justify-self: start; width: fit-content; max-width: 100%;
  margin-top: 4px; padding: 5px 11px;
  background: var(--white); border: 1px solid var(--gold); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--ink);
}
.price s { color: var(--ink-soft); font-size: .88em; font-weight: 400; }
.price--sale { border-color: var(--ink); }
.price__ask { color: var(--ink-soft); font-style: italic; font-family: var(--serif); font-size: 16px; font-weight: 400; }

.card__add {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 2px 10px rgba(52, 55, 47, .12);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s;
}
.card__add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.card__add:hover { background: var(--sage-deep); color: var(--white); }
.card__addwrap { position: absolute; right: 10px; bottom: 10px; z-index: 3; }
.card__addwrap .card__add { position: static; }
@media (hover: hover) and (pointer: fine) {
  .card__addwrap .card__add { opacity: 0; transform: translateY(6px); }
  .card:hover .card__addwrap .card__add, .card__addwrap .card__add:focus-visible { opacity: 1; transform: none; }
}
@media (hover: none), (pointer: coarse) {
  .card--has-alt .card__addwrap { bottom: 22px; }
  .card__addwrap { right: 8px; bottom: 8px; }
  .card__addwrap .card__add { width: 36px; height: 36px; }
}

/* Skeletons while data loads */
.skeleton .card__media { background: linear-gradient(100deg, var(--ivory) 30%, #f4f2ec 50%, var(--ivory) 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite linear; }
.skeleton .sk-line { height: 12px; margin-top: 14px; width: 70%; background: var(--ivory); }
.skeleton .sk-line + .sk-line { width: 35%; margin-top: 8px; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- How it works ---------- */
.how { background: var(--ivory); }
.how__grid { display: grid; gap: 36px; counter-reset: step; }
.how__item { text-align: center; padding: 0 12px; }
.how__num {
  display: block; font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1;
  color: var(--gold); margin-bottom: 10px;
}
.how__item h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 500; font-size: 23px; }
.how__item p { margin: 0 auto; max-width: 30ch; color: var(--ink-soft); }
@media (min-width: 820px) { .how__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- Product page ---------- */
.pdp { padding: 20px 0 clamp(56px, 8vw, 96px); }
.crumbs { font-size: 12px; color: var(--ink-soft); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.pdp__grid { display: grid; gap: 28px; }
/* Photo and details side by side from medium windows up, so the whole photo fits on screen */
@media (min-width: 720px) {
  .pdp { padding-top: 32px; }
  .pdp__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
  .pdp__info { position: sticky; top: calc(var(--header-h) + 28px); }
}

.gallery { position: relative; margin: 0 calc(var(--gutter) * -1); }
@media (min-width: 720px) { .gallery { margin: 0; } }
@media (max-width: 719px) { .gallery__main img { max-height: 72vh; } }
@media (min-width: 1024px) {
  .gallery--multi { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
}
.gallery__main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; background: var(--white);
}
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__main img {
  flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; scroll-snap-align: start;
  background: var(--white);
}
.gallery__main img.is-contain { object-fit: contain; }
.gallery__main img.is-cover { object-fit: cover; }
.gallery__main img { user-select: none; -webkit-user-drag: none; }

.gallery__stage { position: relative; min-width: 0; }
@media (min-width: 1024px) { .gallery__stage { order: 2; } }

/* Mouse users can click and drag the photos */
@media (hover: hover) and (pointer: fine) {
  .gallery--multi .gallery__main { cursor: grab; }
}
.gallery__main.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }

/* Arrows over the photo */
.gallery__arrow {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(247, 246, 242, .92); color: var(--ink);
  box-shadow: 0 2px 10px rgba(52, 55, 47, .12);
  transition: opacity .25s var(--ease), background .2s;
}
.gallery__arrow:hover { background: var(--white); }
.gallery__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: none), (pointer: coarse) {
  .gallery__arrow { width: 36px; height: 36px; }
}

.gallery__thumbs { display: none; }
/* Thumbnails only on wide screens; dots + arrows below that */
@media (min-width: 1024px) {
  .gallery__thumbs { order: 1; display: flex; flex-direction: column; gap: 10px; }
  .gallery__thumbs button { aspect-ratio: 4 / 5; background: var(--white); outline-offset: 2px; opacity: .6; transition: opacity .2s; border: 1px solid transparent; }
  .gallery__thumbs button:hover, .gallery__thumbs button[aria-current="true"] { opacity: 1; }
  .gallery__thumbs button[aria-current="true"] { border-color: var(--sage); }
  .gallery__thumbs img { width: 100%; height: 100%; }
}
.gallery__dots { display: flex; justify-content: center; gap: 0; padding-top: 6px; }
.gallery__dots button { width: 24px; height: 24px; display: grid; place-items: center; }
.gallery__dots button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--beige); transition: background .2s; }
.gallery__dots button[aria-current="true"]::before { background: var(--sage-deep); }
@media (min-width: 1024px) { .gallery__dots { display: none; } }

.pdp__info .eyebrow { margin-bottom: 8px; }
.pdp__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 48px); line-height: 1.08; }
.pdp__pricerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pdp__price { margin: 0; padding: 8px 16px; font-size: 19px; }
.pdp__price .price__ask { font-size: 20px; }
.pdp__desc { margin: 22px 0 0; color: var(--ink-soft); }
.pdp__desc p { margin: 0 0 10px; }

.field { margin-top: 26px; border: 0; padding: 0; }
.field__label { display: block; margin-bottom: 10px; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.field__label .field__value { letter-spacing: .05em; text-transform: none; color: var(--ink-soft); font-weight: 400; margin-left: 6px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
  min-width: 48px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 14px; transition: border-color .2s, background .2s;
}
.option:hover { border-color: var(--sage); }
.option[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.field.is-error .options { animation: shake .35s; }
.field.is-error .field__hint { color: var(--danger); }
.field__hint { margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); min-height: 1em; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--white); }
.qty button { width: 40px; height: 42px; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--ivory); }
.qty button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.qty output { min-width: 32px; text-align: center; font-size: 14px; }
.qty--sm button { width: 32px; height: 32px; }
.qty--sm output { min-width: 24px; font-size: 13px; }

.pdp__actions { display: grid; gap: 10px; margin-top: 28px; }
.pdp__soldout { margin: 22px 0 0; padding: 14px 16px; background: var(--ivory); font-size: 14px; color: var(--ink-soft); }

.pdp__notes { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pdp__notes li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.pdp__notes .star { margin-top: 5px; }

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

/* ---------- Side panels (bag + mobile menu) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(52, 55, 47, .38);
  opacity: 0; transition: opacity .3s var(--ease);
}
.scrim.is-on { opacity: 1; }

.panel {
  position: fixed; top: 0; bottom: 0; z-index: 70;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--cream);
  transition: transform .4s var(--ease), visibility 0s linear .4s;
  visibility: hidden;
}
.panel--right { right: 0; transform: translateX(100%); }
.panel--left { left: 0; width: min(340px, 88%); transform: translateX(-100%); }
.panel.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }

.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 12px 0 24px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.panel__title { font-family: var(--serif); font-size: 24px; }
.panel__count { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); }

.menu-list { display: flex; flex-direction: column; padding: 16px 24px; overflow-y: auto; }
.menu-list a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 24px; }
.menu-list a.menu-list__small { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.menu-list .menu-list__gap { height: 24px; }

.bag__body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.bag__empty { text-align: center; padding: 64px 8px; display: grid; justify-items: center; gap: 16px; }
.bag__empty p { margin: 0; font-family: var(--serif); font-size: 24px; }
.bag__empty span { color: var(--ink-soft); font-size: 14px; }

.line { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line__img { width: 76px; aspect-ratio: 4 / 5; background: var(--white); }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__top { display: flex; justify-content: space-between; gap: 12px; }
.line__name { margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.2; }
.line__name a:hover { color: var(--sage-deep); }
.line__variant { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.line__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.line__price { font-size: 14px; }
.line__remove { font-size: 12px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; padding: 2px 0; }
.line__remove:hover { color: var(--ink); }

.bag__foot { flex: none; padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); display: grid; gap: 14px; }
.bag__total { display: flex; justify-content: space-between; align-items: baseline; }
.bag__total span:first-child { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.bag__total strong { font-weight: 400; font-size: 20px; }
.bag__name label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.bag__name input {
  width: 100%; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--white); border-radius: var(--radius);
  font-size: 16px; /* 16px stops iOS from zooming in */
}
.bag__name input:focus { outline: none; border-color: var(--sage-deep); }
.bag__note { margin: 0; font-size: 12px; color: var(--ink-soft); text-align: center; line-height: 1.5; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px;
  max-width: calc(100% - 32px);
  padding: 12px 14px 12px 20px;
  background: var(--ink); color: var(--cream);
  font-size: 14px;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { color: var(--gold); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; padding: 6px; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { background: var(--sage); color: var(--ivory); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 64px var(--gutter) calc(32px + env(safe-area-inset-bottom)); text-align: center; display: grid; justify-items: center; gap: 18px; }
.footer__logo { width: 120px; height: 58px; background: var(--ivory); }
.footer__tagline { margin: 0; font-family: var(--serif); font-style: italic; font-size: 22px; }
.footer__links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer__links a { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; padding: 6px 0; display: inline-block; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__note { margin: 12px 0 0; font-size: 13px; opacity: .85; max-width: 44ch; }
.footer__copy { margin: 0; font-size: 12px; opacity: .7; }

/* ---------- Not found ---------- */
.notfound { text-align: center; padding: 96px var(--gutter); display: grid; justify-items: center; gap: 16px; }
.notfound h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; }
.notfound p { margin: 0; color: var(--ink-soft); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
