:root {
  --paper: #fbf7f3;
  --paper-deep: #f5ede6;
  --paper-card: #fffdfa;
  --white: #ffffff;
  --ink: #2f2130;
  --ink-soft: #7a6878;
  --plum: #583354;
  --plum-deep: #381f35;
  --coral: #e06051;
  --coral-deep: #c54738;
  --coral-soft: #fbeee9;
  --gold: #df9e38;
  --gold-deep: #b87a1d;
  --gold-light: #fff5e3;
  --lavender: #ebe3f5;
  --lavender-deep: #cbbbe0;
  --teal: #4ea197;
  --teal-soft: #eaf6f4;
  --line: #ecdcd3;
  --line-strong: #dbc8be;
  
  --shadow-soft: 0 24px 70px rgb(74 45 70 / 12%);
  --shadow-card: 0 12px 36px rgb(74 45 70 / 8%);
  --shadow-hover: 0 18px 42px rgb(74 45 70 / 14%);
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-cursive: 'Caveat', cursive, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { 
  margin: 0; 
  min-width: 320px; 
  background: var(--paper); 
  color: var(--ink); 
  font-family: var(--font-sans); 
  line-height: 1.55; 
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* Header & Navigation */
.site-header { 
  align-items: center; 
  display: flex; 
  gap: 20px; 
  justify-content: space-between; 
  margin: 0 auto; 
  max-width: 1440px; 
  padding: 16px clamp(18px, 4vw, 52px); 
  position: sticky;
  top: 0;
  background: rgba(251, 247, 243, 0.94);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(236, 220, 211, 0.6);
}

.brand { align-items: center; display: inline-flex; flex: 0 0 auto; gap: 11px; }
.brand-mark { 
  align-items: center; 
  background: var(--lavender); 
  border: 2px solid var(--white); 
  border-radius: 50%; 
  box-shadow: 0 6px 18px rgb(76 43 70 / 12%); 
  display: inline-flex; 
  height: 44px; 
  justify-content: center; 
  overflow: hidden; 
  width: 44px; 
}
.brand-mark img { height: 100%; object-fit: cover; width: 100%; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 800; color: var(--plum-deep); }
.brand small { color: var(--ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.header-nav { display: flex; align-items: center; gap: 10px; }
.header-nav-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--plum);
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  transition: all .2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-nav-link:hover {
  background: var(--paper-deep);
  color: var(--coral-deep);
}
.header-nav-link .nav-icon { font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-note { 
  color: var(--teal); 
  font-size: 11px; 
  font-weight: 800; 
  display: flex;
  align-items: center;
  background: var(--teal-soft);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(78, 161, 151, 0.2);
}
.live-dot { 
  background: var(--teal); 
  border-radius: 50%; 
  box-shadow: 0 0 0 3px rgba(78, 161, 151, 0.25); 
  display: inline-block; 
  height: 7px; 
  margin-right: 7px; 
  width: 7px; 
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.back-link { align-items: center; color: var(--plum); display: inline-flex; flex: 0 0 auto; font-size: 12px; font-weight: 800; gap: 8px; }
.back-link span { color: var(--coral); font-size: 16px; transition: transform .2s var(--ease); }
.back-link:hover span { transform: translate(2px, -2px); }

/* Page Container */
.page-shell { margin: 0 auto; max-width: 1440px; padding-left: clamp(18px, 4vw, 52px); padding-right: clamp(18px, 4vw, 52px); }

/* Typography Helpers */
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; }
h1 { color: var(--plum-deep); font-size: clamp(34px, 4.5vw, 56px); line-height: 1.08; }
h2 { color: var(--plum-deep); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.15; }
h3 { color: var(--plum-deep); font-size: clamp(18px, 1.8vw, 22px); font-weight: 800; }

.eyebrow { 
  align-items: center; 
  color: var(--coral-deep); 
  display: flex; 
  font-size: 11px; 
  font-weight: 900; 
  gap: 8px; 
  letter-spacing: .14em; 
  margin: 0 0 10px; 
  text-transform: uppercase; 
}
.eyebrow-dot { background: var(--coral); border-radius: 50%; height: 7px; width: 7px; }

/* ========================================================
   SECTION 1: KOLEKSI SIGNATURE SHOWCASE (#koleksi)
   ======================================================== */
.collection-section {
  padding: clamp(32px, 4vw, 56px) 0 40px;
  border-bottom: 1.5px solid var(--line);
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.collection-title-wrap { max-width: 820px; }
.collection-subtitle {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 8px;
  margin-bottom: 0;
}

.collection-badge-pill {
  flex-shrink: 0;
  background: var(--gold-light);
  border: 1px solid rgba(223, 158, 56, 0.35);
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill-star { color: var(--gold); }

/* Gallery Hero Container */
.gallery-hero-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 30px;
}

.gallery-photo-frame {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  background: #f7eff9;
}

.gallery-hero-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  transition: transform .6s var(--ease);
}
.gallery-hero-card:hover .gallery-hero-img {
  transform: scale(1.02);
}

.gallery-overlay-tag {
  position: absolute;
  bottom: 16px;
  left: 20px;
  background: rgba(36, 17, 34, 0.82);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tag-pulse {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(223, 158, 56, 0.4);
}

/* 3 Signature Cards Grid */
.collection-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--paper-card);
}

.collection-item-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .24s var(--ease);
}
.collection-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: var(--shadow-hover);
}

.item-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.item-theme-chip {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.chip-animal { background: #ffece8; color: var(--coral-deep); }
.chip-space { background: #eee8f8; color: var(--plum); }
.chip-dino { background: #e6f5ef; color: var(--teal); }

.item-popularity-chip {
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-soft);
}

.collection-item-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.item-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.item-footer {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.item-spec-note {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.btn-apply-preset {
  width: 100%;
  background: var(--paper-deep);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--plum-deep);
  font-size: 12px;
  font-weight: 800;
  padding: 9px 14px;
  transition: all .2s var(--ease);
}
.btn-apply-preset:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(224, 96, 81, 0.28);
}

/* Trust Strip */
.bakery-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 10px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
}
.trust-icon { font-size: 26px; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 12px; color: var(--plum-deep); font-weight: 800; }
.trust-item small { color: var(--ink-soft); font-size: 10px; line-height: 1.4; display: block; }

/* ========================================================
   SECTION 2: PLAYGROUND & CAKE STAGE (#playground)
   ======================================================== */
.playground-section { padding: 40px 0 44px; }
.playground-heading { 
  align-items: flex-end; 
  display: flex; 
  gap: 28px; 
  justify-content: space-between; 
  margin-bottom: 20px; 
}
.steps { 
  align-items: center; 
  color: var(--plum); 
  display: flex; 
  font-size: 12px; 
  font-weight: 800; 
  gap: 10px; 
  padding-bottom: 7px; 
  white-space: nowrap; 
}
.steps b { 
  align-items: center; 
  background: var(--lavender); 
  border-radius: 50%; 
  color: var(--plum); 
  display: inline-flex; 
  font-size: 10px; 
  height: 22px; 
  justify-content: center; 
  margin-right: 4px; 
  width: 22px; 
}
.steps i { color: var(--coral); font-style: normal; }

.editor-shell { display: grid; gap: 16px; }
.stage-card, .tray-card, .option-card { 
  background: var(--white); 
  border: 1.5px solid var(--line); 
  border-radius: 28px; 
  box-shadow: var(--shadow-card); 
  overflow: hidden; 
}

.stage-toolbar { 
  align-items: center; 
  display: flex; 
  justify-content: space-between; 
  padding: 14px 22px; 
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.stage-meta, .stage-actions { align-items: center; display: flex; gap: 14px; }
.preview-pill, .item-count { align-items: center; color: var(--ink-soft); display: inline-flex; font-size: 12px; font-weight: 800; }
.preview-pill { color: var(--plum); }
.item-count { border-left: 1px solid var(--line); padding-left: 14px; }
.item-count strong { color: var(--coral-deep); font-size: 16px; margin-right: 4px; }

.icon-button, .text-button { border: 0; color: var(--plum); font-weight: 800; }
.icon-button { 
  align-items: center; 
  background: var(--paper-deep); 
  border-radius: 50%; 
  display: inline-flex; 
  font-size: 18px; 
  height: 36px; 
  justify-content: center; 
  transition: all .2s var(--ease); 
  width: 36px; 
}
.icon-button:not(:disabled):hover { background: var(--lavender); transform: translateY(-1px); color: var(--coral-deep); }
.icon-button:disabled { cursor: not-allowed; opacity: .35; }
.text-button { background: transparent; font-size: 12px; padding: 7px 12px; border-radius: 999px; transition: all .18s ease; }
.text-button:hover { background: var(--paper-deep); color: var(--coral-deep); }

/* CAKE STAGE: High-End Realistic Studio Aesthetic */
.cake-stage { 
  --stage-wash: #f8eff8;
  --cake-body: #fff9f0;
  --cake-top: #ffffff;
  --cake-band: #f2dec9;
  --cake-rosette: #fceede;
  --cake-shading: rgba(220, 195, 175, 0.4);
  
  background: radial-gradient(circle at 50% 28%, #ffffff 0%, var(--stage-wash) 72%, #eeddf2 100%);
  border-top: 1px solid var(--line); 
  min-height: 480px; 
  overflow: hidden; 
  position: relative; 
  touch-action: none; 
}

.cake-stage[data-theme="space"] { 
  --stage-wash: #ded8f2; 
  --cake-body: #293155; 
  --cake-top: #364172; 
  --cake-band: #505f9c;
  --cake-rosette: #7384c5;
  --cake-shading: rgba(20, 24, 45, 0.6);
}

.cake-stage[data-theme="dino"] { 
  --stage-wash: #e2f0ea; 
  --cake-body: #d8eee3; 
  --cake-top: #e8f7ef; 
  --cake-band: #9fcbbb;
  --cake-rosette: #bde4d5;
  --cake-shading: rgba(140, 185, 168, 0.4);
}

.cake-stage[data-theme="custom"] { 
  --stage-wash: #f8e8ec; 
  --cake-body: #fce8ec; 
  --cake-top: #fff3f5; 
  --cake-band: #e5a4b1;
  --cake-rosette: #fad2da;
  --cake-shading: rgba(215, 150, 165, 0.35);
}

.cake-stage[data-finish="lavender"] { 
  --cake-body: #e3d9f3; 
  --cake-top: #f3ecfb; 
  --cake-band: #bea6db;
  --cake-rosette: #d7c5ed;
}

.cake-stage[data-finish="blush"] { 
  --cake-body: #fadfe3; 
  --cake-top: #fff0f2; 
  --cake-band: #e8aab5;
  --cake-rosette: #f7ccd4;
}

/* Ambient Studio Light Orbs */
.stage-backdrop-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.stage-orb { border-radius: 50%; pointer-events: none; position: absolute; }
.orb-one { background: rgba(255, 255, 255, 0.55); height: 220px; left: 6%; top: 10%; width: 220px; filter: blur(2px); }
.orb-two { background: rgba(223, 158, 56, 0.18); bottom: 12%; height: 120px; right: 10%; width: 120px; filter: blur(3px); }
.stage-spark { color: var(--coral); font-size: 22px; opacity: .75; pointer-events: none; position: absolute; z-index: 2; }
.spark-one { left: 16%; top: 22%; transform: rotate(-12deg); }
.spark-two { right: 18%; top: 18%; transform: rotate(15deg) scale(.8); }

/* 3D Cake Scene & Structural Assembly */
.cake-scene { 
  bottom: 4%; 
  height: min(48vw, 410px); 
  left: 50%; 
  max-height: 410px; 
  max-width: 520px; 
  position: absolute; 
  transform: translateX(-50%); 
  width: min(60vw, 520px); 
  z-index: 3; 
}

/* Soft contact shadow on table */
.cake-shadow { 
  background: radial-gradient(ellipse at center, rgba(65, 35, 60, 0.32) 0%, rgba(65, 35, 60, 0.08) 60%, transparent 80%);
  border-radius: 50%; 
  bottom: 1%; 
  height: 12%; 
  left: 4%; 
  position: absolute; 
  width: 92%; 
  filter: blur(8px);
}

/* Luxury Gold & White Marble Pedestal */
.cake-pedestal {
  position: absolute;
  bottom: 4%;
  left: -5%;
  width: 110%;
  height: 12%;
  z-index: 1;
}
.cake-gold-rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #c48c32 0%, #fae298 35%, #dfa03b 70%, #946317 100%);
  box-shadow: 0 4px 14px rgba(60, 30, 20, 0.2);
}
.cake-plate { 
  position: absolute;
  inset: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #f4eff3 100%);
  border-radius: 50%;
  border: 1px solid rgba(220, 180, 120, 0.4);
}

/* 3D Cake Cylinder Front Wall */
.cake-body { 
  position: absolute;
  bottom: 12%; 
  height: 52%; 
  left: 1%; 
  width: 98%; 
  border-radius: 0 0 16% 16%; 
  background: var(--cake-body);
  border: 1.5px solid rgba(100, 50, 80, 0.14);
  box-shadow: inset 0 -12px 28px var(--cake-shading);
  overflow: visible; 
  z-index: 2;
}

.cake-fondant-shading {
  position: absolute;
  inset: 0;
  border-radius: 0 0 16% 16%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.1) 20%, 
    transparent 45%, 
    rgba(70, 35, 55, 0.12) 85%, 
    rgba(50, 20, 40, 0.28) 100%
  );
  pointer-events: none;
}

.cake-frosting-sheen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
  pointer-events: none;
}

.cake-side-band { 
  background: var(--cake-band); 
  bottom: 16%; 
  height: 7%; 
  left: 0; 
  opacity: .85; 
  position: absolute; 
  width: 100%; 
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(70, 30, 50, 0.12);
}

/* Bottom Edible Pearl Border */
.cake-pearls-bottom {
  position: absolute;
  bottom: -4px;
  left: 2%;
  width: 96%;
  height: 10px;
  background-image: radial-gradient(circle at 35% 35%, #ffffff 25%, #eedad2 60%, #c4aa9c 100%);
  background-size: 14px 10px;
  background-repeat: repeat-x;
  border-radius: 5px;
  filter: drop-shadow(0 2px 3px rgba(60, 30, 40, 0.2));
}

/* Custom Birthday Plaque / Ribbon Banner on Front of Cake */
.cake-name-plaque {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  filter: drop-shadow(0 4px 8px rgba(60, 25, 45, 0.22));
}
.plaque-ribbon-body {
  background: linear-gradient(180deg, #fffcf6 0%, #faecd7 100%);
  border: 1.5px solid #d49c43;
  border-radius: 999px;
  padding: 5px 22px;
  position: relative;
  white-space: nowrap;
}
.plaque-text {
  font-family: var(--font-cursive);
  font-size: 20px;
  font-weight: 700;
  color: #723b1e;
  letter-spacing: .02em;
  display: block;
}
.plaque-ribbon-left, .plaque-ribbon-right {
  width: 14px;
  height: 14px;
  background: #c2882c;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  position: absolute;
  top: 50%;
}
.plaque-ribbon-left {
  left: -8px;
  transform: translateY(-50%) rotate(180deg);
}
.plaque-ribbon-right {
  right: -8px;
  transform: translateY(-50%);
}

/* Top Surface of the Cake with Piped Rosettes */
.cake-top { 
  background: var(--cake-top);
  border: 1.5px solid rgba(100, 50, 80, 0.14); 
  border-radius: 50%; 
  bottom: 60%; 
  height: 22%; 
  left: 0; 
  position: absolute; 
  width: 100%; 
  z-index: 4; 
  box-shadow: inset 0 2px 14px rgba(255, 255, 255, 0.7);
}

.cake-rosettes-border {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-image: radial-gradient(circle at 40% 30%, #ffffff 30%, var(--cake-rosette) 70%, rgba(160, 100, 120, 0.3) 100%);
  background-size: 16px 12px;
  background-repeat: repeat-x;
  border: 2px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.cake-top-inner {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 35%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  pointer-events: none;
}

/* Decoration Layer & Items */
.decor-layer { inset: 0; pointer-events: none; position: absolute; z-index: 8; }
.decor-item { 
  align-items: center; 
  display: flex; 
  justify-content: center; 
  pointer-events: auto; 
  position: absolute; 
  touch-action: none; 
  transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(var(--scale, 1)); 
  transform-origin: center; 
  transition: filter .18s ease, transform .18s var(--ease); 
  user-select: none; 
  width: clamp(84px, 15vw, 180px); 
  z-index: 10; 
}
.decor-item:not(.is-dragging) { cursor: grab; }
.decor-item.is-dragging { cursor: grabbing; transition: none; }
.decor-item img { display: block; height: auto; max-width: 100%; pointer-events: none; width: 100%; }

/* Selected Item: Soft Luxury Halo Glow (NO UGLY DASHED RED BORDER) */
.decor-item.is-selected { 
  filter: drop-shadow(0 0 14px rgba(224, 96, 81, 0.6)) drop-shadow(0 10px 22px rgba(66, 37, 65, 0.35)); 
  z-index: 30; 
}

/* Modern Floating Glassmorphism Toolbar */
.selection-tools { 
  align-items: center; 
  background: rgba(255, 255, 255, 0.94); 
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(235, 215, 225, 0.8); 
  border-radius: 999px; 
  box-shadow: 0 12px 32px rgba(60, 20, 50, 0.18); 
  display: flex; 
  gap: 4px; 
  padding: 5px; 
  pointer-events: auto; 
  position: absolute; 
  transform: translate(-50%, -115%); 
  z-index: 40; 
}
.selection-tools button { 
  align-items: center; 
  background: transparent; 
  border: 0; 
  border-radius: 50%; 
  color: var(--plum-deep); 
  display: flex; 
  height: 32px; 
  justify-content: center; 
  width: 32px; 
  transition: all .16s ease;
}
.selection-tools button:hover { 
  background: var(--paper-deep); 
  color: var(--coral-deep); 
  transform: scale(1.1);
}
.selection-tools button.tool-btn-remove:hover { 
  background: #ffebe8;
  color: #d63324; 
}

.stage-caption { 
  align-items: center; 
  bottom: 12px; 
  color: var(--ink-soft); 
  display: flex; 
  font-size: 11px; 
  font-weight: 700; 
  gap: 7px; 
  left: 0; 
  position: absolute; 
  right: 0; 
  justify-content: center; 
  z-index: 5; 
}
.caption-dot { background: var(--coral); border-radius: 50%; height: 6px; width: 6px; }

/* Tray Card: Character & Topper Picker */
.tray-card { 
  align-items: stretch; 
  display: grid; 
  grid-template-columns: 220px minmax(0, 1fr); 
  padding: 20px 24px; 
}
.tray-heading { 
  align-items: flex-start; 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  padding-right: 24px; 
}
.tray-heading h2 { font-family: var(--font-sans); font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.card-kicker { 
  color: var(--coral-deep); 
  display: block; 
  font-size: 10px; 
  font-weight: 900; 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  margin-bottom: 2px;
}
.tray-count { color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.tray-count strong { color: var(--coral-deep); font-size: 16px; }

.tray-tabs { 
  align-items: center; 
  border-bottom: 1.5px solid var(--line); 
  display: flex; 
  gap: 22px; 
  grid-column: 2; 
  margin-bottom: 14px; 
  margin-top: -2px; 
}
.tray-tab { 
  background: transparent; 
  border: 0; 
  border-bottom: 2.5px solid transparent; 
  color: var(--ink-soft); 
  font-size: 13px; 
  font-weight: 800; 
  padding: 0 0 10px; 
  transition: all .18s ease;
}
.tray-tab.is-active { 
  border-color: var(--coral); 
  color: var(--plum-deep); 
}

.tray-panel { grid-column: 2; min-width: 0; }
.character-tray { display: grid; gap: 9px; grid-template-columns: repeat(8, minmax(68px, 1fr)); }
.character-option { 
  align-items: center; 
  background: var(--paper); 
  border: 1.5px solid transparent; 
  border-radius: 16px; 
  color: var(--ink); 
  display: flex; 
  flex-direction: column; 
  gap: 3px; 
  min-height: 88px; 
  padding: 6px 4px 8px; 
  transition: all .2s var(--ease); 
}
.character-option:hover { 
  background: var(--paper-deep); 
  border-color: var(--lavender-deep); 
  transform: translateY(-2px); 
  box-shadow: 0 6px 14px rgba(74, 45, 70, 0.08);
}
.character-option:active { transform: scale(.96); }
.character-option img { height: 58px; object-fit: contain; width: 100%; }
.character-option span { font-size: 10px; font-weight: 800; line-height: 1; }
.tray-note { color: var(--ink-soft); font-size: 11px; margin: 10px 0 0; }

/* Photo Topper Styles */
.upload-drop { 
  align-items: center; 
  background: var(--paper); 
  border: 1.5px dashed var(--lavender-deep); 
  border-radius: 16px; 
  color: var(--plum-deep); 
  cursor: pointer; 
  display: inline-flex; 
  gap: 12px; 
  min-height: 72px; 
  padding: 12px 16px; 
  transition: all .2s var(--ease); 
}
.upload-drop:hover { 
  background: var(--paper-deep); 
  border-color: var(--coral); 
  transform: translateY(-1px); 
}
.upload-drop input { height: 1px; opacity: 0; overflow: hidden; position: absolute; width: 1px; }
.upload-drop strong { display: block; font-size: 13px; font-weight: 800; }
.upload-drop small { color: var(--ink-soft); display: block; font-size: 11px; margin-top: 2px; }
.upload-icon { 
  align-items: center; 
  background: var(--coral); 
  border-radius: 50%; 
  color: var(--white); 
  display: flex; 
  font-size: 20px; 
  height: 36px; 
  justify-content: center; 
  width: 36px; 
}
.frame-control { display: inline-block; margin-left: 24px; vertical-align: middle; }
.control-label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 8px; color: var(--plum-deep); }
.frame-options { display: flex; gap: 8px; }
.frame-option { 
  align-items: center; 
  background: var(--paper); 
  border: 1px solid var(--line); 
  border-radius: 12px; 
  color: var(--ink-soft); 
  display: flex; 
  flex-direction: column; 
  font-size: 10px; 
  font-weight: 800; 
  gap: 4px; 
  padding: 6px 8px; 
  transition: all .16s ease;
}
.frame-option.is-active { 
  border-color: var(--coral); 
  color: var(--plum-deep); 
  background: var(--paper-deep);
}
.frame-preview { background: var(--lavender); display: block; height: 28px; position: relative; width: 22px; }
.frame-preview::after { background: var(--coral); content: ''; inset: 4px; position: absolute; }
.frame-preview-polaroid { border: 2px solid var(--white); }
.frame-preview-circle { background: var(--white); border-radius: 50%; }
.frame-preview-circle::after { border-radius: 50%; inset: 3px; }
.frame-preview-arch { border-radius: 11px 11px 2px 2px; }
.frame-preview-arch::after { border-radius: 8px 8px 2px 2px; inset: 4px; }
.topper-status { color: var(--teal); display: inline-block; font-size: 11px; line-height: 1.4; margin: 12px 16px 0 0; max-width: 280px; vertical-align: middle; }

/* ========================================================
   SECTION 3: OPTIONS & CONSULTATION SIMULATOR
   ======================================================== */
.options-grid { 
  display: grid; 
  gap: 16px; 
  grid-template-columns: minmax(0, 1fr) minmax(380px, .95fr); 
  padding-bottom: 48px; 
}
.option-card { padding: clamp(22px, 3vw, 32px); }

.card-heading { 
  align-items: flex-start; 
  display: flex; 
  gap: 15px; 
  justify-content: space-between; 
  margin-bottom: 22px; 
}
.card-heading h2 { 
  font-family: var(--font-sans); 
  font-size: 22px; 
  font-weight: 800; 
  letter-spacing: -.03em; 
  margin-top: 4px; 
}
.selected-chip, .estimate-badge { 
  background: var(--paper-deep); 
  border-radius: 999px; 
  color: var(--plum-deep); 
  font-size: 11px; 
  font-weight: 800; 
  padding: 7px 12px; 
  white-space: nowrap; 
}

/* Theme Selector Grid */
.theme-options { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); }
.theme-option { 
  align-items: center; 
  background: var(--paper); 
  border: 1.5px solid transparent; 
  border-radius: 16px; 
  color: var(--ink); 
  display: flex; 
  gap: 10px; 
  min-height: 64px; 
  padding: 10px; 
  text-align: left; 
  transition: all .2s var(--ease); 
}
.theme-option:hover, .theme-option.is-selected { 
  background: var(--paper-deep); 
  border-color: var(--coral); 
  transform: translateY(-1px);
}
.theme-swatch { border-radius: 50%; flex: 0 0 auto; height: 26px; width: 26px; }
.swatch-coral { background: var(--coral); }
.swatch-plum { background: var(--plum); }
.swatch-teal { background: var(--teal); }
.swatch-yellow { background: var(--gold); }
.theme-option strong { display: block; font-size: 12px; line-height: 1.1; font-weight: 800; }
.theme-option small { color: var(--ink-soft); display: block; font-size: 10px; margin-top: 3px; }

/* Fondant Finish */
.finish-control { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.finish-options { display: flex; flex-wrap: wrap; gap: 8px; }
.finish-option { 
  align-items: center; 
  background: transparent; 
  border: 1.5px solid var(--line); 
  border-radius: 999px; 
  color: var(--ink-soft); 
  display: inline-flex; 
  font-size: 11px; 
  font-weight: 800; 
  gap: 7px; 
  padding: 7px 14px; 
  transition: all .16s ease;
}
.finish-option.is-selected { 
  border-color: var(--coral); 
  color: var(--plum-deep); 
  background: var(--paper);
}
.finish-dot { border: 1px solid rgba(101, 56, 95, 0.2); border-radius: 50%; height: 13px; width: 13px; }
.finish-cream { background: #fff8ef; }
.finish-lavender { background: #dcd3eb; }
.finish-blush { background: #f0d0d0; }

/* Custom Plaque Live Text Input */
.custom-plaque-control {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}
.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.input-with-icon input {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 12px 14px;
  padding-right: 90px;
  font-size: 13px;
  font-weight: 700;
  color: var(--plum-deep);
  transition: all .2s var(--ease);
}
.input-with-icon input:focus {
  outline: none;
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(224, 96, 81, 0.12);
}
.input-tag-live {
  position: absolute;
  right: 12px;
  background: var(--gold-light);
  color: var(--gold-deep);
  border: 1px solid rgba(223, 158, 56, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.control-helper {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ========================================================
   WARM BOUTIQUE ESTIMATE CARD (Replaces dark purple)
   ======================================================== */
.estimate-card { 
  background: linear-gradient(180deg, #fffdfb 0%, #fbf6f2 100%); 
  color: var(--ink); 
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.estimate-card .card-kicker { color: var(--coral-deep); }
.estimate-card h2 { color: var(--plum-deep); }
.estimate-card .estimate-badge { 
  background: var(--gold-light); 
  color: var(--gold-deep); 
  border: 1px solid rgba(223, 158, 56, 0.35);
}

.estimate-meta { 
  border-bottom: 1px solid var(--line); 
  color: var(--ink-soft); 
  display: flex;
  font-size: 12px; 
  font-weight: 700;
  justify-content: space-between; 
  padding-bottom: 14px; 
}
.estimate-meta strong { color: var(--coral-deep); font-size: 16px; margin-right: 4px; }
.estimate-pill-status {
  color: var(--teal);
  font-weight: 800;
}

.estimate-card .control-group { margin-top: 18px; }

/* VISUAL SIZE CARDS GRID */
.size-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.size-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  transition: all .2s var(--ease);
}
.size-card:hover {
  border-color: var(--lavender-deep);
  transform: translateY(-2px);
}
.size-card.is-selected {
  border-color: var(--coral);
  background: #fff8f7;
  box-shadow: 0 4px 14px rgba(224, 96, 81, 0.15);
}
.size-card-badge {
  position: absolute;
  top: -8px;
  background: var(--coral);
  color: var(--white);
  font-size: 8px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.size-card-diam {
  font-size: 13px;
  font-weight: 800;
  color: var(--coral-deep);
}
.size-card-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--plum-deep);
}
.size-card-servings {
  font-size: 10px;
  color: var(--ink-soft);
  font-weight: 600;
}
.size-card-price {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-deep);
  margin-top: 4px;
}

/* FLAVOR PILLS GRID */
.flavor-pills-grid {
  display: grid;
  gap: 8px;
}
.flavor-pill {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all .18s ease;
}
.flavor-pill:hover {
  border-color: var(--lavender-deep);
  background: var(--paper);
}
.flavor-pill.is-selected {
  border-color: var(--coral);
  background: #fff8f7;
}
.flavor-icon { font-size: 20px; flex-shrink: 0; }
.flavor-pill strong { display: block; font-size: 12px; font-weight: 800; color: var(--plum-deep); }
.flavor-pill small { display: block; font-size: 10px; color: var(--ink-soft); }

/* DECOR STYLE TOGGLES */
.decor-style-toggles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.decor-toggle {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  transition: all .18s ease;
}
.decor-toggle:hover { border-color: var(--lavender-deep); }
.decor-toggle.is-active {
  background: var(--plum-deep);
  border-color: var(--plum-deep);
  color: var(--white);
}
.decor-toggle strong { display: block; font-size: 11px; font-weight: 800; }
.decor-toggle small { display: block; font-size: 9px; opacity: .85; margin-top: 2px; }

/* Toggle Row (Rental) */
.toggle-row { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-option { 
  background: var(--white); 
  border: 1.5px solid var(--line); 
  border-radius: 999px; 
  color: var(--ink); 
  font-size: 11px; 
  font-weight: 800; 
  padding: 7px 12px; 
  transition: all .16s ease;
}
.toggle-option:hover { border-color: var(--lavender-deep); }
.toggle-option.is-active { 
  background: var(--coral); 
  border-color: var(--coral); 
  color: var(--white); 
  box-shadow: 0 4px 10px rgba(224, 96, 81, 0.25);
}

/* Summary Line & Price */
.summary-line { 
  align-items: flex-end; 
  border-top: 1.5px solid var(--line); 
  display: flex; 
  justify-content: space-between; 
  margin-top: 22px; 
  padding-top: 16px; 
}
.summary-line span { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.summary-disclaimer { display: block; font-size: 10px; color: var(--ink-soft); margin-top: 2px; }
.summary-line strong { color: var(--coral-deep); font-size: 26px; font-weight: 900; }
.summary-note { color: var(--ink-soft); font-size: 11px; margin: 8px 0 16px; }

/* Action Buttons: WhatsApp & Copy */
.order-action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.button { 
  align-items: center; 
  border: 0; 
  border-radius: 999px; 
  display: inline-flex; 
  font-size: 13px; 
  font-weight: 800; 
  justify-content: center; 
  min-height: 48px; 
  padding: 0 20px; 
  transition: all .2s var(--ease); 
  gap: 8px;
}
.button-full { width: 100%; }

/* Direct WhatsApp Button: High Conversion Green */
.button-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.32);
}
.button-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.42);
}
.button-whatsapp:active { transform: scale(.98); }
.wa-icon-bubble { font-size: 18px; }

.button-copy-summary {
  background: var(--paper-deep);
  border: 1.5px solid var(--line-strong);
  color: var(--plum-deep);
}
.button-copy-summary:hover {
  background: var(--lavender);
  border-color: var(--lavender-deep);
}

.copy-status { 
  color: var(--teal); 
  font-size: 11px; 
  font-weight: 700;
  min-height: 16px; 
  margin: 8px 0 0; 
  text-align: center; 
}

.card-trust-row {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-soft);
}

/* Manual Reassurance Note */
.manual-note { 
  align-items: center; 
  border-top: 1.5px solid var(--line); 
  display: grid; 
  gap: 24px; 
  grid-template-columns: .9fr 1.1fr auto; 
  padding: 38px 0 52px; 
}
.manual-note h2 { font-family: var(--font-sans); font-size: 26px; font-weight: 800; margin-top: 4px; }
.manual-note p { color: var(--ink-soft); font-size: 13px; line-height: 1.65; margin: 0; max-width: 440px; }
.text-link { color: var(--coral-deep); display: inline-flex; font-size: 13px; font-weight: 800; gap: 9px; white-space: nowrap; }
.text-link span { transition: transform .18s var(--ease); }
.text-link:hover span { transform: translateY(3px); }

/* Footer */
.site-footer { background: var(--paper-deep); border-top: 1px solid var(--line); }
.footer-inner { 
  align-items: center; 
  display: flex; 
  justify-content: space-between; 
  padding-bottom: 28px; 
  padding-top: 28px; 
}
.footer-brand { 
  align-items: center; 
  display: grid; 
  grid-template-columns: 38px 1fr; 
  column-gap: 12px; 
}
.footer-brand img { 
  background: var(--lavender); 
  border-radius: 50%; 
  grid-row: 1 / span 2; 
  height: 38px; 
  object-fit: cover; 
  width: 38px; 
}
.footer-brand strong { font-size: 13px; color: var(--plum-deep); }
.footer-brand span { color: var(--ink-soft); font-size: 11px; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .collection-cards-grid { grid-template-columns: 1fr; }
  .bakery-trust-strip { grid-template-columns: repeat(2, 1fr); }
  .options-grid { grid-template-columns: 1fr; }
  .tray-card { grid-template-columns: 180px minmax(0, 1fr); }
  .character-tray { grid-template-columns: repeat(4, minmax(64px, 1fr)); }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .collection-header { flex-direction: column; gap: 14px; }
  .manual-note { grid-template-columns: 1fr; }
  .theme-options { grid-template-columns: repeat(2, 1fr); }
  .tray-card { display: block; padding: 18px 16px; }
  .tray-heading { padding-right: 0; margin-bottom: 14px; }
}

@media (max-width: 560px) {
  .site-header { padding: 12px 16px; }
  .header-actions .header-note { display: none; }
  .bakery-trust-strip { grid-template-columns: 1fr; }
  .character-tray { grid-template-columns: repeat(4, 1fr); }
  .cake-stage { min-height: 420px; }
  .cake-scene { width: min(84vw, 380px); height: 320px; }
  .cake-pedestal { height: 14%; }
  .plaque-text { font-size: 17px; }
  .size-cards-grid { grid-template-columns: 1fr; }
  .decor-style-toggles { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ── GALLERY NAV LINK — highlighted pill style ────────────── */
.header-nav-link--gallery {
  background: var(--gold-light);
  color: var(--gold-deep);
  border: 1.5px solid rgba(223,158,56,0.30);
  position: relative;
}
.header-nav-link--gallery:hover {
  background: var(--gold);
  color: #fff;
  border-color: transparent;
}
.header-nav-link--gallery::after {
  content: 'NEW';
  position: absolute;
  top: -6px;
  right: -2px;
  background: var(--coral);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  pointer-events: none;
}

@media (max-width: 767px) {
  /* Hide gallery nav link text on very narrow header but keep icon */
  .header-nav-link--gallery .nav-icon { font-size: 16px; }
}

