/* ==========================================================================
   Sticky Snappi Shotz — landing page styles
   ========================================================================== */

:root {
  --font-heading: 'Outfit', 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

  --color-primary: #F2646F;
  --color-primary-hover: #DE4B57;
  --color-navy: #17456B;
  --color-text-dark: #1E293B;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;

  --bg-page: #FFFFFF;
  --bg-hero: #FBF1E2;
  --bg-cream: #FAF2E5;
  --bg-topbar: #FDF0D9;

  --border-light: #F1F5F9;
  --border-card: #E7EAF0;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.10);

  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;

  /* --- Liquid glass -----------------------------------------------------
     Translucent panes that blur and colour-boost whatever sits behind them,
     with a bright specular rim on the lit (top) edge and a soft one opposite,
     the way iOS 26 renders glass. */
  --glass-fill: linear-gradient(150deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 255, 255, 0.46) 46%,
      rgba(255, 255, 255, 0.60) 100%);
  --glass-fill-soft: linear-gradient(150deg,
      rgba(255, 255, 255, 0.62) 0%,
      rgba(255, 255, 255, 0.30) 52%,
      rgba(255, 255, 255, 0.44) 100%);
  /* Panes that float over content (header, menu) need a denser frost than
     panes sitting on the page background, or text reads through them. */
  --glass-fill-dense: linear-gradient(150deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.80) 48%,
      rgba(255, 255, 255, 0.86) 100%);
  --glass-blur: saturate(190%) blur(22px);
  --glass-blur-strong: saturate(200%) blur(34px);
  --glass-edge: rgba(255, 255, 255, 0.72);
  --glass-rim:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -14px 26px -18px rgba(23, 69, 107, 0.16);
  --glass-lift: 0 10px 30px -12px rgba(23, 69, 107, 0.28);
  --glass-lift-lg: 0 22px 48px -18px rgba(23, 69, 107, 0.34);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Hard guard: the page must never scroll sideways. Without it a single
     mis-sized child shifts the whole layout off-centre on a phone, which reads
     as "everything is pushed to one side". */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: #FFFDFA;
  color: var(--color-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------- Glass system */

/* Ambient colour behind the page. Glass needs something to refract, so these
   soft washes sit under the translucent sections and bleed through them. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 10% 14%, rgba(242, 100, 111, 0.16), transparent 62%),
    radial-gradient(42% 36% at 90% 26%, rgba(56, 189, 248, 0.15), transparent 64%),
    radial-gradient(46% 40% at 78% 78%, rgba(255, 183, 3, 0.16), transparent 62%),
    radial-gradient(40% 36% at 16% 84%, rgba(242, 100, 111, 0.13), transparent 62%),
    #FFFDFA;
}

/* Every pane below shares the same recipe: blurred translucent fill, a hairline
   specular edge, and a highlight that reads as light catching the rim. */
.occasion-card,
.product-card,
.testimonial-card,
.gallery-item,
.feature-icon,
.step-icon-wrap,
.coupon-badge,
.social-icon-btn,
.carousel-arrow,
.btn-outline,
.btn-outline-center,
.header-content,
.main-nav {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* the moving specular sheen every glass pane carries across its top-left */
.occasion-card::after,
.product-card::after,
.testimonial-card::after,
.offer-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.10) 30%,
      rgba(255, 255, 255, 0) 52%);
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.occasion-card:hover::after,
.product-card:hover::after { opacity: 1; }

/* a highlight that travels across the pane on hover, the way glass catches light
   as it tilts */
.occasion-card::before,
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(105deg,
      transparent 38%,
      rgba(255, 255, 255, 0.42) 48%,
      transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.occasion-card:hover::before,
.product-card:hover::before { transform: translateX(120%); }

/* keyboard users get the same lit rim the pointer gets */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-full);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-heart { animation: none; }
  .occasion-card::before,
  .product-card::before { display: none; }
  .occasion-card,
  .product-card,
  .gallery-item,
  .testimonials-track,
  .btn-primary,
  .btn-outline,
  .btn-view-all,
  .btn-outline-center,
  .social-icon-btn,
  .carousel-arrow { transition: none; }
  .occasion-card:hover,
  .product-card:hover,
  .gallery-item:hover { transform: none; }
}

/* Without backdrop-filter the panes would read as flat washes, so fall back to
   an opaque surface rather than leaving text on near-transparent white. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .occasion-card,
  .product-card,
  .testimonial-card,
  .header-content,
  .coupon-badge,
  .feature-icon,
  .step-icon-wrap { background: #FFFFFF; }
}

/* --------------------------------------------------------------- Top bar */
.top-bar {
  background-color: rgba(253, 240, 217, 0.78);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #8A5A12;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ---------------------------------------------------------------- Header */
.site-header {
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  /* side padding keeps the floating capsule inset from the viewport edges on
     narrow screens, where the container alone would run edge to edge */
  padding: 10px 16px;
  /* The capsule floats ON the hero rather than above it: pulling the hero up by
     the header's full height puts the same cream behind the glass, instead of
     the ambient wash showing as pink/blue patches beside it. 10 + 68 + 10 */
  margin-bottom: -88px;
}

/* the bar floats as a single glass capsule, content scrolling under it */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding: 0 22px;
  border-radius: var(--radius-full);
  background: var(--glass-fill-dense);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-lift), var(--glass-rim);
}

.logo-link img { height: 46px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.is-active { color: var(--color-primary); }

.caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.65;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.cart-button {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -8px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* tinted glass: the coral shows through a lit pane rather than sitting flat */
.btn-order-nav {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, #F4707A, #E9505F);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  box-shadow:
    0 8px 20px -8px rgba(233, 80, 95, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -6px 12px -8px rgba(120, 20, 30, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-order-nav:hover {
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px -8px rgba(233, 80, 95, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px -8px rgba(120, 20, 30, 0.5);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: #334155;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero */
.hero-section {
  /* Flat behind the photo — exactly the cream its backdrop is shifted to, so the
     photo has no perceptible edge. Only the last few percent, well below the
     photo, fades out into the ambient wash. */
  background: linear-gradient(180deg,
      #FBF3E7 0%, #FBF3E7 92%, rgba(251, 243, 231, 0) 100%);
  padding: 142px 0 46px;   /* 88 of that clears the overlaid header */
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 48px;
  align-items: center;
}

/* grid tracks default to min-content, which lets a non-wrapping child (the
   feature tray on mobile) push the column past the viewport */
.hero-grid > * { min-width: 0; }

.hero-title {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--color-navy);
}

.hero-title-line { display: block; position: relative; }
.hero-title-accent { color: var(--color-primary); }

.hero-sparkle {
  display: inline-block;
  width: 26px;
  height: 26px;
  vertical-align: super;
  margin-left: 8px;
  filter: hue-rotate(155deg) saturate(1.4);
}

.hero-description {
  font-size: 15.5px;
  color: var(--color-text-muted);
  margin: 20px 0 28px;
  max-width: 400px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.btn-primary {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #F4707A, #E9505F);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 14px 30px -12px rgba(233, 80, 95, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -7px 14px -9px rgba(120, 20, 30, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 38px -14px rgba(233, 80, 95, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -7px 14px -9px rgba(120, 20, 30, 0.55);
}

/* clear glass: no tint, just the blur and its lit rim */
.btn-outline {
  border: 1px solid var(--glass-edge);
  background: var(--glass-fill);
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  box-shadow: var(--glass-lift), var(--glass-rim);
  transition: transform 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-outline:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--glass-lift-lg), var(--glass-rim);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-lift), var(--glass-rim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon img { width: 20px; height: 20px; }

.feature-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-navy);
}

.feature-text small {
  font-size: 11px;
  color: var(--color-text-light);
}

.hero-visual { position: relative; }

/* The photo ships with its linen backdrop recoloured to the band's cream
   (tools/blend_hero.py), so it needs no frame — just a short feather on each
   edge to absorb the remaining difference against the band's gradient. */
.hero-showcase-img {
  width: 100%;
  position: relative;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero-heart {
  position: absolute;
  width: 40px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
  animation: floatHeart 3s ease-in-out infinite alternate;
}

.hero-heart-top { top: -6px; right: 4%; width: 34px; }
.hero-heart-bottom { bottom: 6%; left: 22%; animation-delay: 0.8s; }

@keyframes floatHeart {
  0%   { transform: translateY(0) rotate(-5deg); }
  100% { transform: translateY(-8px) rotate(5deg); }
}

/* -------------------------------------------------------- Section header */
.section-header {
  text-align: center;
  margin-bottom: 34px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.title-sparkle { width: 20px; height: 20px; flex-shrink: 0; }

.section-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ------------------------------------------------------------- Occasions */
.occasions-section { padding: 56px 0 44px; }

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.occasion-card {
  display: block;
  position: relative;
  background: var(--glass-fill);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-lift), var(--glass-rim);
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.occasion-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: var(--glass-lift-lg), var(--glass-rim);
}

.occasion-img-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #F8FAFC;
}

.occasion-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.occasion-card:hover .occasion-img-wrap img { transform: scale(1.06); }

.occasion-title {
  display: block;
  padding: 13px 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-dark);
}

/* -------------------------------------------------------------- Products */
.products-section { padding: 44px 0 56px; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}

.product-card {
  display: block;
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--glass-lift), var(--glass-rim);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: var(--glass-lift-lg), var(--glass-rim);
}

.product-img-wrap {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

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

.product-title {
  display: block;
  padding: 14px 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.center-btn-wrap { text-align: center; }

.btn-view-all {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #F4707A, #E9505F);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  display: inline-block;
  box-shadow:
    0 14px 30px -12px rgba(233, 80, 95, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -7px 14px -9px rgba(120, 20, 30, 0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-view-all:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 38px -14px rgba(233, 80, 95, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -7px 14px -9px rgba(120, 20, 30, 0.55);
}

/* ---------------------------------------------------------- Offer banner */
.special-offer-section { padding: 12px 0 20px; }

.offer-banner {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 44%),
    linear-gradient(135deg, #F4707A 0%, #EA5163 100%);
  border-radius: var(--radius-lg);
  padding: 24px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 22px 44px -18px rgba(233, 80, 95, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -10px 22px -14px rgba(120, 20, 30, 0.55);
  position: relative;
}

.offer-banner::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 9px;
  pointer-events: none;
}

.offer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.offer-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #FFE08A;
  margin-bottom: 2px;
}

.offer-heading {
  font-family: var(--font-heading);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 0.3px;
}

.offer-subtext {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}

.offer-arrow {
  width: 110px;
  height: 56px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.coupon-badge {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #FFDD86, #FFCB55);
  color: #1E293B;
  padding: 11px 18px;
  border-radius: 14px;
  text-align: center;
  border: 2px dashed rgba(160, 116, 20, 0.75);
  box-shadow:
    0 10px 22px -10px rgba(160, 116, 20, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.coupon-badge .use-code {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #6B5A22;
}

.coupon-badge .code {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* ---------------------------------------------------------- How it works */
.how-it-works-section { padding: 50px 0 56px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  text-align: center;
  position: relative;
}

/* dotted connector between the step circles */
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 45px;
  left: calc(50% + 56px);
  right: calc(-50% + 56px);
  border-top: 2px dotted #F3C0C6;
}

.step-icon-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  padding: 3px;
  border-radius: 50%;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-lift), var(--glass-rim);
}

.step-icon-wrap img { width: 100%; height: 100%; }

.step-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 5px;
}

.step-desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.45;
  max-width: 180px;
  margin: 0 auto;
}

/* -------------------------------------------------------------- Our work */
.gallery-section {
  padding: 52px 0 56px;
  /* translucent so the ambient wash shows through and the panes have colour
     to refract, rather than blurring flat paint */
  background-color: rgba(250, 242, 229, 0.72);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 5px;
  background: var(--glass-fill-soft);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-lift), var(--glass-rim);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.012);
  box-shadow: var(--glass-lift-lg), var(--glass-rim);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
}

.btn-outline-center {
  border: 1px solid rgba(242, 100, 111, 0.55);
  background: var(--glass-fill);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 28px;
  border-radius: var(--radius-full);
  display: inline-block;
  box-shadow: var(--glass-lift), var(--glass-rim);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-outline-center:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--glass-lift-lg), var(--glass-rim);
}

/* ---------------------------------------------------------- Testimonials */
.testimonials-section {
  padding: 52px 0 0;
  position: relative;
}

.testimonials-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 50%),
    linear-gradient(180deg, #F4707A, #E9505F);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow:
    0 10px 22px -10px rgba(233, 80, 95, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
}

.carousel-arrow:hover { transform: scale(1.08); }
.carousel-arrow img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

.testimonials-viewport {
  overflow: hidden;
  flex: 1;
  padding: 6px 4px 10px;
}

.testimonials-track {
  display: flex;
  gap: 22px;
  transition: transform 0.45s ease;
}

.testimonial-card {
  position: relative;
  flex: 0 0 calc((100% - 44px) / 3);
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--glass-lift), var(--glass-rim);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.testimonial-card > * { position: relative; z-index: 1; }

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.testimonial-stars img { width: 15px; height: 15px; }

.testimonial-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
}

.testimonial-author {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-text-dark);
}

/* scalloped edge between testimonials and footer */
.scallop-divider {
  height: 26px;
  margin-top: 42px;
  background-color: #FAFAFA;
  -webkit-mask-image: radial-gradient(circle 14px at 14px 0, transparent 0 14px, #000 15px);
  mask-image: radial-gradient(circle 14px at 14px 0, transparent 0 14px, #000 15px);
  -webkit-mask-size: 28px 100%;
  mask-size: 28px 100%;
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
}

/* ---------------------------------------------------------------- Footer */
.site-footer {
  background-color: rgba(250, 250, 250, 0.66);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  backdrop-filter: var(--glass-blur-strong);
  padding: 34px 0 18px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-logo { height: 38px; margin-bottom: 14px; }

.footer-desc {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 250px;
}

.social-icons { display: flex; gap: 10px; }

.social-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-lift), var(--glass-rim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-icon-btn img { width: 15px; height: 15px; }
.social-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-lift-lg), var(--glass-rim);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a,
.contact-item a {
  font-size: 12.5px;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-links a:hover,
.contact-item a:hover { color: var(--color-primary); }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

.contact-item img { width: 14px; height: 14px; flex-shrink: 0; }

.footer-btn-order {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #F4707A, #E9505F);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: var(--radius-full);
  display: inline-block;
  box-shadow:
    0 12px 26px -12px rgba(233, 80, 95, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.2s;
}

.footer-btn-order:hover { transform: translateY(-2px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #ECEEF1;
  font-size: 11.5px;
  color: var(--color-text-light);
}

.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a:hover { color: var(--color-primary); }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 1024px) {
  .main-nav { gap: 18px; }
  .hero-title { font-size: 38px; }
  .occasions-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonial-card { flex: 0 0 calc((100% - 22px) / 2); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 24px;
    right: 24px;
    background: var(--glass-fill-dense);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    backdrop-filter: var(--glass-blur-strong);
    border-radius: var(--radius-lg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    box-shadow: var(--glass-lift-lg), var(--glass-rim);
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .main-nav:not(.is-open) { border: 0; }
  .main-nav.is-open { border: 1px solid var(--glass-edge); }

  .main-nav.is-open { max-height: 340px; padding: 8px 24px 16px; }
  .main-nav .nav-link { padding: 11px 0; width: 100%; }

  /* once the hero stacks, centring it keeps it in line with the centred section
     headings — left-aligned text under a full-width photo reads as lopsided */
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-text-col { text-align: center; }
  .hero-description { max-width: 46ch; margin-left: auto; margin-right: auto; }
  .hero-buttons,
  .hero-features { justify-content: center; }
  .hero-heart-top { right: 8%; }

  .products-grid,
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .step-card:not(:last-child)::after { display: none; }

  .offer-banner { flex-direction: column; text-align: center; }
  .offer-arrow { display: none; }

  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ==========================================================================
   Mobile
   Not a narrowed desktop: the page is rebuilt around the thumb. Rows of cards
   become swipeable trays that bleed to the screen edges, the steps become a
   vertical timeline, and the primary actions move to a dock at the bottom of
   the screen where the thumb already rests.
   ========================================================================== */

/* the dock is a small-screen device only */
.mobile-dock { display: none; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* ---- header: logo + cart + menu only; ordering lives in the dock ---- */
  .btn-order-nav { display: none; }
  .site-header { padding: 8px 12px; margin-bottom: -76px; }  /* 8 + 60 + 8 */
  .header-content { height: 60px; padding: 0 16px; }
  .logo-link img { height: 38px; }
  .header-actions { gap: 10px; }

  .main-nav { top: 74px; left: 12px; right: 12px; }
  .main-nav.is-open { max-height: 400px; padding: 6px 20px 14px; }
  .main-nav .nav-link {
    padding: 14px 2px;                 /* 44px+ tap target */
    font-size: 15px;
  }
  .main-nav .nav-link + .nav-link { border-top: 1px solid rgba(23, 69, 107, 0.08); }

  /* ---- hero: compact enough that the headline, both actions and the photo
     all land above the fold on a 390pt screen. Centred, so it lines up with the
     centred section headings below instead of hugging the left edge. ---- */
  .hero-section { padding: 92px 0 26px; }   /* 76 clears the overlaid header */
  .hero-text-col { text-align: center; }
  .hero-title { font-size: 26px; line-height: 1.14; letter-spacing: -0.2px; }
  .hero-sparkle { display: none; }
  .hero-description {
    font-size: 13.5px;
    line-height: 1.5;
    margin: 10px auto 16px;
    max-width: 34ch;
  }

  .hero-buttons { gap: 9px; margin-bottom: 18px; justify-content: center; }
  .hero-buttons > * {
    flex: 1;
    justify-content: center;
    padding: 11px 10px;
    font-size: 13px;
  }

  /* Feature pills become a swipeable tray. `safe center` matters: a plain
     `center` pushes overflowing content off BOTH edges, so the first pill gets
     clipped and can't be scrolled back to. Older engines get flex-start. */
  .hero-features {
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    justify-content: safe center;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding: 0 16px;
    margin: 0 -16px;
    padding: 2px 16px 4px;
    scrollbar-width: none;
  }
  .hero-features::-webkit-scrollbar { display: none; }

  .feature-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    gap: 7px;
    padding: 6px 12px 6px 6px;
    border-radius: var(--radius-full);
    background: var(--glass-fill);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-lift), var(--glass-rim);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
  }
  .feature-icon {
    width: 26px;
    height: 26px;
    box-shadow: none;
    border: 0;
    background: rgba(255, 255, 255, 0.7);
  }
  .feature-icon img { width: 15px; height: 15px; }
  .feature-text strong { font-size: 11px; }
  .feature-text small { font-size: 10px; }

  /* The flatlay runs edge to edge, cropped to a band so the magnets fill the
     frame instead of floating in the photo's empty margins. Cropping is safe:
     the backdrop is a single flat cream, so the feathered edges still land on
     the band colour. */
  .hero-visual { margin: 12px -16px 0; }
  .hero-showcase-img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 50% 48%;
  }
  .hero-heart { width: 28px; }
  .hero-heart-top { width: 24px; top: 2px; right: 6%; }
  .hero-heart-bottom { bottom: 4%; left: 16%; }

  /* ---- section rhythm ---- */
  .section-title { font-size: 18px; gap: 7px; letter-spacing: 0.2px; }
  .title-sparkle { width: 14px; height: 14px; }
  .section-subtitle { font-size: 12px; margin-top: 4px; }
  .section-header { margin-bottom: 16px; }
  .occasions-section { padding: 28px 0 20px; }
  .products-section { padding: 20px 0 26px; }
  .how-it-works-section { padding: 26px 0 28px; }
  .gallery-section { padding: 26px 0 30px; }
  .testimonials-section { padding: 26px 0 0; }

  /* ---- swipeable trays ---- */
  .occasions-grid,
  .products-grid {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    justify-content: safe center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* without this, snapping pulls the first card flush to the screen edge and
       swallows the tray's inset */
    scroll-padding: 0 16px;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .occasions-grid::-webkit-scrollbar,
  .products-grid::-webkit-scrollbar { display: none; }

  .occasion-card { flex: 0 0 41%; scroll-snap-align: start; }
  .product-card { flex: 0 0 62%; scroll-snap-align: start; }
  .products-grid { margin-bottom: 4px; }

  .occasion-title { font-size: 12px; padding: 9px 6px; }
  .product-title { font-size: 13px; padding: 11px 8px; }

  /* ---- offer ---- */
  .special-offer-section { padding: 4px 0 12px; }
  .offer-banner { padding: 18px 16px; gap: 10px; }
  .offer-tag { font-size: 10px; }
  .offer-heading { font-size: 17px; line-height: 1.22; }
  .offer-subtext { font-size: 12px; }
  .coupon-badge { width: 100%; padding: 9px 16px; }
  .coupon-badge .code { font-size: 17px; }

  /* ---- how it works: a vertical timeline ---- */
  .steps-grid {
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .step-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: start;
    gap: 12px;
    text-align: left;
    padding-bottom: 16px;
  }
  /* the disc holds the rail column across both rows; title and copy stack in
     the second column beside it (auto-placement would drop the copy under the
     disc otherwise) */
  .step-icon-wrap {
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 2px;
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .step-title,
  .step-desc { grid-column: 2; }
  /* the connector now runs down the rail between the discs */
  .step-card:not(:last-child)::after {
    display: block;
    content: "";
    position: absolute;
    top: 56px;
    bottom: 4px;
    left: 25px;
    right: auto;
    border-top: 0;
    border-left: 2px dotted #F3C0C6;
  }
  .step-title { margin-top: 6px; margin-bottom: 2px; font-size: 14px; }
  .step-desc { margin: 0; max-width: none; font-size: 12px; }

  /* ---- gallery ---- */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 22px; }

  /* ---- reviews: swipe them, no arrows needed ---- */
  .carousel-arrow { display: none; }
  .testimonials-container { gap: 0; }
  .testimonials-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .testimonials-viewport::-webkit-scrollbar { display: none; }
  .testimonials-track { gap: 10px; transform: none !important; }
  .testimonial-card { flex: 0 0 78%; scroll-snap-align: center; padding: 16px 15px; gap: 9px; }
  .testimonial-text { font-size: 12.5px; }

  /* ---- footer ---- */
  .site-footer { padding: 26px 0 14px; }
  /* the two link lists sit side by side; brand and contact span the full width */
  .footer-top-grid { grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
  .footer-brand,
  .footer-contact-col { grid-column: 1 / -1; }
  .footer-desc { max-width: none; }
  .contact-item {
    padding: 10px 13px;
    border-radius: var(--radius-md);
    background: var(--glass-fill);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-rim);
  }
  .footer-btn-order { display: block; text-align: center; padding: 12px 26px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* ---- the dock ---- */
  .mobile-dock {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    /* clear of the home indicator on notched iPhones */
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 90;
    padding: 5px;
    gap: 3px;
    border-radius: var(--radius-full);
    background: var(--glass-fill-dense);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    backdrop-filter: var(--glass-blur-strong);
    border: 1px solid var(--glass-edge);
    box-shadow: var(--glass-lift-lg), var(--glass-rim);
  }

  .dock-item {
    flex: 1;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-radius: var(--radius-full);
    font-size: 9.5px;
    font-weight: 600;
    color: var(--color-navy);
    transition: background 0.2s, transform 0.15s;
  }

  .dock-item img { width: 16px; height: 16px; }
  .dock-item:active { transform: scale(0.94); }

  .dock-cta {
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 48%),
      linear-gradient(180deg, #F4707A, #E9505F);
    color: #fff;
    box-shadow:
      0 10px 22px -10px rgba(233, 80, 95, 0.9),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  .dock-cta img { filter: brightness(0) invert(1); }

  /* so the dock never covers the last of the page */
  body { padding-bottom: 74px; }
}
