/* ============================================================
   CUPCAKES ON THE AVENUE — SHARED STYLES
   Premium Artisan Bakery · Warm cream & caramel gold
   Inspired by littlecake.co.uk / originalcake.co.uk
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;600;700&display=swap');

/* ── Variables ──────────────────────────────── */
:root {
  --cream:      #FDFAF5;
  --gold:       #B8854F;
  --gold-dark:  #96693A;
  --gold-light: #E8C49A;
  --gold-pale:  #FDF0E0;
  --brown:      #2C1810;
  --brown-mid:  #5C3D2E;
  --brown-lt:   #8A6352;
  --border:     #EDE3D8;
  --shadow:     rgba(44,24,16,0.08);
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Lato', 'Segoe UI', Tahoma, sans-serif;
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── OneSignal bell — never hidden ──────────── */
#onesignal-bell-container,
#onesignal-bell-container *,
.onesignal-bell-container,
#onesignal-slidedown-container,
#onesignal-slidedown-container * {
  z-index: 99999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ── Body ───────────────────────────────────── */
body,
body.spring,
body.summer,
body.autumn,
body.winter {
  background: var(--cream) !important;
  font-family: var(--font-body) !important;
  min-height: 100vh;
  color: var(--brown) !important;
  overflow-x: hidden;
}

body::after { display: none !important; }

/* ═══════════════════════════════════════════════
   PREMIUM HEADER — search bar + account + cart
   ═══════════════════════════════════════════════ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff !important;
  box-shadow: 0 2px 16px var(--shadow) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0 !important;
  text-align: left !important;
}

/* top row */
.hdr-top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* brand */
.hdr-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.hdr-brand-icon { font-size: 2rem; line-height: 1; }

.hdr-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hdr-brand-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
}

.hdr-brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* actions group */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Search bar ─────────────────────────────── */
.hdr-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--gold-pale);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  transition: all .3s ease;
}

.hdr-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,133,79,.15);
  background: #fff;
}

.hdr-search input {
  border: none;
  background: transparent;
  padding: 9px 16px;
  font-size: .88rem;
  color: var(--brown);
  width: 210px;
  outline: none;
  font-family: var(--font-body);
}

.hdr-search input::placeholder { color: var(--brown-lt); }

.hdr-search-btn {
  background: none;
  border: none;
  padding: 9px 13px;
  cursor: pointer;
  color: var(--gold);
  display: flex;
  align-items: center;
  border-radius: 0 50px 50px 0;
  transition: background .2s;
}

.hdr-search-btn:hover { background: rgba(184,133,79,.1); }

/* search dropdown */
.hdr-search-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(44,24,16,.18);
  border: 1px solid var(--border);
  z-index: 600;
  overflow: hidden;
  min-width: 280px;
}

.hdr-search-drop.open { display: block; }

.hdr-sres {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f5ede3;
  transition: background .2s;
  text-decoration: none;
  color: inherit;
}

.hdr-sres:last-child { border-bottom: none; }
.hdr-sres:hover      { background: var(--gold-pale); }

.hdr-sres-icon { font-size: 1.3rem; flex-shrink: 0; }
.hdr-sres-name { font-weight: 600; font-size: .88rem; color: var(--brown); display: block; }
.hdr-sres-cat  { font-size: .75rem; color: var(--brown-lt); display: block; }

.hdr-sres-empty {
  padding: 14px 16px;
  color: var(--brown-lt);
  font-size: .88rem;
  text-align: center;
}

/* ── Icon buttons (account / cart) ─────────── */
.hdr-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--brown-mid);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
  transition: all .25s ease;
  position: relative;
  font-family: var(--font-body);
}

.hdr-icon-btn svg { display: block; }

.hdr-icon-lbl {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hdr-icon-btn:hover { background: var(--gold-pale); color: var(--gold); }

/* cart badge */
.hdr-cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--gold);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

.hdr-cart-badge.hidden { display: none; }

/* ── Nav bar ─────────────────────────────────── */
.hdr-nav {
  background: #FFFCF8;
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 0;
}

.hdr-nav a {
  display: inline-block;
  color: var(--brown-mid);
  text-decoration: none;
  margin: 0 2px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 11px 16px;
  border-bottom: 2px solid transparent;
  transition: all .25s ease;
  font-family: var(--font-body);
}

.hdr-nav a:hover,
.hdr-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Shared section base ─────────────────────── */
section, .container { position: relative; }

section {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
}

section h2 {
  font-family: var(--font-head) !important;
  color: var(--brown) !important;
  text-shadow: none !important;
}

section::before {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)) !important;
  background-size: 200% 100% !important;
}

/* ── Shared button ──────────────────────────── */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 32px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(184,133,79,.4);
  transition: all .3s ease;
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 28px rgba(184,133,79,.55);
}

/* ── Shared footer ──────────────────────────── */
footer.site-footer {
  background: var(--brown) !important;
  border-top: 2px solid var(--gold) !important;
  padding: 32px 20px !important;
  text-align: center;
  position: relative;
  margin-top: 80px;
  border-radius: 0;
}

footer.site-footer nav a {
  color: rgba(255,220,185,.92) !important;
  margin: 0 14px;
  text-decoration: none;
  font-size: .85rem;
  transition: all .25s ease;
}

footer.site-footer nav a:hover {
  color: var(--gold-light) !important;
  text-decoration: underline;
}

footer.site-footer p {
  color: rgba(255,210,175,.75) !important;
  font-size: .85rem;
  margin-top: 12px;
}

/* ── Scroll Reveal ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s !important; }
.reveal-d2 { transition-delay: .22s !important; }

/* ── Floating Sprinkles ─────────────────────── */
.sprinkle {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: sprinkleRise linear infinite;
}

@keyframes sprinkleRise {
  0%   { transform: translateY(105vh) rotate(0deg);   opacity: 0; }
  6%   { opacity: .5; }
  90%  { opacity: .3; }
  100% { transform: translateY(-12vh) rotate(700deg); opacity: 0; }
}

/* ══════════════════════════════════════════════
   EMAIL BUTTON
   ══════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--brown, #5c3317);
  color: #fff;
  border-radius: 50px;
  padding: 13px 20px 13px 15px;
  box-shadow: 0 6px 24px rgba(92,51,23,.38);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .2px;
  transition: all .3s ease;
  white-space: nowrap;
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 36px rgba(92,51,23,.55);
  color: #fff;
}
.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   PRE-ORDER CARD (market section)
   ══════════════════════════════════════════════ */
.preorder-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--gold-pale) 0%, #fff 100%);
  border: 1.5px solid rgba(184,133,79,.25);
  border-radius: 20px;
  padding: 24px 28px;
  margin-top: 32px;
  box-shadow: 0 4px 20px rgba(44,24,16,.06);
  flex-wrap: wrap;
}
.preorder-icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}
.preorder-text { flex: 1; min-width: 200px; }
.preorder-text h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 5px;
}
.preorder-text p {
  color: var(--brown-mid);
  font-size: .88rem;
  line-height: 1.6;
  text-shadow: none !important;
}
.preorder-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 4px 14px rgba(37,211,102,.4);
  transition: all .3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.preorder-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37,211,102,.55);
  color: #fff;
}

/* ══════════════════════════════════════════════
   INSTAGRAM SECTION
   ══════════════════════════════════════════════ */
.ig-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 48px 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 4px 24px var(--shadow);
}
.ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.ig-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ig-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: linear-gradient(#fff,#fff) padding-box,
              linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888) border-box;
}
.ig-handle {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown);
}
.ig-handle span {
  display: block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 400;
  color: var(--brown-lt);
  margin-top: 2px;
}
.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(220,39,67,.3);
  transition: all .3s ease;
}
.ig-follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220,39,67,.45);
  color: #fff;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ig-cell {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--gold-pale);
}
.ig-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.ig-cell:hover img { transform: scale(1.06); }
.ig-cell-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,24,16,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}
.ig-cell:hover .ig-cell-overlay { background: rgba(44,24,16,.32); }
.ig-cell-overlay svg {
  width: 28px; height: 28px;
  color: #fff;
  opacity: 0;
  transition: opacity .3s ease;
}
.ig-cell:hover .ig-cell-overlay svg { opacity: 1; }

/* ══════════════════════════════════════════════
   FLAVOUR QUIZ
   ══════════════════════════════════════════════ */
.quiz-trigger-wrap {
  text-align: center;
  margin: 48px auto;
  max-width: 600px;
  padding: 0 20px;
}
.quiz-trigger-eyebrow {
  display: inline-block;
  background: var(--gold-pale);
  color: var(--gold-dark);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(184,133,79,.3);
  margin-bottom: 14px;
}
.quiz-trigger-title {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--brown);
  margin-bottom: 10px;
}
.quiz-trigger-sub {
  color: var(--brown-mid);
  font-size: .95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.quiz-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  padding: 15px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 22px rgba(184,133,79,.42);
  transition: all .3s ease;
}
.quiz-trigger-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(184,133,79,.58);
}

/* Quiz drawer */
.quiz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44,24,16,.5);
  z-index: 8000;
  backdrop-filter: blur(4px);
}
.quiz-overlay.open { display: block; }

.quiz-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(480px, 100vw);
  background: #fff;
  z-index: 8001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.23,1,.32,1);
  box-shadow: -8px 0 40px rgba(44,24,16,.18);
}
.quiz-drawer.open { transform: translateX(0); }

.quiz-drawer-hdr {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.quiz-drawer-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--brown);
}
.quiz-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--brown-lt);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.quiz-progress-bar {
  height: 4px;
  background: var(--border);
  flex-shrink: 0;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width .4s ease;
  border-radius: 0 4px 4px 0;
}

.quiz-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px;
}
.quiz-step { display: none; }
.quiz-step.active { display: block; }

.quiz-q {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 6px;
  line-height: 1.3;
}
.quiz-q-sub {
  color: var(--brown-lt);
  font-size: .85rem;
  margin-bottom: 22px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quiz-opt {
  border: 2px solid var(--border);
  background: var(--gold-pale);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.quiz-opt:hover { border-color: var(--gold); background: #fff; }
.quiz-opt.selected {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 4px 16px rgba(184,133,79,.2);
}
.quiz-opt-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.quiz-opt-label {
  font-weight: 700;
  font-size: .85rem;
  color: var(--brown);
  display: block;
}

/* Quiz result */
.quiz-result { text-align: center; padding: 8px 0; }
.quiz-result-icon { font-size: 3.5rem; margin-bottom: 16px; display: block; }
.quiz-result-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 8px;
}
.quiz-result-desc {
  color: var(--brown-mid);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.quiz-result-price {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 20px;
}
.quiz-shop-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 6px 20px rgba(184,133,79,.4);
  transition: all .3s ease;
  margin-bottom: 14px;
  display: block;
  text-align: center;
}
.quiz-shop-btn:hover { transform: translateY(-2px); color: #fff; }
.quiz-restart-btn {
  background: none;
  border: none;
  color: var(--brown-lt);
  font-size: .85rem;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font-body);
  margin-top: 4px;
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  /* WhatsApp */
  .wa-float span { display: none; }
  .wa-float { padding: 13px; border-radius: 50%; }

  /* Instagram grid */
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-section { padding: 32px 20px; }
  .ig-header { flex-direction: column; align-items: flex-start; }

  /* Quiz */
  .quiz-options { grid-template-columns: 1fr 1fr; }
  .quiz-drawer { width: 100vw; }

  /* Pre-order */
  .preorder-card { flex-direction: column; text-align: center; }

  .hdr-top { padding: 12px 16px; gap: 10px; }
  .hdr-brand-name { font-size: 1.1rem; }
  .hdr-brand-tag  { display: none; }
  .hdr-search input { width: 130px; font-size: .82rem; }
  .hdr-icon-lbl { display: none; }
  .hdr-nav a { font-size: .72rem; padding: 9px 10px; margin: 0; }
}

@media (max-width: 480px) {
  .hdr-search input { width: 90px; }
  .hdr-brand-icon   { font-size: 1.5rem; }
  .hdr-nav a        { font-size: .67rem; padding: 8px 7px; letter-spacing: .3px; }
}
