/* ═══════════════════════════════════════════════════════
   LAYERED — style.css
═══════════════════════════════════════════════════════ */

/* ─── FONT FACES ──────────────────────────────────────── */
@font-face {
  font-family: 'Brodaers';
  src: url('../fonts/Brodaers-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Brodaers';
  src: url('../fonts/Brodaers-Rough.otf') format('opentype');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'Brodaers';
  src: url('../fonts/Brodaers-RoughOblique.otf') format('opentype');
  font-weight: 700; font-style: oblique;
}
@font-face {
  font-family: 'Brodaers';
  src: url('../fonts/Brodaers-Round.otf') format('opentype');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'Brodaers';
  src: url('../fonts/Brodaers-RoundOblique.otf') format('opentype');
  font-weight: 300; font-style: oblique;
}
@font-face {
  font-family: 'Sansilk';
  src: url('../fonts/Sansilk.otf') format('opentype'),
       url('../fonts/Sansilk.ttf') format('truetype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'Digital Numbers';
  src: url('../fonts/DigitalNumbers-Regular.woff') format('woff'),
       url('../fonts/DigitalNumbers-Regular.ttf') format('truetype'),
       url('../fonts/DigitalNumbers-Regular.eot') format('embedded-opentype');
  font-weight: 400; font-style: normal;
}

/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --color-nav-bg:     #6E142A;
  --color-btn-face:   #FEFBF3;
  --color-btn-base:   #FDF4DD;
  --color-btn-border: #25070E;
  --color-bar:        #F48486;
  --color-tagline:    #FEF6F6;

  --nav-top:      24px;
  --nav-width:    90%;
  --nav-padding:  16px 20px;
  --nav-radius:   20px;

  --btn-radius:   12px;
  --btn-border:   0.5px solid var(--color-btn-border);
  --btn-size:     48px;
  --btn-gap:      4px;

  --font-display: 'Brodaers', sans-serif;
  --font-script:  'Sansilk', cursive;

  --tagline-size:   44px;
  --tagline-bottom: 20px;
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100%; }
/* overflow-x needs to live on exactly one of these, not both -- setting a
   non-visible overflow-x forces overflow-y to auto-promote to "auto" too
   (CSS overflow spec), turning that element into its own independent
   scroll container whenever its scrollHeight exceeds its clientHeight.
   With it on both html AND body, both became scrollable at once, showing
   up as two separate scrollbars, with the mouse wheel sometimes scrolling
   body's own sliver of internal overflow before the page's real
   (html-level) scroll would move at all. */
html { overflow-x: hidden; }
body { font-family: var(--font-display); background: #FEF7E8; }
img  { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; padding: 0; }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%; height: 100vh; min-height: 500px;
  background-image: url('../assets/images/layered-hero-img.png');
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  opacity: 0;
}

/* ─── NAVBAR ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: var(--nav-top);
  left: 50%; transform: translateX(-50%);
  width: var(--nav-width); max-width: 1400px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--color-nav-bg);
  padding: var(--nav-padding);
  border-radius: var(--nav-radius);
  opacity: 1;
  z-index: 150;
  will-change: transform;
}

/* ─── LOGO ────────────────────────────────────────────── */
.navbar__logo { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.logo-full    { display: block; height: 36px; width: auto; object-fit: contain; }
.logo-icon    { display: none;  height: 32px; width: auto; object-fit: contain; }

/* ─── NAV BUTTON ──────────────────────────────────────── */
.nav-btn {
  position: relative;
  width: var(--btn-size);
  height: calc(var(--btn-size) + var(--btn-gap));
  flex-shrink: 0;
}

.nav-btn__face {
  position: absolute; top: 0; left: 0;
  width: var(--btn-size); height: var(--btn-size);
  background: var(--color-btn-face);
  border: var(--btn-border);
  border-radius: var(--btn-radius);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  will-change: transform;
}

.nav-btn__base {
  position: absolute; bottom: 0; left: 0;
  width: var(--btn-size); height: var(--btn-size);
  background: var(--color-btn-base);
  border: var(--btn-border);
  border-radius: var(--btn-radius);
  z-index: 1;
}

/* ─── HAMBURGER ───────────────────────────────────────── */
.hamburger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  width: 22px;
}

.bar {
  display: block;
  height: 2.5px;
  background: var(--color-bar);
  border-radius: 99px;
  transition: width 0.25s ease;
  flex-shrink: 0;
}

/* rest state */
.bar--1 { width: 50%; }
.bar--2 { width: 100%; align-self: center; }
.bar--3 { width: 50%; align-self: flex-end; }

/* hover: outer bars grow to full width */
.hamburger.is-hovered .bar--1,
.hamburger.is-hovered .bar--3 { width: 100%; }

/* ─── CART ICON ───────────────────────────────────────── */
.cart-icon { width: 22px; height: 22px; object-fit: contain; }

/* ─── BADGE ───────────────────────────────────────────── */
.hero__badge {
  position: absolute;
  right: 7%; top: 50%; transform: translateY(-50%);
  width: 215px;
  aspect-ratio: 230 / 231;
  opacity: 0; will-change: transform, opacity;
}

/* Static 15deg design tilt, kept on its own element since GSAP
   already owns the "rotation" transform on .hero__badge itself
   (entrance + idle float animations in main.js). */
.hero__badge-inner {
  position: absolute;
  inset: 0;
  transform: rotate(15deg);
}

/* Two nearly-identical star frames, hard-swapped by JS for a fast,
   snapping "electric" flicker -- no crossfade between them. */
.hero__badge-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.hero__badge-frame.is-visible { opacity: 1; }

.hero__badge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  pointer-events: none;
}

.hero__badge-line--top,
.hero__badge-line--bottom {
  font-size: 18px;
  color: #5C1123;
}

.hero__badge-line--mid {
  font-size: 22px;
  color: #F48486;
}

.hero__badge-line--bottom {
  letter-spacing: 0.53em;
  margin-right: -0.53em; /* letter-spacing adds a trailing gap after the last
                             character too, which skews centered text right */
}

/* ─── TAGLINE ─────────────────────────────────────────── */
.hero__tagline {
  position: absolute;
  bottom: var(--tagline-bottom);
  left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: var(--tagline-size);
  color: var(--color-tagline);
  letter-spacing: 0.01em;
  opacity: 0;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --tagline-size: 28px; --btn-size: 42px; }
  .logo-full { display: none; }
  .logo-icon { display: block; }
  .hero { height: 375px; min-height: 375px; }
  .hero__badge { right: 4%; top: auto; bottom: 140px; transform: none; width: 126px; }
  .hero__badge-line--top,
  .hero__badge-line--bottom { font-size: 11px; }
  .hero__badge-line--mid { font-size: 14px; }
  .hero__tagline { white-space: normal; text-align: center; width: 90%; font-size: clamp(22px, 6vw, 32px); }
}
@media (max-width: 480px) {
  :root { --nav-padding: 12px 16px; --nav-radius: 16px; }
}


/* ═══════════════════════════════════════════════════════
   MENU SECTION
═══════════════════════════════════════════════════════ */

/* ─── SECTION LAYOUT ──────────────────────────────────── */
.menu {
  background: #FEF7E8;
  padding: 36px 0 60px;
  font-family: 'Montserrat', sans-serif;
}

/* ─── HEADER ──────────────────────────────────────────── */
.menu__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: var(--nav-width);
  max-width: 1400px;
  margin: 0 auto 24px;
}

.menu__title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  color: #F48486;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.menu__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 170%;
  color: #F48486;
}

/* ─── ITEMS LIST ──────────────────────────────────────── */
.menu__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: var(--nav-width);
  max-width: 1400px;
  margin: 0 auto;
}

/* ─── SINGLE MENU ITEM ────────────────────────────────── */
.menu-item {
  display: flex;
  align-items: stretch;
  gap: 20px;
  background: #fef7e8;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0px 0px 20px 0px #00000014;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.menu-item:hover {
  box-shadow: 0px 4px 24px 0px #00000022;
}

/* Product image */
.menu-item__img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
  flex-shrink: 0;
}

/* Body: data + qty side by side */
.menu-item__body {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 80px;
  flex: 1;
}

/* Data column: info + tags */
.menu-item__data {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* Info: name + description */
.menu-item__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Side column: price on top, qty controls at the bottom */
.menu-item__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  flex-shrink: 0;
}

.menu-item__name {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 28px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.menu-item__price {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 28px;
  color: #6E142A;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-item__desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 170%;
  color: #6E142A;
  max-width: 1000px;
}

.menu-item__desc strong {
  font-weight: 700;
}

/* ─── TAGS ────────────────────────────────────────────── */
.menu-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF7E8;
  border-radius: 12px;
  padding: 8px 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #6E142A;
  white-space: nowrap;
  border: 1px solid #6E142A;
  border-radius: 12px;
}

.tag__icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ─── QUANTITY CONTROL ────────────────────────────────── */
.menu-item__qty {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Qty buttons: same 3D press-button construction as the navbar buttons */
.qty-btn {
  position: relative;
  width: 32px;
  height: 34px;
  flex-shrink: 0;
}

.qty-btn__face {
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px;
  background: var(--color-btn-face);
  border: var(--btn-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  will-change: transform;
}

.qty-btn__base {
  position: absolute; bottom: 0; left: 0;
  width: 32px; height: 32px;
  background: var(--color-btn-base);
  border: var(--btn-border);
  border-radius: 10px;
  z-index: 1;
}

.qty-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.qty-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 14px; height: 2.5px;
  background: var(--color-bar);
  border-radius: 99px;
  transform: translateY(-50%);
}

.qty-icon--plus::after {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 2.5px; height: 14px;
  background: var(--color-bar);
  border-radius: 99px;
  transform: translateX(-50%);
}

.qty-value {
  font-family: 'Brodaers', sans-serif;
  font-size: 20px;
  color: #6E142A;
  min-width: 20px;
  text-align: center;
}

/* ─── FLY TO CART ──────────────────────────────────────── */
.fly-to-cart {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FEF7E8;
  box-shadow: 0px 2px 10px 0px #00000040;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
}

/* ─── MENU RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .menu-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .menu-item__img {
    width: 100%;
    height: 200px;
  }

  .menu-item__body {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 28px;
  }

  .menu-item__data {
    justify-content: flex-start;
    gap: 16px;
  }

  /* Row (not row-reverse) keeps price — first in the markup — on the
     left, with the qty buttons on the right. */
  .menu-item__side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .menu-item__name {
    font-size: 24px;
  }

  .menu-item__price {
    font-size: 22px;
  }

  .menu-item__desc {
    font-size: 12px;
  }

  .menu-item__tags {
    column-gap: 8px;
    row-gap: 12px;
  }

  .tag {
    font-size: 12px;
  }

  .tag--wide {
    order: 99;
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  width: var(--nav-width);
  max-width: 1400px;
  margin: 0 auto 24px;
  background: var(--color-nav-bg);
  border-radius: 30px;
  padding: 40px 5% 24px;
  overflow: hidden;
}

/* ─── TOP: 3 COLUMNS ──────────────────────────────────── */
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 46px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  flex: 1;
}

.footer__col--center { align-items: center; text-align: center; }

.footer__title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: #FEF7E8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer__title-em {
  font-style: oblique;
  font-weight: 700;
}

.footer__link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #FEF7E8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #FEF7E8;
}

/* ─── SOCIAL ICONS ─────────────────────────────────────── */
.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F9DEE0;
  color: var(--color-bar);
}

.footer__social svg {
  width: 27px;
  height: 27px;
}

/* ─── DIVIDER ──────────────────────────────────────────── */
.footer__divider {
  height: 1px;
  background: rgba(254, 247, 232, 0.15);
}

/* ─── LOGO MARQUEE ─────────────────────────────────────── */
.footer__marquee {
  overflow: hidden;
  padding: 45px 0 16px;
}

.footer__marquee-track {
  display: flex;
  width: max-content;
  animation: footer-marquee 75s linear infinite;
}

.footer__marquee-set {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  flex-shrink: 0;
}

.footer__marquee-logo {
  width: 525px;
  height: auto;
  flex-shrink: 0;
}

@keyframes footer-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .footer__marquee-track { animation: none; }
}

/* ─── BOTTOM BAR ───────────────────────────────────────── */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
}

.footer__copy,
.footer__credit {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(254, 247, 232, 0.6);
}

/* ─── FOOTER RESPONSIVE ────────────────────────────────── */
@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
  }

  .footer__col--center,
  .footer__col--right {
    align-items: flex-start;
    text-align: left;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 4px;
  }
}

/* ═══════════════════════════════════════════════════════
   PRODUCT PAGE
═══════════════════════════════════════════════════════ */

/* ─── NAVBAR SPACER (pages with no hero) ───────────────
   The navbar itself is always position:fixed now (see above),
   so this empty wrapper just reserves the vertical space it
   would otherwise occupy. height is refined precisely by
   reserveNavbarSpace() in nav.js once the navbar is measured. */
.page-nav {
  height: 112px;
}

/* ─── BREADCRUMB ───────────────────────────────────────── */
.breadcrumb {
  width: var(--nav-width);
  max-width: 1400px;
  margin: 20px auto 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(110, 20, 42, 0.5);
}

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

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb__current {
  color: #6E142A;
  font-weight: 700;
}

/* ─── PRODUCT HERO ─────────────────────────────────────── */
.product-hero {
  display: flex;
  gap: 24px;
  width: var(--nav-width);
  max-width: 1400px;
  margin: 20px auto 0;
  background: #fef7e8;
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0px 0px 20px 0px #00000014;
}

.product-hero__media {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 466px;
  flex-shrink: 0;
}

.product-hero__img {
  order: 2;
  width: 390px;
  height: 390px;
  object-fit: cover;
  border-radius: 20px;
  flex-shrink: 0;
}

.product-hero__thumbs {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-hero__thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.product-hero__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero__thumb:hover { opacity: 0.85; }

.product-hero__thumb.is-active {
  opacity: 1;
  border-color: #F48486;
}

.product-hero__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.product-hero__name {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.product-hero__desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 170%;
  color: #6E142A;
  margin-top: -8px; /* offsets the 16px parent gap down to 8px */
}

.product-hero__desc strong { font-weight: 700; }

.product-hero__allergens {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 170%;
  color: #6E142A;
  margin-top: -4px; /* offsets the 16px parent gap down to 12px */
}

.product-hero__info .menu-item__tags {
  margin-top: 8px; /* offsets the 16px parent gap up to 24px */
}

.product-hero__info .tag {
  font-size: 14px;
}

.product-hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
}

.product-hero__price {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 46px;
  color: #6E142A;
  white-space: nowrap;
}

.product-hero__footer .qty-btn {
  width: 44px;
  height: 46px; /* 44px face/base + 2px reveal, matching the site's 2-face button pattern */
}

.product-hero__footer .qty-btn__face,
.product-hero__footer .qty-btn__base {
  width: 44px;
  height: 44px;
}

.product-hero__footer .qty-icon {
  width: 12px;
  height: 12px;
}

.product-hero__footer .qty-icon::before {
  width: 12px;
}

.product-hero__footer .qty-icon--plus::after {
  height: 12px;
}

.product-hero__footer .qty-value {
  font-size: 28px;
}

@media (max-width: 768px) {
  .product-hero {
    flex-direction: column;
  }

  .product-hero__media {
    flex-direction: column;
    width: 100%;
  }

  .product-hero__img {
    order: 1;
    width: 100%;
    height: 220px;
  }

  .product-hero__thumbs {
    order: 2;
    flex-direction: row;
  }

  .product-hero__name { font-size: 24px; }
  .product-hero__price { font-size: 28px; }

  .product-hero__info .menu-item__tags {
    margin-top: 4px; /* offsets the 16px parent gap up to 20px */
  }

  .product-hero__footer .qty-value {
    font-size: 16px;
  }
}

/* ─── TABS ─────────────────────────────────────────────── */
.product-tabs {
  width: var(--nav-width);
  max-width: 1400px;
  margin: 32px auto 0;
}

.product-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.product-tabs__btn {
  position: relative;
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.product-tabs__btn-face {
  position: relative;
  z-index: 2;
  display: block;
  padding: 12px 24px;
  background: #FEFBF3;
  border: 0.5px solid #25070E;
  border-radius: 15px;
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #F48486;
  white-space: nowrap;
  transform: translateY(-5px);
  will-change: transform;
}

.product-tabs__btn-base {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #FDF4DD;
  border: 0.5px solid #25070E;
  border-radius: 15px;
}

.product-tabs__btn.is-active .product-tabs__btn-face {
  transform: translateY(0);
}

.product-tabs__panel { display: none; }
.product-tabs__panel.is-active { display: block; }

.product-tabs__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 170%;
  color: #6E142A;
}

.product-tabs__item:last-child { margin-bottom: 0; }

.product-tabs__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--color-bar);
}

.product-tabs__item strong { font-weight: 700; }

.product-tabs__sublist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: -8px 0 20px 26px;
}

.product-tabs__subitem {
  position: relative;
  padding-left: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 170%;
  color: #6E142A;
}

.product-tabs__subitem::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-bar);
}

.product-tabs__subitem strong { font-weight: 700; }

/* ─── RELATED PRODUCTS ─────────────────────────────────── */
.related {
  width: var(--nav-width);
  max-width: 1400px;
  margin: 48px auto 0;
}

.related__title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #F48486;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Reuse the .menu-item card, always rendered in its "stacked" form */
.related__grid .menu-item {
  flex-direction: column;
  align-items: flex-start;
}

.related__grid .menu-item__img {
  width: 100%;
  height: 200px;
}

.related__grid .menu-item__body {
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
}

.related__grid .menu-item__data {
  justify-content: flex-start;
  gap: 12px;
}

.related__grid .menu-item__side {
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.related__grid .menu-item__name,
.related__grid .menu-item__price {
  font-size: 22px;
}

.related__grid .menu-item__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related__grid .menu-item__tags {
  column-gap: 8px;
  row-gap: 12px;
}

@media (max-width: 900px) {
  .related__grid { grid-template-columns: 1fr; }
}

.footer--product {
  margin-top: 48px;
}

/* ═══════════════════════════════════════════════════════
   CART
═══════════════════════════════════════════════════════ */

/* ─── CART BADGE (on the navbar cart button) ──────────── */
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-bar);
  color: #FEF7E8;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10px;
  z-index: 3;
}

.cart-badge.is-empty { display: none; }

/* ─── PANEL ────────────────────────────────────────────── */
.cart-panel {
  position: fixed;
  top: 90px;
  right: 5%;
  width: min(650px, 90vw);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: #FEF7E8;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  z-index: 200;
  opacity: 0;
  transform: scale(0.95) translateY(-8px);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-panel.is-open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
}

.cart-panel__title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #F48486;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cart-panel__count {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #F48486;
}

/* ─── EMPTY STATE ──────────────────────────────────────── */
.cart-panel__empty {
  display: none;
  padding: 32px 24px 40px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #6E142A;
}

.cart-panel__empty.is-visible { display: block; }

/* ─── ITEMS ────────────────────────────────────────────── */
.cart-panel__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
}

.cart-panel__items.is-hidden { display: none; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 16px;
  background: #FEF7E8;
  box-shadow: 0px 0px 20px 0px #00000014;
}

.cart-item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item__name {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cart-item__price {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6E142A;
}

/* ─── COUNTDOWN ────────────────────────────────────────── */
.cart-panel__timer {
  margin: 24px;
  padding: 20px;
  border-radius: 20px;
  /* The rect is inset 1% from every edge so the 2px stroke (which
     straddles its path, half in/half out) fully fits inside the SVG's
     own rendering viewport -- at width/height 100% with no inset, the
     outer half of the stroke sat exactly on the SVG's boundary and got
     clipped by it on every side. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect x='1%25' y='1%25' width='98%25' height='98%25' fill='none' rx='20' ry='20' stroke='%23F48486' stroke-width='2' stroke-dasharray='9 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  text-align: center;
}

.cart-panel__timer.is-hidden { display: none; }

.cart-panel__countdown {
  font-family: 'Digital Numbers', monospace;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.05em;
  color: #6E142A;
}

.cart-panel__timer-title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #F48486;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 8px;
}

.cart-panel__timer-title.is-hidden {
  display: none;
}

.cart-panel__timer-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 170%;
  color: rgba(110, 20, 42, 0.7);
  margin-top: 4px;
}

/* ─── FOOTER (total + checkout) ────────────────────────── */
.cart-panel__footer {
  background: var(--color-nav-bg);
  border-radius: 0 0 24px 24px;
  padding: 20px 24px 24px;
  margin-top: 24px;
}

.cart-panel__footer.is-hidden { display: none; }

.cart-panel__total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cart-panel__total-label {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #FEF7E8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cart-panel__total-value {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #FEF7E8;
}

.cart-panel__shipping-note {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(254, 247, 232, 0.7);
  margin-top: 4px;
}

.cart-panel__checkout {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 16px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* Same face + base 3D press-button construction as the tabs */
.cart-panel__checkout .product-tabs__btn-face {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 16px;
}

/* ─── CART RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .cart-panel {
    top: 80px;
    right: 4%;
    left: 4%;
    width: auto;
  }

  /* The expanded "Xh : XXm : XXs" format is noticeably wider than the old
     "MM:SS" one -- shrink it so it still reads as a single line instead of
     wrapping across three. */
  .cart-panel__countdown {
    font-size: 22px;
  }
}

/* ═══════════════════════════════════════════════════════
   CHECKOUT PAGE
═══════════════════════════════════════════════════════ */
.checkout {
  width: var(--nav-width);
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.checkout__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-bar);
  text-decoration: none;
}

.checkout__back.is-hidden { display: none; }
.checkout__grid.is-hidden { display: none; }

@media (max-width: 900px) {
  .checkout__back { display: none; }
}

/* ─── GRID: form / summary / place-order button ───────── */
.checkout__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  grid-template-areas:
    "form    summary"
    "place   summary";
  gap: 32px;
  align-items: start;
}

.checkout__form       { grid-area: form; }
.checkout__summary-col { grid-area: summary; position: sticky; top: 24px; }
.checkout__place-col   { grid-area: place; }

/* .auth-modal__error has no margin of its own -- inside the auth modal it
   gets spacing for free from that form's own flex gap, but the place-order
   button here isn't part of a gapped flex row, so the message sat flush
   against the button with zero space between them. */
#checkoutError.is-visible { margin-bottom: 16px; }

@media (max-width: 900px) {
  .checkout__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "form"
      "summary"
      "place";
  }
  .checkout__summary-col { position: static; }
}

/* ─── FORM SECTIONS ────────────────────────────────────── */
.checkout__section { margin-bottom: 32px; }

.checkout__section-title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.checkout__required { color: var(--color-bar); }

.checkout__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* The manual-entry address fields sit inside their own wrapper (so JS can
   show/hide the whole block when a saved address is picked instead) --
   that wrapper needs its own gap, since .checkout__fields' gap only
   spaces its own direct children, not this nested group's. */
#manualAddressFields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout__row {
  display: flex;
  gap: 12px;
}

.checkout__row > * { flex: 1; min-width: 0; }

@media (max-width: 600px) {
  .checkout__row { flex-direction: column; }
}

/* ─── INPUTS ───────────────────────────────────────────── */
.form-input,
.form-select,
.form-date input[type="date"] {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(110, 20, 42, 0.25);
  border-radius: 16px;
  background: #FEFBF3;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6E142A;
}

.form-input::placeholder { color: rgba(110, 20, 42, 0.4); }

.form-input:focus,
.form-select:focus,
.form-date input[type="date"]:focus {
  outline: none;
  border-color: #F48486;
  box-shadow: 0 0 0 3px rgba(244, 132, 134, 0.2);
}

/* Applied by checkout.js to the first empty/invalid required field on a
   failed submit attempt -- deliberately a darker, more saturated pink than
   the everyday focus glow above so it reads as "fix this" rather than just
   "this is focused". Targets .custom-select__trigger too, since selects
   enhanced by custom-select.js are display:none and can't show a highlight
   themselves -- checkout.js puts the class on their visible trigger instead. */
.form-input.checkout__field--invalid,
.form-select.checkout__field--invalid,
.form-date input[type="date"].checkout__field--invalid,
.custom-select__trigger.checkout__field--invalid {
  border-color: #6E142A;
  box-shadow: 0 0 0 3px rgba(110, 20, 42, 0.25);
  animation: checkout-field-invalid-pulse 0.4s ease;
}

@keyframes checkout-field-invalid-pulse {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E142A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}

.form-select:invalid { color: rgba(110, 20, 42, 0.4); }

/* Unstyled, input[type="date"] keeps its own native UA appearance for the
   day/month/year segments, which imposes browser-specific intrinsic sizing
   on top of our padding -- taller/wider than the other fields on desktop,
   and on iOS Safari specifically, collapsing to the width of just the date
   text instead of filling its flex slot ("very thin" on iPhone). Resetting
   appearance, same as .form-select already does below, makes it actually
   respect our width/padding like every other field. The picker icon itself
   is a separate WebKit shadow part (::-webkit-calendar-picker-indicator)
   and stays visible/stylable even with the outer appearance reset. */
.form-date input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
}

.form-date input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(19%) sepia(80%) saturate(1500%) hue-rotate(316deg);
  cursor: pointer;
}

/* ─── CUSTOM SELECT (replaces the native open-list, which
   can't be styled — the closed box above already can) ──── */
.custom-select {
  position: relative;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
}

.custom-select__trigger:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.custom-select__value.is-placeholder {
  color: rgba(110, 20, 42, 0.4);
}

.custom-select__panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  background: #FEFBF3;
  border: 1px solid rgba(110, 20, 42, 0.25);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 8px;
}

.custom-select.is-open .custom-select__panel { display: block; }

.custom-select__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6E142A;
  cursor: pointer;
}

.custom-select__option:hover,
.custom-select__option.is-selected {
  background: #FDF4DD;
}

/* ─── STATIC ROW (Shipping Fees display) ──────────────── */
.form-static-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid rgba(110, 20, 42, 0.25);
  border-radius: 16px;
  background: #FEFBF3;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6E142A;
}

.form-static-row strong { font-weight: 700; }

/* ─── CHECKBOX ─────────────────────────────────────────── */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #6E142A;
}

.form-checkbox input { display: none; }

.form-checkbox__box {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-bar);
  border-radius: 5px;
}

.form-checkbox input:checked + .form-checkbox__box {
  background: var(--color-bar);
}

.form-checkbox input:checked + .form-checkbox__box::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 9px;
  border: solid #FEF7E8;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ─── PAYMENT OPTION ───────────────────────────────────── */
.checkout__payment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(110, 20, 42, 0.25);
  border-radius: 16px;
  background: #FEFBF3;
  cursor: pointer;
}

.checkout__payment input { display: none; }

.checkout__payment-radio {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-bar);
  border-radius: 50%;
}

.checkout__payment input:checked + .checkout__payment-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-bar);
}

.checkout__payment-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #6E142A;
}

.checkout__payment-note {
  margin-left: auto;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--color-bar);
}

@media (max-width: 600px) {
  .checkout__payment-note { margin-left: 28px; }
}

/* ─── SAVED ADDRESS OPTION ─────────────────────────────── */
.address-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(110, 20, 42, 0.25);
  border-radius: 16px;
  background: #FEFBF3;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.address-option input { display: none; }

.address-option:has(input:checked) {
  border-color: var(--color-bar);
  background: #FCEFE0;
}

.address-option__radio {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-bar);
  border-radius: 50%;
}

.address-option input:checked + .address-option__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-bar);
}

.address-option__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.address-option__label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #6E142A;
}

.address-option__detail {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(110, 20, 42, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-option__default-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-bar);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #FEF7E8;
}

/* ─── PLACE ORDER BUTTON ───────────────────────────────── */
.checkout__place-btn {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.checkout__place-btn:hover { transform: scale(1.01); }

.checkout__place-btn .product-tabs__btn-face {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 16px;
}

/* ─── ORDER SUMMARY ────────────────────────────────────── */
.checkout__summary {
  background: #FEF7E8;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0px 0px 20px 0px #00000014;
}

.checkout__summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.checkout__summary-title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.checkout__summary-count {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--color-bar);
}

.checkout__summary-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.summary-item__thumb {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.summary-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.summary-item__qty {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-bar);
  color: #FEF7E8;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-item__name {
  flex: 1;
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.summary-item__price {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6E142A;
  white-space: nowrap;
}

.checkout__summary-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6E142A;
  margin-bottom: 8px;
}

.checkout__summary-divider {
  height: 1px;
  background: rgba(110, 20, 42, 0.12);
  margin: 12px 0;
}

.checkout__summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.checkout__summary-total-label {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.checkout__summary-total-value {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #6E142A;
}

.checkout__summary-note {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(110, 20, 42, 0.6);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   ORDER CONFIRMATION PAGE
═══════════════════════════════════════════════════════ */
.confirmation {
  width: var(--nav-width);
  max-width: 1400px;
  margin: 48px auto 0;
}

.confirmation__card {
  max-width: 560px;
  margin: 0 auto;
  background: #FEF7E8;
  border-radius: 24px;
  box-shadow: 0px 0px 20px 0px #00000014;
  padding: 64px 40px;
  text-align: center;
}

.confirmation__title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 32px;
  color: #F48486;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.confirmation__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 170%;
  color: #6E142A;
  max-width: 380px;
  margin: 0 auto 24px;
}

.confirmation__order-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6E142A;
  margin-bottom: 24px;
}

.confirmation__order-number strong { font-weight: 700; }

.confirmation__badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  margin: 0 auto;
}

.confirmation__badge {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 36px;
  border: 1px solid #F7D175;
  border-radius: 12px;
  background: #FCF0D1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #6E142A;
  text-align: left;
}

.confirmation__badge img {
  height: 16px;
  width: auto;
  flex-shrink: 0;
}

.confirmation__badge a {
  color: #6E142A;
  text-decoration: underline;
}

.confirmation__badge--link {
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.confirmation__badge--link:hover {
  background: #FBE7B8;
  border-color: #F0C05A;
}

.confirmation__badge-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: #6E142A;
  transition: transform 0.15s ease;
}

.confirmation__badge--link:hover .confirmation__badge-arrow {
  transform: translateX(3px);
}

.confirmation__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 380px;
  margin: 20px auto 0;
  padding: 20px;
  border: 1px solid #F7D175;
  border-radius: 16px;
  background: #FCF0D1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.confirmation__qr:hover {
  background: #FBE7B8;
  border-color: #F0C05A;
  transform: scale(1.02);
}

.confirmation__qr img {
  width: 160px;
  height: 160px;
  border-radius: 8px;
}

.confirmation__qr-caption {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #6E142A;
  text-align: center;
}

.confirmation__footnote {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: rgba(110, 20, 42, 0.7);
  margin-top: 20px;
}

@media (max-width: 600px) {
  .confirmation__card { padding: 48px 24px; }
}

/* ═══════════════════════════════════════════════════════
   NAV MENU PANEL (hamburger button)
═══════════════════════════════════════════════════════ */
.nav-menu-panel {
  position: fixed;
  top: 90px;
  left: 5%;
  width: min(380px, 90vw);
  background: #FEF7E8;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  z-index: 200;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  /* Open/close (grow + snap) and the links' springboard entrance are
     GSAP-driven in nav-menu.js, not CSS transitions -- see initNavMenuPanel(). */
}

.nav-menu-panel.is-open {
  pointer-events: auto;
}

.nav-menu-panel__links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-menu-panel__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-bar);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}

/* Underline Slide: a bar hidden under the text that grows in from the
   left on hover, instead of a plain text-decoration underline. */
.nav-menu-panel__link-text {
  position: relative;
  display: inline-block;
}

.nav-menu-panel__link-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu-panel__link:hover .nav-menu-panel__link-text::after {
  transform: scaleX(1);
}

.nav-menu-panel__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-bar);
}

/* Keeps spinning for as long as the link is hovered, not just once. */
@keyframes nav-menu-icon-spin {
  to { transform: rotate(360deg); }
}

.nav-menu-panel__link:hover .nav-menu-panel__icon {
  animation: nav-menu-icon-spin 1s linear infinite;
}

.nav-menu-panel__divider {
  height: 1px;
  background: rgba(110, 20, 42, 0.12);
  margin: 20px 0;
}

.nav-menu-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ─── ACCOUNT: signed out ──────────────────────────────── */
.nav-menu-panel__signin {
  position: relative;
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

/* ─── ACCOUNT: signed in ───────────────────────────────── */
.nav-menu-panel__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.nav-menu-panel__avatar {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid #25070E;
  background: #F9DEE0;
  color: var(--color-bar);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu-panel__avatar svg { width: 20px; height: 20px; }

.nav-menu-panel__profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-menu-panel__profile-info strong {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav-menu-panel__badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-bar);
}

.nav-menu-panel__socials {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .nav-menu-panel { top: 80px; }
}

/* ═══════════════════════════════════════════════════════
   AUTH MODAL (sign in / create account)
═══════════════════════════════════════════════════════ */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(37, 7, 14, 0.45);
}

.auth-modal__card {
  position: relative;
  width: min(360px, 90vw);
  background: #FEF7E8;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal.is-open .auth-modal__card {
  transform: scale(1);
}

.auth-modal__title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #F48486;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.auth-modal__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
  color: rgba(110, 20, 42, 0.7);
  margin-bottom: 20px;
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-modal__row {
  display: flex;
  gap: 12px;
}

.auth-modal__row .form-input {
  min-width: 0;
}

.auth-modal__submit {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.auth-modal__submit .product-tabs__btn-face {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px;
}

.auth-modal__submit.is-sent .product-tabs__btn-face {
  background: #6E142A;
  color: #FEF7E8;
}

.auth-modal__error {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: #C0334D;
  text-align: left;
}

.auth-modal__error.is-visible {
  display: block;
}

.auth-modal__toggle {
  margin-top: 16px;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(110, 20, 42, 0.7);
  text-decoration: underline;
  cursor: pointer;
}

.auth-modal__forgot-link {
  align-self: flex-end;
  margin-top: -4px;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(110, 20, 42, 0.7);
  text-decoration: underline;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   OUR STORY PAGE
═══════════════════════════════════════════════════════ */
.story-hero {
  display: flex;
  align-items: center;
  gap: 70px;
  width: var(--nav-width);
  max-width: 1400px;
  margin: 48px auto 0;
}

/* ─── PHOTO COLLAGE ────────────────────────────────────── */
.story-hero__photos {
  position: relative;
  flex-shrink: 0;
  width: 580px;
  height: 580px;
}

.story-hero__card {
  position: absolute;
}

.story-hero__card--back {
  top: 0;
  left: 0;
  width: 414px;
  transform: rotate(-5deg);
  z-index: 1;
}

.story-hero__card--front {
  top: 150px;
  left: 240px;
  width: 324px;
  aspect-ratio: 224 / 270;
  transform: rotate(5deg);
  z-index: 2;
}

.story-hero__frame {
  display: block;
  width: 100%;
  height: auto;
}

.story-hero__card--back .story-hero__photo {
  position: absolute;
  top: 23px;
  left: 23px;
  right: 23px;
  width: calc(100% - 46px);
  height: auto;
  border-radius: 2px;
}

.story-hero__card--front .story-hero__photo {
  position: absolute;
  top: 26px;
  left: 28px;
  right: 16px;
  bottom: 16px;
  width: calc(100% - 60px);
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}

.story-hero__patch {
  position: absolute;
  top: -18px;
  left: 30px;
  width: 140px;
  transform: rotate(-4deg);
  z-index: 3;
}

.story-hero__pin {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  z-index: 3;
}

.story-hero__rose {
  position: absolute;
  bottom: 46px;
  left: 400px;
  width: 74px;
  z-index: 3;
}

/* ─── CONTENT CARD ─────────────────────────────────────── */
.story-hero__content {
  flex: 1;
  background: #FEF7E8;
  border-radius: 24px;
  padding: 40px;
  margin-right: 32px;
  transform: rotate(8deg);
  box-shadow: 0px 0px 20px 0px #0000001A;
}

.story-hero__title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 28px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.story-hero__script {
  font-family: 'Sansilk', cursive;
  font-weight: 400;
  font-size: 42px;
  color: var(--color-bar);
  margin-bottom: 16px;
}

.story-hero__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 170%;
  color: #6E142A;
  margin-bottom: 28px;
}

.story-hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.story-hero__btn {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.story-hero__btn--menu .product-tabs__btn-face {
  background: #FFFFFF;
}

.story-hero__btn--contact .product-tabs__btn-face {
  background: #FCECC5;
}

/* ─── STORY HERO RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .story-hero {
    flex-direction: column;
    gap: 40px;
  }

  .story-hero__photos {
    width: 100%;
    max-width: 500px;
  }

  .story-hero__content {
    width: 100%;
    margin-right: 0;
    transform: none;
  }
}

@media (max-width: 600px) {
  .story-hero__photos {
    height: 460px;
  }

  /* Sized to fit within the narrowest supported phone's photo-collage
     container (~324px at a 360px viewport, given the page's 90% --nav-width
     gutter) -- the previous values (back:320px, front left:160/width:230)
     assumed a wider container than mobile actually has, so the front card
     bled off the right edge of the viewport by 40-50px. */
  .story-hero__card--back { width: 280px; }
  .story-hero__card--front { top: 110px; left: 90px; width: 190px; }
  .story-hero__rose { left: 230px; bottom: 30px; width: 56px; }
  .story-hero__patch { width: 100px; left: 12px; }

  .story-hero__title { font-size: 22px; }
  .story-hero__script { font-size: 32px; }

  .story-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .story-hero__btn { width: 100%; }

  .story-hero__btn .product-tabs__btn-face {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════
   STORY SECTIONS (Mama / Lala)
═══════════════════════════════════════════════════════ */
.story-section {
  display: flex;
  align-items: stretch;
  gap: 40px;
  width: var(--nav-width);
  max-width: 1400px;
  margin: 104px auto 0;
}

.story-section--lala {
  flex-direction: row-reverse;
}

/* ─── PHOTO ────────────────────────────────────────────── */
.story-section__photo {
  position: relative;
  flex-shrink: 0;
  width: 460px;
  transform: rotate(-3deg);
}

.story-section--lala .story-section__photo {
  transform: rotate(3deg);
}

.story-section__frame {
  display: block;
  width: 100%;
  height: auto;
}

.story-section__img {
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  width: calc(100% - 64px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 25px;
}

/* Lala's replacement photo is a tall portrait shot -- keep it tall
   instead of the square crop used for Mama's, by filling the frame's
   full available height (top to bottom) rather than a fixed ratio,
   so it can never run taller than the frame itself allows. */
.story-section--lala .story-section__img {
  aspect-ratio: auto;
  height: calc(100% - 64px);
}

.story-section__pin {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  z-index: 2;
}

/* ─── CONTENT ──────────────────────────────────────────── */
.story-section__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 24px;
  padding: 48px;
  gap: 20px;
}

.story-section__content--mama { background: #FCECC5; }
.story-section__content--lala { background: #F6C9CB; }

.story-section__title {
  font-family: 'Sansilk', cursive;
  font-weight: 400;
  font-size: 36px;
  color: var(--color-bar);
}

.story-section__content--lala .story-section__title {
  color: #FEF7E8;
}

.story-section__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 150%;
  color: #5C1123;
  max-width: 560px;
}

/* ─── STORY SECTION RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .story-section,
  .story-section--lala {
    flex-direction: column;
  }

  .story-section__photo {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .story-section__content { padding: 32px 24px; }
  .story-section__title { font-size: 28px; }
  .story-section__text { font-size: 16px; }
}

/* ─── SECTION-TO-SECTION SPACING (mobile) ──────────────── */
@media (max-width: 768px) {
  .story-hero { gap: 32px; }
  .story-section { margin-top: 32px; gap: 32px; }
}

/* ═══════════════════════════════════════════════════════
   DELIVERY RIBBON — infinite diagonal marquee
═══════════════════════════════════════════════════════ */
.story-ribbon {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  margin: 70px 0;
}

.story-ribbon__band {
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  overflow: hidden;
  background: #FCF0D1;
  padding: 28px 0;
  transform: translateY(-50%) rotate(-8deg);
}

.story-ribbon__track {
  display: flex;
  width: max-content;
  animation: story-ribbon-scroll 42s linear infinite;
}

.story-ribbon__set {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  flex-shrink: 0;
}

.story-ribbon__text {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 46px;
  color: #5C1123;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.story-ribbon__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

@keyframes story-ribbon-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .story-ribbon__track { animation: none; }
}

@media (max-width: 768px) {
  .story-ribbon { height: 180px; }
  .story-ribbon__text { font-size: 28px; }
  .story-ribbon__icon { width: 28px; height: 28px; }
}

/* ═══════════════════════════════════════════════════════
   THE WAY WE DO IT
═══════════════════════════════════════════════════════ */
.story-values {
  width: var(--nav-width);
  max-width: 1400px;
  margin: 70px auto 0;
  text-align: center;
}

.story-values__title {
  position: relative;
  z-index: 2;
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 48px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: -24px;
}

.story-values__card {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  background: #F7C6CB;
  border-radius: 40px;
  padding: 70px 48px 60px;
}

.story-values__inner-border {
  position: absolute;
  inset: 18px;
  border: 1.5px solid #F48486;
  border-radius: 26px;
  pointer-events: none;
}

.story-values__intro {
  position: relative;
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: #F2939C;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 460px;
  margin: 0 auto 60px;
}

.story-values__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.story-values__item {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 34px;
  color: #FEF7E8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.story-values__premium-badge {
  position: absolute;
  bottom: 40px;
  left: -60px;
  width: 170px;
  aspect-ratio: 230 / 231;
  z-index: 3;
}

.story-values__premium-badge-inner {
  position: absolute;
  inset: 0;
  transform: rotate(-6deg);
}

/* Same two nearly-identical star frames as the hero badge, hard-swapped
   for the same fast, snapping "electric" flicker -- see initFrameFlicker(). */
.story-values__premium-badge-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.story-values__premium-badge-frame.is-visible { opacity: 1; }

.story-values__premium-badge-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
}

.story-values__premium-badge-icon {
  width: 14px;
  height: auto;
  transform: rotate(4deg);
}

.story-values__premium-badge-text {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #5C1123;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 78%;
}

.story-values__sprinkles {
  position: absolute;
  top: 18%;
  right: -95px;
  width: 190px;
  height: 190px;
  z-index: 3;
}

.story-values__ellipse {
  display: block;
  width: 100%;
  height: 100%;
}

.story-values__curved-text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}

.story-values__sprinkle-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  transform: translate(-50%, -50%);
}

/* ─── VALUES → FOOTER SPACING ──────────────────────────── */
.story-values + .footer--product {
  margin-top: 104px;
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
  .story-values__title { font-size: 32px; margin-bottom: -16px; }

  .story-values__card {
    max-width: 92%;
    padding: 56px 24px 44px;
    border-radius: 28px;
  }

  .story-values__inner-border { inset: 12px; border-radius: 18px; }

  .story-values__intro { font-size: 15px; margin-bottom: 40px; }
  .story-values__list { gap: 30px; }
  .story-values__item { font-size: 22px; }

  .story-values__premium-badge {
    width: 100px;
    left: -20px;
    top: -54px;
    bottom: auto;
    z-index: 1; /* .story-values__title is z-index:2, stays on top */
  }
  .story-values__premium-badge-icon { width: auto; height: 22px; }
  .story-values__premium-badge-text { font-size: 11px; }

  .story-values__sprinkles { width: 90px; height: 90px; right: -20px; top: 10%; }
  .story-values__sprinkle-icon { width: 22px; }

  .story-values + .footer--product { margin-top: 32px; }
}

/* ═══════════════════════════════════════════════════════
   FAQs PAGE
═══════════════════════════════════════════════════════ */
.faq {
  width: var(--nav-width);
  max-width: 1400px;
  margin: 48px auto 0;
  padding-bottom: 40px;
}

.faq__header {
  margin-bottom: 40px;
}

.faq__title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 40px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.faq__subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #6E142A;
}

/* ─── COLLAGE ──────────────────────────────────────────── */
.faq__collage {
  position: relative;
  min-height: 1420px;
}

.faq__card {
  position: absolute;
}

.faq__card-bg {
  display: block;
  width: 100%;
  height: 100%;
}

.faq__card-content {
  position: absolute;
  inset: 20% 10% 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faq__card-question {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 19px;
  color: #FEF7E8;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.faq__card-question--dark { color: #6E142A; }

.faq__card-answer {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 160%;
  color: #FEF7E8;
}

.faq__card-answer--dark { color: #6E142A; }

/* ─── CARD 1: How do I place an order? (maroon) ────────── */
.faq__card--1 {
  top: 0;
  left: 4%;
  width: 320px;
  aspect-ratio: 365 / 461;
  transform: rotate(6deg);
  z-index: 1;
}

.faq__card--1 .faq__card-tape {
  position: absolute;
  top: -22px;
  right: -30px;
  width: 150px;
  transform: rotate(28deg);
  z-index: 2;
}

/* ─── CARD 2: Same-day delivery? (cream, holes on left) ── */
.faq__card--2 {
  top: 0;
  left: 56%;
  width: 400px;
  aspect-ratio: 489 / 377;
  transform: rotate(-1.5deg);
  z-index: 1;
}

.faq__card--2 .faq__card-content {
  inset: 26% 10% 8% 16%;
}

.faq__card--2 .faq__card-pin {
  position: absolute;
  top: -20px;
  left: 40px;
  width: 34px;
  z-index: 2;
}

/* ─── CARD 3: Change/cancel order? (cream, flipped, holes on right) ── */
.faq__card--3 {
  top: 620px;
  left: 1%;
  width: 460px;
  aspect-ratio: 489 / 377;
  transform: rotate(-5deg);
  z-index: 1;
}

.faq__card--3 .faq__card-bg--flipped {
  transform: scaleX(-1);
}

.faq__card--3 .faq__card-content {
  inset: 14% 16% 8% 10%;
}

.faq__card--3 .faq__card-sparkle-tape {
  position: absolute;
  top: -34px;
  left: -20px;
  width: 90px;
  transform: rotate(-18deg);
  z-index: 2;
}

/* ─── CARD 4: Where do you deliver? (two-layer) ─────────── */
.faq__card--4 {
  top: 460px;
  left: 60%;
  width: 400px;
  aspect-ratio: 411 / 352;
  z-index: 1;
}

.faq__card--4 .faq__card-bg--back {
  position: absolute;
  inset: 0;
  transform: rotate(9deg) translate(16px, 6px);
  z-index: 1;
}

.faq__card--4 .faq__card-bg--front {
  position: absolute;
  inset: 0;
  transform: rotate(-3deg);
  z-index: 2;
}

.faq__card--4 .faq__card-clip {
  position: absolute;
  top: -34px;
  right: 70px;
  width: 42px;
  z-index: 3;
  transform: rotate(6deg);
}

.faq__card--4 .faq__card-content--front {
  position: absolute;
  inset: 34% 12% 10%;
  justify-content: flex-start;
  transform: rotate(-3deg);
  z-index: 3;
}

/* ─── CARD 5: Payment methods? (pink) ───────────────────── */
.faq__card--5 {
  top: 940px;
  left: 34%;
  width: 320px;
  aspect-ratio: 365 / 461;
  transform: rotate(4deg);
  z-index: 1;
}

.faq__card--5 .faq__card-content {
  justify-content: flex-start;
}

.faq__card--5 .faq__card-pin {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  z-index: 2;
}

/* ─── FAQ RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1100px) {
  .faq__collage { min-height: 0; }

  .faq__card,
  .faq__card--1, .faq__card--2, .faq__card--3, .faq__card--4, .faq__card--5 {
    position: relative;
    top: auto;
    left: auto;
    width: 90%;
    max-width: 420px;
    margin: 0 auto 60px;
    transform: rotate(2deg);
  }

  .faq__card--3 { transform: rotate(-2deg); }

  .faq__card--4 { transform: none; }
  .faq__card--4 .faq__card-bg--back { transform: rotate(4deg) translate(10px, 4px); }
  .faq__card--4 .faq__card-bg--front,
  .faq__card--4 .faq__card-content--front { transform: rotate(-1.5deg); }

  .faq__card:last-child { margin-bottom: 0; }
}

@media (max-width: 480px) {
  .faq__title { font-size: 28px; }
  .faq__card-question { font-size: 17px; }
  .faq__card-answer { font-size: 13px; }
  .faq__card--3 .faq__card-content { inset: 16% 12% 8% 16%; }
}

/* ═══════════════════════════════════════════════════════
   PROFILE PAGE
═══════════════════════════════════════════════════════ */
.profile {
  width: var(--nav-width);
  max-width: 1400px;
  margin: 40px auto 0;
  padding-bottom: 40px;
}

/* ─── HEADER ───────────────────────────────────────────── */
.profile__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.profile__avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-bar);
  border-radius: 16px;
  background: #FDF0EF;
  color: var(--color-bar);
}

.profile__avatar svg { width: 38px; height: 38px; }

.profile__header-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile__name {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 26px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: #FCECC5;
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--color-bar);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile__signout-btn {
  position: relative;
  margin-left: auto;
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.profile__signout-btn .product-tabs__btn-face {
  padding: 10px 20px;
  font-size: 13px;
}

/* ─── SECTION ──────────────────────────────────────────── */
.profile__section { margin-bottom: 40px; }

.profile__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile__section-title {
  font-family: 'Brodaers', sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--color-bar);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile__edit-btn {
  position: relative;
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.profile__edit-btn .product-tabs__btn-face {
  padding: 10px 20px;
  font-size: 13px;
}

/* ─── DETAILS CARD ─────────────────────────────────────── */
.profile__details-card {
  background: #FDF4DD;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0px 0px 20px 0px #00000014;
}

.profile__details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.profile__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile__field-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #6E142A;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile__field-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #6E142A;
}

/* ─── ADDRESSES CARD ───────────────────────────────────── */
.profile__addresses-card {
  background: #FDF4DD;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0px 0px 20px 0px #00000014;
}

.profile__addresses-empty {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #6E142A;
}

.profile__addresses-empty.is-visible { display: block; }

.profile__addresses-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile__address-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(110, 20, 42, 0.15);
  border-radius: 16px;
  flex-wrap: wrap;
}

.profile__address-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 200px;
}

.profile__address-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #6E142A;
}

.profile__address-detail {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(110, 20, 42, 0.7);
}

.profile__address-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.profile__address-action {
  padding: 8px 14px;
  border: 1px solid rgba(110, 20, 42, 0.25);
  border-radius: 999px;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #6E142A;
  cursor: pointer;
}

.profile__address-action--danger {
  border-color: rgba(178, 58, 74, 0.4);
  color: #B23A4A;
}

/* ─── ORDERS CARD ──────────────────────────────────────── */
.profile__orders-card {
  background: #FDF4DD;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0px 0px 20px 0px #00000014;
  overflow-x: auto;
}

.profile__orders-table {
  min-width: 700px;
}

.profile__orders-table.is-hidden {
  display: none;
}

.profile__orders-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(110, 20, 42, 0.1);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #6E142A;
}

.profile__orders-row:last-child { border-bottom: none; }

.profile__orders-row--head {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-bottom: 12px;
}

.profile__orders-number { font-weight: 700; }

.profile__orders-empty {
  display: none;
  padding: 24px 0 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #6E142A;
}

.profile__orders-empty.is-visible { display: block; }

.profile__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.profile__status--delivered {
  background: #E4F5EA;
  border-color: #6EC98B;
  color: #2C8351;
}

.profile__status--preparing {
  background: #FDF0D4;
  border-color: #E8B65A;
  color: #A9721E;
}

.profile__status--cancelled {
  background: #FBE3E5;
  border-color: #E58C96;
  color: #B23A4A;
}

/* ─── PROFILE RESPONSIVE ───────────────────────────────── */
@media (max-width: 900px) {
  .profile__details-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .profile__header { gap: 12px; }
  .profile__avatar { width: 56px; height: 56px; border-radius: 12px; }
  .profile__avatar svg { width: 30px; height: 30px; }
  .profile__name { font-size: 20px; }

  .profile__details-card,
  .profile__addresses-card,
  .profile__orders-card { padding: 20px; }

  .profile__address-card { flex-direction: column; align-items: flex-start; }
  .profile__address-actions { width: 100%; }

  .profile__details-grid { grid-template-columns: 1fr; gap: 16px; }
}
