/* ============================================================
   Alivia's Treasured Threads - shared styles (v4)
   ~80% walk-back to the original live-site brand, keeping the
   multi-page architecture, spacing rhythm, and readable body
   type from v3.

   Original brand cues restored: purple #8E79DD · teal #4FE4BC ·
   pink #FF74D4, Dancing Script + Cormorant Garamond, stitched
   dashed borders, rounded "sewn patch" cards with tiny tilts,
   polka-dot paper, thread dividers, scalloped footer trim,
   purple circle basket FAB with pink count.
   Kept from v3 (the mature 20%): system-sans body at 16/1.65,
   section rhythm, honest photo-led layouts, slightly deepened
   text colors for readability.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --purple: #8e79dd;
  --purple-dark: #6b5cb8;
  --purple-deep: #5a4ba5;
  --purple-light: #b8a9f0;
  --purple-pale: #f1edfc;
  --purple-glow: rgba(142, 121, 221, 0.3);
  --teal: #4fe4bc;
  --teal-dark: #23a583;
  --teal-deep: #17806a;
  --teal-light: #8ff0d6;
  --teal-pale: #e3fbf3;
  --pink: #ff74d4;
  --pink-dark: #e05ab8;
  --pink-text: #c43d9c;
  --pink-light: #ffb0e8;
  --pink-pale: #ffe9f8;
  --neutral-dark: #d8d4e2;
  --white: #ffffff;
  --ink: #2d2338;
  --ink-soft: #5c5170;
  --body-bg: #fbf9ff;
  --lavender-deep: var(--purple-dark); /* compat: legacy var name */
  --blush: var(--pink);                /* compat: legacy var name */
  --blush-deep: var(--pink-dark);      /* compat: legacy var name */

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Dancing Script', cursive;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(45, 35, 56, 0.08);
  --shadow-hover: 0 10px 34px rgba(142, 121, 221, 0.22);
  --stitch: 2px dashed rgba(142, 121, 221, 0.5);
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --wrap: 1120px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--body-bg);
  /* soft polka-dot paper */
  background-image: radial-gradient(rgba(142, 121, 221, 0.07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6rem;
}
p { margin: 0 0 1rem; }
a { color: var(--purple-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pink-text); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.muted { color: var(--ink-soft); }
.stars { color: var(--pink); letter-spacing: 0.15em; }

/* anchor targets clear the sticky header */
section[id], [id="order"], [id="faq"], [id="reviews"], [id="leave-review"] { scroll-margin-top: 84px; }

/* ---------- buttons (stitched pills, original) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50px;
  border: 1.5px dashed rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px) rotate(-0.5deg); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

.btn-primary, .btn-purple {
  background: var(--purple-dark);
  color: #fff;
  box-shadow: 0 4px 18px var(--purple-glow);
}
.btn-primary:hover, .btn-purple:hover { background: var(--purple-deep); color: #fff; }
.btn-gradient {
  background: linear-gradient(120deg, var(--purple-dark), var(--pink-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(142, 121, 221, 0.35);
}
.btn-gradient:hover { color: #fff; box-shadow: 0 8px 30px rgba(255, 116, 212, 0.42); }
.btn-pink, .btn-blush {
  background: var(--pink-dark);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 116, 212, 0.4);
}
.btn-pink:hover, .btn-blush:hover { background: var(--pink-text); color: #fff; }
.btn-secondary, .btn-outline, .btn-ghost {
  background: var(--white);
  color: var(--purple-dark);
  border: 2px dashed var(--purple-light);
  box-shadow: none;
}
.btn-secondary::after, .btn-outline::after, .btn-ghost::after { display: none; }
.btn-secondary:hover, .btn-outline:hover, .btn-ghost:hover {
  border-color: var(--purple);
  background: var(--purple-pale);
  color: var(--purple-dark);
}
.btn-sm { padding: 8px 18px; font-size: 0.87rem; }
.btn-lg { padding: 14px 32px; font-size: 1.02rem; }

.text-link { font-weight: 700; font-size: 0.95rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px dashed var(--purple-light);
}
.header-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 9px clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--purple-light), 0 2px 10px var(--purple-glow);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-link:hover .brand-logo { transform: rotate(-12deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text .script {
  font-family: var(--font-script);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pink-dark);
}
.brand-text .serif {
  font-family: var(--font-serif);
  font-size: 1.26rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-main { display: flex; align-items: center; gap: 22px; }
.nav-main a {
  position: relative;
  padding: 4px 2px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-main a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background-image: linear-gradient(90deg, var(--pink) 60%, transparent 40%);
  background-size: 8px 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-main a:hover { color: var(--purple-dark); }
.nav-main a:hover::after { transform: scaleX(1); }
.nav-main a[aria-current="page"] { color: var(--purple-dark); }
.nav-main a[aria-current="page"]::after { transform: scaleX(1); }
.nav-main .nav-cta {
  background: var(--purple-dark);
  color: #fff;
  padding: 8px 18px;
  border-radius: 40px;
  box-shadow: 0 3px 12px var(--purple-glow);
}
.nav-main .nav-cta::after { display: none; }
.nav-main .nav-cta[aria-current="page"] { color: #fff; }
.nav-main .nav-cta:hover { background: var(--purple-deep); color: #fff; }
.nav-toggle {
  display: none;
  background: var(--white);
  border: 2px dashed var(--purple-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--purple-dark);
  align-items: center;
  justify-content: center;
}

/* ---------- section rhythm & titles (original centered style) ---------- */
.section { position: relative; padding-block: clamp(2.8rem, 6vw, 4.4rem); }
.subpage-lead { padding-top: clamp(1.35rem, 3vw, 2.1rem); }
.section-band { background: var(--white); border-top: 2px dashed var(--neutral-dark); }

.section-title { text-align: center; margin-bottom: 6px; }
.section-title .script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 600;
  color: var(--pink-dark);
  transform: rotate(-2deg);
}
.section-title .serif {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}
.thread-divider { display: flex; justify-content: center; margin: 10px auto 4px; }
.section-subtitle {
  text-align: center;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 10px auto 34px;
  font-size: 1.02rem;
}
.script-accent {
  font-family: var(--font-script);
  color: var(--pink-dark);
  font-weight: 600;
  font-size: 1.15em;
  margin-right: 4px;
}
.section-center { text-align: center; margin-top: 2rem; }

.breadcrumb {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--purple-dark); text-decoration: underline; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.4rem, 5vw, 4.2rem);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 116, 212, 0.09), transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(79, 228, 188, 0.1), transparent 45%),
    linear-gradient(180deg, #f4f0fe 0%, #fbf9ff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--purple-dark);
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.hero-sub {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 33rem;
  margin-bottom: 1.7rem;
  text-wrap: pretty;
}
.hero-ctas { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-cta-secondary {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pink-text);
  text-decoration: none;
  border-bottom: 2px dashed var(--pink-light);
  transition: border-color var(--transition);
  padding-bottom: 1px;
}
.hero-cta-secondary:hover { border-color: var(--pink); color: var(--pink-text); }
/* photo as a sewn-on patch */
.hero-photo-frame { margin: 0; transform: rotate(-1.5deg); }
.hero-patch-frame {
  display: block;
  position: relative;
  padding: 7px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(107, 92, 184, 0.28);
  overflow: hidden;
}
.hero-patch-frame::after {
  content: '';
  position: absolute;
  inset: 13px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
  z-index: 1;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: calc(var(--radius) - 6px);
}
.hero-caption {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  transform: rotate(1.5deg); /* counter the frame tilt */
}

/* ---------- product cards (sewn patches; markup injected by site.js) ---------- */
.product-grid,
.silhouette-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}
.product-card,
.silhouette-card {
  display: block;
  min-width: 0;
  position: relative;
  background: var(--white);
  border: 5px solid #fff;
  outline: var(--stitch);
  outline-offset: -9px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow var(--transition);
}
.product-card:nth-child(3n+1), .silhouette-card:nth-child(3n+1) { --tilt: -0.7deg; }
.product-card:nth-child(3n+2), .silhouette-card:nth-child(3n+2) { --tilt: 0.5deg; }
.product-card:nth-child(3n),   .silhouette-card:nth-child(3n)   { --tilt: -0.3deg; }
.product-card:hover, .silhouette-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-hover);
  color: var(--ink);
}
.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--purple-pale);
  border-radius: calc(var(--radius) - 8px) calc(var(--radius) - 8px) 0 0;
  overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }

.sticker {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
  box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(45, 35, 56, 0.18);
  transform: rotate(-3deg);
}
.sticker + .sticker { top: 46px; transform: rotate(2deg); background: var(--teal); color: var(--ink); }
.sticker-inline {
  position: static;
  display: inline-block;
  margin: 0 0.5rem 0.6rem 0;
  transform: rotate(-2deg);
}
.sticker-inline + .sticker-inline { top: auto; transform: rotate(2deg); }

.product-card-body { padding: 0.95rem 1.1rem 1.05rem; }
.product-card-name {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  line-height: 1.2;
}
.product-card-price { font-size: 0.95rem; font-weight: 800; color: var(--purple-dark); }
.product-card-price.custom { color: var(--pink-text); font-style: italic; }
.product-card-price .was,
.price-block .was {
  color: var(--ink-soft);
  opacity: 0.7;
  font-weight: 600;
  font-size: 0.85em;
  margin-right: 6px;
  text-decoration: line-through;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
}
.product-card-price .now,
.price-block .now { color: var(--pink-text); font-weight: 800; font-size: 1.1em; }
.product-card-meta {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-deep);
}
.product-card-meta.custom { color: var(--pink-text); font-style: italic; }

/* silhouette cards (custom page, injected by site.js) */
.silhouette-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px) calc(var(--radius) - 8px) 0 0;
}
.silhouette-card .body { padding: 0.95rem 1.1rem 1.05rem; }
.silhouette-card h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
  line-height: 1.2;
}
.silhouette-card .body p { margin: 0; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.silhouette-card:hover h3 { color: var(--purple-dark); }

.skeleton {
  background: linear-gradient(100deg, #f1edfa 40%, #faf8ff 50%, #f1edfa 60%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
  border-radius: var(--radius);
  min-height: 300px;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.grid-empty { text-align: center; color: var(--ink-soft); font-weight: 700; padding: 1.6rem 0; }

/* ---------- seasonal band (home), soft gingham ---------- */
.season-band {
  background:
    repeating-linear-gradient(0deg, rgba(142, 121, 221, 0.07) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(90deg, rgba(142, 121, 221, 0.07) 0 16px, transparent 16px 32px),
    #f6f2fe;
  border-block: 2px dashed var(--purple-light);
}
.season-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.season-photo-frame {
  margin: 0;
  padding: 7px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}
.season-photo {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}
.season-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem);
}
.season-copy .script-accent { display: block; margin: 0 0 2px; transform: rotate(-2deg); width: fit-content; }
.season-copy p { color: var(--ink-soft); max-width: 30rem; }

/* ---------- browse tiles (home) ---------- */
.tile-grid {
  position: relative;
  padding-inline: 3rem;
}
.category-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-behavior: smooth; touch-action: pan-x pan-y; }
.category-viewport::-webkit-scrollbar { display: none; }
.category-track { --category-visible: 4; display: flex; flex-wrap: nowrap; gap: 1.3rem; }
.tile { flex: 0 0 calc((100% - (var(--category-visible) - 1) * 1.3rem) / var(--category-visible)); display: block; min-width: 0; text-decoration: none; color: var(--ink); text-align: center; scroll-snap-align: start; }
.category-arrow { position: absolute; z-index: 2; top: 36%; transform: translateY(-50%); width: 40px; height: 40px; border: 2px solid var(--purple-light); border-radius: 50%; background: #fff; color: var(--purple-dark); box-shadow: var(--shadow-sm); font: 800 1.15rem/1 var(--font-body); cursor: pointer; }
.category-arrow.prev { left: 0; }
.category-arrow.next { right: 0; }
.category-arrow:hover { background: var(--purple-pale); }
.category-arrow:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.tile-photo {
  padding: 6px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow var(--transition);
}
.tile:nth-child(odd) .tile-photo { --tilt: -0.8deg; }
.tile:nth-child(even) .tile-photo { --tilt: 0.7deg; }
.tile:hover .tile-photo { transform: rotate(0deg) translateY(-5px); box-shadow: var(--shadow-hover); }
.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 5px);
}
.tile-name {
  margin: 0.8rem 0 0.05rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.22rem;
}
.tile:hover .tile-name { color: var(--purple-dark); }
.tile-sub { font-size: 0.83rem; font-weight: 600; color: var(--ink-soft); }
.tile-cape img { object-position: 50% 22%; }

/* ---------- about ---------- */
.about-lead { padding-top: clamp(2rem, 4vw, 3rem); }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo-frame {
  margin: 0;
  position: relative;
  transform: rotate(-2deg);
  width: fit-content;
  justify-self: center;
}
.about-photo {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 6px solid #fff;
  outline: var(--stitch);
  outline-offset: -10px;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--purple-pale), var(--pink-pale));
}
.about-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(3deg);
  width: 110px;
  height: 26px;
  background: repeating-linear-gradient(45deg, rgba(79, 228, 188, 0.85) 0 8px, rgba(143, 240, 214, 0.85) 8px 16px);
  border-radius: 2px;
  opacity: 0.92;
  box-shadow: 0 1px 4px rgba(45, 35, 56, 0.12);
}
.about-copy h1, .about-copy h2 {
  font-family: var(--font-script);
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.5rem);
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 0.8rem;
}
.about-copy p { max-width: 36rem; color: var(--ink-soft); line-height: 1.75; }
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--pink-text);
  text-decoration: none;
  padding: 8px 16px;
  border: 2px dashed var(--pink-light);
  border-radius: 40px;
  transition: all var(--transition);
}
.ig-link:hover { background: var(--pink-pale); border-color: var(--pink); color: var(--pink-text); transform: rotate(-1deg); }
.about-links { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.6rem; }

/* ---------- reviews (patch cards; markup injected by site.js) ---------- */
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.8rem;
  max-width: 60rem;
  margin-inline: auto;
}
.review-carousel { max-width: 66rem; margin: 1.6rem auto 0; }
.review-viewport { overflow: hidden; padding: 12px; touch-action: pan-y; }
.review-list.review-track {
  --reviews-visible: 2;
  display: flex;
  max-width: none;
  margin: 0;
  transition: transform 500ms ease;
  will-change: transform;
}
.review-track .review-card {
  flex: 0 0 calc((100% - (var(--reviews-visible) - 1) * 1.8rem) / var(--reviews-visible));
  min-width: 0;
}
.review-controls { display: flex; justify-content: center; gap: 12px; margin-top: 1.2rem; }
.review-arrow {
  width: 44px;
  height: 44px;
  border: 2px solid var(--purple-light);
  border-radius: 50%;
  background: var(--white);
  color: var(--purple-dark);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font: 700 1.2rem/1 var(--font-body);
}
.review-arrow:hover { background: var(--purple-pale); transform: translateY(-1px); }
.review-arrow:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .review-list.review-track { transition: none; }
}
.review-card {
  position: relative;
  background: var(--white);
  border: 5px solid #fff;
  outline: var(--stitch);
  outline-offset: -9px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem 1.5rem;
  text-align: center;
  transform: rotate(var(--tilt, 0deg));
}
.review-card:nth-child(odd) { --tilt: -0.6deg; }
.review-card:nth-child(even) { --tilt: 0.5deg; }
.review-card::before {
  content: '“';
  position: absolute;
  top: 4px;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--pink-light);
  opacity: 0.85;
  pointer-events: none;
}
.review-stars {
  color: var(--pink);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 0.6rem;
}
.review-text {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  text-wrap: pretty;
}
.review-name {
  font-family: var(--font-script);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--purple-dark);
}
.reviews-more { text-align: center; margin: 2rem 0 0; }

/* ---------- shop filters ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0.8rem;
}
.filter-bar:empty { display: none; }
.chip {
  padding: 8px 20px;
  border-radius: 40px;
  background: var(--white);
  border: 2px dashed var(--neutral-dark);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.chip:hover { border-color: var(--purple-light); color: var(--purple-dark); transform: translateY(-1px); }
.chip.active {
  background: var(--purple-dark);
  border: 2px solid var(--purple-dark);
  color: #fff;
  box-shadow: 0 4px 14px var(--purple-glow);
}
/* ---------- forms & panels ---------- */
.panel {
  background: var(--white);
  border: 5px solid #fff;
  outline: var(--stitch);
  outline-offset: -9px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}
.order-basket-panel {
  background: linear-gradient(145deg, #fff 45%, var(--purple-pale));
  border: 5px solid #fff;
  outline: var(--stitch);
  outline-offset: -9px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.panel-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.order-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.1rem;
  max-width: 960px;
  margin-inline: auto;
  align-items: start;
}
.order-basket-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 0.5rem; }
.order-basket-list .order-bi { background: #fff; border-color: var(--purple-light); }
.order-basket-list .bi-img { width: 62px; height: 62px; }
.basket-empty-msg { font-size: 0.92rem; margin: 0; }
.basket-estimate {
  font-weight: 800;
  font-size: 1rem;
  color: var(--purple-dark);
  text-align: center;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 2px dashed var(--pink-light);
  border-radius: 14px;
  background: var(--pink-pale);
}
.basket-estimate .est-note { margin-top: 0.15rem; }
.checkout-cost-row { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.checkout-cost-row + .checkout-cost-row { margin-top: 0.35rem; }
.checkout-cost-total { padding-top: 0.55rem; border-top: 1px solid var(--pink-light); font-weight: 800; }
.form-group { margin-bottom: 1.2rem; }
.custom-request-section { margin-top: 4rem; scroll-margin-top: 90px; }
.custom-design-card .body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.custom-design-card .btn { margin-top: auto; }
.custom-selected-list { display: grid; gap: 0.75rem; }
.custom-selected-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 0.75rem; align-items: center; padding: 0.7rem; border: 2px dashed var(--neutral-dark); border-radius: var(--radius-sm); background: var(--white); }
.custom-selected-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.custom-selected-body { display: grid; gap: 0.4rem; }
.custom-selected-body label { color: var(--ink-soft); font-size: 0.84rem; font-weight: 700; }
.custom-qty-input { width: 64px; margin-left: 0.35rem; padding: 0.3rem 0.45rem; border: 2px solid var(--neutral-dark); border-radius: 8px; font: inherit; }
.checkout-page .narrow { max-width: 820px; }
.checkout-panel, .payment-placeholder { margin-top: 1.5rem; }
.payment-placeholder #secureCheckoutBtn { width: 100%; margin-top: 1rem; }
.checkout-result { margin-top: 1.5rem; text-align: center; padding: clamp(1.5rem, 5vw, 3rem); }
.checkout-result .result-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.checkout-result h1 { margin-bottom: 0.75rem; }
.order-reference { padding: 0.8rem 1rem; background: var(--pink-pale); border-radius: var(--radius-sm); }
.order-confirmed-items { text-align: left; max-width: 32rem; margin: 1rem auto; padding-left: 1.4rem; }
.payment-placeholder { text-align: center; }
.payment-placeholder h2 { font-family: var(--font-serif); font-size: 1.7rem; margin: 0.8rem 0; }
.status-pill { display: inline-flex; padding: 0.35rem 0.75rem; border-radius: 999px; background: var(--pink-pale); color: var(--pink-text); font-weight: 800; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.placeholder-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin: 1.25rem 0; }
.availability-notice { margin: 1rem 0; padding: 0.9rem 1rem; border: 2px solid var(--pink); border-radius: var(--radius-sm); background: var(--pink-pale); color: var(--ink); font-weight: 700; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.required { color: var(--pink); }
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--neutral-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
.form-textarea { min-height: 118px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: #b7b0c6; font-style: italic; }
.field-error {
  display: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink-text);
  margin-top: 0.3rem;
}
.form-group.is-invalid .field-error { display: block; }
.form-group.is-invalid .form-input { border-color: var(--pink); }
.form-hint { text-align: center; font-size: 0.88rem; color: var(--ink-soft); margin: 0.8rem 0 0; min-height: 1.2em; }
.form-success { text-align: center; padding: 2.6rem 1.6rem; }
.form-success h2 {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--purple-dark);
  margin-bottom: 0.5rem;
}
.form-success p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.checkmark {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.9rem;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--teal-light);
  animation: popIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.checkmark.heart { background: var(--pink-pale); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--pink-light); font-size: 1.6rem; }
@keyframes popIn { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.form-narrow { max-width: 36rem; margin-inline: auto; }
.form-narrow .form-success { margin-top: 1rem; }

/* review form stars */
.star-row { display: flex; gap: 6px; font-size: 1.9rem; }
.star-pick {
  padding: 2px;
  border: 0;
  background: none;
  font-size: inherit;
  line-height: 1;
  color: var(--neutral-dark);
  transition: transform var(--transition), color var(--transition);
}
.star-pick[aria-pressed="true"] { color: var(--pink); text-shadow: 0 1px 6px rgba(255, 116, 212, 0.35); }
.star-pick:hover { transform: scale(1.2) rotate(-8deg); }

/* ---------- custom page ---------- */
.fabric-framework {
  border-top: 2px dashed var(--neutral-dark);
  margin-top: 2.6rem;
  padding-top: 1.7rem;
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}
.fabric-framework h3 { font-family: var(--font-serif); font-size: 1.5rem; }
.fabric-note { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.8rem; }
/* status labels kept for the future Studio fabric library */
.fabric-status-list { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.fabric-status {
  border: 2px dashed var(--neutral-dark);
  border-radius: 30px;
  padding: 2px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.fabric-status.available { color: var(--teal-deep); border-color: var(--teal-light); }
.fabric-status.limited { color: var(--pink-text); border-color: var(--pink-light); }
.page-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; margin-top: 2.2rem; }

/* ---------- faq (now a section on About) ---------- */
.faq-list { max-width: 46rem; margin-inline: auto; }
.faq-item { border-bottom: 2px dashed var(--neutral-dark); }
.faq-item summary {
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
}
.faq-item summary:hover { color: var(--purple-dark); }
.faq-item p { color: var(--ink-soft); font-size: 0.95rem; margin: 0.1rem 0 1.2rem; }
.draft-label {
  display: inline-block;
  background: var(--pink-pale);
  border: 1.5px dashed var(--pink-light);
  border-radius: 20px;
  padding: 0 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--pink-text);
  margin-left: 0.45rem;
  vertical-align: 0.15em;
  transform: rotate(-1deg);
}
.policy-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  max-width: 46rem;
  margin: 1.4rem auto 0;
  text-align: center;
}

/* ---------- product detail (generated pages) ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.gallery-main {
  padding: 7px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  background: var(--purple-pale);
}
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.7rem; }
.gallery-thumbs button {
  padding: 0;
  border: 2px dashed var(--neutral-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  line-height: 0;
  transition: all var(--transition);
}
.gallery-thumbs button:hover { border-color: var(--purple-light); transform: translateY(-2px); }
.gallery-thumbs button[aria-current="true"] { border-style: solid; border-color: var(--purple); }
.gallery-thumbs img { width: 62px; height: 62px; object-fit: cover; }
.product-detail-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem);
  margin-bottom: 0.6rem;
}
.price-block {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  background: var(--purple-dark);
  padding: 5px 18px;
  border-radius: 30px;
  box-shadow: 0 0 0 3px #fff, 0 3px 10px var(--purple-glow);
  transform: rotate(1.5deg);
  margin: 0.2rem 0 1.1rem;
}
.price-block.custom { background: var(--pink-dark); box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(255, 116, 212, 0.35); }
.price-block .was { color: rgba(255, 255, 255, 0.85); opacity: 1; text-decoration-color: rgba(255, 255, 255, 0.9); }
.price-block .now { color: #fff; }
.product-desc { white-space: pre-line; margin-bottom: 1rem; max-width: 36rem; color: var(--ink-soft); }
.listings-block { margin: 1.6rem 0 0.4rem; }
.listings-block h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--teal-deep);
  margin-bottom: 0.4rem;
}
.listing-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  border: 2px dashed var(--teal-light);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.6rem;
  transition: all var(--transition);
}
.listing-row:hover { border-color: var(--teal); box-shadow: 0 5px 16px rgba(79, 228, 188, 0.25); }
.listing-row.is-sold { opacity: 0.6; }
.listing-image-button {
  position: relative;
  flex: none;
  width: 56px;
  height: 56px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 11px;
  background: var(--purple-pale);
  cursor: zoom-in;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.listing-image-button:hover,
.listing-image-button:focus-visible { transform: scale(1.07); border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-pale), var(--shadow-sm); outline: none; }
.listing-zoom {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--purple-dark);
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
}
.listing-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  background: var(--purple-pale);
  flex: none;
}
.listing-meta { flex: 1; min-width: 0; }
.listing-name { font-weight: 700; font-size: 0.93rem; line-height: 1.35; }
.listing-status { font-size: 0.78rem; font-weight: 700; color: var(--teal-deep); }
.availability-empty { margin-top: 1.2rem; padding: 1rem 1.1rem; border: 2px dashed var(--neutral-dark); border-radius: var(--radius-sm); background: var(--white); }
.availability-empty h3 { font-family: var(--font-serif); font-size: 1.25rem; margin: 0 0 0.25rem; }
.availability-empty p { color: var(--ink-soft); margin: 0; }
.listing-row.is-sold .listing-status { color: var(--ink-soft); }
.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.buy-now-wrap { flex-basis: 100%; margin-top: 0.3rem; }
.checkout-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.5rem 0 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(38, 26, 49, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: calc(100dvh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
  border: 6px solid #fff;
  outline: 2px dashed var(--purple-light);
  outline-offset: -12px;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close:focus-visible, .lightbox-nav:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.lightbox-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.5rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 1.6rem; }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-count {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* ---------- footer (scalloped, original) ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  margin-top: clamp(2.2rem, 5vw, 3.6rem);
  padding: 2.4rem 0 1.4rem;
  font-size: 0.92rem;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -13px; left: 0; right: 0;
  height: 14px;
  background-image: radial-gradient(circle at 50% 100%, var(--ink) 7px, transparent 8px);
  background-size: 16px 14px;
  background-repeat: repeat-x;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem 3rem;
  margin-bottom: 1.8rem;
}
.footer-brand-stack { display: flex; flex-direction: column; line-height: 1.25; margin-bottom: 0.5rem; }
.footer-brand-stack .script { font-family: var(--font-script); font-size: 1.15rem; color: var(--pink-light); }
.footer-brand-stack .serif { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); }
.footer-brand p { margin: 0; opacity: 0.7; max-width: 22rem; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.7rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-weight: 600; transition: color var(--transition); }
.footer-col a:hover { color: var(--pink-light); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
.studio-link {
  text-decoration: none;
  opacity: 0.5;
  display: inline-block;
  transition: opacity var(--transition), transform var(--transition);
}
.studio-link:hover { opacity: 1; transform: rotate(-14deg) scale(1.25); }

/* ---------- basket fab (original purple circle) ---------- */
.basket-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 900;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: var(--purple-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(107, 92, 184, 0.45), 0 0 0 3px #fff, 0 0 0 5px var(--purple-light);
  transition: transform var(--transition), background var(--transition);
  animation: fabIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fabIn { from { transform: scale(0); } to { transform: scale(1); } }
.basket-fab:hover { transform: scale(1.08) rotate(-4deg); background: var(--purple-deep); }
.basket-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 24px;
  height: 24px;
  border-radius: 14px;
  background: var(--pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 0 0 2.5px #fff;
}

/* ---------- basket drawer (original stitched) ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(45, 35, 56, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.basket-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 1100;
  width: min(400px, 94vw);
  background: var(--white);
  border-left: 3px dashed var(--purple-light);
  box-shadow: -12px 0 44px rgba(45, 35, 56, 0.25);
  display: flex;
  flex-direction: column;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.35rem 0.85rem;
  border-bottom: 2px dashed var(--neutral-dark);
}
.drawer-head h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin: 0; }
.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px dashed var(--purple-light);
  background: none;
  font-size: 1.25rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.drawer-close:hover { background: var(--pink-pale); border-color: var(--pink); transform: rotate(90deg); }
.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-empty { padding: 1.9rem 1.35rem; text-align: center; color: var(--ink-soft); font-weight: 600; margin: 0; }
.bi {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--body-bg);
  border: 2px dashed var(--neutral-dark);
  border-radius: var(--radius-sm);
  padding: 9px;
}
.bi-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 9px;
  background: var(--purple-pale);
  flex: none;
}
.bi-body { flex: 1; min-width: 0; }
.bi-name { font-weight: 700; font-size: 0.88rem; line-height: 1.3; }
.bi-sub { font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); margin-top: 0.1rem; }
.bi-sub.custom { color: var(--pink-text); font-style: italic; }
.bi-qty { display: inline-flex; align-items: center; gap: 7px; margin-top: 0.45rem; }
.bi-qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--purple-light);
  background: none;
  color: var(--purple-dark);
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.bi-qty button:hover { background: var(--purple-dark); color: #fff; }
.bi-qty span { font-weight: 800; font-size: 0.85rem; min-width: 14px; text-align: center; }
.bi-remove {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: all var(--transition);
}
.bi-remove:hover { background: var(--pink-pale); color: var(--pink-text); }
.drawer-foot { padding: 1rem 1.35rem 1.25rem; border-top: 2px dashed var(--neutral-dark); }
.drawer-estimate { font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.7rem; text-align: center; min-height: 1.2em; }
.est-note { display: block; font-weight: 600; font-size: 0.78rem; color: var(--ink-soft); }
.drawer-foot .btn { display: flex; width: 100%; }

/* ---------- toast ---------- */
.toast-zone {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1400;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: max-content;
  max-width: 92vw;
}
.toast {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 22px;
  border-radius: 40px;
  box-shadow: 0 8px 26px rgba(45, 35, 56, 0.35), 0 0 0 2.5px #fff;
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 92vw;
  text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(18px) scale(0.9); } }

/* ---------- scroll top ---------- */
.scroll-top {
  position: fixed;
  bottom: 26px;
  left: 22px;
  z-index: 890;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--purple-dark);
  border: 2px dashed var(--purple-light);
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--purple-dark); color: #fff; border-style: solid; }

/* ---------- studio preview ribbon ---------- */
.preview-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1500;
  background: var(--purple-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  padding: 0.4rem 1rem;
}
body.has-preview .site-header { top: 32px; }
body.has-preview { padding-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .season-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-frame { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 760px) {
  .custom-selected-item { grid-template-columns: 54px 1fr auto; }
  .custom-selected-item img { width: 54px; height: 54px; }
  .nav-toggle { display: inline-flex; }
  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px dashed var(--purple-light);
    padding: 0.5rem clamp(1rem, 4vw, 2rem) 1.1rem;
  }
  .nav-main.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-main a { padding: 0.7rem 0; border-top: 1px dashed var(--neutral-dark); font-size: 1rem; }
  .nav-main a::after { display: none; }
  .nav-main a:first-child { border-top: 0; }
  .nav-main .nav-cta {
    margin-top: 0.7rem;
    padding: 0.7rem 1rem;
    text-align: center;
    justify-content: center;
    border-top: 0;
    display: inline-flex;
  }
  .product-grid, .silhouette-grid, .related-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-card-body, .silhouette-card .body { padding: 0.75rem 0.85rem 0.9rem; }
  .product-card-name, .silhouette-card h3 { font-size: 1.08rem; }
  .category-track { --category-visible: 2; gap: 1.1rem; }
  .tile { flex-basis: calc((100% - 1.1rem) / 2); }
  .skeleton { min-height: 220px; }
  .review-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .tile-grid { padding-inline: 2.7rem; }
  .category-track { --category-visible: 1; }
  .tile { flex-basis: 100%; }
  .brand-text .script { font-size: 0.95rem; }
  .brand-text .serif { font-size: 1.05rem; }
  .brand-logo { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas { gap: 1rem; }
  .page-ctas .btn { width: 100%; }
  .gallery-thumbs img { width: 54px; height: 54px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
