/* ==========================================================
   Sweet Verde Bakery — Stylesheet
   Theme: Green + White, clean sans-serif, premium/simple
   ========================================================== */

:root {
  --green-900: #163d2e;
  --green-800: #1c4d3a;
  --green-700: #21654a;
  --green-600: #2a7a59;
  --green-500: #359469;
  --green-300: #a9d9bf;
  --green-100: #eef8f1;
  --green-50:  #f6fbf8;

  --white: #ffffff;
  --gray-800: #2b3330;
  --gray-600: #5b655f;
  --gray-400: #93a099;
  --gray-200: #e3e9e5;
  --gray-100: #f2f5f3;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(22, 61, 46, 0.08);
  --shadow-md: 0 6px 20px rgba(22, 61, 46, 0.10);
  --shadow-lg: 0 14px 40px rgba(22, 61, 46, 0.14);

  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  color: var(--green-900);
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section {
  padding: 64px 0;
}

.section--tint {
  background: var(--green-50);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head h2 { font-size: 1.7rem; margin-bottom: 6px; }
.section-head p { color: var(--gray-600); margin: 0; max-width: 520px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); }

.btn-outline {
  background: var(--white);
  color: var(--green-700);
  border-color: var(--green-500);
}
.btn-outline:hover { background: var(--green-100); }

.btn-ghost {
  background: transparent;
  color: var(--green-800);
}
.btn-ghost:hover { background: var(--green-100); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-900);
}
.brand i { color: var(--green-600); font-size: 1.35rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--gray-800);
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--green-100);
  color: var(--green-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--green-800);
  font-size: 1.05rem;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--green-100); }

.cart-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background: var(--green-600);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger { display: none; }

.search-bar {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
}
.search-bar.open { display: block; }
.search-bar input {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  font-size: 0.95rem;
  font-family: inherit;
}
.search-bar input:focus { outline: none; border-color: var(--green-500); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(22,61,46,0.35);
  z-index: 900;
  display: none;
}
.mobile-nav.open { display: block; }
.mobile-nav__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(80vw, 320px);
  height: 100%;
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.22s ease;
}
@keyframes slideInRight { from { transform: translateX(24px); opacity:0;} to { transform: translateX(0); opacity:1;} }
.mobile-nav__panel a {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--gray-800);
}
.mobile-nav__panel a:hover { background: var(--green-100); }
.mobile-nav__close {
  align-self: flex-end;
  width: 38px; height: 38px;
  border: none; background: var(--green-100);
  border-radius: 50%; color: var(--green-800);
  margin-bottom: 10px;
}

/* ---------------- Hero Slider ---------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 560px;
  min-height: 300px;
  overflow: hidden;
  background: var(--green-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: flex-end;
}
.hero-slide.active { opacity: 1; visibility: visible; }

.hero-slide__art {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide__art svg { width: 100%; height: 100%; object-fit: cover; }

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,40,30,0.72) 0%, rgba(15,40,30,0.25) 55%, rgba(15,40,30,0.05) 100%);
  z-index: 1;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 28px 24px 40px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-slide__content .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-300);
  margin-bottom: 6px;
}
.hero-slide__content h2 {
  color: var(--white);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  margin-bottom: 6px;
  max-width: 560px;
}
.hero-slide__content p {
  color: rgba(255,255,255,0.88);
  max-width: 460px;
  margin: 0 0 16px;
  font-size: 0.95rem;
}
.hero-slide__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-slide__actions .btn-outline { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.6); }
.hero-slide__actions .btn-outline:hover { background: rgba(255,255,255,0.18); }

.hero-controls {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 3;
  pointer-events: none;
}
.hero-controls button {
  pointer-events: all;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.hero-controls button:hover { background: var(--white); }

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  padding: 0;
}
.hero-dots button.active { background: var(--white); width: 22px; border-radius: 999px; }

/* ---------------- Cake art placeholder (SVG-based, consistent ratio) ---------------- */
.cake-art {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cake-art i { font-size: 2.3rem; color: rgba(255,255,255,0.9); }
.cake-art.tone-green-300 { background: linear-gradient(150deg, var(--green-300), var(--green-100)); }
.cake-art.tone-green-300 i { color: var(--green-700); }
.cake-art.tone-green-500 { background: linear-gradient(150deg, var(--green-500), var(--green-300)); }
.cake-art.tone-green-700 { background: linear-gradient(150deg, var(--green-700), var(--green-500)); }
.cake-art.tone-green-900 { background: linear-gradient(150deg, var(--green-900), var(--green-700)); }

.cake-art .fav-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--gray-600);
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.cake-art .fav-btn.active { color: #d64545; }
.cake-art .fav-btn:active { transform: scale(0.9); }

/* ---------------- Cake cards ---------------- */
.cake-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.cake-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cake-card:hover .cake-art i { transform: scale(1.08); }
.cake-art i { transition: transform 0.25s ease; }

.cake-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cake-card__cat { font-size: 0.72rem; font-weight: 600; color: var(--green-600); text-transform: uppercase; letter-spacing: 0.03em; }
.cake-card__name { font-size: 1.02rem; font-weight: 700; color: var(--green-900); margin: 0; }
.cake-card__desc { font-size: 0.85rem; color: var(--gray-600); margin: 0; min-height: 2.4em; }
.cake-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cake-card__price { font-weight: 700; color: var(--green-800); font-size: 1rem; }
.cake-card__rating { font-size: 0.8rem; color: var(--gray-600); display: flex; align-items: center; gap: 4px; }
.cake-card__rating i { color: #e2b93b; }
.cake-card__actions { display: flex; gap: 8px; margin-top: 10px; }
.cake-card__actions .btn { flex: 1; padding: 10px 12px; font-size: 0.85rem; }

/* ---------------- Featured slider (horizontal) ---------------- */
.h-slider-wrap { position: relative; }
.h-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.h-slider::-webkit-scrollbar { display: none; }
.h-slider .cake-card {
  min-width: 260px;
  max-width: 260px;
  scroll-snap-align: start;
}
.h-slider-nav {
  display: flex;
  gap: 8px;
}
.h-slider-nav button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--green-500);
  background: var(--white);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
}
.h-slider-nav button:hover { background: var(--green-100); }

/* ---------------- Categories ---------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.cat-card i {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.cat-card span { font-weight: 600; font-size: 0.88rem; color: var(--gray-800); }
.cat-card:hover, .cat-card.active {
  border-color: var(--green-500);
  background: var(--green-50);
  transform: translateY(-2px);
}
.cat-card.active i { background: var(--green-600); color: var(--white); }

/* ---------------- Filters / sort bar ---------------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--green-500); }
.filter-chip.active { background: var(--green-600); border-color: var(--green-600); color: var(--white); }

.sort-select {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--gray-800);
  background: var(--white);
}

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

.load-more-wrap { text-align: center; margin-top: 28px; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: 1.6rem; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 460px; margin: 0; }
.cta-banner .btn-primary { background: var(--white); color: var(--green-800); }
.cta-banner .btn-primary:hover { background: var(--green-100); }

/* ---------------- Why choose us ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card { text-align: left; padding: 6px; }
.why-card i {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.why-card h4 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { color: var(--gray-600); font-size: 0.88rem; margin: 0; }

/* ---------------- Reviews ---------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 22px;
}
.review-card .stars { color: #e2b93b; margin-bottom: 10px; font-size: 0.85rem; }
.review-card p { color: var(--gray-800); font-size: 0.92rem; margin: 0 0 14px; }
.review-card .who { font-weight: 700; font-size: 0.85rem; color: var(--green-800); }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-info div { margin-bottom: 18px; display: flex; gap: 12px; align-items: flex-start; }
.contact-info i { color: var(--green-600); margin-top: 3px; }
.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green-500); }
.contact-form textarea { min-height: 110px; resize: vertical; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.82);
  padding: 48px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid .brand { color: var(--white); margin-bottom: 10px; }
.footer-grid p, .footer-grid a { font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(255,255,255,0.18); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 18px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,0.6);
}

/* ==========================================================
   Customize Cake Bottom Sheet
   ========================================================== */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,61,46,0.45);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sheet-overlay.open { display: block; opacity: 1; }

.customize-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1001;
  background: var(--white);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg);
  height: 88vh;
  max-width: 1100px;
  margin: 0 auto;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1), height 0.25s ease, border-radius 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.customize-sheet.open { transform: translateY(0); }
.customize-sheet.fullscreen {
  height: 100vh;
  border-radius: 0;
  max-width: 100%;
}

.sheet-handle {
  width: 44px; height: 4px;
  background: var(--gray-200);
  border-radius: 999px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.sheet-header h3 { margin: 0; font-size: 1.05rem; }
.sheet-header .sheet-header-actions { display: flex; gap: 8px; }
.sheet-header .icon-btn { background: var(--green-100); }

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.sheet-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
}

.sheet-preview {
  position: sticky;
  top: 0;
}
.sheet-preview .cake-art { aspect-ratio: 1 / 1; border-radius: var(--radius-md); }
.sheet-preview h4 { margin-top: 14px; }
.sheet-preview .base-desc { color: var(--gray-600); font-size: 0.85rem; }

.option-group { margin-bottom: 22px; }
.option-group label.group-label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--green-900);
  margin-bottom: 10px;
}
.pill-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-option {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
  transition: all 0.15s ease;
}
.pill-option:hover { border-color: var(--green-500); }
.pill-option.selected { background: var(--green-600); border-color: var(--green-600); color: var(--white); }

.color-options { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  outline: 2px solid var(--gray-200);
  cursor: pointer;
}
.color-dot.selected { outline: 2px solid var(--green-700); }

.sheet-body textarea, .sheet-body input[type=text] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  font-family: inherit;
  font-size: 0.9rem;
}
.sheet-body textarea:focus, .sheet-body input:focus { outline: none; border-color: var(--green-500); }
.char-counter { text-align: right; font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; }

.upload-box {
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.upload-box:hover { border-color: var(--green-500); }
.upload-preview { margin-top: 10px; display: none; }
.upload-preview.show { display: block; }
.upload-preview img { max-height: 120px; border-radius: var(--radius-sm); }

.qty-stepper { display: flex; align-items: center; gap: 12px; }
.qty-stepper button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 1rem;
}
.qty-stepper span { font-weight: 700; min-width: 20px; text-align: center; }

.sheet-footer {
  border-top: 1px solid var(--gray-200);
  padding: 14px 20px;
  flex-shrink: 0;
  background: var(--white);
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.price-row .label { font-size: 0.8rem; color: var(--gray-600); }
.price-row .amount { font-size: 1.4rem; font-weight: 800; color: var(--green-800); }
.price-note { font-size: 0.72rem; color: var(--gray-400); margin-bottom: 12px; }
.sheet-footer .btn-row { display: flex; gap: 10px; }
.sheet-footer .btn-row .btn { flex: 1; }

/* ==========================================================
   Cake details modal
   ========================================================== */
.details-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(22,61,46,0.45);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.details-modal-overlay.open { display: flex; }
.details-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.22s ease;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px);} to {opacity:1; transform: translateY(0);} }
.details-modal .close-btn {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none;
  color: var(--gray-800); z-index: 2;
}
.details-layout { display: grid; grid-template-columns: 1fr 1fr; }
.details-layout .cake-art { aspect-ratio: 1/1; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.details-info { padding: 26px; }
.details-info .cake-card__cat { margin-bottom: 8px; }
.details-info .rating-line { display: flex; align-items: center; gap: 6px; color: var(--gray-600); font-size: 0.88rem; margin-bottom: 14px; }
.details-info .rating-line i { color: #e2b93b; }
.details-info .price-tag { font-size: 1.4rem; font-weight: 800; color: var(--green-800); margin-bottom: 14px; }
.details-info .size-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.details-info .size-list span {
  padding: 6px 12px; border-radius: 999px; background: var(--green-100); color: var(--green-800);
  font-size: 0.78rem; font-weight: 600;
}
.details-info .btn-row { display: flex; gap: 10px; margin-top: 18px; }
.details-reviews { padding: 0 26px 26px; grid-column: 1 / -1; border-top: 1px solid var(--gray-200); margin-top: 6px; padding-top: 20px; }
.details-reviews .review-card { margin-bottom: 12px; }

/* ==========================================================
   Cart drawer
   ========================================================== */
.cart-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(22,61,46,0.4);
  z-index: 1000;
  display: none;
}
.cart-drawer-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--gray-200);
}
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.cart-item .cake-art { width: 76px; height: 76px; aspect-ratio: unset; border-radius: var(--radius-sm); flex-shrink: 0; }
.cart-item .cake-art i { font-size: 1.3rem; }
.cart-item-info { flex: 1; }
.cart-item-info h5 { margin: 0 0 4px; font-size: 0.92rem; color: var(--green-900); }
.cart-item-info .opts { font-size: 0.76rem; color: var(--gray-600); line-height: 1.5; }
.cart-item-info .row2 { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.cart-item-info .price { font-weight: 700; color: var(--green-800); font-size: 0.9rem; }
.remove-item { border: none; background: none; color: var(--gray-400); font-size: 0.9rem; }
.remove-item:hover { color: #d64545; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--gray-600); }
.cart-empty i { font-size: 2.2rem; color: var(--green-300); margin-bottom: 12px; }
.cart-drawer-footer { border-top: 1px solid var(--gray-200); padding: 16px 20px; }
.cart-drawer-footer .total-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 700; color: var(--green-900); }

/* ==========================================================
   Toast
   ========================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--green-800);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: all; }
.toast i { color: var(--green-300); }

/* ==========================================================
   Responsive breakpoints
   ========================================================== */
@media (max-width: 1024px) {
  .cake-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sheet-layout { grid-template-columns: 260px 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .details-layout { grid-template-columns: 1fr; }
  .details-layout .cake-art { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  .cake-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 44px 0; }
  .cta-banner { flex-direction: column; text-align: center; align-items: center; }
  .sheet-layout { grid-template-columns: 1fr; }
  .sheet-preview { position: static; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .brand span { display: none; }
  h1, .section-head h2 { font-size: 1.35rem; }
  .cake-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .h-slider .cake-card { min-width: 200px; max-width: 200px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .customize-sheet { height: 100vh; border-radius: 0; max-width: 100%; top: 0; }
  .cake-card__desc { min-height: 0; }
  .filter-bar { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .cake-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cake-card__body { padding: 10px 12px 12px; }
  .cake-card__actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
