/* ============================================================
   BELLEZA BAKING STUDIO — CUSTOMIZER CSS
   Interactive Confection Studio styles & animations
   ============================================================ */

/* ─── CUSTOMIZER SECTION ─────────────────────────────────────── */
#customizer {
  background: var(--cocoa-900);
  position: relative;
  overflow: hidden;
}
#customizer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(198,139,89,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 90% 20%, rgba(212,175,55,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.customizer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* ─── CUSTOMIZER CONTROLS PANEL ──────────────────────────────── */
.customizer-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.customizer-panel-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--cream-100);
  line-height: 1.2;
}
.customizer-panel-title span {
  color: var(--gold-400);
  font-style: italic;
}

.customizer-step {
  position: relative;
}
.customizer-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--caramel-400);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.customizer-step-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(198,139,89,0.2);
}

/* Product Type selector */
.product-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}
.product-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,253,249,0.6);
  cursor: pointer;
  transition: all var(--t-normal) var(--ease-spring);
}
.product-type-btn:hover {
  border-color: rgba(212,175,55,0.3);
  color: var(--cream-100);
  background: rgba(212,175,55,0.06);
}
.product-type-btn.active {
  border-color: var(--gold-500);
  background: rgba(212,175,55,0.12);
  color: var(--gold-400);
}
.product-type-icon { font-size: 1.6rem; }
.product-type-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* Shape / Flavor selector pills */
.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.option-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,253,249,0.65);
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all var(--t-normal) var(--ease-spring);
  white-space: nowrap;
}
.option-pill:hover {
  color: var(--cream-100);
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.08);
}
.option-pill.active {
  color: var(--cocoa-900);
  background: var(--gold-400);
  border-color: var(--gold-400);
  box-shadow: 0 0 16px rgba(212,175,55,0.3);
}

/* Flavor swatches (color dots) */
.flavor-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.flavor-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.swatch-dot {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 2.5px solid transparent;
  transition: all var(--t-normal) var(--ease-spring);
  position: relative;
}
.swatch-dot:hover { transform: scale(1.15); }
.flavor-swatch.active .swatch-dot {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.25), 0 0 16px rgba(212,175,55,0.2);
  transform: scale(1.1);
}
.swatch-label { font-size: 0.65rem; font-weight: 600; color: rgba(255,253,249,0.55); text-align: center; max-width: 52px; line-height: 1.2; }

/* Topping toggles */
.topping-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.topping-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,253,249,0.6);
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-smooth);
  user-select: none;
}
.topping-toggle.selected {
  color: var(--cream-100);
  background: rgba(198,139,89,0.15);
  border-color: var(--caramel-400);
}
.topping-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: transparent;
  transition: all var(--t-fast);
}
.topping-toggle.selected .topping-check {
  background: var(--caramel-400);
  border-color: var(--caramel-400);
  color: var(--cream-100);
}

/* Custom Message Input */
.custom-message-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  color: var(--cream-100);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--t-fast);
}
.custom-message-input::placeholder { color: rgba(255,253,249,0.3); }
.custom-message-input:focus {
  border-color: var(--gold-400);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

/* Dietary toggles */
.dietary-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.dietary-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-smooth);
  border: 1.5px solid rgba(138,175,138,0.25);
  color: rgba(138,175,138,0.7);
  background: rgba(138,175,138,0.05);
}
.dietary-pill.selected {
  background: rgba(138,175,138,0.2);
  border-color: var(--sage-400);
  color: var(--sage-400);
}

/* Quantity selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 4px;
  width: fit-content;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-100);
  background: rgba(255,255,255,0.06);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--t-fast);
}
.qty-btn:hover { background: var(--caramel-400); color: white; }
.qty-display {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream-100);
  min-width: 32px;
  text-align: center;
}

/* ─── LIVE PREVIEW CARD ───────────────────────────────────────── */
.customizer-preview {
  position: sticky;
  top: 100px;
}
.preview-card {
  background: var(--cream-100);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transition: all var(--t-slow) var(--ease-spring);
}
.preview-card-image-wrap {
  height: 320px;
  overflow: hidden;
  position: relative;
  background: var(--cream-300);
}
.preview-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--t-slower) var(--ease-smooth);
}
.preview-overlay-label {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(31,17,11,0.75);
  color: var(--gold-400);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}
.preview-message-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(31,17,11,0.8));
  padding: var(--space-lg);
}
.preview-message-text {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--gold-300);
  text-align: center;
}

.preview-card-body { padding: var(--space-xl); }
.preview-card-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cocoa-900);
  margin-bottom: var(--space-sm);
}
.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-md);
}
.preview-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--cream-300);
  color: var(--cocoa-700);
  font-weight: 500;
}

.preview-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--cream-300);
}
.preview-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cocoa-900);
}
.preview-price-sub { font-size: 0.75rem; color: var(--cocoa-600); font-family: var(--font-sans); }

/* Shimmer animation on price change */
.price-shimmer {
  background: linear-gradient(90deg, var(--cocoa-900) 25%, var(--caramel-400) 50%, var(--cocoa-900) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 1s linear;
}

/* ─── RESPONSIVE CUSTOMIZER ───────────────────────────────────── */
@media (max-width: 1024px) {
  .customizer-grid { grid-template-columns: 1fr; }
  .customizer-preview { position: static; }
  .preview-card-image-wrap { height: 240px; }
  .product-type-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 480px) {
  .product-type-grid { grid-template-columns: repeat(3, 1fr); }
  .flavor-swatches { gap: 8px; }
  .swatch-dot { width: 30px; height: 30px; }
}
