/* Sweet Like Her Bakery — ported from the Claude Design mockup */

:root {
  --pink-bg: #F6DCDA;
  --cream: #FDF7F1;
  --card: #FFFCFA;
  --rose: #A25A63;
  --rose-dark: #8E4E56;
  --blush: #DDA0A6;
  --cocoa: #3E2A20;
  --taupe: #7A6257;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  color: var(--cocoa);
  background: var(--cream);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }
button { font-family: inherit; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--pink-bg);
  box-shadow: 0 1px 0 rgba(62,42,32,0.06);
}
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.logo-link { display: flex; align-items: center; flex: 0 0 auto; }
.logo-link img { height: 50px; width: auto; }

.primary-nav {
  display: flex; align-items: center;
  gap: clamp(18px, 3vw, 40px); flex: 1; justify-content: center;
}
.primary-nav a {
  font-size: 16px; letter-spacing: 0.01em; color: var(--cocoa);
  padding: 10px 2px; min-height: 44px;
  display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease-out;
}
.primary-nav a:hover { color: var(--rose); }
.primary-nav a.active { border-bottom-color: var(--rose); }

.header-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.icon-btn {
  position: relative; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 999px; cursor: pointer;
  transition: background 160ms ease-out;
}
.icon-btn:hover { background: rgba(221,160,166,0.28); }

.cart-badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--rose); color: var(--card);
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
  transform: scale(1); transition: transform 180ms ease-out;
}
.cart-badge.bump { transform: scale(1.28); }

.burger { display: none; }

.mobile-nav { display: none; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px;
  font-size: 17px; color: var(--cocoa);
  border-bottom: 1px solid rgba(122,98,87,0.18);
}

@media (max-width: 767px) {
  .primary-nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav.open {
    display: flex; flex-direction: column;
    padding: 4px 24px 16px; background: var(--pink-bg);
    border-top: 1px solid rgba(162,90,99,0.2);
  }
}

/* ---------- Hero ---------- */
.hero { background: var(--cream); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) 1.08fr;
  align-items: stretch;
}
@media (max-width: 767px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy {
  padding: 72px 24px 72px max(24px, calc((100vw - 1392px) / 2));
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.hero-copy h1 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: clamp(52px, 8.2vw, 108px); line-height: 0.98;
  letter-spacing: -0.015em; color: var(--cocoa); text-wrap: balance;
}
.hero-copy h1 .nowrap { white-space: nowrap; }
#hero-tagline {
  font-size: 19px; line-height: 1.65; color: var(--cocoa); max-width: 30ch;
  white-space: pre-line;
}
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-note { font-size: 16px; line-height: 1.6; color: var(--taupe); }

.hero-photo {
  position: relative; width: 100%; height: 100%;
  min-height: clamp(340px, 40vw, 620px); background: var(--cream);
}
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 50%;
}

/* ---------- Buttons ---------- */
.btn-call {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 52px; padding: 0 30px; border: 0; border-radius: 4px;
  background: var(--rose); color: var(--card);
  font-size: 18px; font-weight: 700; cursor: pointer;
  transition: background 170ms ease-out;
}
.btn-call:hover { background: var(--rose-dark); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 4px;
  border: 1.5px solid var(--rose); color: var(--rose); background: transparent;
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background 170ms ease-out, color 170ms ease-out;
}
.btn-outline:hover { background: var(--rose); color: var(--card); }

/* ---------- Section headings ---------- */
.eyebrow {
  font-family: 'Parisienne', cursive;
  font-size: 30px; color: var(--rose); margin-bottom: 2px;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: clamp(32px, 4.4vw, 48px); color: var(--cocoa);
}

/* ---------- Menu ---------- */
.menu { background: var(--cream); padding: 88px 24px 96px; }
.menu-inner { max-width: 1200px; margin: 0 auto; }
.menu-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 12px 32px;
  margin-bottom: 40px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(162,90,99,0.3);
}
.menu-note { font-size: 16px; line-height: 1.6; color: var(--taupe); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 40px 26px; align-items: stretch;
}
.product-card { display: flex; flex-direction: column; gap: 14px; }
.product-photo {
  aspect-ratio: 1 / 1; width: 100%;
  background-color: var(--cream);
  background-size: cover; background-position: center;
}
.product-body { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-top {
  display: flex; align-items: baseline; gap: 12px; justify-content: space-between;
}
.product-body h3 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: 21px; color: var(--cocoa);
}
.product-body .price { font-size: 16px; color: var(--taupe); }
.product-body .desc { font-size: 15px; line-height: 1.6; color: var(--taupe); }
.add-btn {
  margin-top: 8px; align-self: flex-start;
  min-height: 44px; padding: 0 20px;
  border: 1.5px solid var(--rose); border-radius: 4px;
  background: transparent; color: var(--rose);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 170ms ease-out, color 170ms ease-out;
}
.add-btn:hover { background: var(--rose); color: var(--card); }
.add-btn.added { background: var(--rose); color: var(--card); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  background: var(--pink-bg);
}
.about-photo { position: relative; min-height: 340px; height: 100%; background: var(--pink-bg); }
.about-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
}
.about-copy {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 72px clamp(24px, 6vw, 76px);
}
.about-copy .about-text {
  font-size: 17px; line-height: 1.75; color: var(--cocoa);
  max-width: 46ch; text-wrap: pretty;
}
.about-preorder { font-size: 17px; line-height: 1.75; color: var(--cocoa); max-width: 46ch; }
.about-preorder a { color: var(--rose-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Order strip ---------- */
.order-strip {
  background: var(--pink-bg);
  border-top: 1px solid rgba(162,90,99,0.22);
  padding: 26px 24px;
}
.order-strip-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 18px 32px; text-align: center;
}
.order-strip p { font-size: 16.5px; line-height: 1.6; color: var(--cocoa); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pink-bg); padding: 64px 24px 28px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 40px 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { gap: 14px; align-items: flex-start; }
.footer-script { font-family: 'Parisienne', cursive; font-size: 30px; color: var(--cocoa); }
.footer-brand p { font-size: 15.5px; line-height: 1.7; color: var(--cocoa); }
.footer-ig {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; color: var(--cocoa); min-height: 44px;
  transition: color 160ms ease-out;
}
.footer-ig:hover { color: var(--rose-dark); }
.footer-col h3 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: 19px; margin-bottom: 4px; color: var(--cocoa);
}
.footer-col a, .footer-col .footer-line {
  font-size: 15.5px; color: var(--cocoa);
  min-height: 30px; display: inline-flex; align-items: center;
  transition: color 160ms ease-out;
}
.footer-col a:hover { color: var(--rose-dark); }
.footer-logo-wrap { display: flex; align-items: center; justify-content: center; }
.footer-logo {
  width: 176px; height: 176px; border-radius: 999px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.footer-logo img { width: 100%; height: auto; }
.footer-legal {
  max-width: 1200px; margin: 44px auto 0;
  border-top: 1px solid rgba(162,90,99,0.28); padding-top: 20px;
}
.footer-legal p { text-align: center; font-size: 13.5px; color: var(--taupe); }

/* ---------- Pre-order drawer ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(62,42,32,0.28);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease-out;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed; top: 0; right: 0; z-index: 50;
  height: 100%; width: min(400px, 92vw);
  background: var(--card);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(62,42,32,0.14);
  transform: translateX(105%);
  transition: transform 200ms ease-out;
}
.cart-panel.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid rgba(122,98,87,0.16);
}
.cart-head h2 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: 24px; color: var(--cocoa);
}
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.cart-empty { margin-top: 28px; font-size: 16px; line-height: 1.7; color: var(--taupe); }

.cart-line {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0; border-bottom: 1px solid rgba(122,98,87,0.14);
}
.cart-line-photo {
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 12px;
  background-color: var(--cream);
  background-size: cover; background-position: center;
}
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-info .name {
  margin-bottom: 3px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16.5px; color: var(--cocoa);
}
.cart-line-info .each { font-size: 14px; color: var(--taupe); }
.qty-controls { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--blush); background: transparent; border-radius: 999px;
  color: var(--rose); font-size: 19px; line-height: 1; cursor: pointer;
  transition: background 160ms ease-out;
}
.qty-btn:hover { background: rgba(221,160,166,0.24); }
.qty-num { min-width: 26px; text-align: center; font-size: 16px; font-weight: 700; color: var(--cocoa); }

.cart-foot {
  padding: 20px 24px 26px;
  border-top: 1px solid rgba(122,98,87,0.16);
  background: var(--card);
}
.subtotal-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.subtotal-row .label { font-size: 16px; color: var(--taupe); }
.subtotal-row .amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px; color: var(--cocoa);
}
.checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; border: 0; border-radius: 4px;
  background: var(--rose); color: var(--card);
  font-size: 17px; font-weight: 700; cursor: pointer;
  transition: background 170ms ease-out;
}
.checkout-btn:hover { background: var(--rose-dark); }
.copy-order-btn {
  width: 100%; min-height: 44px; margin-top: 10px;
  border: 1.5px solid var(--rose); border-radius: 4px;
  background: transparent; color: var(--rose);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 170ms ease-out, color 170ms ease-out;
}
.copy-order-btn:hover { background: var(--rose); color: var(--card); }
.cart-note { margin-top: 12px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--taupe); }
.cart-error {
  margin-top: 10px; text-align: left;
  font-size: 14px; line-height: 1.55; color: var(--cocoa);
}

/* ---------- Ingredients ---------- */
.card-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ing-btn {
  min-height: 44px; padding: 0 4px;
  border: 0; background: transparent; color: var(--taupe);
  font-family: inherit; font-size: 14.5px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 160ms ease-out;
}
.ing-btn:hover { color: var(--cocoa); }

.ing-modal {
  position: fixed; z-index: 60;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px)); max-height: min(80vh, 620px);
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 6px;
  box-shadow: 0 24px 60px rgba(62,42,32,0.28);
}
.ing-modal[hidden] { display: none; }
.ing-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 20px 14px; border-bottom: 1px solid rgba(122,98,87,0.16);
}
.ing-head h2 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: 22px; color: var(--cocoa);
}
.ing-body { padding: 18px 20px 24px; overflow-y: auto; }
.ing-body p { font-size: 15.5px; line-height: 1.75; color: var(--cocoa); }
.ing-allergen {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(122,98,87,0.16);
  font-size: 14px; line-height: 1.6; color: var(--taupe);
}

/* ---------- Also baking ---------- */
.more-flavors { margin-top: 64px; padding-top: 32px; border-top: 1px solid rgba(162,90,99,0.3); }
.more-head {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: 26px; color: var(--cocoa);
}
.more-sub { margin-top: 4px; font-size: 15.5px; color: var(--taupe); }
.more-list { list-style: none; margin-top: 20px; display: grid; gap: 2px; }
.more-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(122,98,87,0.14);
}
.more-row .more-name {
  font-family: 'Playfair Display', Georgia, serif; font-size: 19px; color: var(--cocoa);
}
.more-row .more-desc { flex: 1; min-width: 180px; font-size: 15px; color: var(--taupe); }
.more-row .more-price { font-size: 16px; color: var(--taupe); }
.more-row .add-btn { margin-top: 0; white-space: nowrap; }
.more-row .ing-btn { min-height: 32px; }
