/* ============================================================
   The Crinkle Crumble — Main Stylesheet
   Mobile-first · Apple UI scale · Inter + DM Sans
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --dark:        #142535;
  --dark-hover:  #1a3047;
  --text:        #4A5F73;
  --muted:       #8A9BAD;
  --light-bg:    #F6F8FB;
  --light-blue:  #DBE9F5;
  --white:       #FFFFFF;
  --border:      #E8EDF2;
  --success:     #2D9B6F;
  --success-bg:  #EBF7F1;
  --success-bdr: rgba(45,155,111,0.35);
  --warn:        #D97706;
  --danger:      #DC2626;

  /* Apple-scale radii */
  --r-xs:  8px;
  --r-sm:  12px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-pill: 100px;

  /* Apple-scale heights */
  --h-input:  52px;
  --h-btn:    56px;
  --h-btn-sm: 44px;

  --shadow:       0 2px 16px rgba(20,37,53,0.07);
  --shadow-card:  0 6px 28px rgba(20,37,53,0.11);
  --shadow-modal: 0 -6px 40px rgba(20,37,53,0.18);

  --sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --head: 'Inter', -apple-system, system-ui, sans-serif;
  --ease: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--sans); border: none; outline: none; background: none; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
  padding: 0 24px;
  max-width: 960px; margin: 0 auto;
}

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

.nav__logo-img {
  width: 64px; height: 64px;
  border-radius: 50%; object-fit: contain; flex-shrink: 0;
}

.nav__logo-text { display: flex; flex-direction: column; gap: 2px; }

.nav__logo-name {
  font-family: var(--head);
  font-size: 19px; font-weight: 800;
  color: var(--dark); letter-spacing: -0.4px; line-height: 1.15;
}

.nav__logo-sub {
  font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.9px; text-transform: uppercase;
}

.nav__menu-btn {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); transition: background var(--ease);
}

.nav__menu-btn:hover { background: var(--light-blue); }
.nav__menu-btn svg { width: 22px; height: 22px; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--light-bg); }

.hero__track {
  display: flex;
  transition: transform 0.46s cubic-bezier(0.4,0,0.2,1);
}

.hero__slide {
  min-width: 100%; position: relative;
  aspect-ratio: 4/3; overflow: hidden;
}

@media (min-width: 600px) { .hero__slide { aspect-ratio: 16/6; } }

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

.hero__slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,37,53,0.78) 0%, rgba(20,37,53,0.08) 55%, transparent 100%);
}

.hero__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 28px; z-index: 2; color: var(--white);
}

.hero__badge {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px); padding: 6px 14px; border-radius: var(--r-pill);
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--head); font-size: 30px; font-weight: 800; line-height: 1.2;
  margin-bottom: 10px;
}

.hero__sub { font-size: 14px; opacity: 0.85; margin-bottom: 22px; }

.hero__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--dark);
  font-weight: 700; font-size: 14px;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: var(--ease); letter-spacing: -0.1px;
}

.hero__cta:hover { background: var(--light-blue); }
.hero__cta svg { width: 15px; height: 15px; }

.hero__dots {
  position: absolute; bottom: 16px; right: 24px;
  display: flex; gap: 7px; z-index: 3;
}

.hero__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: var(--ease); cursor: pointer;
}

.hero__dot.is-active {
  width: 22px; border-radius: 3.5px; background: var(--white);
}

/* ── SECTION ──────────────────────────────────────────────── */
.section { padding: 44px 0; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 20px; margin-bottom: 28px;
}

.section-title {
  font-family: var(--head); font-size: 24px; font-weight: 800;
  color: var(--dark); line-height: 1.3;
}

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

.view-all {
  font-size: 14px; font-weight: 600; color: var(--dark);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}

.view-all svg { width: 15px; height: 15px; }

/* ── CAMPAIGN GRID — 2 cols max ───────────────────────────── */
.campaigns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 20px;
  max-width: 960px; margin: 0 auto;
}

@media (max-width: 440px) {
  .campaigns-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── CAMPAIGN CARD ────────────────────────────────────────── */
.campaign-card {
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}

.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.campaign-card__img-wrap {
  position: relative; aspect-ratio: 1 / 0.82;
  background: var(--light-bg); overflow: hidden;
}

.campaign-card__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
}

.campaign-card:hover .campaign-card__img { transform: scale(1.05); }

.campaign-card__badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--dark); color: var(--white);
}

.campaign-card__badge--extended { background: var(--warn); }
.campaign-card__badge--funded   { background: var(--success); }

.campaign-card__count {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(6px);
  border-radius: var(--r-pill); padding: 4px 10px;
  font-size: 11px; font-weight: 700; color: var(--dark);
  display: flex; align-items: center; gap: 4px;
}

.campaign-card__count svg { width: 11px; height: 11px; }

/* Card body */
.campaign-card__body {
  padding: 16px 16px 0;
  flex: 1; display: flex; flex-direction: column; gap: 14px;
}

.campaign-card__name {
  font-family: var(--head); font-size: 15px; font-weight: 800;
  color: var(--dark); line-height: 1.3;
}

.campaign-card__price { font-size: 13px; color: var(--muted); }

.campaign-card__price strong {
  font-size: 16px; font-weight: 700; color: var(--dark);
}

/* ── PROGRESS BAR — large, bold ───────────────────────────── */
.progress-wrap { display: flex; flex-direction: column; gap: 10px; }

.progress-bar {
  height: 10px;
  background: var(--light-blue);
  border-radius: var(--r-pill);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(20,37,53,0.06);
}

.progress-bar__fill {
  height: 100%; border-radius: var(--r-pill);
  width: 0%;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
  background: linear-gradient(90deg, var(--dark) 0%, #2a4a6b 100%);
  position: relative;
  overflow: hidden;
}

/* Shimmer on fill */
.progress-bar__fill::after {
  content: '';
  position: absolute; top: 0; left: -100%; bottom: 0; width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  animation: bar-shimmer 2.2s infinite;
}

@keyframes bar-shimmer {
  0%   { left: -60%; }
  100% { left: 130%; }
}

.progress-bar__fill--success {
  background: linear-gradient(90deg, var(--success) 0%, #37c285 100%);
}

.progress-bar__fill--warn {
  background: linear-gradient(90deg, var(--warn) 0%, #f59e1a 100%);
}

.progress-stats {
  display: flex; justify-content: space-between; align-items: center;
}

.progress-stats__pct {
  font-family: var(--head); font-weight: 800; font-size: 13px; color: var(--dark);
}

.days-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  padding: 5px 11px; border-radius: var(--r-pill);
  border: 1.5px solid var(--border); color: var(--muted);
  background: var(--white);
}

.days-pill svg { width: 11px; height: 11px; }
.days-pill--warn    { border-color: var(--warn);    color: var(--warn); }
.days-pill--success { border-color: var(--success); color: var(--success); }

.campaign-card__desc {
  font-size: 12px; color: var(--muted); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Card CTA — More Info */
.campaign-card__cta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 16px;
  background: var(--dark); color: var(--white);
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 16px; border-radius: 0 0 var(--r-md) var(--r-md);
  transition: background var(--ease); letter-spacing: -0.1px;
}

.campaign-card__cta:hover { background: var(--dark-hover); }
.campaign-card__cta svg { width: 15px; height: 15px; }

.campaign-card__cta--disabled {
  background: var(--light-bg); color: var(--muted); cursor: not-allowed;
}

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-it-works {
  background: var(--light-bg); border-radius: var(--r-md);
  margin: 0 20px 44px; padding: 32px 26px;
  max-width: 920px;
}

@media (min-width: 960px) { .how-it-works { margin-left: auto; margin-right: auto; } }

.how-it-works__title {
  font-family: var(--head); font-size: 20px; font-weight: 800;
  color: var(--dark); margin-bottom: 26px;
}

.hiw-steps { display: flex; flex-direction: column; gap: 20px; }
.hiw-step  { display: flex; align-items: flex-start; gap: 16px; }

.hiw-step__num {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--dark); color: var(--white);
  font-family: var(--head); font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.hiw-step__label { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.hiw-step__desc  { font-size: 13px; color: var(--muted); line-height: 1.6; }

@media (min-width: 600px) {
  .hiw-steps { flex-direction: row; }
  .hiw-step  { flex-direction: column; align-items: center; text-align: center; }
}

/* ── BATCH DETAIL ─────────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--dark);
  padding: 20px 20px 0;
}

.back-link svg { width: 18px; height: 18px; }
.back-link:hover { opacity: 0.65; }

/* Product carousel */
.product-carousel {
  position: relative; overflow: hidden;
  background: var(--light-bg); margin-bottom: 32px;
}

.product-carousel__track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.4,0,0.2,1);
}

.product-carousel__slide {
  min-width: 100%; aspect-ratio: 1 / 0.82; overflow: hidden;
}

@media (min-width: 600px) { .product-carousel__slide { aspect-ratio: 16/7; } }

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

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(20,37,53,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); z-index: 5; transition: background var(--ease);
}

.carousel-arrow:hover { background: var(--white); }
.carousel-arrow svg  { width: 18px; height: 18px; }
.carousel-arrow--prev { left: 14px; }
.carousel-arrow--next { right: 14px; }

.carousel-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 3;
}

.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.5); transition: var(--ease);
}

.carousel-dot.is-active {
  width: 20px; border-radius: 3.5px; background: var(--white);
}

/* Detail layout */
.detail-content {
  padding: 0 20px 120px;   /* bottom padding for sticky bar */
  max-width: 960px; margin: 0 auto;
}

.detail-header { margin-bottom: 24px; }

.detail-header__status {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}

.status-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--dark); color: var(--white);
}

.status-badge--extended { background: var(--warn); }
.status-badge--funded   { background: var(--success); }

.detail-header__title {
  font-family: var(--head); font-size: 30px; font-weight: 800;
  color: var(--dark); line-height: 1.2; margin-bottom: 8px;
}

.detail-header__price { font-size: 16px; color: var(--muted); }

.detail-header__price strong {
  font-size: 24px; font-weight: 800; color: var(--dark);
}

/* Funding block */
.funding-block {
  background: var(--light-bg); border-radius: var(--r-md);
  padding: 22px; margin-bottom: 28px;
}

.funding-block__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 20px;
}

.funding-stat__val {
  font-family: var(--head); font-size: 26px; font-weight: 800;
  color: var(--dark); line-height: 1.1;
}

.funding-stat__label { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Funding block uses a taller progress bar */
.funding-block .progress-bar { height: 14px; }
.funding-block .progress-bar__fill { height: 14px; }

/* Sections */
.detail-section { margin-bottom: 32px; }

.detail-section__title {
  font-family: var(--head); font-size: 17px; font-weight: 800;
  color: var(--dark); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}

.detail-section__body { font-size: 15px; line-height: 1.75; color: var(--text); }

.ingredients-list {
  display: flex; flex-wrap: wrap; gap: 9px; list-style: none;
}

.ingredients-list li {
  background: var(--light-bg); border-radius: var(--r-pill);
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--dark);
}

.nutrition-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border-radius: var(--r-sm); overflow: hidden;
}

.nutrition-table th,
.nutrition-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left;
}

.nutrition-table th {
  font-family: var(--head); font-size: 11px; font-weight: 700;
  color: var(--muted); letter-spacing: 0.6px; text-transform: uppercase;
  background: var(--light-bg);
}

.nutrition-table td:last-child { text-align: right; font-weight: 700; color: var(--dark); }
.nutrition-table tr:last-child td { border-bottom: none; }

/* ── AUTH CALLOUT ─────────────────────────────────────────── */
/* Used inside pledge modal only */
.auth-callout {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--success-bg);
  border: 1.5px solid var(--success-bdr);
  border-radius: var(--r-md); padding: 16px 18px;
}

.auth-callout__icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--success);
  display: flex; align-items: center; justify-content: center; color: white;
}

.auth-callout__icon svg { width: 20px; height: 20px; }

.auth-callout__text { flex: 1; }

.auth-callout__headline {
  font-family: var(--head); font-size: 14px; font-weight: 800;
  color: #1a5c3a; line-height: 1.35; margin-bottom: 4px;
}

.auth-callout__sub { font-size: 12px; color: #2a7a4f; line-height: 1.55; }

/* Auth callout at bottom of payment section — compact pill style */
.auth-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--success-bg);
  border: 1.5px solid var(--success-bdr);
  border-radius: var(--r-md);
  padding: 13px 16px;
  margin-top: 4px;
}

.auth-pill__icon {
  flex-shrink: 0;
  color: var(--success);
}

.auth-pill__icon svg { width: 20px; height: 20px; display: block; }

.auth-pill__text {
  font-size: 12px; line-height: 1.5; color: #1a5c3a;
}

.auth-pill__text strong { font-weight: 800; }

/* ── STICKY CTA BAR ───────────────────────────────────────── */
.detail-cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(20,37,53,0.09);
}

.detail-cta-bar__price { flex: 1; }

.detail-cta-bar__price-main {
  font-family: var(--head); font-size: 20px; font-weight: 800; color: var(--dark);
}

.detail-cta-bar__price-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

/* Primary pledge button */
.btn-pledge {
  flex-shrink: 0;
  background: var(--dark); color: var(--white);
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  padding: 16px 32px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background var(--ease); white-space: nowrap;
  letter-spacing: -0.2px;
}

.btn-pledge:hover { background: var(--dark-hover); }
.btn-pledge svg { width: 15px; height: 15px; }

/* ── PLEDGE MODAL ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,37,53,0.5);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}

.modal-overlay.is-open { opacity: 1; pointer-events: all; }

@media (min-width: 600px) { .modal-overlay { align-items: center; } }

.pledge-modal {
  background: var(--white);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  width: 100%; max-width: 520px;
  max-height: 94vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-modal);
  scrollbar-width: none;
}

.pledge-modal::-webkit-scrollbar { display: none; }
.modal-overlay.is-open .pledge-modal { transform: translateY(0); }

@media (min-width: 600px) {
  .pledge-modal {
    border-radius: var(--r-lg);
    transform: translateY(16px) scale(0.97); opacity: 0;
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.26s ease;
  }
  .modal-overlay.is-open .pledge-modal { transform: translateY(0) scale(1); opacity: 1; }
}

.modal__handle {
  display: flex; justify-content: center; padding: 16px 0 0;
}

.modal__handle-bar {
  width: 40px; height: 5px; background: var(--border); border-radius: 2.5px;
}

@media (min-width: 600px) { .modal__handle { display: none; } }

.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0;
}

.modal__title {
  font-family: var(--head); font-size: 20px; font-weight: 800; color: var(--dark);
}

.modal__variant-tag { font-size: 13px; color: var(--muted); margin-top: 4px; }

.modal__close {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--light-bg); display: flex; align-items: center; justify-content: center;
  color: var(--dark); flex-shrink: 0; transition: background var(--ease);
}

.modal__close:hover { background: var(--light-blue); }
.modal__close svg { width: 18px; height: 18px; }

.modal__body { padding: 22px 24px; display: flex; flex-direction: column; gap: 20px; }

/* ── FORM ELEMENTS — Apple scale ──────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 13px; font-weight: 700; color: var(--dark); letter-spacing: 0.1px;
}

.form-input {
  width: 100%; height: var(--h-input);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 0 16px;
  font-family: var(--sans); font-size: 16px; color: var(--dark);
  background: var(--white); outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-input:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(20,37,53,0.08);
}

.form-input::placeholder { color: var(--muted); }

.form-select {
  width: 100%; height: var(--h-input);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 0 16px;
  font-family: var(--sans); font-size: 16px; color: var(--dark);
  background: var(--white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5F73' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  outline: none; cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.form-select:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(20,37,53,0.08);
}

/* Qty stepper */
.qty-stepper {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  overflow: hidden; height: var(--h-input);
}

.qty-stepper__btn {
  width: 56px; height: 100%;
  background: var(--light-bg); color: var(--dark);
  font-size: 24px; display: flex; align-items: center; justify-content: center;
  transition: background var(--ease); flex-shrink: 0;
}

.qty-stepper__btn:hover { background: var(--light-blue); }
.qty-stepper__btn:disabled { color: var(--muted); cursor: not-allowed; }

.qty-stepper__val {
  flex: 1; text-align: center;
  font-family: var(--head); font-size: 18px; font-weight: 800; color: var(--dark);
}

/* Coupon */
.coupon-row { display: flex; gap: 10px; }
.coupon-row .form-input { flex: 1; }

.btn-apply {
  height: var(--h-input); padding: 0 20px;
  background: var(--dark); color: var(--white);
  border-radius: var(--r-sm); font-size: 14px; font-weight: 700;
  white-space: nowrap; transition: background var(--ease);
}

.btn-apply:hover { background: var(--dark-hover); }

.coupon-success {
  display: none; font-size: 13px;
  color: var(--success); font-weight: 600; margin-top: 2px;
}

/* Shipping preview */
.shipping-preview {
  background: var(--light-bg); border-radius: var(--r-sm);
  padding: 16px 18px; display: none; flex-direction: column; gap: 8px;
}

.shipping-preview.is-visible { display: flex; }

.shipping-preview__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px;
}

.shipping-preview__label { color: var(--muted); }
.shipping-preview__val   { font-weight: 700; color: var(--dark); }
.shipping-preview__eta   { font-size: 12px; color: var(--muted); }

.shipping-preview__total-row {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 4px; padding-top: 12px;
  font-family: var(--head); font-size: 16px; font-weight: 800; color: var(--dark);
}

/* Payment section */
.payment-section__label {
  font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 12px;
}

.payment-divider {
  display: flex; align-items: center; gap: 12px; margin: 14px 0;
}

.payment-divider::before, .payment-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.payment-divider__text { font-size: 12px; color: var(--muted); font-weight: 500; }

/* Stripe CTA button — Apple primary action scale */
.btn-stripe {
  width: 100%; height: 58px;
  background: var(--dark); color: var(--white);
  border-radius: var(--r-sm);
  font-size: 16px; font-weight: 700; letter-spacing: -0.1px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: background var(--ease);
}

.btn-stripe:hover { background: var(--dark-hover); }
.btn-stripe__icon { width: 20px; height: 20px; opacity: 0.85; }

.paypal-btn-wrap {
  width: 100%; min-height: 52px;
  border-radius: var(--r-sm); overflow: hidden;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--light-bg); border-top: 1px solid var(--border);
  padding: 40px 20px; text-align: center;
}

.site-footer__logo-img {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: contain; margin: 0 auto 12px;
}

.site-footer__name {
  font-family: var(--head); font-size: 16px; font-weight: 800;
  color: var(--dark); margin-bottom: 6px;
}

.site-footer__tagline { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

.site-footer__links {
  display: flex; justify-content: center;
  gap: 22px; font-size: 13px; color: var(--muted); flex-wrap: wrap;
}

.site-footer__links a:hover { color: var(--dark); }
.site-footer__copy { margin-top: 22px; font-size: 12px; color: var(--muted); opacity: 0.65; }

/* ── UTILS ────────────────────────────────────────────────── */
.no-scroll { overflow: hidden; }

@media (min-width: 600px) {
  .hero__title { font-size: 42px; }
  .section { padding: 56px 0; }
}

/* ── ACCORDION (collapsible sections) ─────────────────────── */
.accordion .detail-section__title {
  /* Override the h2 default — make it a full-width clickable row */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: none;
  cursor: pointer;
  /* Keep existing title styles */
  font-family: var(--head);
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;           /* body padding handles spacing */
  transition: color var(--ease);
}

.accordion .detail-section__title:hover { color: var(--text); }

.accordion__sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
  flex: 1;                    /* push chevron to the right */
}

.accordion__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* Rotated state when open */
.accordion__trigger[aria-expanded="true"] .accordion__chevron {
  transform: rotate(180deg);
}

/* Animated body */
.accordion__body {
  overflow: hidden;
  padding-top: 0;
  /* height is handled by JS max-height animation */
}

.accordion__body:not([hidden]) {
  padding-top: 16px;
}

/* Smooth expand/collapse via max-height */
.accordion__body.is-animating,
.accordion__body.is-open {
  display: block !important; /* override hidden during animation */
}

/* ── HERO SLIDE — batch meta & days-left badge ────────────── */
.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero__days-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 10px 18px;
  min-width: 72px;
  text-align: center;
}

.hero__days-badge--upcoming {
  background: rgba(217,119,6,0.22);
  border-color: rgba(217,119,6,0.5);
}

.hero__days-num {
  font-family: var(--head);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}

.hero__days-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 3px;
}

.hero__dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.82);
}

.hero__date-row svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.75;
}

.hero__date-label {
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  min-width: 58px;
}

/* ── SPECIAL REQUEST SECTION ──────────────────────────────── */
.special-request {
  background: var(--dark);
  border-radius: var(--r-md);
  margin: 0 20px 44px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 920px;
}

@media (min-width: 960px) { .special-request { margin-left: auto; margin-right: auto; } }

@media (min-width: 600px) {
  .special-request {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
}

.special-request__icon {
  width: 56px; height: 56px; flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}

.special-request__icon svg { width: 28px; height: 28px; }

.special-request__copy { flex: 1; }

.special-request__title {
  font-family: var(--head);
  font-size: 20px; font-weight: 800;
  color: #fff; line-height: 1.25;
  margin-bottom: 6px;
}

.special-request__sub {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

.btn-contact {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--dark);
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 15px 28px; border-radius: var(--r-pill);
  transition: background var(--ease), transform var(--ease);
  white-space: nowrap;
}

.btn-contact:hover {
  background: var(--light-blue);
  transform: translateY(-1px);
}

.btn-contact svg { width: 16px; height: 16px; }

/* ── CONTACT LIGHTBOX ─────────────────────────────────────── */
.contact-overlay {
  position: fixed; inset: 0;
  background: rgba(10,20,30,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}

.contact-overlay.is-open {
  opacity: 1; pointer-events: all;
}

.contact-modal {
  background: var(--white);
  border-radius: var(--r-lg);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(10,20,30,0.3);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.34,1.56,0.64,1), opacity 0.28s ease;
  scrollbar-width: none;
}

.contact-modal::-webkit-scrollbar { display: none; }

.contact-overlay.is-open .contact-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.contact-modal__header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 28px 0;
  gap: 16px;
}

.contact-modal__title {
  font-family: var(--head);
  font-size: 22px; font-weight: 800;
  color: var(--dark); line-height: 1.25;
}

.contact-modal__sub {
  font-size: 14px; color: var(--muted); margin-top: 5px; line-height: 1.5;
}

.contact-modal__close {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--light-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); transition: background var(--ease);
}

.contact-modal__close:hover { background: var(--light-blue); }
.contact-modal__close svg { width: 18px; height: 18px; }

.contact-modal__body {
  padding: 24px 28px 32px;
  display: flex; flex-direction: column; gap: 18px;
}

/* 2-col grid for short fields */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) { .form-row-3 { grid-template-columns: 1fr; } }

.form-textarea {
  width: 100%;
  min-height: 100px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: var(--sans); font-size: 15px; color: var(--dark);
  background: var(--white); outline: none; resize: vertical;
  transition: border-color var(--ease), box-shadow var(--ease);
  line-height: 1.5;
}

.form-textarea:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(20,37,53,0.08);
}

.form-textarea::placeholder { color: var(--muted); }

/* Captcha box */
.captcha-box {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  background: var(--light-bg);
}

.captcha-checkbox {
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  background: var(--white);
  transition: border-color var(--ease), background var(--ease);
}

.captcha-checkbox.is-checked {
  background: var(--success);
  border-color: var(--success);
}

.captcha-checkbox svg {
  width: 14px; height: 14px;
  color: white; opacity: 0;
  transition: opacity 0.2s ease;
}

.captcha-checkbox.is-checked svg { opacity: 1; }

.captcha-label {
  font-size: 14px; font-weight: 500; color: var(--dark); cursor: pointer;
}

.captcha-logo {
  margin-left: auto; text-align: center; flex-shrink: 0;
}

.captcha-logo__text {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--muted); text-transform: uppercase; display: block;
}

.captcha-logo__sub {
  font-size: 8px; color: var(--muted); opacity: 0.7;
}

/* Submit button */
.btn-submit {
  width: 100%; height: 58px;
  background: var(--dark); color: #fff;
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  border-radius: var(--r-sm); letter-spacing: -0.1px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background var(--ease);
}

.btn-submit:hover { background: var(--dark-hover); }
.btn-submit:disabled {
  background: var(--muted); cursor: not-allowed;
}

.btn-submit svg { width: 18px; height: 18px; }

/* Success state */
.contact-success {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 28px;
  text-align: center; gap: 16px;
}

.contact-success__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--success-bg); border: 2px solid var(--success);
  display: flex; align-items: center; justify-content: center;
  color: var(--success);
}

.contact-success__icon svg { width: 36px; height: 36px; }

.contact-success__title {
  font-family: var(--head); font-size: 22px; font-weight: 800;
  color: var(--dark);
}

.contact-success__sub { font-size: 14px; color: var(--muted); line-height: 1.6; }
