:root {
  --chocolate: #3b2415;
  --chocolate-light: #5c3a24;
  --strawberry: #d6336c;
  --strawberry-dark: #a61e4d;
  --blush: #ffe3ee;
  --blush-deep: #f8b8d4;
  --rose: #e888b3;
  --rose-dark: #c2478a;
  --gold: #c9a15a;
  --gold-light: #e9d8ae;
  --cream: #fff8f3;
  --cream-dark: #f5e9df;
  --text: #2b1b12;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(194, 71, 138, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--blush);
  background-image:
    radial-gradient(circle at 12% 15%, rgba(248, 184, 212, 0.65), transparent 42%),
    radial-gradient(circle at 88% 10%, rgba(233, 216, 174, 0.45), transparent 45%),
    radial-gradient(circle at 80% 78%, rgba(248, 184, 212, 0.55), transparent 48%),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.8), transparent 50%),
    linear-gradient(160deg, #fff6f9 0%, #ffe9f2 45%, #fdf3e6 100%);
  background-attachment: fixed;
  background-size: cover;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--chocolate); }

a { color: var(--rose-dark); }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--rose-dark) 0%, var(--rose) 100%);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(194, 71, 138, 0.22);
}

.btn-secondary {
  background: var(--white);
  color: var(--rose-dark);
  border: 1px solid var(--rose);
  align-self: flex-start;
}
.btn-secondary:hover { background: var(--blush); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

/* Payment buttons carry the Sashaberries look rather than each app's branding. */
.btn-pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  background: var(--white);
  color: var(--rose-dark);
  border: 1px solid var(--blush-deep);
  box-shadow: 0 4px 14px rgba(194, 71, 138, 0.10);
  padding: 0.7rem 1.25rem;
}
.btn-pay:hover {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(194, 71, 138, 0.22);
}
.btn-pay-sub {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 251, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(248, 184, 212, 0.35), 0 6px 20px rgba(194, 71, 138, 0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-mark { height: 44px; width: auto; display: block; }
.logo-wordmark { height: 26px; width: auto; display: block; }

nav { display: flex; gap: 1.5rem; }
nav a { text-decoration: none; color: var(--chocolate); font-weight: 600; }
nav a:hover { color: var(--strawberry-dark); }

.cart-toggle {
  background: var(--chocolate);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 55%, #b23c78 100%);
  color: var(--white);
  text-align: center;
  padding: 6rem 1.5rem 8rem;
}
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 680px;
  max-width: 130%;
  transform: translate(-50%, -50%);
  opacity: 0.10;
  filter: brightness(0) invert(1);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, #fff6f9);
  pointer-events: none;
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 0.75rem; text-shadow: 0 2px 18px rgba(0,0,0,0.15); }
.hero p { font-size: 1.1rem; margin-bottom: 1.75rem; font-weight: 300; }
.hero .btn-primary {
  background: var(--white);
  color: var(--rose-dark);
  border: 1px solid var(--gold-light);
}
.hero .btn-primary:hover { background: var(--gold-light); color: var(--chocolate); }

/* Sections */
section { max-width: 1100px; margin: 0 auto; padding: 3.5rem 1.5rem; }
section h2 { text-align: center; margin-bottom: 0.5rem; font-size: 2rem; }
section h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  border-radius: 999px;
}
.menu-note { text-align: center; color: var(--chocolate-light); margin-bottom: 2rem; font-weight: 300; }

/* Menu grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.menu-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(194, 71, 138, 0.18);
}

.menu-item img {
  width: 100%;
  /* Item photos are portrait (3:4); a square frame keeps far more of the
     subject in view than a short landscape strip did. */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: var(--cream-dark);
  border-radius: var(--radius) var(--radius) 0 0;
}

.menu-item-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.menu-item-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.menu-item-body p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--chocolate-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.option-label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.25rem; }
.option-select {
  width: 100%;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  background: var(--white);
  font-family: inherit;
}
.option-select.visually-hidden { display: none; }

.custom-select { position: relative; margin-bottom: 0.75rem; }
.custom-select-toggle {
  width: 100%;
  text-align: left;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  font-size: 0.9rem;
  background: var(--white);
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
}
.custom-select-toggle::after { content: '▾'; float: right; color: var(--rose-dark); }
.custom-select-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--blush-deep);
  border-radius: 8px;
  margin-top: 2px;
  box-shadow: var(--shadow);
}
.custom-select-panel.open { display: block; }
.custom-select-option { padding: 0.5rem 0.6rem; cursor: pointer; font-size: 0.9rem; }
.custom-select-option:hover { background: var(--blush); }

.see-more-btn {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rose-dark);
  cursor: pointer;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(194, 71, 138, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.see-more-btn:hover { color: var(--gold); border-bottom-color: var(--gold); }

.menu-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.price { font-family: 'Playfair Display', serif; font-weight: 700; color: var(--gold); font-size: 1.15rem; }

.qty-controls { display: flex; align-items: center; gap: 0.5rem; }
.qty-controls button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--blush-deep);
  background: var(--blush);
  color: var(--rose-dark);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.qty-controls span { min-width: 1.2rem; text-align: center; }

.add-btn {
  background: linear-gradient(135deg, var(--rose) 0%, var(--rose-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: box-shadow 0.2s ease;
}
.add-btn:hover { box-shadow: 0 6px 16px rgba(194, 71, 138, 0.3); }

/* Gallery carousel */
.gallery-blurb { max-width: 720px; margin-left: auto; margin-right: auto; }

.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.carousel-viewport {
  overflow: hidden;
  flex: 1;
  padding: 1.5rem 0;
}
.carousel-track {
  display: flex;
  will-change: transform;
  /* Position is driven per-frame in JS — no CSS transition here or it fights the drift. */
}
.carousel-slide {
  margin: 0;
  padding: 0 0.6rem;
  box-sizing: border-box;
}
.carousel-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(194, 71, 138, 0.10);
  transform: scale(0.9);
  opacity: 0.55;
  filter: saturate(0.85);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s ease,
              box-shadow 0.6s ease,
              filter 0.6s ease;
}
.carousel-slide.is-center .carousel-card {
  transform: scale(1.06);
  opacity: 1;
  filter: saturate(1);
  box-shadow: 0 18px 44px rgba(194, 71, 138, 0.26);
}
.carousel-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
.carousel-card figcaption {
  padding: 0.7rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--chocolate);
  text-align: center;
}
.carousel-slide.is-center .carousel-card figcaption { color: var(--rose-dark); }

.carousel-arrow {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--blush-deep);
  background: rgba(255, 255, 255, 0.9);
  color: var(--rose-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(194, 71, 138, 0.14);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover {
  background: var(--rose-dark);
  color: var(--white);
  border-color: var(--rose-dark);
  transform: scale(1.06);
}

/* About */
.about { text-align: center; }
.about p {
  max-width: 660px;
  margin: 0 auto 1.15rem;
  color: var(--chocolate-light);
  line-height: 1.8;
}
.about p:last-child { margin-bottom: 0; }
/* Lead paragraph sits slightly larger and darker to draw the eye in. */
.about p:first-of-type {
  font-size: 1.05rem;
  color: var(--text);
}

/* Order form */
.order-section {
  background: linear-gradient(160deg, var(--white) 0%, var(--blush) 100%);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(194, 71, 138, 0.12);
}
#order-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.3rem; }
.form-row label { font-weight: 600; font-size: 0.9rem; }
.field-hint { font-size: 0.8rem; color: var(--rose-dark); font-weight: 400; }
.form-row input, .form-row select, .form-row textarea {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--blush-deep);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
.form-row input:disabled { background: var(--cream-dark); color: var(--chocolate-light); cursor: not-allowed; }
.payment-status { font-size: 0.85rem; font-weight: 600; min-height: 1.1em; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.18);
}
.form-row textarea[readonly] { background: var(--blush); color: var(--chocolate-light); }
.hidden-field { display: none; }
.form-status { font-weight: 600; }

/* Footer */
.site-footer { text-align: center; padding: 2rem; color: var(--chocolate-light); font-size: 0.9rem; }

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: var(--white);
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 40;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; }
.cart-drawer-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; margin: 1rem 0; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid var(--blush); font-size: 0.9rem; }
.cart-line-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.cart-remove {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: none;
  background: var(--blush);
  color: var(--rose-dark);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}
.cart-remove:hover { background: var(--rose-dark); color: var(--white); }
.cart-subline {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--chocolate-light);
  padding: 0.25rem 0;
}
.cart-total { display: flex; justify-content: space-between; font-weight: 700; padding: 0.75rem 0; border-top: 2px solid var(--gold-light); color: var(--rose-dark); }
.cart-checkout { text-align: center; }

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 30;
  display: none;
}
.cart-backdrop.open { display: block; }

/* Payment modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 36, 21, 0.45);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--chocolate-light);
}
.modal h3 { margin-top: 0; }
#modal-total { color: var(--gold); }
.payment-links { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.25rem 0; }
.modal-note { font-size: 0.8rem; color: var(--chocolate-light); margin-bottom: 1rem; }

/* Soft entrance for popups */
.modal-overlay.open .modal {
  animation: modal-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Full description popup — warm cream tone + gold hairline for gentle contrast */
.desc-modal {
  text-align: left;
  max-width: 460px;
  background: linear-gradient(165deg, #fffdfa 0%, var(--cream-dark) 100%);
  border: 1px solid var(--gold-light);
  box-shadow: 0 20px 50px rgba(59, 36, 21, 0.22);
  padding: 2rem 1.9rem 1.9rem;
}
.desc-modal h3 {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.desc-modal h3::after {
  content: '';
  display: block;
  width: 46px;
  height: 2px;
  margin: 0.65rem auto 0;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  border-radius: 999px;
}
.desc-modal p {
  margin: 0;
  color: var(--chocolate-light);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
}

/* Item detail / customize modal */
.item-modal { text-align: left; max-height: 85vh; overflow-y: auto; }
.item-modal img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.item-modal h3 { text-align: center; }
.item-modal-desc { color: var(--chocolate-light); font-size: 0.9rem; margin-bottom: 1rem; }
.item-modal #item-modal-add-btn { width: 100%; }
.modal-qty-controls { justify-content: center; margin: 1rem 0; }

@media (max-width: 640px) {
  nav { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .cart-drawer { width: 85%; right: -100%; }
}
