/* ===== Lucky Pops brand =====
   Colors sampled from the Lucky Pops logo:
   pink #EC268F · blue #29A8E0 · purple #7F3F98 */
:root {
  --pink: #EC268F;
  --pink-dark: #C81272;
  --blue: #29A8E0;
  --blue-dark: #1B86B8;
  --purple: #7F3F98;
  --ink: #2D2235;
  --paper: #FFF9F4;
  --card: #FFFFFF;
  --line: #F0E4EE;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(127, 63, 152, .12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3 { font-family: "Baloo 2", "Nunito", sans-serif; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--purple); }
h3 { font-size: 1.15rem; }
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }

.hl-pink { color: var(--pink); }
.muted { color: #7a6b82; }
.small { font-size: .85rem; }
.center { text-align: center; }

/* ===== Announcement bar ===== */
.announce {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  text-align: center;
  padding: .55rem 2.5rem;
  font-size: .95rem;
  position: relative;
}
.announce a { color: #fff; }
.announce-close {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 1.2rem; cursor: pointer;
}

/* ===== Header ===== */
.site-header {
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem clamp(1rem, 4vw, 2.5rem);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(127, 63, 152, .08);
}
.brand-logo { height: 56px; width: auto; }
.site-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem;
}
.site-nav a:hover { color: var(--pink); }
.account-wrap { position: relative; }
.account-btn {
  border: 2px solid var(--purple); background: #fff; color: var(--purple);
  font-weight: 800; font-family: "Nunito", sans-serif; font-size: .9rem;
  padding: .4rem .85rem; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.account-btn:hover { background: #F7EFFA; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 60;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: .9rem; min-width: 220px; border: 1.5px solid var(--line);
}
.account-email { margin: 0 0 .6rem; font-size: .85rem; color: #7a6b82; word-break: break-all; }

.cart-btn {
  border: none; background: var(--pink); color: #fff;
  font-size: 1.1rem; padding: .45rem .8rem; border-radius: 999px;
  cursor: pointer; display: flex; align-items: center; gap: .35rem;
  transition: transform .15s;
}
.cart-btn:hover { transform: scale(1.06); }
.cart-count {
  background: #fff; color: var(--pink); border-radius: 999px;
  font-size: .8rem; font-weight: 800; min-width: 1.4em; padding: 0 .3em;
}

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 1200px; margin: 0 auto;
}
.hero-sub { font-size: 1.15rem; max-width: 34em; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.2rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 700; font-size: .95rem; }
.hero-img img { border-radius: 24px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.02rem;
  padding: .65rem 1.5rem; border-radius: 999px; border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 4px 14px rgba(236, 38, 143, .35); }
.btn-primary:hover { background: var(--pink-dark); }
.btn-ghost { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.btn-block { width: 100%; text-align: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ===== Sections ===== */
.section { padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem); max-width: 1200px; margin: 0 auto; }
.section-alt { background: #fff; max-width: none; }
.section-alt > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-sub { margin-top: -.4rem; color: #7a6b82; max-width: 46em; }

/* ===== Product cards ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem; margin-top: 1.6rem;
}
.product-card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.product-img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.product-art {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.product-title { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.product-price { font-family: "Baloo 2", sans-serif; font-size: 1.25rem; color: var(--pink); white-space: nowrap; }
.product-meta { font-size: .85rem; color: #7a6b82; margin: -.4rem 0 0; }
.product-desc { font-size: .92rem; margin: 0; }
.badge {
  align-self: flex-start; background: #E8F7EE; color: #1E7C46;
  font-size: .78rem; font-weight: 800; padding: .15rem .6rem; border-radius: 999px;
}

/* flavour picker */
.flavour-pick { display: flex; flex-wrap: wrap; gap: .35rem; }
.fchip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  font-size: .8rem; font-weight: 700; padding: .2rem .6rem; cursor: pointer;
  font-family: "Nunito", sans-serif; transition: all .12s;
}
.fchip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.fchip-all.on { background: var(--purple); border-color: var(--purple); }

/* pack size radios (Big Guy) */
.pack-pick { display: flex; gap: .4rem; }
.pack-pick .fchip { font-size: .85rem; }

/* qty + add row */
.card-actions { margin-top: auto; display: flex; gap: .6rem; align-items: center; }
.qty {
  display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px;
}
.qty button {
  border: none; background: none; font-size: 1.1rem; font-weight: 800;
  width: 2rem; height: 2.2rem; cursor: pointer; color: var(--purple);
}
.qty span { min-width: 1.6rem; text-align: center; font-weight: 800; }
.add-btn { flex: 1; }

/* ===== Flavour section ===== */
.flavour-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .6rem 0; }
.chip {
  background: var(--paper); border: 1.5px solid var(--line);
  padding: .25rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 700;
}
.mix-note {
  background: var(--paper); border-left: 4px solid var(--blue);
  padding: .8rem 1rem; border-radius: 0 12px 12px 0; max-width: 60em;
}

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.step { background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.step p { margin: 0; font-size: .92rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--blue); color: #fff; font-family: "Baloo 2", sans-serif;
  font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem;
}

/* ===== Delivery ===== */
.delivery-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.tick-list, .dot-list { padding-left: 0; list-style: none; }
.tick-list li::before { content: "✅ "; }
.dot-list li::before { content: "🍡 "; }
.tick-list li, .dot-list li { margin: .35rem 0; }

/* ===== Wholesale ===== */
.wholesale {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center;
  background: linear-gradient(135deg, #FDF1F8, #EFF8FD);
  border-radius: 24px; padding: clamp(1.2rem, 4vw, 2.5rem);
}
.wholesale-img img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.wholesale .btn { margin-top: .6rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink); color: #EFE6F3; text-align: center;
  padding: 2.2rem 1rem 2.6rem; margin-top: 2rem;
}
.footer-logo { height: 48px; margin: 0 auto .6rem; }
.site-footer a { color: #8FD3F2; text-decoration: none; font-weight: 700; }
.site-footer .sep { margin: 0 .6rem; opacity: .5; }
.fineprint { font-size: .78rem; opacity: .65; max-width: 40em; margin: 1rem auto 0; }

/* ===== Cart drawer ===== */
.overlay {
  position: fixed; inset: 0; background: rgba(45, 34, 53, .45); z-index: 90;
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,.18);
  animation: slide-in .25s ease;
}
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; border-bottom: 1.5px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.icon-btn { border: none; background: none; font-size: 1.6rem; cursor: pointer; color: var(--purple); line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.cart-empty { text-align: center; color: #7a6b82; margin-top: 3rem; }
.cart-item {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .7rem 0; border-bottom: 1px dashed var(--line);
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 800; }
.cart-item-flav { font-size: .8rem; color: #7a6b82; }
.cart-item-price { font-weight: 800; color: var(--pink); white-space: nowrap; }
.cart-item .qty { transform: scale(.9); transform-origin: left center; }
.remove-btn { border: none; background: none; color: #c44; cursor: pointer; font-size: .8rem; padding: 0; }
.cart-foot { padding: 1rem 1.2rem 1.4rem; border-top: 1.5px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: .8rem; font-family: "Baloo 2", sans-serif; }
.min-warning {
  background: #FFF3E0; color: #9A5B00; border-radius: 10px;
  padding: .6rem .8rem; font-size: .85rem; margin: 0 0 .8rem;
}

/* ===== Checkout modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 110; background: rgba(45, 34, 53, .5);
  display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 2rem 1rem;
}
.modal-card {
  background: #fff; border-radius: var(--radius); width: min(520px, 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.modal-card form { padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
.modal-card label { font-weight: 800; font-size: .9rem; display: flex; flex-direction: column; gap: .3rem; }
.modal-card input[type="text"], .modal-card input[type="tel"],
.modal-card textarea, .modal-card select {
  font: inherit; padding: .55rem .7rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper);
}
.modal-card input:focus, .modal-card textarea:focus, .modal-card select:focus {
  outline: 2px solid var(--blue); border-color: var(--blue);
}
.pay-field { border: 1.5px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.pay-field legend { font-weight: 800; font-size: .9rem; padding: 0 .3rem; }
.radio { flex-direction: row !important; align-items: center; gap: .5rem !important; font-weight: 600 !important; }
.pay-note { margin: 0; font-weight: 700; }
.order-preview {
  background: var(--paper); border-radius: 10px; padding: .8rem 1rem;
  font-size: .88rem; white-space: pre-wrap; border: 1.5px dashed var(--line);
}

/* ===== Auth modal ===== */
.auth-body { padding: 1.2rem; }
.auth-body > .muted { margin-top: 0; }
.auth-body form { display: flex; flex-direction: column; gap: .9rem; padding: 0; margin-top: .9rem; }
.auth-body label { font-weight: 800; font-size: .9rem; display: flex; flex-direction: column; gap: .3rem; }
.auth-body input {
  font: inherit; padding: .55rem .7rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--paper);
}
.auth-body input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem;
  font: inherit; font-weight: 800; padding: .6rem 1rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  transition: background .15s;
}
.google-btn:hover { background: var(--paper); }
.divider {
  display: flex; align-items: center; gap: .8rem; color: #7a6b82;
  font-size: .82rem; margin: 1rem 0 .2rem;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }
.auth-actions { display: flex; gap: .6rem; }
.auth-actions .btn { flex: 1; }
.auth-error {
  background: #FDECEF; color: #B3123E; border-radius: 10px;
  padding: .6rem .8rem; font-size: .85rem; margin: 0;
}

/* ===== My orders ===== */
.orders-body { padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem; max-height: 70vh; overflow-y: auto; }
.order-card { border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.order-card-head { display: flex; justify-content: space-between; align-items: baseline; }
.order-ref { font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--purple); }
.order-date { font-size: .8rem; color: #7a6b82; }
.order-items { list-style: none; padding: 0; margin: .5rem 0; font-size: .9rem; }
.order-items li { padding: .1rem 0; }
.order-card-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: .5rem; }
.order-total { font-weight: 800; color: var(--pink); }
.order-pay { font-size: .8rem; color: #7a6b82; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff; font-weight: 700;
  padding: .7rem 1.4rem; border-radius: 999px; z-index: 120;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: pop-up .25s ease;
}
@keyframes pop-up { from { transform: translate(-50%, 12px); opacity: 0; } }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .flavour-cols, .delivery-cols, .wholesale { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .brand-logo { height: 46px; }
  .account-wrap { margin-left: auto; }
  .account-btn span { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; }
}
