/* =========================================================
   Share a Surprise — design tokens
   Palette: butter cream bg, deep ink text, toy-box accents
   Display: Baloo 2 (rounded, playful, handles the "tag" voice)
   Body: Nunito Sans
   Signature element: the hand-tied paper gift tag, stamped FREE,
   reused in the hero, on every product card, and at checkout.
   ========================================================= */

:root {
  --bg: #FFF8E7;
  --paper: #FFFFFF;
  --ink: #262340;
  --ink-soft: #5B5773;
  --line: #EAE1C8;

  --coral: #FF6F59;
  --coral-dark: #E85440;
  --sky: #3E97CC;
  --sky-soft: #DDF0FB;
  --mint: #3F9E75;
  --mint-soft: #DFF4E9;
  --yellow: #E89A2C;
  --yellow-soft: #FBEBCE;
  --tag-red: #E14A4A;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;

  --shadow-card: 0 6px 18px rgba(38, 35, 64, 0.08);
  --shadow-pop: 0 20px 50px rgba(38, 35, 64, 0.25);

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 0.4em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 111, 89, 0.35);
}
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 231, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.logo-mark { font-size: 1.5rem; }
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--coral-dark); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px 10px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
}
.cart-icon { font-size: 1.1rem; }
.cart-count {
  background: var(--coral);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .cart-label { display: none; }
}

/* ---------- Gift tag signature element ---------- */
.giftTag {
  position: relative;
  width: 168px;
  aspect-ratio: 1 / 1.15;
  background: var(--paper);
  border: 2px dashed var(--tag-red);
  border-radius: 18px 18px 60px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-card);
}
.giftTag::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 50%;
  width: 2px;
  height: 36px;
  background: #C7B78E;
  transform: rotate(8deg);
  transform-origin: bottom center;
}
.giftTag-hole {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--tag-red);
}
.giftTag-stamp {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--tag-red);
  letter-spacing: 1px;
  margin-top: 14px;
  transform: rotate(-4deg);
}
.giftTag-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.giftTag--big { width: 230px; }
.giftTag--big .giftTag-stamp { font-size: 2.2rem; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 60px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coral-dark);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
}
.price-word {
  color: var(--coral);
  position: relative;
  white-space: nowrap;
}
.hero-sub {
  max-width: 46ch;
  font-size: 1.08rem;
  margin-top: 14px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.hero-tag { display: flex; justify-content: center; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-tag { order: -1; }
}

/* ---------- How it works ---------- */
.how { padding: 20px 0 70px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.how-step {
  background: var(--paper);
  border-radius: var(--radius-m);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
}
.how-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--coral-dark);
  background: var(--yellow-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.how-step h3 { font-size: 1.12rem; }
.how-step p { font-size: 0.95rem; margin-bottom: 0; }

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

/* ---------- Shop ---------- */
.shop { padding: 20px 0 76px; }
.shop-head { margin-bottom: 22px; }
.shop-sub { margin-top: -8px; }

.shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-group { display: flex; gap: 10px; }
.filter-btn {
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 0.95rem;
}
.filter-btn .count { opacity: 0.6; font-size: 0.85em; }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.search-group input {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 11px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--paper);
  min-width: 240px;
}
.search-group input:focus { border-color: var(--sky); outline: none; }

.empty-state {
  text-align: center;
  padding: 40px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-m);
  padding: 0 0 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card .product-body { padding: 16px 18px 0; display: flex; flex-direction: column; flex: 1; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(38,35,64,0.14); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media img { transition: transform 0.25s ease; }

.product-media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tone-coral  .product-media { background: #FFE3DC; }
.tone-sky    .product-media { background: var(--sky-soft); }
.tone-mint   .product-media { background: var(--mint-soft); }
.tone-yellow .product-media { background: var(--yellow-soft); }

.mini-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--tag-red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.product-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.tone-coral  .product-sub { color: var(--coral-dark); }
.tone-sky    .product-sub { color: var(--sky); }
.tone-mint   .product-sub { color: var(--mint); }
.tone-yellow .product-sub { color: var(--yellow); }

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  margin-bottom: 6px;
}
.product-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-meta span {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}
.product-desc {
  font-size: 0.88rem;
  flex: 1;
  margin-bottom: 14px;
}
.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.product-price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--coral);
  font-size: 1.1rem;
}
.add-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.add-btn:hover { background: var(--coral-dark); }
.add-btn.is-added { background: var(--mint); }

/* ---------- Meet the team ---------- */
.team { padding: 10px 0 76px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.team-card {
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: 30px 24px 26px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.team-card:hover { transform: translateY(-5px) rotate(0deg) !important; box-shadow: 0 16px 30px rgba(38,35,64,0.16); }
.team-card:nth-child(1) { transform: rotate(-1.5deg); }
.team-card:nth-child(2) { transform: rotate(1deg); }
.team-card:nth-child(3) { transform: rotate(-0.8deg); }

.team-badge {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  border: 3px solid var(--paper);
  outline: 3px dashed;
  outline-offset: 4px;
  position: relative;
}
.team-card:nth-child(1) .team-badge { background: var(--yellow-soft); outline-color: var(--yellow); }
.team-card:nth-child(2) .team-badge { background: #FFE3DC; outline-color: var(--coral); }
.team-card:nth-child(3) .team-badge { background: var(--mint-soft); outline-color: var(--mint); }

.team-title {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.team-card:nth-child(1) .team-title { background: var(--yellow-soft); color: var(--yellow); }
.team-card:nth-child(2) .team-title { background: #FFE3DC; color: var(--coral-dark); }
.team-card:nth-child(3) .team-title { background: var(--mint-soft); color: var(--mint); }

.team-name { font-size: 1.15rem; margin-bottom: 6px; }
.team-blurb { font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card:nth-child(1), .team-card:nth-child(2), .team-card:nth-child(3) { transform: none; }
}

/* ---------- Pickup section ---------- */
.pickup { padding: 10px 0 76px; }
.pickup-card {
  background: var(--paper);
  border-radius: var(--radius-l);
  padding: 34px 36px;
  box-shadow: var(--shadow-card);
  border-left: 6px solid var(--coral);
}
.pickup-card p { font-size: 1rem; }
.pickup-note { color: var(--ink-soft); font-style: italic; margin-top: 12px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #E7E4F0;
  padding: 40px 0;
}
.footer-inner { text-align: center; }
.footer-logo { justify-content: center; color: #fff; margin-bottom: 10px; }
.site-footer p { color: #C7C3DA; max-width: 46ch; margin: 0 auto; font-size: 0.92rem; }

/* ---------- Cart drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(38,35,64,0.45);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(400px, 92vw);
  background: var(--bg);
  box-shadow: -14px 0 40px rgba(0,0,0,0.2);
  z-index: 51;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart-drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-close {
  background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--ink);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }

.cart-empty { text-align: center; padding: 40px 10px; }
.cart-empty-sub { font-size: 0.88rem; }

.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: flex;
  gap: 12px;
  background: var(--paper);
  border-radius: var(--radius-s);
  padding: 12px;
  box-shadow: var(--shadow-card);
  align-items: center;
}
.cart-item-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--yellow-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.92rem; }
.cart-item-meta { font-size: 0.78rem; color: var(--ink-soft); }
.cart-item-remove {
  background: none; border: none; color: var(--tag-red);
  font-size: 0.8rem; font-weight: 700; cursor: pointer; padding: 4px;
}

.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.cart-total-row {
  display: flex; justify-content: space-between; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; margin-bottom: 14px;
}
.cart-total-amount { color: var(--coral); }

/* ---------- Checkout modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(38,35,64,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg);
  border-radius: var(--radius-l);
  width: min(460px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px 28px 28px;
  position: relative;
  box-shadow: var(--shadow-pop);
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; font-size: 1.1rem; cursor: pointer; color: var(--ink-soft);
}
.modal-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--coral-dark);
  margin-bottom: 4px;
}
.modal h2 { font-size: 1.4rem; margin-bottom: 16px; }

.review-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; }
.review-item {
  display: flex; justify-content: space-between; gap: 10px;
  background: var(--paper); border-radius: var(--radius-s); padding: 10px 12px;
  font-size: 0.9rem; box-shadow: var(--shadow-card);
}
.review-item-price { color: var(--coral); font-weight: 700; }

.review-total-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  border-top: 1px dashed var(--line); padding-top: 14px; margin-bottom: 20px;
}
.review-total-amount { color: var(--coral); }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 5px; }
.field em { font-weight: 400; color: var(--ink-soft); font-style: normal; }
.field-hint { font-weight: 400 !important; font-size: 0.8rem !important; color: var(--ink-soft); margin-top: 4px; }
.field-error {
  color: var(--tag-red);
  background: #FDECEC;
  border-radius: var(--radius-s);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  margin: -6px 0 14px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); outline: none; }
.form-actions { display: flex; gap: 12px; margin-top: 18px; }
.form-actions .btn-ghost { flex: 0 0 auto; }
.form-actions .btn-primary { flex: 1; }

.confirm-tag { display: flex; justify-content: center; margin-bottom: 6px; }
.confirm-tag .giftTag { width: 120px; transform: rotate(-4deg); }
.confirm-tag .giftTag-stamp { font-size: 1.3rem; margin-top: 10px; }
#stepConfirm h2 { text-align: center; }
.confirm-order-no {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  color: var(--coral-dark); margin-bottom: 14px;
}
.confirm-summary { text-align: center; font-size: 0.92rem; }
.confirm-details {
  background: var(--paper); border-radius: var(--radius-s); padding: 16px;
  box-shadow: var(--shadow-card); margin-bottom: 18px;
}
.confirm-details p { font-size: 0.92rem; margin-bottom: 8px; }
.confirm-note { color: var(--ink-soft); font-style: italic; margin-bottom: 0; }

@media (max-width: 480px) {
  .modal { padding: 24px 18px 22px; }
}
