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

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --primary: #1b3726;
  --primary-hover: #152d1e;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --border: #e0ddd7;
  --green: #34c759;
  --red: #ff3b30;
  --radius: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --placeholder: #c8c5be;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
}

.page {
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding-bottom: 48px;
}

/* ── Section transitions ───────────────────────────────────────── */

.section-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
}

.section-panel.section-out {
  overflow: hidden;
}

.active-section {
  display: block;
  animation: slideIn 0.3s ease forwards;
}

.section-out {
  display: block;
  animation: slideOut 0.25s ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* ══════════════════════════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════════════════════════ */

/* ── Top nav ──────────────────────────────────────────────────── */

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.clear-order-btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.clear-order-btn:hover {
  background: var(--border);
  color: var(--text);
}

.claimed-btn {
  background: var(--border) !important;
  color: var(--text-secondary) !important;
  cursor: default !important;
}

/* ── Carousel ─────────────────────────────────────────────────── */

.carousel-wrap {
  position: relative;
  padding-bottom: 20px;
  overflow: hidden;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 0 20px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 88%;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide video {
  background: #fff;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background: var(--placeholder);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.cdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.cdot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ── Product info ─────────────────────────────────────────────── */

.product-info {
  padding: 28px 20px 48px;
}

.product-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.product-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* Stats row */

.product-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.stat-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-block-right {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.stat-big {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-desc {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.stat-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}

.stat-stars {
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-rating {
  color: var(--primary);
}

.stat-stars-icons {
  color: #ebb058;
}

.stat-reviews {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Inline CTA (permanent, in-page) ─────────────────────────── */

.inline-cta {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.bestseller-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.inline-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.inline-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

.inline-cta-btn {
  display: block;
  width: 100%;
  padding: 16px;
  margin-top: 24px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.inline-cta-btn:hover {
  background: var(--primary-hover);
}

.inline-cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.inline-guarantee {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ── Social proof toasts ──────────────────────────────────────── */

.toast-container {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  pointer-events: none;
  max-width: 96vw;
}

.toast {
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 12px;
  white-space: nowrap;
  transform: translateY(calc(-100% - 24px));
  transition: transform 0.35s ease;
}

.toast.show {
  transform: translateY(0);
}

/* ── Full-width hero banner ────────────────────────────────────── */

.hero-banner {
  margin: 32px 20px 0;
  border-radius: 20px;
  overflow: hidden;
}

.hero-banner-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ── TikTok video previews ────────────────────────────────────── */

.tiktok-section {
  padding: 40px 0 0;
  margin: 0 20px;
}

.tiktok-heading {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.tiktok-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.tiktok-row::-webkit-scrollbar {
  display: none;
}

.tiktok-card {
  position: relative;
  flex: 0 0 44%;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #000;
  cursor: pointer;
}

.tiktok-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tiktok-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #000;
  padding-left: 3px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}

.tiktok-card:hover .tiktok-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.tiktok-meta {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: flex-end;
}

.tiktok-duration {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

/* ══════════════════════════════════════════════════════════════════
   REVIEWS SECTION
   ════════════════════════════════════════════════════════════════ */

.reviews-section {
  padding: 48px 20px 32px;
}

.reviews-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 32px;
}

/* ── Rating summary ───────────────────────────────────────────── */

.reviews-summary {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.reviews-score {
  text-align: center;
}

.score-number {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.score-stars {
  font-size: 1.1rem;
  color: #ebb058;
  margin-top: 4px;
  letter-spacing: 2px;
}

.score-count {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* Bar breakdown */

.reviews-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
}

.bar-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Review cards ─────────────────────────────────────────────── */

.reviews-list {
  display: flex;
  flex-direction: column;
}

.review-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.review-card:first-child {
  padding-top: 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.reviewer-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.reviewer-badge {
  display: block;
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 2px;
}

.review-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.review-stars {
  font-size: 0.85rem;
  color: #ebb058;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.review-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.review-reply {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 10px;
  border-left: 3px solid var(--primary);
}

.reply-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.review-reply p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Load more button ─────────────────────────────────────────── */

.load-more-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 24px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.load-more-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Sticky bottom bar ────────────────────────────────────────── */

.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sticky-bar.hidden,
.sticky-bar.scrolled-away {
  opacity: 0;
  transform: translateX(-50%) translateY(100%);
  pointer-events: none;
}

.sticky-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sticky-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--placeholder);
  flex-shrink: 0;
}

.sticky-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.sticky-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.cta-btn {
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.cta-btn:hover {
  background: var(--primary-hover);
}

.cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════════
   CHECKOUT STEPS
   ════════════════════════════════════════════════════════════════ */

.step {
  padding: 0 16px;
}

/* ── Step header ──────────────────────────────────────────────── */

.step-header {
  padding: 40px 0 20px;
}

.back-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  display: inline-block;
}

.step-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* ── Card ─────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ── Stripe Element containers ────────────────────────────────── */

#address-element {
  min-height: 200px;
}

/* ── Phone input (Stripe-style) ──────────────────────────────── */

.stripe-input-wrap {
  position: relative;
}

.stripe-label {
  display: block;
  font-size: 0.93rem;
  font-weight: 400;
  color: #30313d;
  margin-bottom: 4px;
}

.stripe-input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #30313d;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}

.stripe-input::placeholder {
  color: #aab7c4;
}

.stripe-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 55, 38, 0.12), 0 1px 1px 0 rgba(0,0,0,0.08);
}

.stripe-input:-webkit-autofill,
.stripe-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 3px rgba(27, 55, 38, 0.12);
  -webkit-text-fill-color: #30313d;
}

.field-error {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 6px;
  min-height: 1em;
}

/* ── Next / Pay button ────────────────────────────────────────── */

.next-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.next-btn:hover:not(:disabled) {
  background: var(--primary-hover);
}

.next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Shipping notice ──────────────────────────────────────────── */

.shipping-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
}

.shipping-notice p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}

/* ── Payment-specific ─────────────────────────────────────────── */

#express-checkout-element {
  margin-bottom: 0;
  display: none;
}

.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

#payment-element {
  min-height: 100px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-error {
  font-size: 0.85rem;
  color: var(--red);
  text-align: center;
  margin-top: 12px;
  min-height: 1.2em;
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ── Processing overlay ───────────────────────────────────────── */

.processing-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  overflow-y: auto;
}

.processing-overlay.active {
  display: block;
}

body:has(.processing-overlay.active) {
  overflow: hidden;
}

/* ── Decline banner ───────────────────────────────────────────── */

.decline-banner {
  background: #ff3b30;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 20px;
  border-radius: 12px;
  margin-bottom: 12px;
}

/* ── Payment layout (two-col on desktop) ─────────────────────── */

.payment-layout {
  display: flex;
  flex-direction: column;
}

.payment-right .order-summary {
  margin-top: 24px;
}

.payment-right .terms-box {
  margin-top: 20px;
}

/* ── Urgency notice ───────────────────────────────────────────── */

.urgency-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.urgency-icon {
  font-size: 1rem;
}

/* ── Order Summary ────────────────────────────────────────────── */

.order-summary {
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.order-summary-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.order-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg);
  flex-shrink: 0;
}

.order-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.order-item-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.order-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.order-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.order-line.order-total {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: none;
  padding-bottom: 0;
}

/* ── Terms & Conditions ──────────────────────────────────────── */

.terms-box {
  margin-top: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.terms-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.terms-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.terms-box p:last-child {
  margin-bottom: 0;
}

.terms-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 14px 0 6px;
}

.terms-box a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Progress dots ────────────────────────────────────────────── */

.progress-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.25);
}

/* ══════════════════════════════════════════════════════════════════
   SUCCESS / ERROR PAGES
   ════════════════════════════════════════════════════════════════ */

.error-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  text-align: center;
  margin-top: 60px;
}

.error-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.15s ease;
}

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

/* ── Confirmation ring (spinner → check / error X) ────────────── */

.conf-ring {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.conf-ring svg {
  width: 100%;
  height: 100%;
}

.ring-track {
  stroke: rgba(26, 115, 232, 0.15);
  transition: stroke 0.3s ease;
}

.ring-arc {
  stroke: #1a73e8;
  stroke-dasharray: 157;
  stroke-dashoffset: 117;
  transform-origin: center;
  animation: ringRotate 0.9s linear infinite;
  transition: stroke 0.3s ease;
}

.ring-check {
  stroke: #1a73e8;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  fill: none;
  transition: stroke-dashoffset 0.35s ease 0.3s;
}

.ring-x {
  stroke: #ff3b30;
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  transition: stroke-dashoffset 0.3s ease 0.3s;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

/* Success: stop spin, complete circle, draw check */
.ring-success .ring-arc {
  animation: ringComplete 0.4s ease forwards;
}

.ring-success .ring-check {
  stroke-dashoffset: 0;
}

@keyframes ringComplete {
  to {
    stroke-dashoffset: 0;
    transform: rotate(0deg);
  }
}

/* Error: stop spin, turn red, draw X */
.ring-error .ring-arc {
  animation: ringCompleteError 0.4s ease forwards;
  stroke: #ff3b30;
}

.ring-error .ring-track {
  stroke: rgba(255, 59, 48, 0.15);
}

.ring-error .ring-x {
  stroke-dashoffset: 0;
}

@keyframes ringCompleteError {
  to {
    stroke-dashoffset: 0;
    transform: rotate(0deg);
  }
}

/* Skeleton shimmer */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skel-shimmer {
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease infinite;
}

.conf-skeletons {
  transition: opacity 0.4s ease;
}

.skel-hide {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.skel {
  border-radius: 12px;
  margin-bottom: 16px;
}

.skel-map {
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease infinite;
  margin-bottom: 24px;
}

.skel-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease infinite;
  margin-bottom: 10px;
}

.skel-line:last-child { margin-bottom: 0; }

.skel-line-40 { width: 40%; }
.skel-line-50 { width: 50%; }
.skel-line-60 { width: 60%; }
.skel-line-70 { width: 70%; }
.skel-line-80 { width: 80%; }
.skel-line-90 { width: 90%; }

.skel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.skel-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease infinite;
}

.skel-item-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skel-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.skel-columns .skel {
  margin-bottom: 0;
}

.skel-btn {
  height: 48px;
  border-radius: 100px;
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease infinite;
}

/* Real content overlays skeletons, fades in place */
.conf-content {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.conf-content-in {
  position: static;
  left: auto;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 520px) {
  .skel-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .skel-map {
    height: 180px;
  }
}

/* Error body */
.conf-error-body {
  text-align: center;
  padding: 24px 0;
  display: none;
}

.conf-error-body.conf-content-in {
  display: block;
}

.conf-error-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.conf-error-msg {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.55;
}

/* ── Order confirmation (Shopify-style) ───────────────────────── */

.conf {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

.conf-header {
  padding: 20px 0 28px;
}

.conf-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}


.conf-hero-text {
  display: flex;
  flex-direction: column;
}

.conf-order-num {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.conf-thank-you {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ── Map ──────────────────────────────────────────────────────── */

.conf-map-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.conf-map {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.conf-map-overlay {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.conf-map-label {
  background: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.conf-map-label strong {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}

.conf-map-label span {
  font-size: 0.88rem;
  color: var(--text);
}

/* ── Sections ─────────────────────────────────────────────────── */

.conf-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.conf-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.conf-section-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Order item ───────────────────────────────────────────────── */

.conf-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 0;
  margin-bottom: 0;
}

.conf-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.conf-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conf-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.conf-item-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.conf-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

/* ── Totals ───────────────────────────────────────────────────── */

.conf-totals {
  display: flex;
  flex-direction: column;
}

.conf-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 0;
}

.conf-total-bold {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

/* ── Columns (customer info + shipping) ───────────────────────── */

.conf-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.conf-col {
  margin-bottom: 0;
}

.conf-detail-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conf-detail-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.conf-detail-value {
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-all;
}

.conf-address {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

/* ── Subscription notice ──────────────────────────────────────── */

.conf-sub-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: #f8f8f6;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.conf-sub-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Continue shopping ────────────────────────────────────────── */

.conf-continue-btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  background: transparent;
  border: 1.5px solid var(--primary);
  border-radius: 100px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.conf-continue-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Responsive stacking for small screens ────────────────────── */

@media (max-width: 520px) {
  .conf-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .conf-map {
    height: 180px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--primary);
  color: #fff;
  padding: 56px 20px 0;
  margin-top: 48px;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.footer-tagline {
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  max-width: 380px;
}

.footer-newsletter {
  margin-top: 28px;
}

.footer-nl-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.footer-nl-form {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  overflow: hidden;
  max-width: 360px;
}

.footer-nl-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 14px 20px;
  outline: none;
}

.footer-nl-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer-nl-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.15rem;
  padding: 14px 20px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.footer-nl-btn:hover {
  opacity: 0.7;
}

/* Link columns */

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.footer-heading {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  transition: opacity 0.15s;
}

.footer-col a:hover {
  opacity: 0.65;
}

/* Bottom bar */

.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Large decorative text */

.footer-big-text {
  font-size: clamp(3.5rem, 14vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  padding: 32px 0 24px;
  white-space: nowrap;
  overflow: hidden;
}

/* ── Responsive: tablet ────────────────────────────────────────── */

@media (min-width: 600px) {
  .topnav {
    padding-top: 28px;
  }

  .product-title {
    font-size: 2rem;
  }
}

/* ── Responsive: desktop (two-column Seed layout) ────────────── */

@media (min-width: 900px) {
  .page {
    max-width: 1200px;
    padding: 0 48px 64px;
  }

  /* Landing becomes a 2-col grid */
  #landing.active-section,
  #landing.section-out {
    display: grid;
    grid-template-columns: 44fr 56fr;
    gap: 0 48px;
  }

  .topnav {
    grid-column: 1 / -1;
    padding: 32px 0 24px;
  }

  /* Left column: images as vertical grid instead of horizontal carousel */
  .carousel-wrap {
    grid-column: 1;
    padding-bottom: 0;
  }

  .carousel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .carousel-slide {
    flex: none;
    aspect-ratio: 1;
  }

  .carousel-slide:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 1;
  }

  .carousel-dots {
    display: none;
  }

  /* Right column: wrapper stretches to row height set by images */
  .product-info-col {
    grid-column: 2;
  }

  /* Product info sticks inside the stretched wrapper */
  .product-info {
    position: sticky;
    top: 24px;
    padding: 8px 0 48px;
  }

  .product-title {
    font-size: 2.1rem;
  }

  .product-stats {
    gap: 24px;
  }

  .stat-big {
    font-size: 2.2rem;
  }

  /* Full-width banner spans both columns, ends the sticky zone */
  .hero-banner {
    grid-column: 1 / -1;
    margin: 40px 0 0;
    border-radius: 24px;
  }

  .hero-banner-img {
    aspect-ratio: 21 / 9;
  }

  .tiktok-section {
    grid-column: 1 / -1;
    margin: 40px 0 0;
    padding: 48px 0 0;
  }

  .tiktok-heading {
    font-size: 1.8rem;
  }

  .tiktok-card {
    flex: 0 0 22%;
  }

  /* Reviews: full-width, side-by-side summary + cards */
  .reviews-section {
    grid-column: 1 / -1;
    padding: 64px 0 40px;
  }

  .reviews-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .reviews-summary {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .reviews-score {
    text-align: left;
    flex-shrink: 0;
    min-width: 160px;
  }

  .reviews-bars {
    flex: 1;
    max-width: 480px;
  }

  .reviews-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
  }

  .review-card {
    break-inside: avoid;
  }

  /* Hide sticky bottom bar on desktop — inline CTA is always visible */
  .sticky-bar {
    display: none !important;
  }

  /* Checkout steps stay narrow + centered */
  .step {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .step.step-payment {
    max-width: 960px;
  }

  .step-payment .payment-layout {
    flex-direction: row;
    gap: 40px;
    align-items: flex-start;
  }

  .step-payment .payment-left {
    flex: 1;
    min-width: 0;
  }

  .step-payment .payment-right {
    flex: 0 0 340px;
    position: sticky;
    top: 24px;
  }

  .step-payment .payment-right .order-summary {
    margin-top: 0;
  }

  .progress-dots {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer desktop */
  .site-footer {
    grid-column: 1 / -1;
    padding: 64px 56px 0;
    border-radius: 0;
    margin-top: 64px;
    margin-left: -48px;
    margin-right: -48px;
  }

  .footer-inner {
    flex-direction: row;
    gap: 64px;
  }

  .footer-brand-col {
    flex: 0 0 320px;
  }

  .footer-links {
    flex: 1;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-big-text {
    font-size: clamp(6rem, 12vw, 12rem);
    padding: 48px 0 32px;
  }
}
