:root {
  --bg: #fbeedb;        /* Paper Flower — page background */
  --surface: #fffbf3;   /* lighter card surface */
  --peach: #f0955c;     /* Pavilion Peach — primary accent */
  --candy: #e14c6b;     /* Candy Hard — deep accent / hover */
  --apricot: #f7b99a;   /* Apricot Blossom — soft decorative fills */
  --apple: #a9cc3e;     /* Sour Apple — fresh pop accent */
  --berry: #452a40;     /* Heather Berry — headings & primary text */
  --berry-soft: #7c5d74;/* Heather Berry, lighter — secondary text */
  --line: #edd9c3;
  --shadow: 0 18px 45px rgba(69, 42, 64, .14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", sans-serif;
  color: var(--berry);
  background: var(--bg);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(251, 238, 219, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(237,217,195,.75);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--peach);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-dot { color: var(--candy); font-style: italic; }

nav { display: flex; gap: 34px; font-size: .92rem; font-weight: 600; }

.ticker {
  background: var(--berry);
  color: var(--bg);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 22s linear infinite;
  font-family: "Space Mono", monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
}
.ticker-track span { flex: 0 0 auto; }
.ticker-track b { color: var(--apricot); font-style: normal; }
.ticker-group span:nth-child(2n) { color: var(--peach); font-size: .95rem; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
nav a { position: relative; color: var(--berry-soft); transition: color .25s ease; }
nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 0; height: 2px;
  background: var(--peach);
  transition: .25s;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a.active { color: var(--candy); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  background: linear-gradient(90deg, var(--peach), var(--apricot));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.menu-btn {
  display: none;
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 5px;
  right: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--berry);
  transition: transform .32s cubic-bezier(.2,.7,.2,1), opacity .2s ease, top .32s ease;
}
.menu-btn span:nth-child(1) { top: 11px; }
.menu-btn span:nth-child(2) { top: 16px; }
.menu-btn span:nth-child(3) { top: 21px; }
.menu-btn.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { top: 16px; transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: 690px;
  padding: 80px 8% 75px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,149,92,.28) 0%, rgba(225,76,107,.14) 45%, transparent 72%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 0;
  filter: blur(4px);
}

.eyebrow {
  color: var(--candy);
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 12px;
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(3.3rem, 6vw, 5.8rem);
  letter-spacing: -.04em;
  max-width: 700px;
}

em { color: var(--candy); font-style: italic; }

.underline-wrap { position: relative; display: inline-block; }
.underline-draw {
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -6px;
  width: calc(100% + 8px);
  height: 20px;
  overflow: visible;
}
.underline-draw path {
  fill: none;
  stroke: var(--apple);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawUnderline 1s cubic-bezier(.3,.8,.3,1) forwards 1.1s;
}
@keyframes drawUnderline { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .underline-draw path { animation: none; stroke-dashoffset: 0; }
}

.hero-text {
  max-width: 570px;
  margin: 25px 0 30px;
  color: var(--berry-soft);
  font-size: 1.02rem;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  transition: .25s;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: var(--berry);
  box-shadow: 0 9px 25px rgba(51,45,49,.18);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--candy); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--peach); color: var(--candy); }

.hero-art {
  position: relative;
  width: min(480px, 92%);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.stitch-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104%;
  height: 104%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px dashed rgba(184, 111, 118, .3);
}

.blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(450px, 88%);
  aspect-ratio: 1;
  border-radius: 44% 56% 59% 41% / 48% 43% 57% 52%;
  background: linear-gradient(135deg, var(--apricot) 0%, var(--peach) 100%);
  transform: translate(-50%, -50%) rotate(-10deg);
}

.yarn-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 275px;
  height: 330px;
  padding: 45px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #fff;
  border-radius: 150px 150px 25px 25px;
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, -50%) rotate(3deg);
}

.yarn-icon { font-size: 6.5rem; margin-bottom: 30px; }
.yarn-card span { color: var(--berry-soft); font-size: .8rem; }
.yarn-card strong { font-family: "Fraunces"; font-size: 1.45rem; }

.flower { position: absolute; z-index: 3; font-size: 4rem; filter: drop-shadow(0 10px 12px rgba(0,0,0,.08)); }
.flower-1 { top: 6%; right: 8%; transform: rotate(16deg); }
.flower-2 { bottom: 4%; left: 4%; font-size: 3.5rem; transform: rotate(-18deg); }
.flower-3 { top: 40%; left: -2%; font-size: 2.7rem; }
.flower-4 { bottom: 18%; right: -3%; font-size: 2.3rem; transform: rotate(12deg); }
.flower-5 { top: -2%; left: 22%; font-size: 1.9rem; transform: rotate(-10deg); }

.mini-dot { position: absolute; border-radius: 50%; opacity: .55; }
.dot-1 { width: 14px; height: 14px; top: 16%; left: 4%; background: var(--apricot); }
.dot-2 { width: 10px; height: 10px; bottom: 10%; right: 18%; background: var(--apple); }
.dot-3 { width: 18px; height: 18px; top: 66%; left: -1%; background: var(--peach); opacity: .35; }
.dot-4 { width: 8px; height: 8px; top: 10%; right: 26%; background: var(--candy); opacity: .5; }

.handmade-badge {
  position: absolute;
  bottom: 3%;
  left: -2%;
  z-index: 4;
  background: #fff;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--candy);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  white-space: nowrap;
}

.intro-strip {
  margin: 0 7%;
  padding: 24px 5%;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(74,50,48,.05);
}
.intro-strip div { text-align: center; display: flex; flex-direction: column; }
.intro-strip strong { font-family: "Fraunces"; font-size: 1.35rem; }
.intro-strip span { color: var(--berry-soft); font-size: .72rem; }

.section { padding: 125px 8%; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 42px; }
.section h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.section-description { max-width: 420px; color: var(--berry-soft); font-size: .9rem; }
code { color: var(--candy); }

.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 28px; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--berry-soft);
  padding: 9px 17px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  transition: .2s;
}
.filter:hover, .filter.active { background: var(--berry); color: white; border-color: var(--berry); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.load-more-wrap[hidden] { display: none; }
.load-more-count {
  font-family: "Space Mono", monospace;
  font-size: .72rem;
  color: var(--berry-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}
#loadMoreBtn { min-width: 200px; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: .3s;
}
.product-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }

.product-sticker {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: var(--candy);
  color: #fff;
  font-family: "Space Mono", monospace;
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(225,76,107,.6);
  animation: stickerWiggle 3.2s ease-in-out infinite;
}
@keyframes stickerWiggle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(3deg); }
}

.product-image {
  aspect-ratio: 1 / 1.08;
  width: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(100deg, #f3e2c9 25%, #fbf1df 45%, #f3e2c9 65%);
  background-size: 250% 100%;
  animation: imgShimmer 1.5s ease-in-out infinite;
}
.product-image.loaded { animation: none; background: none; }
@keyframes imgShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -50% 0; }
}

.product-content { padding: 17px 18px 20px; }
.product-category { font-size: .65rem; color: var(--candy); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.product-title { font-family: "Fraunces"; font-size: 1.25rem; margin: 4px 0 6px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-price { font-size: .82rem; color: var(--berry-soft); }
.product-arrow { font-size: 1.1rem; }

.stem-hint {
  text-align: center;
  font-size: .85rem;
  color: var(--berry-soft);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 10px 16px;
  margin: -6px auto 26px;
  max-width: 560px;
}

.stem-colors {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.stem-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  outline: 1px solid var(--line);
  outline-offset: 0;
  cursor: pointer;
  padding: 0;
  transition: transform .15s ease, outline-color .2s ease;
}
.stem-color-swatch:hover { transform: scale(1.15); }
.stem-color-swatch.active {
  outline: 2px solid var(--candy);
  outline-offset: 1px;
  transform: scale(1.1);
}

.stem-stepper {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
/* When color swatches are already present, they carry the divider —
   skip the doubled-up border/margin so the two controls read as one
   connected group instead of two separately-boxed sections. */
.stem-colors + .stem-stepper {
  margin-top: 10px;
  padding-top: 0;
  border-top: none;
}
.stem-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--berry);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.stem-btn:hover { background: var(--candy); color: #fff; border-color: var(--candy); transform: scale(1.08); }
.stem-btn:active { transform: scale(.94); }
.stem-qty {
  min-width: 22px;
  text-align: center;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  color: var(--berry);
}

.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 10%;
  align-items: center;
  background: #fbe7d3;
}
.about-image {
  min-height: 510px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 25% 30%, #f5b8c4 0 13%, transparent 13.5%),
    radial-gradient(circle at 70% 68%, #cba7c4 0 17%, transparent 17.5%),
    #f2d3ae;
  position: relative;
  overflow: hidden;
}
.about-card {
  position: absolute;
  right: 9%;
  bottom: 9%;
  width: 190px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
.about-card span { font-size: 2rem; color: var(--peach); }
.about-card p { font-family: "Fraunces"; font-size: 1.3rem; line-height: 1.2; margin-top: 10px; }
.about-copy > p:not(.eyebrow) { color: var(--berry-soft); max-width: 590px; margin-top: 22px; }
.text-link { display: inline-block; margin-top: 25px; color: var(--candy); font-weight: 700; border-bottom: 1px solid var(--peach); }

.stat-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.stat-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 10px 24px -16px rgba(69,42,64,.3);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.stat-chip:hover { transform: translateY(-4px); }
.stat-chip strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  color: var(--candy);
  font-variant-numeric: tabular-nums;
}
.stat-chip span {
  font-family: "Space Mono", monospace;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--berry-soft);
}

.order-box {
  padding: 60px;
  border-radius: 30px;
  background: linear-gradient(125deg, var(--berry) 0%, var(--candy) 55%, var(--peach) 130%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}
.order-box h2 { font-size: clamp(2.4rem,4vw,4rem); color: #fff; }
.order-box .eyebrow { color: var(--apricot); }
.order-box p:not(.eyebrow) { max-width: 600px; margin-top: 18px; color: rgba(255,255,255,.85); }
.btn-large { min-height: 58px; white-space: nowrap; }
.order-box .btn-primary { background: #fff; color: var(--berry); }
.order-box .btn-primary:hover { background: var(--apple); color: var(--berry); }

footer {
  padding: 40px 8% 34px;
  border-top: 1px solid var(--line);
  color: var(--berry-soft);
  font-size: .8rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.footer-brand { color: var(--berry); font-family: "Fraunces"; font-size: 1.25rem; font-weight: 700; }
.footer-brand span { display: inline-block; color: var(--peach); transition: transform .4s ease; }
.footer-brand:hover span { transform: rotate(90deg) scale(1.15); }
.footer-social { display: flex; gap: 22px; }
.footer-social a { position: relative; }
.footer-social a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--candy); transition: width .25s ease;
}
.footer-social a:hover { color: var(--candy); }
.footer-social a:hover::after { width: 100%; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 650px) {
  .footer-top, .footer-bottom { justify-content: center; text-align: center; }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(40,31,35,.5); backdrop-filter: blur(5px); }
.modal-card {
  position: relative;
  z-index: 2;
  max-width: 850px;
  width: 100%;
  background: var(--surface);
  border-radius: 25px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
}
.modal-card img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; background: #f3e2c9; }
.modal-info { padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; }
.modal-category { color: var(--candy); font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.modal-info h3 { font-size: 2.5rem; margin: 8px 0 15px; }
.modal-info p { color: var(--berry-soft); margin-bottom: 20px; }
.modal-info strong { font-size: 1.1rem; margin-bottom: 25px; }
.modal-close {
  position: absolute;
  right: 15px; top: 12px;
  z-index: 4;
  border: 0; background: white;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,.1);
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.gallery-column {
  flex: 1;
  min-width: 0; /* let flex items shrink below their content's natural width */
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-item {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 24px -16px rgba(69,42,64,.4);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.gallery-item:hover { transform: translateY(-4px) scale(1.015); box-shadow: 0 16px 32px -14px rgba(69,42,64,.5); }
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(100deg, #f3e2c9 25%, #fbf1df 45%, #f3e2c9 65%);
  background-size: 250% 100%;
  animation: imgShimmer 1.5s ease-in-out infinite;
}
.gallery-item img.loaded { animation: none; background: none; }

@media (max-width: 650px) {
  .gallery-grid { gap: 10px; }
  .gallery-column { gap: 10px; }
  .gallery-item { border-radius: 12px; }
}

/* ---------- TESTIMONIALS ---------- */
.rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .92rem;
  color: var(--berry-soft);
}
.rating-stars { color: var(--sun, var(--peach)); font-size: 1.1rem; letter-spacing: 2px; }
.rating-summary strong { font-family: "Fraunces", serif; font-size: 1.3rem; color: var(--berry); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testimonial-stars { color: var(--peach); letter-spacing: 2px; }
.testimonial-text { font-size: .92rem; line-height: 1.65; color: var(--berry); flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--apricot);
  color: var(--berry);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .88rem; color: var(--berry); }
.testimonial-author span { font-size: .76rem; color: var(--berry-soft); }

@media (max-width: 950px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 650px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- SHIPPING & POLICIES (accordion) ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--berry);
}
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--candy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform .3s ease, background .3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--candy); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 4px 22px; color: var(--berry-soft); line-height: 1.7; font-size: .92rem; max-width: 640px; }

/* ---------- FULL-WIDTH BRAID DIVIDER (signature transition) ---------- */
/* Three colored strands, each a precise sine wave computed in JS
   (see initBraidRun in script.js), phase-shifted so they cross one
   another like a real 3-strand braid. Each strand "grows in" left to
   right via a stroke-dashoffset transition. Pure CSS + math — no
   external library, so nothing here can ever fail to load. */
.braid-run {
  position: relative;
  width: 100%;
  height: 56px;
  overflow: hidden;
}
.braid-run-svg { display: block; width: 100%; height: 100%; }

.braid-strand {
  stroke-width: 4;
  stroke-linecap: round;
  /* --dash-length is set in JS to each strand's real measured length,
     so both the dasharray and the starting (fully-hidden) dashoffset
     are exact — no guessed magic number that could be too short. */
  stroke-dasharray: var(--dash-length, 2200);
  stroke-dashoffset: var(--dash-length, 2200);
  transition: stroke-dashoffset 2.4s cubic-bezier(.4, 0, .2, 1);
}
.braid-run.visible .braid-strand { stroke-dashoffset: 0; }
.braid-run.visible .braid-strand-b { transition-delay: .1s; }
.braid-run.visible .braid-strand-c { transition-delay: .2s; }

.braid-strand-a { stroke: var(--peach); }
.braid-strand-b { stroke: var(--candy); }
.braid-strand-c { stroke: var(--apple); }

@media (max-width: 650px) {
  .braid-run { height: 40px; }
}

/* ---------- CHEVRON DIVIDER (Reviews → Shipping) ---------- */
/* Two interlocking zigzags (crochet ripple/chevron stitch), offset by
   half a period so they overlap into a diamond lattice. Sharper,
   more angular than the braid on purpose — same "grows in" technique,
   different geometry, so the page doesn't feel like it's repeating
   one trick three times. */
.chevron-run {
  position: relative;
  width: 100%;
  height: 56px;
  overflow: hidden;
}
.chevron-run-svg { display: block; width: 100%; height: 100%; }
.chevron-strand {
  stroke-width: 3.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: var(--dash-length, 2200);
  stroke-dashoffset: var(--dash-length, 2200);
  transition: stroke-dashoffset 2.2s cubic-bezier(.4, 0, .2, 1);
}
.chevron-run.visible .chevron-strand { stroke-dashoffset: 0; }
.chevron-run.visible .chevron-strand-b { transition-delay: .15s; }
.chevron-strand-a { stroke: var(--candy); }
.chevron-strand-b { stroke: var(--apple); opacity: .65; }

@media (max-width: 650px) {
  .chevron-run { height: 40px; }
}

/* ---------- BEADED STRING DIVIDER (Shipping → Order) ---------- */
/* A thin thread grows in first, then a string of little beads (like
   pom-poms) pop into place one after another along it — a staggered,
   bouncy reveal rather than one continuous stroke, for a third,
   distinctly different feel from the previous two dividers. */
.bead-run {
  position: relative;
  width: 100%;
  height: 56px;
  overflow: hidden;
}
.bead-run-svg { display: block; width: 100%; height: 100%; }
.bead-thread {
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: var(--dash-length, 2200);
  stroke-dashoffset: var(--dash-length, 2200);
  transition: stroke-dashoffset 2s cubic-bezier(.4, 0, .2, 1);
}
.bead-run.visible .bead-thread { stroke-dashoffset: 0; }
.bead-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}
.bead-run.visible .bead-dot { opacity: 1; transform: scale(1); }

@media (max-width: 650px) {
  .bead-run { height: 40px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  place-items: center;
  padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox img {
  position: relative;
  z-index: 2;
  max-width: min(900px, 92vw);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  animation: modalIn .35s cubic-bezier(.2,.8,.2,1);
}
.lightbox img.closing { animation: modalOut .26s cubic-bezier(.4,0,1,1) forwards; }
.lightbox .modal-close { top: 20px; right: 20px; z-index: 5; }

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 85;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.65);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease, bottom .3s ease;
  pointer-events: none;
}
.float-wa.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.float-wa:hover { transform: translateY(-3px) scale(1.05); }
.float-wa svg { width: 28px; height: 28px; fill: #fff; }

body.builder-open .float-wa { bottom: 92px; }

/* keep the back-to-top button from colliding with the WhatsApp button */

@media (max-width: 650px) {
  .float-wa { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .float-wa svg { width: 25px; height: 25px; }
  body.builder-open .float-wa { bottom: 78px; }
}

/* ---------- BOUQUET CHOICE / FILLER MODAL ---------- */
.bouquet-modal {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: none;
  place-items: center;
  padding: 20px;
}
.bouquet-modal.open { display: grid; }
.bouquet-modal-card {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 25px;
  padding: 46px 40px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
  animation: modalIn .45s cubic-bezier(.2,.8,.2,1);
}
.bouquet-modal-card.closing { animation: modalOut .26s cubic-bezier(.4,0,1,1) forwards; }

.bouquet-step h3 { font-size: 1.8rem; margin: 8px 0 12px; }
.bouquet-step-desc { color: var(--berry-soft); margin-bottom: 18px; }

.bouquet-item-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.bouquet-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
}
.bouquet-item-row + .bouquet-item-row { border-top: 1px dashed var(--line); }
.bouquet-item-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.bouquet-item-name { flex: 1; font-size: .9rem; color: var(--berry); }
.bouquet-item-qty {
  flex-shrink: 0;
  font-family: "Space Mono", monospace;
  font-size: .82rem;
  color: var(--berry-soft);
}
.bouquet-item-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--berry-soft);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.bouquet-item-remove:hover { background: var(--candy); color: #fff; }

.bouquet-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bouquet-choice {
  border: 1.5px solid var(--line);
  background: var(--bg);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.bouquet-choice:hover { border-color: var(--candy); background: var(--surface); transform: translateY(-3px); }
.bouquet-choice-icon { font-size: 2.4rem; }
.bouquet-choice strong { font-family: "Fraunces", serif; font-size: 1.05rem; color: var(--berry); }
.bouquet-choice span:last-child { font-size: .8rem; color: var(--berry-soft); }

.bouquet-back {
  border: 0;
  background: none;
  color: var(--berry-soft);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  margin-bottom: 10px;
  padding: 0;
}
.bouquet-back:hover { color: var(--candy); }

.filler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}
.filler-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}
.filler-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: linear-gradient(100deg, #f3e2c9 25%, #fbf1df 45%, #f3e2c9 65%);
  background-size: 250% 100%;
  animation: imgShimmer 1.5s ease-in-out infinite;
}
.filler-image.loaded { animation: none; background: none; }
.filler-content { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.filler-title { font-family: "Fraunces", serif; font-size: .88rem; line-height: 1.2; }
.filler-price { font-size: .72rem; color: var(--berry-soft); }
.filler-content .stem-stepper { margin-top: 8px; padding-top: 8px; gap: 10px; }
.filler-content .stem-btn { width: 26px; height: 26px; font-size: .95rem; }

.bouquet-final-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.bouquet-final-row span {
  font-family: "Space Mono", monospace;
  font-size: .8rem;
  color: var(--berry-soft);
}

@media (max-width: 650px) {
  .bouquet-modal-card { padding: 40px 22px 28px; }
  .bouquet-choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 430px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .about { grid-template-columns: 1fr; }
  .about-image { min-height: 400px; }
  .order-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 650px) {
  .navbar { height: 66px; padding: 0 5%; }
  .menu-btn { display: block; }
  nav {
    position: absolute;
    top: 66px; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 5%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transition: max-height .38s cubic-bezier(.2,.7,.2,1), opacity .28s ease, padding .38s ease;
  }
  nav.open {
    max-height: 320px;
    opacity: 1;
    padding: 18px 5%;
    pointer-events: auto;
  }
  nav a { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
  nav.open a { opacity: 1; transform: translateY(0); }
  nav.open a:nth-child(1) { transition-delay: .05s; }
  nav.open a:nth-child(2) { transition-delay: .1s; }
  nav.open a:nth-child(3) { transition-delay: .15s; }
  nav.open a:nth-child(4) { transition-delay: .2s; }
  .hero { padding: 65px 6% 45px; min-height: auto; }
  .hero h1 { font-size: 3.4rem; }
  .hero-art { min-height: 350px; transform: scale(.9); }
  .intro-strip { margin: 0 5%; grid-template-columns: repeat(2,1fr); }
  .section { padding: 85px 6%; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-content { padding: 13px; }
  .product-title { font-size: 1.05rem; }
  .about-image { min-height: 330px; }
  .order-box { padding: 35px 25px; }
  .modal-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .modal-card img { min-height: 280px; max-height: 320px; }
  .modal-info { padding: 28px; }
}

/* Small phones (iPhone SE / narrow Android, ~320–380px) */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-text { font-size: .95rem; }
  .eyebrow { font-size: .68rem; }
  .product-grid { grid-template-columns: 1fr; }
  .ticker-track { font-size: .68rem; }
  .ticker-group { gap: 20px; padding-right: 20px; }
  .stat-row { gap: 10px; }
  .stat-chip { padding: 12px 16px; }
  .order-box { padding: 28px 18px; }
  .order-box h2 { font-size: 1.9rem; }
  .modal-info { padding: 22px; }
  .modal-info h3 { font-size: 1.8rem; }
}

/* Short/landscape phone screens — avoid an overly tall hero forcing extra scroll */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 100px 6% 50px; }
  .hero-art { display: none; }
}

/* Comfortable touch targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  .filter { padding: 12px 20px; }
  .menu-btn { width: 44px; height: 44px; }
  .modal-close { width: 44px; height: 44px; }
  .back-top { width: 46px; height: 46px; }
  /* 22px swatches are fine for a mouse pointer but too small to tap
     reliably with a finger — size these up on touch devices. If a
     flower has 5 colors this may wrap to two rows instead of one;
     that's an intentional, expected trade-off for comfortable tapping,
     not a bug (.stem-colors already wraps gracefully either way). */
  .stem-color-swatch { width: 34px; height: 34px; }
  .stem-colors { gap: 10px; }
  /* Same reasoning for the quantity +/- buttons. */
  .stem-btn { width: 38px; height: 38px; font-size: 1.15rem; }
  .filler-content .stem-btn { width: 32px; height: 32px; }
  .bouquet-item-remove { width: 34px; height: 34px; font-size: 1.3rem; }
}

/* ============================================================
   EXTRA MOTION — premium, soft & playful
   ============================================================ */

body { overflow-x: hidden; }

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  background: var(--bg);
  transition: opacity .7s ease, visibility .7s ease;
}
.page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-flower {
  color: var(--peach);
  font-size: 3rem;
  animation: loaderSpin 1.3s ease-in-out infinite;
}
.page-loader p { color: var(--berry-soft); font-size: .8rem; letter-spacing: .05em; }

@keyframes loaderSpin {
  0%,100% { transform: rotate(-12deg) scale(.9); }
  50% { transform: rotate(12deg) scale(1.12); }
}

.navbar { transition: box-shadow .3s ease, background .3s ease; }
.navbar.scrolled { box-shadow: 0 8px 30px rgba(74,50,48,.08); }

.hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn .8s cubic-bezier(.2,.75,.25,1) forwards;
}
.hero-copy .eyebrow { animation-delay: .15s; }
.hero-copy h1 { animation-delay: .28s; }
.hero-copy .hero-text { animation-delay: .4s; }
.hero-copy .hero-actions { animation-delay: .52s; }

@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-art {
  animation: artFloat 5s ease-in-out infinite;
}
@keyframes artFloat {
  0%,100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(.6deg); }
}

.blob { animation: blobMorph 8s ease-in-out infinite; }
@keyframes blobMorph {
  0%,100% { border-radius: 44% 56% 59% 41% / 48% 43% 57% 52%; transform: translate(-50%,-50%) rotate(-10deg); }
  50% { border-radius: 55% 45% 42% 58% / 55% 58% 42% 45%; transform: translate(-50%,-50%) rotate(-6deg); }
}

.stitch-ring { animation: ringSpin 30s linear infinite; }
@keyframes ringSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.yarn-card { animation: cardBreath 4s ease-in-out infinite; }
@keyframes cardBreath {
  0%,100% { transform: translate(-50%,-50%) rotate(3deg) translateY(0); }
  50% { transform: translate(-50%,-50%) rotate(1deg) translateY(-7px); }
}

.flower-1 { animation: flowerFloat 4s ease-in-out infinite; }
.flower-2 { animation: flowerFloat 5s ease-in-out infinite reverse; }
.flower-3 { animation: flowerFloat 3.5s ease-in-out infinite; }
.flower-4 { animation: flowerFloat 4.6s ease-in-out infinite reverse; }
.flower-5 { animation: flowerFloat 3.8s ease-in-out infinite; }
@keyframes flowerFloat {
  0%,100% { translate: 0 0; rotate: -2deg; }
  50% { translate: 0 -12px; rotate: 5deg; }
}

.mini-dot { animation: dotFloat 5s ease-in-out infinite; }
.dot-1 { animation-delay: .2s; }
.dot-2 { animation-delay: 1.1s; }
.dot-3 { animation-delay: 1.8s; }
.dot-4 { animation-delay: .6s; }
@keyframes dotFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.15); }
}

.handmade-badge { animation: badgeFloat 5s ease-in-out infinite; }
@keyframes badgeFloat {
  0%,100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-8px); }
}

.hero-petals {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-petals span {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  animation: petalDrift 6s ease-in-out infinite;
}
.hero-petals span:nth-child(1) { top: 16%; left: 48%; animation-delay: .2s; }
.hero-petals span:nth-child(2) { top: 26%; left: 72%; animation-delay: 1.2s; }
.hero-petals span:nth-child(3) { top: 58%; left: 52%; animation-delay: 2s; }
.hero-petals span:nth-child(4) { top: 72%; left: 82%; animation-delay: 2.8s; }
.hero-petals span:nth-child(5) { top: 40%; left: 39%; animation-delay: 3.4s; }

@keyframes petalDrift {
  0% { opacity: 0; transform: translateY(12px) rotate(0) scale(.8); }
  20%,80% { opacity: .8; }
  50% { transform: translate(12px,-22px) rotate(18deg) scale(1); }
  100% { opacity: 0; transform: translate(-8px,-40px) rotate(35deg) scale(.8); }
}

.floating-decor span {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  opacity: .16;
  color: var(--candy);
  animation: screenFloat 9s ease-in-out infinite;
}
.floating-decor span:nth-child(1) { left: 3%; top: 24%; animation-delay: 0s; }
.floating-decor span:nth-child(2) { right: 4%; top: 38%; animation-delay: 1.5s; }
.floating-decor span:nth-child(3) { left: 5%; bottom: 24%; animation-delay: 3s; }
.floating-decor span:nth-child(4) { right: 6%; bottom: 28%; animation-delay: 4.5s; }
.floating-decor span:nth-child(5) { left: 45%; top: 16%; animation-delay: 2.5s; }
.floating-decor span:nth-child(6) { right: 35%; bottom: 8%; animation-delay: 5.5s; }
.floating-decor span:nth-child(7) { left: 12%; top: 62%; animation-delay: 2s; font-size: .85rem; }
.floating-decor span:nth-child(8) { right: 14%; top: 8%; animation-delay: 4s; font-size: .8rem; }
.floating-decor span:nth-child(9) { left: 30%; bottom: 40%; animation-delay: 6.2s; font-size: .9rem; }

@keyframes screenFloat {
  0%,100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-20px) rotate(12deg); }
}

.intro-strip div {
  transition: transform .25s ease;
}
.intro-strip div:hover { transform: translateY(-5px); }
.intro-strip strong { animation: softPulse 2.8s ease-in-out infinite; }
@keyframes softPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-group .product-card {
  opacity: 0;
  transform: translateY(30px) scale(.97);
  animation: productIn .65s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i, 0) * 0.07s + 0.05s);
}
/* Already-seen cards (re-rendered after "Show More" or a filter change)
   skip the entrance animation entirely and sit at their resting state.
   This MUST be a class rule, not an inline style — the tilt hover
   effect clears the card's inline `transform` on mouseleave, which
   would otherwise expose the base rule's pre-animation transform
   above and make the card visibly "jump" every time the mouse left it. */
.reveal-group .product-card.is-settled {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes productIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-grid { perspective: 1200px; }
.product-card {
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card::after {
  content: "♡";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--candy);
  background: rgba(255,251,243,.9);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.6);
  transition: .25s ease;
}
.product-card:hover::after { opacity: 1; transform: scale(1); }
.product-image { transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.product-card:hover .product-image { transform: scale(1.06); filter: saturate(1.08); }

.filter { transition: transform .2s ease, background .2s ease, color .2s ease; }
.filter:hover { transform: translateY(-2px); }

.about-image { transition: transform .5s ease, box-shadow .5s ease; }
.about-image:hover { transform: translateY(-6px) rotate(.5deg); box-shadow: var(--shadow); }

.deco-orbit {
  position: absolute;
  z-index: 2;
  color: var(--candy);
  pointer-events: none;
  animation: screenFloat 7s ease-in-out infinite;
}
.deco-orbit-1 { top: 8%; left: 10%; font-size: 1.6rem; animation-delay: .3s; }
.deco-orbit-2 { top: 14%; right: 14%; font-size: 1.3rem; color: var(--apricot); animation-delay: 1.8s; }
.deco-orbit-3 { bottom: 30%; left: 7%; font-size: 1.4rem; color: var(--apple); animation-delay: 3.2s; }

.order-box { position: relative; overflow: hidden; }
.order-box::before, .order-box::after {
  content: "✦";
  position: absolute;
  color: rgba(255,255,255,.75);
  animation: sparkle 3s ease-in-out infinite;
}
.order-box::before { right: 8%; top: 18%; font-size: 2rem; }
.order-box::after { right: 25%; bottom: 15%; animation-delay: 1s; }
.order-box .deco-heart, .order-box .deco-flower {
  position: absolute;
  color: rgba(255,255,255,.6);
  pointer-events: none;
  animation: sparkle 3.4s ease-in-out infinite;
}
.order-box .deco-heart { left: 6%; top: 14%; font-size: 1.5rem; animation-delay: .6s; }
.order-box .deco-flower { left: 16%; bottom: 12%; font-size: 1.7rem; animation-delay: 2s; }
@keyframes sparkle {
  0%,100% { opacity: .25; transform: scale(.7) rotate(0); }
  50% { opacity: 1; transform: scale(1.25) rotate(25deg); }
}

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
}
.btn-primary:hover::before { animation: shine .7s ease; }
@keyframes shine { to { left: 150%; } }

.text-link { transition: letter-spacing .25s ease; }
.text-link:hover { letter-spacing: .04em; }

.back-top {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,251,243,.9);
  color: var(--berry);
  box-shadow: 0 8px 25px rgba(74,50,48,.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: transform .3s, opacity .3s, visibility .3s, bottom .3s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--berry); color: white; transform: translateY(-3px); }

body.builder-open .back-top { bottom: 160px; }

@media (max-width: 650px) {
  .back-top { right: 16px; bottom: 82px; width: 42px; height: 42px; }
  body.builder-open .back-top { bottom: 148px; }
}

.builder-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 16px 14px 22px;
  background: var(--berry);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 18px 40px -12px rgba(69,42,64,.55);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
  max-width: min(92vw, 560px);
}
.builder-bar.show { transform: translate(-50%, 0); opacity: 1; }
.builder-info { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.builder-count { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--apricot); font-family: "Space Mono", monospace; }
.builder-total { font-family: "Fraunces", serif; font-size: 1.15rem; }
.builder-actions { display: flex; align-items: center; gap: 10px; }
.builder-reset {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.builder-reset:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.builder-bar .btn-primary {
  background: var(--peach);
  min-height: 42px;
  padding: 0 18px;
  font-size: .82rem;
  white-space: nowrap;
}
.builder-bar .btn-primary:hover { background: var(--candy); }

@media (max-width: 650px) {
  .builder-bar {
    left: 12px;
    right: 12px;
    bottom: 14px;
    transform: translateY(140%);
    max-width: none;
    flex-wrap: wrap;
    justify-content: center;
    padding: 14px 16px;
  }
  .builder-bar.show { transform: translateY(0); }
  .builder-info { align-items: center; }
}

.modal-card {
  animation: modalIn .45s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-card.closing {
  animation: modalOut .26s cubic-bezier(.4,0,1,1) forwards;
}
@keyframes modalOut {
  to { opacity: 0; transform: translateY(18px) scale(.97); }
}
.modal-backdrop {
  transition: opacity .25s ease;
}

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