/* =========================================================
   The Doting Baker — styles
   ========================================================= */

:root {
  --plum: #4a2566;
  --plum-deep: #2c1240;
  --plum-soft: #6d4590;
  --lavender: #f4eef8;
  --lavender-2: #e7dcef;
  --blush: #fbefe5;          /* from the logo */
  --gold: #c7a26b;
  --ink: #2a2230;
  --muted: #6b6276;
  --white: #ffffff;
  --line: #ece6f0;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(44, 18, 64, 0.35);
  --shadow-soft: 0 8px 24px -14px rgba(44, 18, 64, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.005em;
}

em { font-style: italic; font-weight: 500; }

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

.section { padding: 110px 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--plum-soft);
  margin: 0 0 14px;
}
.eyebrow--light { color: #e4d3f0; }

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--plum-deep);
  margin-bottom: 22px;
}
.section-title em { color: var(--plum-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-sub { color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn--primary { background: var(--plum); color: var(--white); box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: var(--plum-deep); }

.btn--light { background: var(--white); color: var(--plum); }
.btn--light:hover { background: var(--blush); }

.btn--outline-light { border-color: rgba(255,255,255,0.7); color: var(--white); }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn--small { padding: 10px 20px; font-size: 0.8rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s, height 0.4s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.nav__logo { width: 48px; height: 48px; border-radius: 50%; }
.nav__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.4s;
}

.nav__menu { display: flex; align-items: center; gap: 34px; }
.nav__menu a:not(.btn) {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.4s;
}
.nav__menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__menu a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* scrolled state */
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  --nav-h: 66px;
}
.nav.is-scrolled .nav__brand,
.nav.is-scrolled .nav__menu a:not(.btn) { color: var(--plum-deep); }
.nav.is-scrolled .nav__cta { background: var(--plum); color: var(--white); }
.nav.is-scrolled .nav__cta:hover { background: var(--plum-deep); }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.4s;
}
.nav.is-scrolled .nav__toggle span,
.nav.is-open .nav__toggle span { background: var(--plum-deep); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--plum-deep);
}

.hero__media { position: absolute; inset: 0; }

.hero__video,
.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__video { object-fit: cover; z-index: 1; }

/* slideshow sits under the video and shows only if the video can't play */
.hero__slides { z-index: 0; }
.hero.no-video .hero__video { display: none; }
.hero__slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(44, 18, 64, 0.92) 0%, rgba(74, 37, 102, 0.78) 45%, rgba(74, 37, 102, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  padding-top: var(--nav-h);
  max-width: 1180px;
}
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 600;
  max-width: 15ch;
  margin-bottom: 26px;
}
.hero__title em { color: #e9d6f5; font-weight: 500; }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 300;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@media (max-width: 600px), (max-height: 720px) {
  .hero__scroll { display: none; }
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--blush);
  border-bottom: 1px solid #f1e0d2;
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: var(--plum-deep);
  white-space: nowrap;
}
.marquee__track i { font-style: normal; color: var(--gold); font-size: 0.9rem; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.about__badge {
  position: absolute;
  right: -22px;
  bottom: 44px;
  width: 118px; height: 118px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--white);
  display: grid;
  place-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}
.about__badge strong {
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.about__badge span { font-family: var(--font-display); font-size: 2rem; line-height: 1; }

.about__text p { color: #4a4252; margin: 0 0 18px; }

.about__quote {
  margin: 28px 0;
  padding: 6px 0 6px 24px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--plum);
}

.about__creds {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.about__creds li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--lavender);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--plum-deep);
}
.cred__icon { color: var(--plum-soft); }

/* ---------- Promise ---------- */
.promise {
  background: var(--lavender);
  padding: 70px 0;
}
.promise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.promise__item { text-align: center; padding: 0 10px; }
.promise__item h3 {
  font-size: 1.65rem;
  color: var(--plum-deep);
  margin-bottom: 10px;
}
.promise__item h3::before {
  content: "✦";
  display: block;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.promise__item p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.promise__item .promise__disclaimer {
  margin-top: 12px;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--plum-soft);
}

/* ---------- Bakes / cards ---------- */
.bakes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.card__media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: var(--lavender);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--plum);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* elegant stand-ins until real photos are added */
.card__media--placeholder {
  display: grid;
  place-items: center;
  text-align: center;
}
.card__media--caramel {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.45), transparent 45%),
    linear-gradient(160deg, #f3dcc0 0%, #d9a46b 55%, #a8683a 100%);
}
.card__media--chocolate {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.18), transparent 45%),
    linear-gradient(160deg, #8a5a44 0%, #5b3326 55%, #2f1912 100%);
}
.placeholder__label {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.15;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 14px rgba(0,0,0,0.2);
  padding: 0 16px;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}
.card__title { font-size: 1.55rem; color: var(--plum-deep); margin-bottom: 10px; }
.card__desc { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin: 0 0 18px; flex: 1; }
.card__link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum);
  text-decoration: none;
}
.card__link span { display: inline-block; transition: transform 0.3s var(--ease); }
.card__link:hover span { transform: translateX(5px); }

/* ---------- Celebrate band ---------- */
.celebrate {
  padding: 0 0 110px;
}
.celebrate__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 70px;
  background: var(--blush);
  border-radius: 28px;
  padding: 56px;
}
.celebrate__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.celebrate__text p:not(.eyebrow) { color: #4a4252; margin: 0 0 28px; max-width: 480px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--lavender); }
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.quote-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: 6px; right: 26px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--lavender-2);
}
.quote-card__stars { color: var(--gold); letter-spacing: 0.15em; margin-bottom: 16px; }
.quote-card blockquote {
  margin: 0 0 26px;
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.45;
  color: var(--ink);
}
.quote-card figcaption {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.quote-card figcaption strong { font-weight: 600; color: var(--plum-deep); }
.quote-card figcaption span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Order ---------- */
.order {
  position: relative;
  padding: 120px 0;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(199,162,107,0.18), transparent 45%),
    linear-gradient(135deg, var(--plum-deep), var(--plum));
}
.order__inner { max-width: 760px; }
.order__title { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 20px; }
.order__title em { color: #e9d6f5; }
.order__lead { font-weight: 300; color: rgba(255,255,255,0.88); margin: 0 auto 36px; max-width: 560px; }
.order__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.order__note { margin: 28px 0 0; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 40px; background: var(--white); border-top: 1px solid var(--line); }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px 40px;
  align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 18px; }
.footer__logo { width: 72px; height: 72px; border-radius: 50%; }
.footer__brand p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer__links a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum-deep);
}
.footer__links a:hover { color: var(--plum-soft); }
.footer__copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.bakes__more { margin: 40px 0 0; text-align: center; }
.btn--ghost { background: var(--white); border-color: var(--lavender-2); color: var(--plum-deep); }
.btn--ghost:hover { background: var(--lavender); }

/* =========================================================
   Shared UI (sizes, quantity, modal, toast)
   ========================================================= */
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }

/* nav additions */
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__menu { margin-left: auto; }
.nav__menu + .nav__actions { margin-left: 22px; }
@media (max-width: 900px) {
  .nav__actions { position: relative; z-index: 2; }
  .nav__user { color: var(--muted); }
}
.nav__user {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.4s;
}
.nav.is-scrolled .nav__user { color: var(--muted); }

.nav__cart {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, color 0.4s;
}
.nav__cart:hover { background: rgba(255,255,255,0.14); }
.nav.is-scrolled .nav__cart,
.nav.is-open .nav__cart { color: var(--plum-deep); }
.nav.is-scrolled .nav__cart:hover { background: var(--lavender); }
.nav__cart-count {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

/* product card footer */
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card__price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--plum-deep);
  min-height: 1.4em;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* size picker */
.sizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 8px;
  margin: -4px 0 16px;
}
.sizes__opt { position: relative; cursor: pointer; }
.sizes__opt input { position: absolute; opacity: 0; pointer-events: none; }
.sizes__opt span {
  display: grid;
  gap: 1px;
  height: 100%;
  padding: 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  line-height: 1.3;
  transition: border-color 0.2s, background 0.2s;
}
.sizes__opt strong { font-size: 0.88rem; font-weight: 600; color: var(--plum-deep); }
.sizes__opt small { font-size: 0.74rem; color: var(--muted); }
.sizes__opt em { font-style: normal; font-size: 0.8rem; font-weight: 500; color: var(--plum); }
.sizes__opt:hover span { border-color: var(--lavender-2); }
.sizes__opt input:checked + span { border-color: var(--plum); background: var(--lavender); }
.sizes__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.icon-btn {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--plum-deep);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.icon-btn:hover { background: var(--lavender); }

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal__backdrop,
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 18, 64, 0.55);
  backdrop-filter: blur(3px);
}
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 40px 36px 34px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: popIn 0.35s var(--ease);
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
}
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal__logo { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; }
.modal__title { font-size: 2rem; color: var(--plum-deep); margin-bottom: 6px; }
.modal__sub { margin: 0 0 22px; color: var(--muted); font-size: 0.95rem; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 22px;
  background: var(--lavender);
  border-radius: 999px;
}
.tabs__btn {
  padding: 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.tabs__btn.is-active { background: var(--white); color: var(--plum-deep); box-shadow: var(--shadow-soft); }

.form { display: grid; gap: 14px; text-align: left; }
.form__field { display: grid; gap: 6px; }
.form__field span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-deep);
}
.form__field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fdfcfe;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__field input:focus {
  outline: none;
  border-color: var(--plum-soft);
  box-shadow: 0 0 0 4px rgba(109, 69, 144, 0.14);
}
.form__msg { margin: 0; min-height: 1.2em; font-size: 0.9rem; line-height: 1.45; }
.form__msg.is-error { color: #b3261e; }
.form__msg.is-ok { color: #2e7d4f; }
.form__submit { width: 100%; margin-top: 4px; }

/* cart drawer */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__backdrop { opacity: 0; transition: opacity 0.35s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -20px 0 50px -20px rgba(44, 18, 64, 0.35);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 { font-size: 1.8rem; color: var(--plum-deep); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); background: #fdfbfe; }
.drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.drawer__total span { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.drawer__total strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--plum-deep); }
.drawer__note { margin: 0 0 16px; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
.drawer__checkout { width: 100%; }

.cart-empty { padding: 60px 10px; text-align: center; color: var(--muted); }
.cart-empty p { margin: 0 0 22px; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item__thumb {
  width: 72px; height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lavender);
}
.cart-item__thumb img,
.cart-item__ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item__ph--salted-caramel-entremet { background: linear-gradient(160deg, #f3dcc0, #d9a46b 55%, #a8683a); }
.cart-item__ph--double-chocolate-cookie { background: linear-gradient(160deg, #8a5a44, #5b3326 55%, #2f1912); }
.cart-item__name { margin: 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; color: var(--plum-deep); }
.cart-item__variant { margin: 2px 0 0; font-size: 0.82rem; font-weight: 500; color: var(--plum-soft); }
.cart-item__price { margin: 2px 0 8px; font-size: 0.82rem; color: var(--muted); }
.cart-item__end { display: grid; justify-items: end; gap: 8px; }
.cart-item__end strong { font-weight: 600; color: var(--ink); }
.cart-item__remove {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.cart-item__remove:hover { color: #b3261e; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}
.qty button {
  width: 30px; height: 30px;
  border: 0;
  background: none;
  font-size: 1rem;
  color: var(--plum-deep);
  cursor: pointer;
}
.qty button:disabled { opacity: 0.35; cursor: default; }
.qty span { min-width: 22px; text-align: center; font-size: 0.9rem; font-weight: 500; }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--plum-deep);
  color: var(--white);
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .bakes__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .section { padding: 84px 0; }

  .about__grid,
  .celebrate__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 440px; margin: 0 auto; width: 100%; }
  .about__badge { right: 0; }
  .celebrate__grid { padding: 32px; }
  .celebrate__media { max-width: 420px; }

  .promise__grid { grid-template-columns: 1fr; gap: 36px; }

  .testimonials__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scroll-padding: 0 24px;
  }
  .quote-card { scroll-snap-align: start; }

  /* mobile menu */
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav__menu {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    gap: 26px;
    padding: calc(var(--nav-h) + 24px) 24px 40px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-105%);
    transition: transform 0.45s var(--ease);
  }
  .nav.is-open .nav__menu { transform: none; }
  .nav__menu a:not(.btn) { color: var(--plum-deep); font-size: 1rem; }
  .nav__cta { background: var(--plum); color: var(--white); }
  .nav.is-open .nav__brand { color: var(--plum-deep); position: relative; z-index: 2; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .nav__name { font-size: 1.2rem; }
  .nav__logo { width: 40px; height: 40px; }

  .bakes__grid { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 4 / 3.2; }

  .hero__actions .btn,
  .order__actions .btn { width: 100%; }

  .about__media img { border-radius: 160px 160px var(--radius) var(--radius); }
  .about__badge { width: 96px; height: 96px; bottom: 24px; }
  .about__badge span { font-size: 1.6rem; }

  .celebrate { padding-bottom: 84px; }
  .celebrate__grid { padding: 22px; border-radius: 22px; }

  .testimonials__grid { margin: 0 -20px; padding-left: 20px; padding-right: 20px; grid-auto-columns: 88%; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand { flex-direction: column; }
  .footer__links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
