/* ============================================================
   Amelia's Magic Bows — stylesheet (DaysGraphic mockup)
   Direction: "Keepsake scrapbook" — gingham pages, polaroid
   frames with washi tape, handwritten captions, stitched borders.
   Type: Libre Baskerville (headlines) · Caveat (handwriting)
         · Nunito Sans (text and UI)
   Palette: warm cream · strawberry pink (tape, gingham) · rose ink
   for handwriting · deep berry text and buttons · butter tape.
   Mobile first: base rules are 375–430px, widened at 700/1000.
   ============================================================ */
:root {
  --cream: #FFF9F2;
  --cream-2: #F8EEE2;
  --cream-3: #F1E3D3;
  --pink: #ED91AC;
  --pink-2: #E27C9B;
  --pink-soft: rgba(237, 145, 172, .14);
  --rose: #D9587E;             /* handwriting ink */
  --rose-2: #B8395F;
  --berry: #682A40;
  --berry-2: #522031;
  --berry-soft: rgba(104, 42, 64, .12);
  --butter: #F5E5A6;
  --ink: #3B1C29;
  --muted: #8A6270;
  --line: rgba(104, 42, 64, .16);
  --line-2: rgba(104, 42, 64, .34);
  --ok: #3F6B48;
  --paper: #ffffff;
  --display: "Libre Baskerville", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  --text: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: 18px;
  --sec: 44px;
  --navh: 56px;
  --r: 6px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
  --shadow: 0 12px 28px -16px rgba(104, 42, 64, .55);
}
@media (min-width: 700px)  { :root { --gutter: 32px; --sec: 64px; --navh: 64px; } }
@media (min-width: 1000px) { :root { --gutter: 56px; --sec: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(0deg, var(--pink-soft) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(90deg, var(--pink-soft) 0 10px, transparent 10px 20px);
  font-family: var(--text); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
figure { margin: 0; }
legend { padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; color: var(--berry); letter-spacing: -.01em; line-height: 1.1; }
p { margin: 0; }
.ico { width: 22px; height: 22px; display: block; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--berry); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ── Handwriting and buttons ───────────────────────────── */
.hand { font-family: var(--hand); font-weight: 600; color: var(--rose); line-height: 1; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r);
  background: var(--berry); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(255, 255, 255, .5); border-radius: 3px; pointer-events: none; }
.btn:hover { background: var(--berry-2); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--berry); box-shadow: inset 0 0 0 1.5px var(--berry); }
.btn--ghost::after { border-color: var(--line-2); }
.btn--ghost:hover { background: var(--berry-soft); }
.btn--pink { background: var(--pink); color: var(--berry); }
.btn--pink::after { border-color: rgba(104, 42, 64, .35); }
.btn--pink:hover { background: var(--pink-2); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.link { color: var(--berry); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link .ico { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link:hover .ico { transform: translateX(3px); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Small labels ──────────────────────────────────────── */
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: var(--butter); color: var(--berry); line-height: 1.3; }
.tag--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); }
.tag--preview { background: var(--cream-2); color: var(--berry); border: 1px dashed var(--line-2); text-transform: none; letter-spacing: 0; font-size: .8rem; font-weight: 600; padding: 5px 10px; justify-self: start; }
.demo { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 3px; padding: 1px 5px; vertical-align: 2px; margin-left: 5px; }
.price { font-weight: 700; color: var(--berry); font-variant-numeric: tabular-nums; }

/* ── Scrapbook devices ─────────────────────────────────── */
/* A cream "page" pinned on the gingham, with a stitched border */
.page { position: relative; background: var(--cream); padding: 22px 14px 24px; box-shadow: 0 0 0 1.5px var(--line-2); border-radius: 3px; }
.page::before { content: ""; position: absolute; inset: 6px; border: 1.5px dashed var(--line-2); border-radius: 2px; pointer-events: none; }
.page > * { position: relative; }
@media (min-width: 700px) { .page { padding: 34px 28px 36px; } }
@media (min-width: 1000px) { .page { padding: 48px 48px 52px; } }

/* Polaroid frame: white paper, photo, handwritten caption, washi tape */
.pol { position: relative; background: var(--paper); padding: 8px 8px 34px; box-shadow: var(--shadow); }
.pol__img { position: relative; overflow: hidden; background: var(--cream-2); aspect-ratio: 1; }
.pol__img > img, .pol__img > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto !important; }
.pol__cap { position: absolute; left: 12px; right: 12px; bottom: 7px; font-family: var(--hand); font-weight: 600; font-size: 1.2rem; color: var(--berry); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tape { position: absolute; top: -10px; left: 50%; width: 72px; height: 22px; background: rgba(237, 145, 172, .62); transform: translateX(-50%) rotate(-5deg); pointer-events: none; }
.tape--butter { background: rgba(245, 229, 166, .92); transform: translateX(-50%) rotate(6deg); }
.tape--right { left: auto; right: 22px; transform: rotate(8deg); }
.tape--left { left: 22px; transform: rotate(-7deg); }

/* Image placeholder: reserves the exact space, names the slot */
.ph { position: relative; width: 100%; overflow: hidden; background-color: #F4CBD6;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1.4px, transparent 1.6px); background-size: 16px 16px; }
.ph__in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 16px; text-align: center; color: var(--rose-2); }
.ph__in .ico { width: 32px; height: 32px; opacity: .85; }
.ph__label { font-family: var(--hand); font-weight: 600; font-size: 1.3rem; line-height: 1; }
.ph__spec { font-size: .68rem; color: #9C3F5E; max-width: 24ch; line-height: 1.35; }
.ph--sm .ph__in .ico { width: 22px; height: 22px; }
.ph--sm .ph__label { font-size: .95rem; }
.ph--sm .ph__spec { display: none; }
.media { position: relative; overflow: hidden; background: var(--cream-2); }

/* ── Announcement strip ────────────────────────────────── */
.bar { background: var(--berry); color: #fff; }
.bar__in { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 40px; }
.bar__btn { width: 44px; height: 40px; display: grid; place-items: center; color: rgba(255, 255, 255, .7); border-radius: 4px; }
.bar__btn:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.bar__btn:focus-visible { outline-color: var(--cream); outline-offset: -3px; }
.bar__btn .ico { width: 16px; height: 16px; }
.bar__msg { margin: 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 2px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; line-height: 1.3; text-align: center; transition: opacity 240ms var(--ease), transform 240ms var(--ease); }
.bar__msg > span, .bar__msg > a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__msg .ico { width: 14px; height: 14px; flex: 0 0 auto; color: var(--pink); }
.bar__msg[data-out] { opacity: 0; transform: translateY(4px); }
.bar__msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--pink); }
.bar__msg a:hover { text-decoration-color: #fff; }
.bar__msg a:focus-visible { outline-color: var(--cream); }
@media (min-width: 700px) { .bar__msg { font-size: .84rem; } }

/* ── Header ────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 249, 242, .96); backdrop-filter: blur(8px); border-bottom: 1.5px dashed var(--line-2); }
.nav__in { height: var(--navh); display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.nav__burger, .nav__cart { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r); color: var(--berry); position: relative; }
.nav__burger:hover, .nav__cart:hover { background: var(--berry-soft); }
.nav__cart { justify-self: end; text-decoration: none; }
.nav__count { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: var(--berry); font-size: .68rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.brand { justify-self: center; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: clamp(.92rem, 4.6vw, 1.08rem); color: var(--berry); white-space: nowrap; line-height: 1; display: inline-flex; align-items: baseline; gap: 5px; }
.brand em { font-family: var(--hand); font-style: normal; font-weight: 600; font-size: 1.55em; color: var(--rose); line-height: .8; }
.brand .ico { display: none; }
.nav__links { display: none; }
.nav__links a { text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--berry); padding: 10px 12px; border-radius: var(--r); }
.nav__links a:hover { background: var(--berry-soft); }
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.menu { display: none; border-top: 1.5px dashed var(--line-2); background: var(--cream); }
.menu[data-open] { display: block; }
.menu a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--gutter); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--berry); border-bottom: 1px dashed var(--line); }
.menu a:last-child { border-bottom: 0; }
.menu a .ico { width: 18px; height: 18px; color: var(--rose); }
@media (min-width: 900px) {
  .nav__in { grid-template-columns: auto 1fr auto; gap: 24px; }
  .nav__burger, .menu { display: none !important; }
  .brand { justify-self: start; font-size: 1.25rem; }
  .nav__links { display: flex; justify-content: flex-end; gap: 4px; }
}

/* ── Hero: a scrapbook page ────────────────────────────── */
.hero { padding-top: 22px; padding-bottom: 18px; }
.hero__in { display: flex; flex-direction: column; gap: 16px; }
.hero__text { display: flex; flex-direction: column; gap: 12px; }
.hero__kicker { font-size: 1.5rem; transform: rotate(-2deg); transform-origin: left bottom; align-self: flex-start; }
.hero__title { font-size: clamp(2.1rem, 9.6vw, 2.7rem); line-height: 1.06; }
.hero__title span { display: block; }
.hero__title span:last-child { font-family: var(--hand); font-weight: 600; font-size: 1.5em; color: var(--rose); line-height: .9; margin-top: 4px; letter-spacing: 0; }
.hero__copy { font-size: 1rem; max-width: 34ch; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hero__actions .btn { flex: 1 1 auto; }
.hero__art { position: relative; aspect-ratio: 1 / 1; margin: 6px 0 4px; }
.pol--main { position: absolute; left: 0; top: 0; width: 62%; transform: rotate(-4deg); }
.pol--inset { position: absolute; right: 0; top: 48%; width: 44%; transform: rotate(5deg); }
.hero__heart { position: absolute; left: 66%; top: 10%; width: 26px; height: 26px; color: var(--rose); }
@media (min-width: 700px) {
  .hero { padding-top: 34px; }
  .hero__art { max-width: 560px; }
}
@media (min-width: 1000px) {
  .hero { padding-top: 44px; padding-bottom: 30px; }
  .hero__in { display: grid; grid-template-columns: 5fr 6fr; grid-template-rows: auto auto; align-items: center; column-gap: 56px; row-gap: 24px; }
  .hero__text { grid-column: 1; grid-row: 1; align-self: end; gap: 16px; }
  .hero__actions { grid-column: 1; grid-row: 2; align-self: start; }
  .hero__actions .btn { flex: 0 0 auto; min-width: 210px; }
  .hero__art { grid-column: 2; grid-row: 1 / 3; margin: 0 0 0 auto; width: 100%; max-width: 540px; aspect-ratio: 1 / 1; }
  .hero__kicker { font-size: 1.8rem; }
  .hero__title { font-size: clamp(3rem, 4.4vw, 3.8rem); }
  .hero__copy { font-size: 1.1rem; }
  .pol__cap { font-size: 1.35rem; }
}

/* ── Section heads ─────────────────────────────────────── */
.sec { padding-block: var(--sec); }
.sec--tight { padding-top: 10px; }
.sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 18px; }
.sec__head h2 { font-size: clamp(1.6rem, 6.6vw, 2.2rem); }
.sec__head .hand { font-size: 1.35rem; }
.sec__head p { flex-basis: 100%; color: var(--muted); font-size: .92rem; max-width: 56ch; }
@media (min-width: 700px) { .sec__head { margin-bottom: 26px; } .sec__head .hand { font-size: 1.6rem; } }

/* ── Product grid: polaroids on the page ───────────────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; padding: 4px 2px; }
.card { padding: 7px 7px 8px; display: grid; gap: 4px; align-content: start; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.card:nth-child(odd) { transform: rotate(-1.5deg); }
.card:nth-child(even) { transform: rotate(1.5deg); }
.card:nth-child(4n+3) { transform: rotate(1deg); }
.card:nth-child(4n) { transform: rotate(-2deg); }
.card:hover, .card:focus-within { transform: rotate(0); box-shadow: 0 18px 34px -18px rgba(104, 42, 64, .6); z-index: 1; }
.card__link { text-decoration: none; color: inherit; display: grid; gap: 6px; }
.card__media { aspect-ratio: 1; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 3px 0; min-width: 0; }
.card__name { font-family: var(--hand); font-weight: 600; font-size: 1.15rem; color: var(--berry); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__price { font-size: .86rem; white-space: nowrap; }
.card__price .demo { margin-left: 3px; font-size: .55rem; }
.card__cta { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .82rem; color: var(--berry); padding: 0 3px; border-radius: 4px; text-decoration: none; justify-self: start; }
.card__cta .ico { width: 15px; height: 15px; color: var(--rose); transition: transform var(--dur) var(--ease); }
.card__cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__cta:hover .ico { transform: translateX(2px); }
.card__cta[data-added] { color: var(--ok); }
@media (min-width: 700px)  { .grid { gap: 30px 22px; } .card { padding: 9px 9px 10px; } .card__name { font-size: 1.3rem; } .card__meta { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 8px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 26px; } }

/* ── Editorial (mother and daughter) ───────────────────── */
.edit { padding-block: 8px var(--sec); }
.edit__in { display: flex; flex-direction: column; gap: 18px; }
.pol--wide { transform: rotate(-1.5deg); margin: 10px 6px 0; }
.pol--wide .pol__img { aspect-ratio: 4 / 5; }
.edit__text { display: flex; flex-direction: column; gap: 10px; padding: 8px 6px 0; }
.edit__text .hand { font-size: 1.5rem; }
.edit__text h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); max-width: 16ch; }
.edit__text p { max-width: 40ch; }
.edit__text .link { align-self: flex-start; }
@media (min-width: 700px) {
  .edit__in { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
  .pol--wide { margin: 10px 0 0; }
  .pol--wide .pol__img { aspect-ratio: 16 / 10; }
}
@media (min-width: 1000px) {
  .edit { padding-block: 20px var(--sec); }
  .edit__in { gap: 72px; }
  .edit__text h2 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
  .edit__text .hand { font-size: 1.8rem; }
}

/* ── Story ─────────────────────────────────────────────── */
.story__in { display: flex; flex-direction: column; gap: 26px; }
.story__media { width: 74%; transform: rotate(3deg); margin: 12px auto 6px 8px; }
.story__media .pol__img { aspect-ratio: 4 / 5; }
.story__text { display: flex; flex-direction: column; gap: 12px; }
.story__text .hand { font-size: 1.5rem; }
.story__text h2 { font-size: clamp(1.8rem, 7.6vw, 2.4rem); max-width: 14ch; }
.story__text p { max-width: 46ch; }
.story__text .link { align-self: flex-start; }
@media (min-width: 700px) {
  .story__in { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
  .story__media { width: 82%; margin: 10px 0; }
}
@media (min-width: 1000px) {
  .story__in { grid-template-columns: 4fr 6fr; gap: 80px; }
  .story__text h2 { font-size: clamp(2.3rem, 3.6vw, 3.2rem); }
  .story__text .hand { font-size: 1.8rem; }
}

/* ── Details accordion ─────────────────────────────────── */
.details__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.details__head h2 { font-size: clamp(1.6rem, 6.6vw, 2.2rem); }
.acc { border-top: 1.5px dashed var(--line-2); }
.acc__item { border-bottom: 1.5px dashed var(--line-2); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 12px 2px; text-align: left; font-family: var(--text); font-weight: 700; color: var(--berry); font-size: .98rem; line-height: 1.35; }
.acc__btn .tag { font-size: .58rem; padding: 1px 5px; vertical-align: 2px; }
.acc__btn .ico { width: 20px; height: 20px; flex: 0 0 auto; color: var(--rose); transition: transform var(--dur) var(--ease); }
.acc__btn[aria-expanded="true"] .ico { transform: rotate(45deg); }
.acc__panel { padding: 0 2px 16px; color: var(--ink); display: grid; gap: 8px; }
.acc__panel p { max-width: 62ch; }
.acc__pending { color: var(--muted); font-style: italic; }
@media (min-width: 700px) {
  .details__in { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; }
  .details__head { margin-bottom: 0; }
}

/* ── Footer ────────────────────────────────────────────── */
.foot { background: var(--cream); border-top: 1.5px dashed var(--line-2); padding: 36px 0 28px; }
.foot__in { display: grid; gap: 26px; }
.foot__brand { display: grid; gap: 8px; }
.foot__brand .brand { justify-self: start; font-size: 1.15rem; }
.foot__brand p { font-family: var(--hand); font-weight: 600; font-size: 1.35rem; color: var(--rose); line-height: 1; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.foot__col { min-width: 0; }
.foot__col h4 { font-family: var(--text); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.foot__col a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; max-width: 100%; text-decoration: none; color: var(--berry); font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__col a .tag { font-size: .58rem; padding: 1px 5px; }
.foot__note { font-size: .8rem; color: var(--muted); padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
@media (min-width: 700px) {
  .foot__in { grid-template-columns: 1.4fr 2fr; gap: 40px; }
  .foot__cols { grid-template-columns: repeat(3, auto); justify-content: start; gap: 48px; }
  .foot__note { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
}

/* ── Cart drawer (native <dialog>) ─────────────────────── */
.cart { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 440px); height: 100dvh; max-height: 100dvh; max-width: 100vw; border: 0; padding: 0; background: var(--cream); color: var(--ink); display: none; flex-direction: column; box-shadow: -20px 0 50px -30px rgba(104, 42, 64, .5); transform: translateX(100%); transition: transform 280ms var(--ease); }
.cart[open] { display: flex; }
.cart[data-in] { transform: translateX(0); }
.cart::backdrop { background: rgba(59, 28, 41, .35); }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 var(--gutter); min-height: var(--navh); border-bottom: 1.5px dashed var(--line-2); }
.cart__head h2 { font-size: 1.2rem; }
.cart__head h2 small { font-family: var(--text); font-size: .85rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.cart__close { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r); color: var(--berry); }
.cart__close:hover { background: var(--berry-soft); }
.cart__body { flex: 1 1 auto; overflow-y: auto; padding: 8px var(--gutter); overscroll-behavior: contain; }
.cart__empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 12px; color: var(--muted); }
.cart__empty .ico { width: 48px; height: 48px; color: var(--pink); }
.cart__empty p { font-family: var(--hand); font-weight: 600; font-size: 1.6rem; color: var(--rose); line-height: 1; }
.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.line__img { width: 76px; aspect-ratio: 1; overflow: hidden; background: var(--cream-2); padding: 4px 4px 10px; box-shadow: 0 6px 14px -10px rgba(104, 42, 64, .6); background: #fff; }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__body { display: grid; gap: 6px; align-content: start; }
.line__top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.line__name { font-weight: 700; color: var(--berry); text-decoration: none; font-size: .95rem; line-height: 1.3; }
.line__name:hover { text-decoration: underline; }
.line__var { font-size: .82rem; color: var(--muted); }
.line__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.qty { display: inline-flex; align-items: center; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: #fff; }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--berry); border-radius: var(--r); }
.qty button:hover { background: var(--berry-soft); }
.qty button:disabled { opacity: .35; cursor: default; background: none; }
.qty button .ico { width: 16px; height: 16px; }
.qty output, .qty input { width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; border: 0; background: none; font: inherit; color: var(--berry); }
.qty--lg button { width: 48px; height: 48px; }
.qty--lg input { width: 44px; font-size: 1.05rem; }
.line__remove { font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; padding: 0 4px; }
.line__remove:hover { color: var(--berry); }
.cart__foot { border-top: 1.5px dashed var(--line-2); padding: 14px var(--gutter) max(16px, env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--cream); }
.cart__sub { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--berry); font-size: 1.05rem; }
.cart__note { font-size: .78rem; color: var(--muted); }
.cart__demo { display: none; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--cream-2); border: 1.5px dashed var(--line-2); }
.cart__demo[data-show] { display: grid; }
.cart__demo strong { color: var(--berry); }
.cart__demo p { font-size: .88rem; }
.cart__demo .btn { min-height: 40px; justify-self: start; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--berry); color: #fff; padding: 10px 16px; border-radius: var(--r); font-size: .9rem; font-weight: 700; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); max-width: calc(100% - 32px); }
.toast[data-show] { opacity: 1; transform: translate(-50%, 0); }

/* ── Product page ──────────────────────────────────────── */
.pdp { padding-top: 12px; padding-bottom: var(--sec); }
.crumb { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 12px; min-height: 40px; }
.crumb a { text-decoration: none; color: var(--berry); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.crumb a:hover { text-decoration: underline; }
.crumb .ico { width: 16px; height: 16px; }
.pdp__in { display: grid; gap: 24px; }
.gal { display: grid; gap: 14px; }
.pol--pdp { margin: 8px 6px 0; transform: rotate(-1.5deg); }
.gal__main { aspect-ratio: 1; }
.gal__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 6px 4px 4px; margin: 0 -4px; }
.gal__thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 auto; width: 72px; aspect-ratio: 1; overflow: hidden; background: #fff; padding: 4px 4px 10px; box-shadow: 0 6px 14px -10px rgba(104, 42, 64, .6); position: relative; }
.thumb img, .thumb .ph { width: 100%; height: calc(100% - 6px); object-fit: cover; display: block; }
.thumb[aria-current="true"] { box-shadow: 0 0 0 2px var(--berry), 0 6px 14px -10px rgba(104, 42, 64, .6); }
.thumb .ph { position: relative; }
.thumb .ph__in { padding: 4px; gap: 2px; }
.thumb .ph__label { font-size: .7rem; font-family: var(--text); font-weight: 700; line-height: 1.1; }
.thumb .ph__in .ico { width: 16px; height: 16px; }
.buy { display: grid; gap: 16px; align-content: start; }
.buy__title { font-size: clamp(1.7rem, 7.4vw, 2.2rem); }
.buy__hand { font-size: 1.4rem; margin-bottom: 6px; }
.buy__price { font-size: 1.2rem; margin-top: 6px; }
.buy__desc { color: var(--ink); max-width: 52ch; }
.buy__desc .tag { margin-bottom: 8px; }
.opt { display: grid; gap: 8px; }
.opt__label { font-weight: 700; color: var(--berry); font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.opt__vals { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__val { position: relative; }
.opt__val input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt__val span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 600; color: var(--berry); }
.opt__val input:checked + span { background: var(--berry); color: #fff; box-shadow: none; }
.opt__val input:focus-visible + span { outline: 2px solid var(--berry); outline-offset: 3px; }
.buy__row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.buy__row .btn { min-height: 50px; }
.info { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--r); background: var(--cream-2); border: 1.5px dashed var(--line-2); }
.info strong { color: var(--berry); font-size: .9rem; }
.info p { font-size: .86rem; color: var(--muted); }
.buy .acc { margin-top: 6px; }
.pdp__related { padding-top: var(--sec); }
.pdp__related h2 { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 4px; }
.pdp__related .hand { font-size: 1.35rem; display: block; margin-bottom: 18px; }
.pdp__related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.pdp__related .card { padding: 5px 5px 6px; }
.pdp__related .card__cta { display: none; }
.pdp__related .card__name { font-size: 1rem; }
.pdp__related .card__price { font-size: .78rem; }
.pdp__missing { padding: 60px 0; display: grid; gap: 12px; justify-items: start; }
@media (min-width: 700px) {
  .pdp__in { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .gal { position: sticky; top: calc(var(--navh) + 16px); }
  .thumb { width: 80px; }
  .buy__row .btn { min-width: 220px; }
  .pdp__related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; max-width: 900px; }
  .pdp__related .card { padding: 9px 9px 10px; }
  .pdp__related .card__name { font-size: 1.3rem; }
  .pdp__related .card__price { font-size: .86rem; }
}
@media (min-width: 1000px) {
  .pdp { padding-top: 24px; }
  .pdp__in { grid-template-columns: 6fr 5fr; gap: 64px; }
  .pdp__related .card__cta { display: inline-flex; }
}
