:root {
  --pink-50: #fdf2f7;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --purple-50: #faf5ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --ink: #4a3440;
  --ink-soft: #7a5c68;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(236, 72, 153, 0.12);
}

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

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--pink-50) 0%, #fff 30%, var(--purple-50) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.brand-script {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: var(--pink-600);
}

h2 {
  font-size: 1.7rem;
  text-align: center;
  margin-bottom: 0.6rem;
  color: var(--ink);
  font-weight: 800;
}

section { padding: 2.2rem 1.1rem; max-width: 720px; margin: 0 auto; }

/* HERO */
.hero {
  background: radial-gradient(circle at 20% 20%, var(--pink-100), transparent 55%),
              radial-gradient(circle at 85% 30%, var(--purple-100), transparent 55%),
              linear-gradient(160deg, #fff 0%, var(--pink-50) 60%, var(--purple-50) 100%);
  text-align: center;
  padding: 3.2rem 1.2rem 2.6rem;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--purple-500);
  margin-bottom: 0.4rem;
}
.hero .brand-script { font-size: 3.1rem; line-height: 1.1; }
.tagline {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0.35rem 0 1.3rem;
  font-size: 1.05rem;
}
.hero-note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-soft); }

/* BUTTONS */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink-400), var(--purple-400));
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-lg { font-size: 1.12rem; padding: 1rem 2.1rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.92rem; }
.btn-send {
  background: var(--card);
  color: var(--pink-600);
  border: 2px solid var(--pink-300);
  width: 100%;
  margin-bottom: 0.6rem;
}

/* ABOUT */
.about p { text-align: center; color: var(--ink-soft); font-size: 1.02rem; max-width: 560px; margin: 0 auto; }

/* MENU */
.menu-hint { text-align: center; color: var(--ink-soft); margin-bottom: 1.4rem; font-size: 0.95rem; }
.category { margin-bottom: 2.4rem; }
.cat-title { text-align: center; margin-bottom: 0.2rem; }
.cat-title span {
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
  border: 2px solid var(--pink-200);
  padding: 0.35rem 1.4rem;
  border-radius: 999px;
  color: var(--pink-600);
}
.cat-sub { text-align: center; color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 1rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
  position: relative;
}
.card:active { border-color: var(--pink-300); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.card .tile {
  width: 100%; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
  font-size: 2.4rem;
}
.card-body { padding: 0.6rem 0.7rem 0.75rem; text-align: center; }
.card-body h4 { font-size: 0.95rem; font-weight: 800; }
.card-body p { font-size: 0.78rem; color: var(--ink-soft); }
.star-badge {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-500));
  color: #fff; font-size: 0.68rem; font-weight: 800;
  padding: 0.22rem 0.6rem; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* BUILDER PANELS */
.builder-panel {
  background: var(--card);
  border: 2px solid var(--purple-200);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-top: 1.2rem;
  box-shadow: var(--shadow);
}
.builder-panel h4 { text-align: center; margin-bottom: 0.25rem; font-size: 1.1rem; }
.builder-sub { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 1rem; }
.flavor-pickers { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.flavor-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--pink-50);
  border-radius: 12px; padding: 0.45rem 0.7rem;
}
.flavor-row .fname { font-weight: 700; font-size: 0.92rem; }
.stepper { display: flex; align-items: center; gap: 0.55rem; }
.stepper button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--pink-300); background: #fff;
  color: var(--pink-600); font-size: 1.1rem; font-weight: 800;
  cursor: pointer; line-height: 1;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper .qv { min-width: 1.6rem; text-align: center; font-weight: 800; }
.builder-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.05rem; margin-bottom: 0.9rem; padding: 0 0.2rem;
}
.builder-panel .btn { width: 100%; }

.size-guide {
  background: linear-gradient(135deg, var(--purple-100), var(--pink-100));
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
}
.size-guide h4 { margin-bottom: 0.4rem; }
.size-guide ul { list-style: none; font-size: 0.92rem; }
.size-guide li { padding: 0.15rem 0; }

.sampler-options { display: flex; gap: 0.8rem; margin-bottom: 0.4rem; }
.sampler-opt {
  flex: 1; cursor: pointer; font-family: inherit;
  background: var(--card); border: 2px solid var(--purple-200);
  border-radius: var(--radius); padding: 0.9rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  box-shadow: var(--shadow);
}
.sampler-opt strong { font-size: 1.05rem; }
.sampler-opt span { color: var(--pink-600); font-weight: 800; font-size: 1.2rem; }
.sampler-opt.active { border-color: var(--pink-500); background: var(--pink-50); }

.flavor-line { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.9rem; }
.flavor-ask { text-align: center; font-weight: 800; color: var(--pink-600); font-size: 1.05rem; margin-top: 0.4rem; }

/* CHECKOUT */
.checkout { background: #fff; border-radius: 28px; box-shadow: var(--shadow); margin-bottom: 1rem; }
.min-progress { margin-bottom: 1.1rem; }
.min-bar { height: 12px; background: var(--pink-100); border-radius: 999px; overflow: hidden; }
.min-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--pink-400), var(--purple-400));
  border-radius: 999px; transition: width 0.3s ease;
}
.min-progress p { text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--pink-600); margin-top: 0.4rem; }
.min-progress.done p { color: #2f9e6e; }

.cart-items { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 1rem 0; }
.cart-line {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--pink-50); border-radius: 14px; padding: 0.55rem 0.7rem;
}
.cart-line img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.cart-line .tile-sm {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink-200), var(--purple-200));
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.cart-line .cl-info { flex: 1; min-width: 0; }
.cart-line .cl-info strong { font-size: 0.9rem; display: block; }
.cart-line .cl-info small { color: var(--ink-soft); font-size: 0.78rem; display: block; }
.cart-line .cl-price { font-weight: 800; font-size: 0.9rem; white-space: nowrap; }
.cl-remove { border: none; background: none; color: var(--ink-soft); font-size: 1.1rem; cursor: pointer; padding: 0.2rem; }
.stepper.small button { width: 26px; height: 26px; font-size: 0.95rem; }

.cart-totals { border-top: 2px dashed var(--pink-200); padding-top: 0.8rem; margin-bottom: 1.1rem; }
.cart-totals .row { display: flex; justify-content: space-between; padding: 0.2rem 0; font-size: 0.95rem; }
.cart-totals .row.savings { color: #2f9e6e; font-weight: 700; }
.cart-totals .row.total { font-size: 1.15rem; font-weight: 800; }

.order-fields label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 0.8rem; }
.order-fields textarea, .order-fields input {
  width: 100%; margin-top: 0.3rem; font-family: inherit; font-size: 0.95rem;
  border: 2px solid var(--pink-200); border-radius: 12px; padding: 0.65rem 0.8rem;
  background: #fff; color: var(--ink);
}
.order-fields textarea:focus, .order-fields input:focus { outline: none; border-color: var(--pink-400); }
.field-row { display: flex; gap: 0.7rem; }
.field-row label { flex: 1; }

.checkout h3 { text-align: center; margin: 1.2rem 0 0.2rem; }
.send-hint { text-align: center; color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 0.9rem; }

/* POLICIES */
.policies ul { list-style: none; max-width: 560px; margin: 0 auto; }
.policies li {
  background: var(--card); border-radius: 14px; padding: 0.7rem 1rem;
  margin-bottom: 0.55rem; box-shadow: var(--shadow); font-size: 0.93rem;
}

/* BAKER */
.baker { text-align: center; }
.baker-photo {
  width: 170px; height: 170px; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--pink-200); box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.baker p { max-width: 560px; margin: 0 auto; color: var(--ink-soft); }

/* FOOTER */
footer {
  text-align: center; padding: 2.4rem 1.2rem 6.5rem;
  background: linear-gradient(180deg, transparent, var(--pink-100));
  border-top-left-radius: 36px; border-top-right-radius: 36px;
}
footer .brand-script { font-size: 2rem; }
.contact-line { margin: 0.6rem 0; }
.contact-line a { color: var(--pink-600); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.social-links { display: flex; gap: 0.8rem; justify-content: center; margin-bottom: 1.1rem; }
.social-links a {
  background: #fff; border: 2px solid var(--pink-200); color: var(--pink-600);
  font-weight: 800; text-decoration: none; padding: 0.5rem 1.3rem; border-radius: 999px;
  font-size: 0.92rem;
}
.review-cta {
  display: inline-block; margin-bottom: 1rem; font-weight: 800; color: var(--purple-500);
  text-decoration: none; font-size: 1rem;
}
.fine { color: var(--ink-soft); font-size: 0.82rem; }

/* CART BAR */
.cart-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  background: #fff; border: 2px solid var(--pink-200); border-radius: 20px;
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.22);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.9rem; z-index: 50; max-width: 700px; margin: 0 auto;
}
.cart-bar-info strong { display: block; font-size: 0.92rem; }
.cart-bar-info span { color: var(--pink-600); font-weight: 800; }

/* MODAL */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(74, 52, 64, 0.55);
  display: flex; align-items: flex-end; justify-content: center; z-index: 100;
}
@media (min-width: 560px) { .modal-backdrop { align-items: center; padding: 1.5rem; } }
.modal {
  background: #fff; width: 100%; max-width: 520px;
  border-radius: 26px 26px 0 0; max-height: 88vh; overflow-y: auto;
  padding: 1.4rem 1.3rem 1.6rem; position: relative;
  animation: slideUp 0.22s ease;
}
@media (min-width: 560px) { .modal { border-radius: 26px; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 10px; right: 14px; border: none; background: var(--pink-100);
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer;
  color: var(--pink-600); line-height: 1;
}
.modal img.detail-photo { width: 100%; border-radius: 16px; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 0.9rem; }
.modal .tile-lg {
  width: 100%; aspect-ratio: 4/3; border-radius: 16px; margin-bottom: 0.9rem;
  background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
  display: flex; align-items: center; justify-content: center; font-size: 3.4rem;
}
.modal h3 { font-size: 1.35rem; margin-bottom: 0.15rem; padding-right: 2rem; }
.modal .m-sub { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.6rem; }
.modal .m-desc { margin-bottom: 0.7rem; }
.modal .m-meta { font-size: 0.88rem; margin-bottom: 0.4rem; }
.modal .m-meta strong { color: var(--pink-600); }
.modal .allergen { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.84rem; font-weight: 700; margin-bottom: 0.8rem; }
.modal .qty-row { display: flex; align-items: center; justify-content: space-between; margin: 1rem 0; }
.modal .qty-row .m-price { font-size: 1.25rem; font-weight: 800; color: var(--pink-600); }
.modal .btn { width: 100%; }
.modal .dm-note { text-align: center; margin-top: 0.7rem; font-size: 0.9rem; }
.modal .dm-note a { color: var(--purple-500); font-weight: 800; }
