/* ==========================================================================
   Midnite Houston Cupcakery — dark luxury theme
   Brand: midnight navy #072247 / steel #334B72 / charcoal #323335
          aqua accent #7FCBD6 (from logo) / gold #C9A14A (lighting accent)
   Type:  Roboto Slab (display) / Roboto (body)
   ========================================================================== */

:root {
  --navy-deep: #050e1c;
  --navy: #072247;
  --navy-soft: #0b2d5c;
  --steel: #334b72;
  --charcoal: #323335;
  --ink: #fff9f9;
  --ink-soft: #ccd6df;
  --ink-mute: #8fa0b3;
  --aqua: #7fcbd6;
  --aqua-deep: #4fa8b6;
  --gold: #c9a14a;
  --card: rgba(13, 34, 66, 0.55);
  --card-solid: #0a1d3a;
  --line: rgba(127, 203, 214, 0.16);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --radius: 14px;
  --font-display: "Roboto Slab", serif;
  --font-body: "Roboto", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, #061426 40%, var(--navy-deep) 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(180deg, rgba(5, 14, 28, 0.92), rgba(5, 14, 28, 0.75) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(127, 203, 214, 0.08);
}
.site-header .logo img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 26px; align-items: center; }
.site-nav a {
  color: var(--ink-soft); font-size: 13.5px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 500;
}
.site-nav a:hover, .site-nav a.active { color: var(--aqua); }
.site-nav .nav-cta {
  color: var(--navy-deep); background: var(--aqua);
  padding: 9px 18px; border-radius: 999px; font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--ink); color: var(--navy); }
.cart-button {
  position: relative; cursor: pointer; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; color: var(--ink-soft);
  font-family: var(--font-body); font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase;
}
.cart-button:hover { border-color: var(--aqua); color: var(--aqua); }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--gold); color: var(--navy-deep);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}
.menu-toggle { display: none; }

/* ---------- generic layout ---------- */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 140px 28px 80px; }
.section-pad { max-width: 1200px; margin: 0 auto; padding: 90px 28px; }
.eyebrow {
  color: var(--aqua); letter-spacing: 0.32em; text-transform: uppercase;
  font-size: 12px; font-weight: 600; margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); }
.section-sub { color: var(--ink-soft); max-width: 640px; }
.center { text-align: center; }
.center .section-sub { margin-inline: auto; }

.btn {
  display: inline-block; border-radius: 999px; padding: 14px 30px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0.05em;
  cursor: pointer; border: none; transition: all 0.25s ease;
}
.btn-primary { background: var(--aqua); color: var(--navy-deep); }
.btn-primary:hover { background: var(--ink); color: var(--navy); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 249, 249, 0.35); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { filter: brightness(1.12); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ---------- cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.card-body { padding: 22px; }

/* product card */
.product-card { display: flex; flex-direction: column; transition: transform 0.3s ease, border-color 0.3s ease; }
.product-card:hover { transform: translateY(-6px); border-color: rgba(127, 203, 214, 0.4); }
.product-card.tilting { transition: transform 0.08s linear, border-color 0.3s ease; }
.product-card .product-img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* frosting shimmer sweep on hover */
.product-card { position: relative; }
.product-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 249, 249, 0.14) 48%, rgba(127, 203, 214, 0.12) 52%, transparent 65%);
  transform: translateX(-120%); opacity: 0;
}
.product-card:hover::after { animation: shimmer 0.9s ease forwards; }
@keyframes shimmer { from { transform: translateX(-120%); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .product-card:hover::after { animation: none; } }

/* cupcake scroll-progress badge */
.scroll-cupcake {
  position: fixed; right: 18px; bottom: 18px; z-index: 290;
  background: rgba(10, 29, 58, 0.85); border: 1px solid var(--line); border-radius: 50%;
  width: 54px; height: 54px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none; backdrop-filter: blur(6px);
}
.scroll-cupcake.visible { opacity: 1; transform: none; }
@media (max-width: 640px) { .scroll-cupcake { right: 12px; bottom: 12px; width: 46px; height: 46px; } }

/* ---------- flavor quiz ---------- */
.quiz-card { max-width: 640px; margin: 40px auto 0; padding: 30px 28px; text-align: center; }
.quiz-q { font-family: var(--font-display); font-size: clamp(19px, 2.6vw, 24px); margin-bottom: 22px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz-opt {
  border: 1px solid var(--line); background: rgba(7, 34, 71, 0.45); color: var(--ink-soft);
  border-radius: 12px; padding: 16px 14px; cursor: pointer; font-family: var(--font-body);
  font-size: 14.5px; transition: all 0.2s ease; min-height: 56px;
}
.quiz-opt:hover { border-color: var(--aqua); color: var(--ink); transform: translateY(-2px); }
.quiz-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.quiz-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(127, 203, 214, 0.25); transition: background 0.3s; }
.quiz-dots i.on { background: var(--aqua); }
.quiz-result img { width: min(240px, 60vw); border-radius: 14px; margin: 0 auto 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.quiz-result h3 { font-size: 26px; margin-bottom: 6px; }
.quiz-result .flavor-note { color: var(--ink-mute); font-size: 15px; margin-bottom: 18px; }
@media (max-width: 520px) { .quiz-opts { grid-template-columns: 1fr; } }
.product-card h3 { font-size: 22px; margin-bottom: 4px; }
.product-card .flavor-note { color: var(--ink-mute); font-size: 14px; min-height: 42px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-family: var(--font-display); font-size: 20px; color: var(--gold); }
.size-select {
  background: var(--navy-deep); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; font-family: var(--font-body); font-size: 14px;
}

/* ---------- cart drawer ---------- */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(3, 8, 16, 0.6); z-index: 400;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 401;
  background: var(--card-solid); border-left: 1px solid var(--line);
  transform: translateX(105%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
}
body.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
body.drawer-open .cart-drawer { transform: translateX(0); }
.cart-drawer header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-drawer header h3 { margin: 0; font-size: 20px; }
.drawer-close { background: none; border: none; color: var(--ink-soft); font-size: 26px; cursor: pointer; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(127, 203, 214, 0.08); }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item .ci-swatch {
  width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0;
  background: radial-gradient(circle at 50% 30%, var(--steel), var(--navy-deep));
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name { font-weight: 700; font-size: 15px; }
.cart-item .ci-meta { color: var(--ink-mute); font-size: 13px; }
.ci-qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ci-qty button {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line);
  background: none; color: var(--ink); cursor: pointer; font-size: 15px;
}
.ci-remove { background: none; border: none; color: var(--ink-mute); cursor: pointer; font-size: 12px; text-decoration: underline; }
.ci-price { font-family: var(--font-display); color: var(--gold); white-space: nowrap; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 19px; margin-bottom: 14px; }
.cart-empty { color: var(--ink-mute); text-align: center; padding: 48px 0; }

/* ---------- footer ---------- */
.site-footer {
  /* opaque + above the hero engine's fixed stage (z1), no transparent gap —
     otherwise the pinned hero copy/glow bleeds through around the footer */
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); margin-top: 0; padding-top: 24px;
  background: linear-gradient(180deg, var(--navy-deep), #0a1d3a);
}
.footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 60px 28px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.site-footer h4 { color: var(--aqua); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer p, .site-footer li { color: var(--ink-mute); font-size: 14.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-logo img { height: 40px; margin-bottom: 16px; }
.footer-bottom {
  text-align: center; padding: 18px; color: var(--ink-mute); font-size: 13px;
  border-top: 1px solid rgba(127, 203, 214, 0.07);
}

/* ---------- forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--navy-deep); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 13px 14px; font-family: var(--font-body); font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--aqua); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field .hint { color: var(--ink-mute); font-size: 12.5px; margin-top: 5px; }

/* ---------- option pills (builder) ---------- */
.opt-group { margin-bottom: 26px; }
.opt-group h4 { font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua); margin-bottom: 12px; }
.opt-group .opt-price { color: var(--ink-mute); font-weight: 400; text-transform: none; letter-spacing: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  background: rgba(7, 34, 71, 0.4); color: var(--ink-soft); cursor: pointer;
  font-family: var(--font-body); font-size: 14px; display: flex; align-items: center; gap: 8px;
  transition: all 0.2s ease;
}
.pill:hover { border-color: rgba(127, 203, 214, 0.5); }
.pill.selected { background: var(--aqua); color: var(--navy-deep); border-color: var(--aqua); font-weight: 700; }
.pill .swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.25); }
.pill.selected .swatch { border-color: rgba(0, 0, 0, 0.35); }

/* ---------- banners / notices ---------- */
.notice {
  background: rgba(201, 161, 74, 0.1); border: 1px solid rgba(201, 161, 74, 0.35);
  color: #e8cf96; border-radius: 12px; padding: 14px 18px; font-size: 14.5px;
}
.turnaround-strip {
  display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap;
  padding: 16px 24px; font-size: 14.5px; color: var(--ink-soft);
  border-block: 1px solid var(--line); background: rgba(7, 34, 71, 0.35);
}
.turnaround-strip strong { color: var(--aqua); }

/* ---------- page hero banner ---------- */
.page-hero {
  position: relative; min-height: 380px; display: flex; align-items: flex-end;
  padding: 140px 28px 46px; overflow: hidden; border-bottom: 1px solid var(--line);
}
.page-hero .ph-bg {
  /* oversized so the parallax translate never reveals an edge */
  position: absolute; left: 0; right: 0; top: -35%; height: 170%; z-index: 0;
  background-size: cover; background-position: center 35%;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .page-hero .ph-bg { top: 0; height: 100%; } }
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,14,28,0.55) 0%, rgba(5,14,28,0.15) 45%, rgba(5,14,28,0.88) 100%);
}
.page-hero .ph-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 50px); margin-bottom: 6px; text-shadow: 0 4px 24px rgba(0,0,0,0.6); }
.page-hero .section-sub { text-shadow: 0 2px 12px rgba(0,0,0,0.7); }
.page-hero .eyebrow { text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
@media (max-width: 640px) { .page-hero { min-height: 300px; padding-top: 110px; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
/* touch ergonomics: comfortable tap targets, no iOS focus-zoom */
@media (hover: none) and (pointer: coarse), (max-width: 640px) {
  .field input, .field select, .field textarea, .size-select { font-size: 16px; }
  .pill { min-height: 42px; padding-block: 10px; }
  .menu-toggle { padding: 10px 12px; }
  .drawer-close { padding: 10px 14px; }
  .ci-qty button { width: 34px; height: 34px; }
  .btn { padding: 15px 30px; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--navy-deep); padding: 22px 28px;
    border-bottom: 1px solid var(--line); gap: 18px;
  }
  .menu-toggle {
    display: block; background: none; border: none; color: var(--ink);
    font-size: 24px; cursor: pointer;
  }
}

/* ---------- Midnite Hour mode ---------- */
body.midnite-hour { background: linear-gradient(180deg, #020509 0%, #041022 40%, #020509 100%); }
body.midnite-hour::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,249,249,0.9), transparent 60%),
    radial-gradient(1px 1px at 28% 44%, rgba(127,203,214,0.8), transparent 60%),
    radial-gradient(2px 2px at 41% 12%, rgba(255,249,249,0.7), transparent 60%),
    radial-gradient(1px 1px at 55% 33%, rgba(255,249,249,0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 8%, rgba(201,161,74,0.8), transparent 60%),
    radial-gradient(1px 1px at 76% 51%, rgba(255,249,249,0.7), transparent 60%),
    radial-gradient(2px 2px at 88% 27%, rgba(127,203,214,0.7), transparent 60%),
    radial-gradient(1px 1px at 34% 72%, rgba(255,249,249,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 61% 86%, rgba(255,249,249,0.5), transparent 60%),
    radial-gradient(1px 1px at 91% 74%, rgba(201,161,74,0.6), transparent 60%);
  animation: mhTwinkle 4s ease-in-out infinite alternate;
}
@keyframes mhTwinkle { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.midnite-hour::before { animation: none; } }
body.midnite-hour .site-header { background: linear-gradient(180deg, rgba(2,5,9,0.95), rgba(2,5,9,0.8) 70%, transparent); }
body.midnite-hour .below-hero { background: linear-gradient(180deg, #020509, #041022); }
.mh-toggle {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 38px; height: 38px; cursor: pointer; font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all 0.25s ease;
}
.mh-toggle:hover { border-color: var(--gold); transform: rotate(-12deg); }
.mh-toggle.active { border-color: var(--gold); background: rgba(201,161,74,0.15); box-shadow: 0 0 18px rgba(201,161,74,0.25); }
.secret-menu {
  max-width: 640px; margin: 0 auto; text-align: center; position: relative; overflow: hidden;
  border: 1px solid rgba(201,161,74,0.45); background:
    radial-gradient(ellipse at 50% 0%, rgba(201,161,74,0.12), transparent 60%), var(--card-solid);
}
.secret-menu .sm-eyebrow { color: var(--gold); letter-spacing: 0.32em; text-transform: uppercase; font-size: 11.5px; font-weight: 700; }
.secret-menu h3 { font-size: 30px; margin: 10px 0 6px; }
.secret-menu p { color: var(--ink-soft); font-size: 15px; }
.secret-menu .sm-clock { font-family: var(--font-display); color: var(--gold); font-size: 13px; letter-spacing: 0.14em; margin-top: 14px; }

/* ---------- visual dozen box (cart drawer) ---------- */
.dozen-box { padding: 16px 24px 4px; }
.dozen-box .db-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 10px; text-align: center; }
.db-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px;
  background: linear-gradient(180deg, #0d1f3c, #081527); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px;
}
.db-well {
  aspect-ratio: 1; border-radius: 50%; background: rgba(2,8,18,0.7);
  border: 1px dashed rgba(127,203,214,0.18); display: flex; align-items: center; justify-content: center;
}
.db-well svg { width: 78%; height: 78%; }
.db-well.filled { border-style: solid; border-color: rgba(127,203,214,0.35); animation: dbPop 0.35s cubic-bezier(0.2,1.6,0.4,1); }
@keyframes dbPop { from { transform: scale(0.4); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .db-well.filled { animation: none; } }

/* ---------- dozen mixer (shop) ---------- */
.mixer-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.mixer-tray { display: flex; flex-wrap: wrap; gap: 12px; }
.mixer-chip {
  display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 15px; background: rgba(7,34,71,0.5); color: var(--ink-soft); cursor: grab;
  font-size: 14px; user-select: none; transition: border-color 0.2s ease, transform 0.2s ease;
}
.mixer-chip:hover { border-color: var(--aqua); transform: translateY(-2px); }
.mixer-chip:active { cursor: grabbing; }
.mixer-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; pointer-events: none; }
.mixer-box {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: linear-gradient(180deg, #0d1f3c, #081527); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.mixer-slot {
  aspect-ratio: 1; border-radius: 12px; background: rgba(2,8,18,0.7);
  border: 1px dashed rgba(127,203,214,0.2); display: flex; align-items: center; justify-content: center;
  position: relative; transition: border-color 0.15s ease, background 0.15s ease;
}
.mixer-slot.dragover { border-color: var(--gold); background: rgba(201,161,74,0.12); border-style: solid; }
.mixer-slot img { width: 82%; height: 82%; border-radius: 10px; object-fit: cover; animation: dbPop 0.3s cubic-bezier(0.2,1.6,0.4,1); }
.mixer-slot .ms-x {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy-deep); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 11px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center;
}
.mixer-slot:hover .ms-x { display: flex; }
.mixer-status { text-align: center; margin-top: 14px; color: var(--ink-mute); font-size: 14px; }
@media (max-width: 900px) { .mixer-wrap { grid-template-columns: 1fr; } }

/* ---------- flavor of the month ---------- */
.fotm { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: center; }
.fotm img { border-radius: var(--radius); border: 1px solid rgba(201,161,74,0.35); box-shadow: var(--shadow-lg), 0 0 40px rgba(201,161,74,0.12); }
.fotm .fotm-month { font-family: var(--font-display); color: var(--gold); font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; }
@media (max-width: 900px) { .fotm { grid-template-columns: 1fr; } }

/* ---------- holiday countdown bar ---------- */
.holiday-countdown {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 350; display: flex; align-items: center; gap: 14px;
  max-width: min(720px, calc(100vw - 24px));
  padding: 12px 18px; border-radius: 999px;
  background: rgba(7, 20, 40, 0.94); backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  animation: hcRise 0.6s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes hcRise { from { transform: translate(-50%, 80px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.hc-thanksgiving { border-color: rgba(216, 122, 42, 0.55); box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 24px rgba(216, 122, 42, 0.18); }
.hc-christmas { border-color: rgba(196, 48, 56, 0.55); box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 24px rgba(60, 160, 100, 0.2); }
.hc-valentines { border-color: rgba(196, 48, 76, 0.55); box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 24px rgba(238, 155, 176, 0.22); }
.hc-valentines .hc-cta { background: #c4304c; color: #fff9f9; }
.hc-valentines .hc-cta:hover { color: #fff9f9; }
.hc-july4 { border-color: rgba(46, 78, 158, 0.6); box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 24px rgba(200, 44, 52, 0.2); }
.hc-halloween { border-color: rgba(232, 122, 32, 0.55); box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 24px rgba(138, 79, 200, 0.25); }
.hc-halloween .hc-cta { background: #e87a20; color: #101014; }
.hc-halloween .hc-cta:hover { color: #101014; }
.hc-emoji { font-size: 22px; animation: hcBounce 2.4s ease-in-out infinite; }
@keyframes hcBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hc-copy { font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; min-width: 0; }
.hc-copy b { color: var(--ink); }
.hc-timer {
  font-family: var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums;
  font-size: 14.5px; letter-spacing: 0.04em;
}
.hc-sub { display: block; font-size: 11.5px; color: var(--ink-mute); }
.hc-cta {
  flex-shrink: 0; background: var(--gold); color: var(--navy-deep); font-weight: 700;
  font-size: 13px; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  animation: hcPulse 2.4s ease-in-out infinite;
}
.hc-cta:hover { filter: brightness(1.12); color: var(--navy-deep); }
.hc-christmas .hc-cta { background: #c43038; color: #fff9f9; }
.hc-christmas .hc-cta:hover { color: #fff9f9; }
@keyframes hcPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.hc-close {
  flex-shrink: 0; background: none; border: none; color: var(--ink-mute);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.hc-close:hover { color: var(--ink); }
body.has-countdown .scroll-cupcake { bottom: 84px; }
@media (max-width: 640px) {
  .holiday-countdown { flex-wrap: wrap; justify-content: center; text-align: center; border-radius: 18px; bottom: 10px; padding: 12px 14px; gap: 10px; }
  .hc-copy { flex-basis: 100%; }
  body.has-countdown .scroll-cupcake { bottom: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-countdown, .hc-emoji, .hc-cta { animation: none; }
}

/* ---------- Midnite List popup ---------- */
.ml-scrim {
  position: fixed; inset: 0; z-index: 500; background: rgba(3, 8, 16, 0.65);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.4s ease;
}
.ml-popup {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 110%);
  width: min(480px, calc(100vw - 32px)); z-index: 501;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(127, 203, 214, 0.12), transparent 55%),
    linear-gradient(180deg, #0d1f3c, #050e1c);
  border: 1px solid rgba(127, 203, 214, 0.3); border-bottom: none;
  border-radius: 18px 18px 0 0; padding: 30px 28px 26px; text-align: center;
  box-shadow: 0 -18px 70px rgba(0, 0, 0, 0.6);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
body.ml-open .ml-scrim { opacity: 1; }
body.ml-open .ml-popup { transform: translate(-50%, 0); }
.ml-popup .ml-moon { font-size: 34px; line-height: 1; }
.ml-popup h3 { font-size: clamp(21px, 5vw, 26px); margin: 10px 0 8px; }
.ml-popup .ml-sub { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }
.ml-popup .ml-perks {
  display: flex; flex-direction: column; gap: 7px; margin: 16px auto 18px;
  max-width: 340px; text-align: left; font-size: 13.5px; color: var(--ink-soft);
}
.ml-popup .ml-perks span::before { content: '🌙 '; }
.ml-row { display: flex; gap: 10px; }
.ml-row input[type="email"] {
  flex: 1; min-width: 0; background: var(--navy-deep); border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink); padding: 13px 14px; font-size: 16px;
}
.ml-row input:focus { outline: none; border-color: var(--aqua); }
.ml-bday {
  width: 100%; margin-top: 10px; background: var(--navy-deep); border: 1px solid var(--line);
  border-radius: 10px; color: var(--ink-soft); padding: 12px 14px; font-size: 16px;
}
.ml-join { white-space: nowrap; }
.ml-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  color: var(--ink-mute); font-size: 24px; cursor: pointer; line-height: 1; padding: 6px;
}
.ml-no-thanks {
  display: block; margin: 14px auto 0; background: none; border: none;
  color: var(--ink-mute); font-size: 12.5px; cursor: pointer; text-decoration: underline;
}
@media (max-width: 520px) { .ml-row { flex-direction: column; } .ml-join { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ml-popup, .ml-scrim { transition: none; } }

/* ---------- pre-order page ---------- */
.po-countdown { border-color: var(--aqua); }
.po-timer {
  font-family: 'Roboto Slab', serif; font-weight: 700; color: var(--aqua);
  font-size: clamp(28px, 6vw, 46px); letter-spacing: 1px; margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.po-deadline { color: var(--ink-soft); font-size: 14.5px; margin-top: 10px; }
.po-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.po-row:last-child { border-bottom: none; }
.po-row img {
  width: 62px; height: 62px; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--line); flex: none;
}
.po-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.po-row-info strong { font-family: 'Roboto Slab', serif; font-size: 15.5px; }
.po-row-info span { color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
.po-row-info em { color: var(--gold, #c9a14a); font-style: normal; font-size: 12.5px; font-weight: 600; }
.po-row.picked img { border-color: var(--aqua); box-shadow: 0 0 0 2px rgba(127, 203, 214, .35); }
.po-stepper { display: flex; align-items: center; gap: 10px; flex: none; }
.po-stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: none; color: var(--ink); font-size: 18px; cursor: pointer; line-height: 1;
}
.po-stepper button:hover { border-color: var(--aqua); color: var(--aqua); }
.po-qty { min-width: 20px; text-align: center; font-size: 16px; }
.po-club { border-color: rgba(201, 161, 74, .5); }
@media (max-width: 520px) {
  .po-row { flex-wrap: wrap; }
  .po-row-info { flex-basis: calc(100% - 76px); }
  .po-stepper { margin-left: 76px; }
}
