/* ===== ORDER PAGE ===== */

/* ===== ORDER BUILDER ===== */
.builder-section {
  padding: 3rem 0 4rem;
  border-bottom: 1px solid rgba(237,216,176,0.07);
}

.builder-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.builder-step-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237,216,176,0.5);
  margin-bottom: 1rem;
}

/* ── Box size options ── */
.builder-sizes {
  display: flex;
  gap: 1rem;
}

.builder-size-opt {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.1rem 1rem;
  border: 1.5px solid rgba(237,216,176,0.14);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.builder-size-opt:hover {
  transform: translateY(-4px) scale(1.07);
  z-index: 2;
  border-color: rgba(237,216,176,0.45);
  background: rgba(255,255,255,0.06);
}
.builder-size-opt.selected {
  background: rgba(237,216,176,0.07);
  /* Border draw is handled by the SVG rect overlay — gold glow persists */
  box-shadow:
    0 0 22px rgba(201,168,76,0.45),
    0 0 44px rgba(201,168,76,0.18),
    inset 0 1px 0 rgba(255,255,255,0.1);
  border-color: transparent;
}

/* SVG border-draw overlay — injected by JS on select */
.builder-size-opt .border-draw-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  border-radius: 14px;
  overflow: hidden;
}
.builder-size-opt .border-draw-svg rect {
  fill: none;
  stroke: #8C1A1A;
  stroke-width: 2.5;
  rx: 13;
  ry: 13;
  stroke-dasharray: var(--perimeter, 400);
  stroke-dashoffset: var(--perimeter, 400);
  transition: stroke-dashoffset 0.32s ease, stroke 0.28s ease 0.28s;
}
.builder-size-opt.selected .border-draw-svg rect {
  stroke-dashoffset: 0;
  stroke: #C9A84C;
}

/* Scrim — fades in on hover, sits above gallery, below text */
.builder-size-opt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(to top, rgba(8,3,1,0.88) 0%, rgba(8,3,1,0.4) 55%, rgba(8,3,1,0.15) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}
.builder-size-opt:hover::after { opacity: 1; }

/* Content above scrim */
.builder-size-opt > * { position: relative; z-index: 2; }

/* Gallery beneath scrim — declared after > * so z-index: 0 wins cascade */
.builder-size-opt .tile-gallery {
  border-radius: 14px;
  position: absolute;
  z-index: 0;
}

.bso-count {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #EDD8B0;
  line-height: 1;
}
.bso-word {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(237,216,176,0.5);
}
.bso-price {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(174,199,203,0.85);
  margin-top: 0.3rem;
}

/* ── Cookie pickers ── */
.builder-step--cookies { display: flex; flex-direction: column; gap: 1.25rem; }

.builder-cookies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.builder-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.builder-tally {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(237,216,176,0.55);
  white-space: nowrap;
}

.builder-bar {
  width: 120px;
  height: 4px;
  background: rgba(237,216,176,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.builder-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ACC7CB, #EDD8B0);
  border-radius: 2px;
  transition: width 0.25s ease;
}

/* Full bar glow when complete */
.builder-bar-fill.complete {
  background: linear-gradient(90deg, #C9A84C, #EDD8B0, #C9A84C);
  box-shadow: 0 0 8px rgba(201,168,76,0.5);
}

.flavor-pickers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.flavor-picker {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(237,216,176,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s ease;
}
.flavor-picker.has-count {
  border-color: rgba(237,216,176,0.28);
  background: rgba(237,216,176,0.04);
}

/* Highlighted when selected for "Split Between Two" */
.flavor-picker.split-two-marked {
  border-color: rgba(174,199,203,0.55);
  background: rgba(174,199,203,0.07);
  box-shadow: 0 0 0 1px rgba(174,199,203,0.22) inset;
  cursor: pointer;
}

.picker-thumb-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.picker-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.picker-thumb-img.active { opacity: 1; }

/* No-photo variant — shows placeholder icon centered */
.picker-thumb-wrap--no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(237,216,176,0.15);
}
.picker-thumb-placeholder {
  font-size: 1.4rem;
  opacity: 0.4;
}

/* "New" badge on flavor name */
.picker-new-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(140,26,26,0.2);
  border: 1px solid rgba(140,26,26,0.4);
  color: #e08080;
  padding: 0.1rem 0.45rem;
  border-radius: 50px;
  vertical-align: middle;
  margin-left: 0.35rem;
  position: relative;
  top: -1px;
}

.picker-details { flex: 1; min-width: 0; }
.picker-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(237,216,176,0.78);
  line-height: 1.3;
}

.picker-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.picker-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(237,216,176,0.2);
  background: rgba(255,255,255,0.04);
  color: rgba(237,216,176,0.7);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.picker-btn:not(:disabled):hover {
  border-color: rgba(237,216,176,0.6);
  color: #EDD8B0;
  background: rgba(237,216,176,0.08);
}
.picker-btn:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.picker-count {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #EDD8B0;
  min-width: 22px;
  text-align: center;
}

/* ── Total counter zone (above flavor pickers) ── */
.builder-total-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.builder-total-counter {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.btc-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #EDD8B0;
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  transition: color 0.2s ease;
}

.btc-sep {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237,216,176,0.3);
}

.builder-total-zone .builder-bar {
  width: 220px;
}

.builder-split-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.builder-split-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  border: 1.5px solid rgba(174,199,203,0.25);
  background: rgba(174,199,203,0.06);
  color: rgba(174,199,203,0.65);
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}
.builder-split-btn:not(:disabled):hover {
  border-color: rgba(174,199,203,0.55);
  background: rgba(174,199,203,0.12);
  color: #AEC7CB;
}
.builder-split-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Split-between-two hint text */
.builder-split-two-hint {
  font-size: 0.72rem;
  color: rgba(174,199,203,0.6);
  font-style: italic;
  text-align: center;
  min-height: 1em;
  transition: opacity 0.2s ease;
}

/* Quick-select quantity buttons (4 / 6) beside each picker row */
.picker-quick {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
}

.picker-quick-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid rgba(237,216,176,0.18);
  background: rgba(255,255,255,0.03);
  color: rgba(237,216,176,0.55);
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}
.picker-quick-btn:not(:disabled):hover {
  border-color: rgba(237,216,176,0.55);
  background: rgba(237,216,176,0.08);
  color: #EDD8B0;
}
.picker-quick-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.picker-fill-btn {
  display: block;
  margin-top: 0.3rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(174,199,203,0.5);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.18s ease;
  text-align: left;
}
.picker-fill-btn:not(:disabled):hover { color: #AEC7CB; }
.picker-fill-btn:disabled { opacity: 0.2; cursor: not-allowed; }

/* Add to cart */
.builder-add-btn {
  align-self: stretch;
  padding: 1rem;
  font-size: 1rem;
  transition: all 0.22s ease;
}
.builder-add-btn:disabled {
  background: rgba(140,26,26,0.3);
  border-color: rgba(140,26,26,0.3);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.builder-add-btn:not(:disabled) {
  box-shadow: 0 0 20px rgba(140,26,26,0.3), 0 0 40px rgba(140,26,26,0.1);
}

.builder-hint {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(237,216,176,0.38);
  font-style: italic;
}

/* Showcase divider */
.showcase-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}
.showcase-divider::before,
.showcase-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(237,216,176,0.1);
}
.showcase-divider span {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: rgba(237,216,176,0.4);
  white-space: nowrap;
}

/* Active nav link */
.nav-active { color: #EDD8B0 !important; }

/* ===== DUAL-IMAGE PHOTO SLOTS (Mega ↔ Mini transitions) ===== */
.flavor-img-slot {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.flavor-img-slot--hero {
  display: block;
  width: 100%;
}

.flavor-img {
  width: 100%;
  display: block;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* Mega: front, Mini: hidden behind */
.img-mega {
  position: relative;
  opacity: 1;
  transform: scale(1);
}
.img-mini {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
}

/* When body has mini-mode class, swap which is visible */
body.mini-mode .img-mega {
  opacity: 0;
  transform: scale(1.04);
}
body.mini-mode .img-mini {
  opacity: 1;
  transform: scale(1);
}

/* ===== SIZE COMPARISON DIAGRAM ===== */
.size-compare-section {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(237,216,176,0.07);
}

.size-choose-prompt {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(237,216,176,0.45);
  margin-bottom: 2rem;
}

.size-compare-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
}

.compare-side {
  flex: 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: opacity 0.3s ease;
}

/* Both sides always fully readable — warm glow on active only */
.compare-side { transition: filter 0.4s ease; }

/* Active cookies: warm gold glow */
body.mini-mode .compare-side--mini .cookie-dot,
body:not(.mini-mode) .compare-side--mega .cookie-dot {
  filter: brightness(1.18)
          drop-shadow(0 0 8px rgba(201,168,76,0.6))
          drop-shadow(0 0 18px rgba(201,168,76,0.25));
  transition: filter 0.4s ease;
}

/* Active heading: warm gold text glow */
body.mini-mode .compare-side--mini .compare-size-name,
body:not(.mini-mode) .compare-side--mega .compare-size-name {
  color: #EDD8B0;
  text-shadow:
    0 0 16px rgba(201,168,76,0.65),
    0 0 32px rgba(201,168,76,0.25);
}

/* Inactive heading: slightly dimmed but readable */
body.mini-mode .compare-side--mega .compare-size-name,
body:not(.mini-mode) .compare-side--mini .compare-size-name {
  color: rgba(237,216,176,0.6);
  text-shadow: none;
}

.cookie-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 120px;
  justify-content: center;
}

.cookie-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}
.cookie-row--mega { gap: 12px; }

/* CSS cookie — looks like an actual cookie */
.cookie-dot {
  display: inline-block;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

/* Mini cookie: ~2.25" represented at 42px */
.cookie-dot--mini {
  width: 42px;
  height: 42px;
  background: radial-gradient(
    circle at 38% 32%,
    #E8C070 0%,
    #C49040 38%,
    #8B5E20 72%,
    #6B4015 100%
  );
  box-shadow:
    inset -2px -2px 5px rgba(0,0,0,0.35),
    inset 1px 1px 4px rgba(255,200,100,0.15),
    0 3px 10px rgba(0,0,0,0.45);
}
.cookie-dot--mini::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 35%, rgba(40,20,5,0.9) 0%, transparent 18%),
    radial-gradient(circle at 68% 25%, rgba(40,20,5,0.8) 0%, transparent 15%),
    radial-gradient(circle at 48% 65%, rgba(40,20,5,0.85) 0%, transparent 20%),
    radial-gradient(circle at 75% 60%, rgba(40,20,5,0.75) 0%, transparent 14%);
}

/* Mega cookie: ~4" represented at 75px (exact 4/2.25 = 1.78× ratio) */
.cookie-dot--mega {
  width: 75px;
  height: 75px;
  background: radial-gradient(
    circle at 38% 32%,
    #E8C070 0%,
    #C49040 38%,
    #8B5E20 72%,
    #6B4015 100%
  );
  box-shadow:
    inset -4px -4px 10px rgba(0,0,0,0.35),
    inset 2px 2px 7px rgba(255,200,100,0.15),
    0 6px 20px rgba(0,0,0,0.5);
}
.cookie-dot--mega::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 35%, rgba(40,20,5,0.9) 0%, transparent 10%),
    radial-gradient(circle at 62% 26%, rgba(40,20,5,0.8) 0%, transparent 9%),
    radial-gradient(circle at 45% 62%, rgba(40,20,5,0.85) 0%, transparent 12%),
    radial-gradient(circle at 72% 58%, rgba(40,20,5,0.8) 0%, transparent 9%),
    radial-gradient(circle at 20% 65%, rgba(40,20,5,0.75) 0%, transparent 8%);
}

/* Ruler / size indicator */
.compare-ruler {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 200px;
}
.ruler-line {
  flex: 1;
  height: 1px;
  background: rgba(237,216,176,0.25);
}
.ruler-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(237,216,176,0.55);
  white-space: nowrap;
}

/* Text info */
.compare-info { text-align: center; }
.compare-size-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #EDD8B0;
  margin-bottom: 0.5rem;
}
.compare-size-desc {
  font-size: 0.85rem;
  color: rgba(237,216,176,0.55);
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto 1rem;
}
.compare-size-desc strong { color: rgba(237,216,176,0.85); }

.compare-counts {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.compare-counts span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(174,199,203,0.8);
  background: rgba(174,199,203,0.1);
  border: 1px solid rgba(174,199,203,0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  transition: all 0.18s ease;
}
.compare-size-pick {
  cursor: pointer;
}
.compare-size-pick:hover {
  background: rgba(174,199,203,0.22);
  border-color: rgba(174,199,203,0.55);
  color: #AEC7CB;
  transform: translateY(-1px);
}
.compare-size-pick:active {
  transform: translateY(0);
  opacity: 0.8;
}
.compare-size-pick.active {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.55);
  color: #C9A84C;
}

/* VS divider */
.compare-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 1.5rem;
}
.compare-vs span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(237,216,176,0.25);
}

/* ===== DOUGH BALLS ICON ===== */
.dough-balls-icon {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 0.25rem;
}
.dough-balls-icon span {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 32%,
    #E8D0A0 0%,
    #C8A860 50%,
    #A88040 100%
  );
  box-shadow:
    inset -2px -2px 4px rgba(0,0,0,0.25),
    inset 1px 1px 3px rgba(255,230,170,0.3);
}
.dough-balls-icon span:nth-child(2) {
  width: 32px;
  height: 32px;
}

/* ===== STICKY MINI / MEGA TOGGLE ===== */
.toggle-sticky-wrap {
  position: sticky;
  top: 62px;           /* sits just below the sticky nav */
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0.9rem 1rem;
  /* subtle frosted separator between nav and content */
  background: rgba(4,3,2,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(237,216,176,0.06);
}

/* Glass pill */
.size-type-pill {
  display: inline-flex;
  gap: 0;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(237,216,176,0.18);
  border-radius: 50px;
  padding: 4px;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.size-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0.5rem 2rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.22s ease;
}

.size-type-btn {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* Always fully readable — both states */
  color: rgba(237,216,176,0.82);
  transition: all 0.22s ease;
}

.size-type-btn.active {
  background: rgba(237,216,176,0.13);
  color: #EDD8B0;
  box-shadow:
    0 2px 12px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.14);
}
.size-type-btn:not(.active):hover { color: #EDD8B0; }

/* ── Size compare heading ── */
.size-choose-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: #EDD8B0;
  margin-bottom: 0.75rem;
  text-align: center;
}

/* ── Builder step eyebrow ── */
.builder-step-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(174,199,203,0.7);
  margin-bottom: 0.35rem;
}

/* ===== PAGE HEADER ===== */
.order-header {
  padding: 5rem 0 3rem;
  text-align: center;
}

.order-page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #EDD8B0;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(4,2,1,0.8);
}

.order-page-sub {
  color: rgba(237,216,176,0.7);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== FLAVOR SECTIONS ===== */
.flavor-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(237,216,176,0.08);
}

.flavor-section--alt {
  background: rgba(0,0,0,0.18); /* very subtle alternating tint */
}

.flavor-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.flavor-grid--reversed { direction: rtl; }
.flavor-grid--reversed > * { direction: ltr; }

/* ===== IMAGES ===== */
.flavor-images { display: flex; flex-direction: column; gap: 1rem; }

.flavor-img-hero {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.flavor-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.flavor-img-pair img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.flavor-img-pair img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}

/* ===== FLAVOR INFO ===== */
.flavor-number {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(237,216,176,0.4);
  margin-bottom: 0.75rem;
}

.flavor-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #EDD8B0;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.flavor-tagline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1rem;
  color: rgba(174,199,203,0.85); /* steel-blue glove colour */
  margin-bottom: 1rem;
}

.flavor-desc {
  color: rgba(237,216,176,0.7);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.flavor-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.flavor-details li {
  font-size: 0.9rem;
  color: rgba(237,216,176,0.65);
}

/* ===== SIZE SELECTOR ===== */
.size-label-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,216,176,0.5);
  margin-bottom: 0.9rem;
}

.size-options {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.size-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 1.4rem;
  border: 1.5px solid rgba(237,216,176,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px;
}

.size-opt:hover {
  border-color: rgba(237,216,176,0.5);
  background: rgba(255,255,255,0.08);
}

.size-opt.selected {
  border-color: #EDD8B0;
  background: rgba(237,216,176,0.1);
}

.size-opt--featured {
  border-color: rgba(174,199,203,0.5); /* glove blue accent */
}

.size-opt--featured.selected {
  border-color: #ACC7CB;
  background: rgba(174,199,203,0.12);
}

.size-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ACC7CB;
  color: #0a0806;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  white-space: nowrap;
}

.size-count {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #EDD8B0;
  line-height: 1;
}

.size-word {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(237,216,176,0.5);
}

.size-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(174,199,203,0.9);
  margin-top: 0.2rem;
}

/* Add to cart button */
.flavor-add-btn {
  width: 100%;
  max-width: 320px;
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ===== MIX NOTE ===== */
.mix-note {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(237,216,176,0.08);
}

.mix-note-inner {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.mix-note-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.mix-note h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #EDD8B0;
  margin-bottom: 0.75rem;
}

.mix-note p {
  color: rgba(237,216,176,0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== COOKIE DOUGH — COMING SOON ===== */
.dough-section {
  padding: 5rem 0;
  border-top: 1px solid rgba(237,216,176,0.08);
  position: relative;
}

/* Frosted dim overlay so it reads as "not live yet" */
.dough-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4,3,2,0.45);
  pointer-events: none;
  z-index: 1;
}
.dough-section .container { position: relative; z-index: 2; }

.dough-header {
  text-align: center;
  margin-bottom: 3rem;
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(174,199,203,0.15);
  border: 1px solid rgba(174,199,203,0.35);
  color: #ACC7CB;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.dough-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #EDD8B0;
  margin-bottom: 0.75rem;
}

.dough-sub {
  color: rgba(237,216,176,0.55);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.dough-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.dough-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(237,216,176,0.1);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dough-card-top { display: flex; flex-direction: column; gap: 0.5rem; }

.dough-icon { font-size: 2.5rem; }

.dough-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #EDD8B0;
}

.dough-card-desc {
  font-size: 0.9rem;
  color: rgba(237,216,176,0.55);
  line-height: 1.65;
}

.dough-flavors {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.dough-flavor-chip {
  font-size: 0.8rem;
  color: rgba(237,216,176,0.45);
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(237,216,176,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

.dough-cta-btn {
  width: 100%;
  padding: 0.85rem;
  border: 1.5px solid rgba(237,216,176,0.2);
  border-radius: 50px;
  color: rgba(237,216,176,0.4);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: not-allowed;
  background: transparent;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .flavor-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .flavor-grid--reversed { direction: ltr; }
  .flavor-grid--reversed .flavor-images { order: -1; }
  .flavor-img-hero { aspect-ratio: 16/9; }
  .dough-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Stack size comparison vertically — side-by-side overflows on phones */
  .size-compare-wrap {
    flex-direction: column;
    gap: 2.5rem;
  }
  .compare-side {
    max-width: 100%;
    width: 100%;
  }
  .compare-vs {
    flex-direction: row;
    padding: 0;
  }

  /* Tighten Mini/Mega/Mix toggle pill — 3 buttons with 2rem padding each overflows */
  .size-type-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
  }

  /* Tighten flavor picker row so it fits narrow screens */
  .flavor-picker {
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
  }
  .picker-thumb-wrap {
    width: 44px;
    height: 44px;
  }
  .picker-btn {
    width: 30px;
    height: 30px;
  }
  .picker-controls { gap: 0.35rem; }
  .picker-quick-btn {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }
}

/* Very narrow phones (≤360px) — scale cookie dots down to prevent overflow */
@media (max-width: 360px) {
  .cookie-dot--mini { width: 34px; height: 34px; }
  .cookie-dot--mega { width: 60px; height: 60px; }
  .cookie-row { gap: 5px; }
  .cookie-row--mega { gap: 8px; }
  .size-type-btn { padding: 0.45rem 0.65rem; font-size: 0.75rem; }
}

@media (max-width: 500px) {
  .size-options { justify-content: center; }
  .flavor-add-btn { max-width: 100%; }
}
