@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  color-scheme: light;
  --radius: 0.65rem;
  --primary: oklch(0.32 0.12 262);
  --primary-foreground: oklch(0.985 0 0);
  --background: oklch(0.985 0.003 250);
  --foreground: oklch(0.24 0.04 262);
  --card: oklch(1 0 0);
  --secondary: oklch(0.955 0.015 250);
  --secondary-foreground: oklch(0.32 0.08 262);
  --muted: oklch(0.955 0.01 250);
  --muted-foreground: oklch(0.5 0.03 262);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.91 0.012 250);
  --input: oklch(0.89 0.015 250);
  --font-sans: 'Nunito Sans', ui-sans-serif, system-ui, sans-serif;
  --font-heading: 'Nunito', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.min-h-screen { min-height: 100vh; }
.bg-background { background: var(--background); }
.max-w-lg { max-width: 32rem; margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .inner {
  max-width: 32rem;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.site-header img.logo { height: 3rem; object-fit: contain; }
.site-header.small img.logo { height: 2.5rem; }
.header-back {
  position: absolute;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background: none;
  border: none;
}
.header-secure {
  position: absolute;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #059669;
}

/* ---------- Urgency bar ---------- */
.urgency-bar {
  background: #dc2626;
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 1rem;
}
main.page { max-width: 32rem; margin: 0 auto; padding: 0 1rem; }
.section { margin-top: 1rem; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.carousel-track {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.carousel-track img {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
}
.carousel-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.375rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.carousel-arrow.left { left: 0.5rem; }
.carousel-arrow.right { right: 0.5rem; }
.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.375rem;
}
.carousel-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: color-mix(in oklch, var(--primary) 30%, transparent);
  border: none;
  padding: 0;
  transition: all 0.2s;
}
.carousel-dot.active { width: 1.25rem; background: var(--primary); }

/* ---------- Badges ---------- */
.badge-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.factory-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(to right, var(--primary), #1d4ed8);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.375rem 0.875rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 25%, transparent);
}
.factory-badge::after {
  content: "";
  position: absolute;
  top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: factory-shine 2.8s ease-in-out infinite;
}
@keyframes factory-shine { 0% { left: -80%; } 45% { left: 130%; } 100% { left: 130%; } }
.badge-original {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #d1fae5;
  color: #047857;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

/* ---------- Stars ---------- */
.stars { display: inline-flex; align-items: center; gap: 0.125rem; }
.stars svg { fill: #fbbf24; color: #fbbf24; }

/* ---------- Typography helpers ---------- */
.title-xl { font-size: 1.25rem; font-weight: 800; line-height: 1.3; color: var(--foreground); }
.text-muted { color: var(--muted-foreground); }
.price-big { font-size: 2.25rem; font-weight: 900; color: #059669; line-height: 1; }
.price-note { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

.stock-alert {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-primary {
  background: #10b981;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.btn-primary:hover { background: #059669; }
.btn-outline {
  background: #fff;
  border: 1px solid color-mix(in oklch, var(--primary) 40%, transparent);
  color: var(--primary);
}
.btn-outline:hover { background: color-mix(in oklch, var(--primary) 5%, white); }
.btn-block { width: 100%; }
.btn-lg { height: 3.5rem; font-size: 1.125rem; }
.btn-md { height: 3rem; font-size: 1rem; }

.pulse-cta { animation: pulse-cta 2s ease-in-out infinite; }
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
  50% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
}

.trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

/* ---------- Trust badges grid ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1rem; text-align: center; }
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  background: var(--secondary); border-radius: 0.5rem; padding: 0.625rem;
}
.trust-item svg { color: var(--primary); }
.trust-item span { font-size: 0.625rem; font-weight: 700; color: var(--secondary-foreground); line-height: 1.2; }

/* ---------- Description ---------- */
.benefit-list { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; }
.benefit-list svg { color: #10b981; flex-shrink: 0; }

/* ---------- Reviews ---------- */
.review-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.rating-dist { display: flex; flex-direction: column; gap: 0.25rem; margin: 1rem 0; }
.rating-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.6875rem; color: var(--muted-foreground); }
.rating-row .label { width: 1.5rem; flex-shrink: 0; font-weight: 600; }
.rating-row .bar-bg { flex: 1; height: 0.5rem; background: var(--muted); border-radius: 9999px; overflow: hidden; }
.rating-row .bar-fill { height: 100%; background: #fbbf24; border-radius: 9999px; }
.rating-row .pct { width: 2rem; flex-shrink: 0; text-align: right; }

.review-card { border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.75rem; background: var(--background); margin-top: 1rem; }
.review-head { display: flex; align-items: center; gap: 0.625rem; }
.review-head img.avatar { height: 2.5rem; width: 2.5rem; border-radius: 9999px; object-fit: cover; border: 1px solid var(--border); }
.review-name-row { display: flex; align-items: center; gap: 0.375rem; }
.review-name-row .name { font-size: 0.875rem; font-weight: 700; }
.review-name-row svg { color: var(--primary); }
.review-time { display: flex; align-items: center; gap: 0.375rem; font-size: 0.6875rem; color: var(--muted-foreground); }
.review-comment { font-size: 0.875rem; margin-top: 0.5rem; line-height: 1.6; }
.review-photo { margin-top: 0.5rem; border-radius: 0.5rem; border: 1px solid var(--border); width: 10rem; height: 10rem; object-fit: cover; cursor: zoom-in; }
.review-verified { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; font-size: 0.6875rem; color: #059669; font-weight: 600; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  background: rgba(255,255,255,0.95); border: none; border-radius: 9999px;
  padding: 0.625rem; box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}
.lightbox-img { max-height: 85vh; max-width: 92vw; object-fit: contain; cursor: zoom-in; user-select: none; transition: transform 0.2s; }
.lightbox-img.zoomed { max-width: none; width: 170vw; cursor: zoom-out; }
.lightbox-hint {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 0.75rem; font-weight: 500;
  background: rgba(0,0,0,0.4); padding: 0.375rem 0.75rem; border-radius: 9999px;
}

/* ---------- Popup de oferta / cupom ---------- */
.offer-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(15, 23, 42, 0.7);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: offer-fade 0.2s ease-out;
}
@keyframes offer-fade { from { opacity: 0; } to { opacity: 1; } }
.offer-modal {
  position: relative;
  width: 100%;
  max-width: 22rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  animation: offer-pop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes offer-pop {
  0% { transform: scale(0.92) translateY(14px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.offer-head {
  background: linear-gradient(to right, var(--primary), #1d4ed8);
  border-radius: 1rem 1rem 0 0;
  padding: 1.25rem 1.25rem 3.25rem;
  text-align: center;
  color: #fff;
}
.offer-close {
  position: absolute; top: 0.625rem; right: 0.625rem;
  height: 2rem; width: 2rem;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 9999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  transition: background 0.15s;
}
.offer-close:hover { background: rgba(255,255,255,0.32); }
.offer-pill {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.75rem; font-weight: 800;
  padding: 0.3125rem 0.75rem;
  border-radius: 9999px;
}
.offer-head h2 {
  font-size: 1.25rem; font-weight: 900;
  margin-top: 0.75rem;
}
.offer-head p {
  font-size: 0.8125rem; font-weight: 600; line-height: 1.45;
  color: rgba(255,255,255,0.85);
  margin-top: 0.375rem;
}
.offer-body { padding: 0 1.25rem 1.25rem; }
.offer-thumb {
  height: 5rem; width: 5rem;
  margin: -2.75rem auto 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.25rem;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.offer-coupon {
  background: #ecfdf5;
  border: 1px dashed #6ee7b7;
  border-radius: 0.75rem;
  padding: 0.875rem 0.75rem;
  text-align: center;
}
.offer-coupon .offer-coupon-label {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.02em; color: #047857;
}
.offer-coupon .offer-coupon-price {
  font-size: 1.375rem; font-weight: 900; color: #059669;
  line-height: 1.2; margin-top: 0.25rem;
}
.offer-coupon .offer-coupon-note {
  font-size: 0.75rem; font-weight: 700; color: var(--foreground);
  margin-top: 0.125rem;
}
.offer-coupon .offer-coupon-from {
  font-size: 0.6875rem; color: var(--muted-foreground); margin-top: 0.25rem;
}
.offer-coupon .offer-coupon-from s { color: var(--muted-foreground); }
.offer-lasts {
  display: flex; align-items: center; gap: 0.625rem;
  margin-top: 0.875rem;
  background: var(--secondary);
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.4;
  color: var(--secondary-foreground);
}
.offer-lasts .offer-lasts-icon { flex-shrink: 0; color: var(--primary); display: flex; }
.offer-expire {
  display: flex; align-items: center; gap: 0.625rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.35;
  color: var(--muted-foreground);
}
.offer-expire .offer-expire-icon {
  flex-shrink: 0;
  height: 2rem; width: 2rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
}
.offer-dismiss {
  display: block; width: 100%;
  margin-top: 0.75rem;
  background: none; border: none;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.25rem;
}
.offer-dismiss:hover { color: var(--foreground); }

/* ---------- Cupom aplicado no resumo do pedido ---------- */
.coupon-applied {
  display: flex; align-items: center; gap: 0.5rem;
  background: #ecfdf5;
  border: 1px dashed #6ee7b7;
  border-radius: 0.5rem;
  padding: 0.5rem 0.625rem;
  margin-bottom: 0.5rem;
}
.coupon-applied svg { color: #059669; flex-shrink: 0; }
.coupon-applied .coupon-applied-text { min-width: 0; flex: 1; }
.coupon-applied .coupon-applied-title { font-size: 0.75rem; font-weight: 800; color: #047857; }
.coupon-applied .coupon-applied-sub { font-size: 0.6875rem; color: var(--muted-foreground); }
.coupon-applied .coupon-applied-value { font-size: 0.875rem; font-weight: 900; color: #059669; white-space: nowrap; }

/* ---------- Final CTA ---------- */
.final-cta { margin-top: 1rem; margin-bottom: 1.5rem; background: var(--primary); border-radius: 0.75rem; padding: 1.25rem; text-align: center; }
.final-cta h2 { color: #fff; font-size: 1.25rem; font-weight: 800; }
.final-cta p { color: rgba(255,255,255,0.8); font-size: 0.875rem; margin-top: 0.25rem; }
.final-cta strong { color: #fff; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; font-size: 0.6875rem; color: var(--muted-foreground); padding-bottom: 1.5rem; }
.site-footer p { display: flex; align-items: center; justify-content: center; gap: 0.25rem; margin-top: 0.25rem; }

/* ---------- Fixed bottom CTA ---------- */
.fixed-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.fixed-cta .inner { max-width: 32rem; margin: 0 auto; padding: 0.625rem 1rem; display: flex; align-items: center; gap: 0.75rem; }
.fixed-cta .price-label { font-size: 0.6875rem; color: var(--muted-foreground); line-height: 1; }
.fixed-cta .price-value { font-size: 1.25rem; font-weight: 900; color: #059669; line-height: 1.2; }
.fixed-cta .btn { flex: 1; height: 3rem; font-size: 1rem; }
body.has-fixed-cta { padding-bottom: 5.5rem; }

/* ---------- Forms ---------- */
.form-section { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.field-label { display: block; font-size: 0.75rem; font-weight: 700; margin-bottom: 0.375rem; }
.field-input {
  width: 100%; height: 2.75rem; border-radius: 0.5rem;
  border: 1px solid var(--input); background: #fff; padding: 0 0.75rem;
  font-size: 0.875rem; font-family: inherit; color: var(--foreground);
}
.field-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 20%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 4.5rem; gap: 0.75rem; }
.field-wrap { position: relative; }
.field-spinner { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); }
.section-title { font-size: 0.875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted-foreground); margin-bottom: 0.75rem; }

.order-summary-row { display: flex; gap: 0.75rem; }
.order-summary-row img { height: 5rem; width: 5rem; border-radius: 0.5rem; border: 1px solid var(--border); object-fit: contain; background: #fff; flex-shrink: 0; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 0.5rem; width: fit-content; }
.qty-control button { background: none; border: none; padding: 0.375rem; color: var(--muted-foreground); }
.qty-control button:disabled { opacity: 0.4; }
.qty-control span { width: 2rem; text-align: center; font-size: 0.875rem; font-weight: 700; }
.order-totals { border-top: 1px solid var(--border); margin-top: 0.75rem; padding-top: 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; }
.order-totals .row { display: flex; justify-content: space-between; color: var(--muted-foreground); }
.order-totals .row.total { font-weight: 800; color: var(--foreground); font-size: 1rem; }
.order-totals .row.total span:last-child { color: #059669; }

.trust-inline { display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: 0.6875rem; color: var(--muted-foreground); }
.trust-inline span { display: flex; align-items: center; gap: 0.25rem; }

/* ---------- PIX payment screen ---------- */
.pix-status-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: #d1fae5; color: #047857; font-size: 0.75rem; font-weight: 800;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
}
.pix-qr-wrap { display: flex; justify-content: center; margin-top: 1rem; }
.pix-qr-box { background: #fff; border: 2px solid color-mix(in oklch, var(--primary) 20%, transparent); border-radius: 1rem; padding: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.pix-amount { text-align: center; font-size: 1.875rem; font-weight: 900; color: #059669; margin-top: 1rem; }
.pix-timer { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.875rem; font-weight: 700; color: #dc2626; }
.pix-copy-label { font-size: 0.75rem; font-weight: 700; color: var(--muted-foreground); margin-bottom: 0.5rem; text-align: center; }
.pix-code-box {
  width: 100%; text-align: left; background: var(--secondary);
  border: 1px dashed color-mix(in oklch, var(--primary) 40%, transparent);
  border-radius: 0.75rem; padding: 0.625rem 0.75rem; margin-bottom: 0.75rem;
  font-family: monospace; font-size: 0.6875rem; color: var(--muted-foreground);
  word-break: break-all; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  border-style: dashed; cursor: pointer;
}
.pix-waiting { margin-top: 1.25rem; background: var(--secondary); border-radius: 0.75rem; padding: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.pix-waiting p:first-child { font-size: 0.875rem; font-weight: 700; }
.pix-waiting p:last-child { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.125rem; }
.pix-steps { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); }
.pix-steps p { display: flex; align-items: center; gap: 0.375rem; }
.pix-steps svg { color: #10b981; flex-shrink: 0; }
.pix-expired { text-align: center; padding: 1rem 0; }
.pix-expired svg { color: #ef4444; margin: 0 auto 0.75rem; display: block; }

/* ---------- Icon sizing utilities ---------- */
.h-3, .w-3 { height: 0.75rem; width: 0.75rem; }
.h-3-5, .w-3-5 { height: 0.875rem; width: 0.875rem; }
.h-4, .w-4 { height: 1rem; width: 1rem; }
.h-5, .w-5 { height: 1.25rem; width: 1.25rem; }
.h-6, .w-6 { height: 1.5rem; width: 1.5rem; }
.h-8, .w-8 { height: 2rem; width: 2rem; }
.h-9, .w-9 { height: 2.25rem; width: 2.25rem; }
.h-12, .w-12 { height: 3rem; width: 3rem; }
.h-16, .w-16 { height: 4rem; width: 4rem; }
.shrink-0 { flex-shrink: 0; }
.animate-spin { animation: spin 1s linear infinite; }

/* ---------- Spinner ---------- */
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Thank you / tracking generic ---------- */
.center-py { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 4rem 0; text-align: center; }
.status-card { background: #fff; border-radius: 0.75rem; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0,0,0,0.04); padding: 1.5rem; text-align: center; }
.status-icon-circle { height: 4rem; width: 4rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.status-icon-circle.amber { background: var(--secondary); }
.status-icon-circle.emerald { background: #d1fae5; }
.status-icon-circle.emerald svg { color: #059669; }
.success-pop { animation: success-pop 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
@keyframes success-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

.info-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1.5rem; text-align: left; }
.info-box { background: var(--secondary); border-radius: 0.75rem; padding: 0.75rem; display: flex; align-items: flex-start; gap: 0.5rem; }
.info-box svg { color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.info-box p:first-child { font-size: 0.75rem; font-weight: 700; }
.info-box p:last-child { font-size: 0.6875rem; color: var(--muted-foreground); }

/* ---------- Tracking ---------- */
.search-box label { display: block; font-size: 0.75rem; font-weight: 700; margin: 1rem 0 0.375rem; }
.search-row { display: flex; gap: 0.5rem; }
.search-row .field-input { height: 3rem; }
.search-row .btn { flex-shrink: 0; height: 3rem; padding: 0 1.25rem; }
.error-text { font-size: 0.75rem; font-weight: 600; color: var(--destructive); margin-top: 0.5rem; }
.stored-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.stored-item {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.75rem; text-align: left; background: none;
}
.stored-item:hover { background: var(--secondary); }
.stored-item svg { color: var(--primary); flex-shrink: 0; }

.order-header-strip { padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.5rem; }
.order-header-strip.paid { background: #10b981; }
.order-header-strip.pending { background: #f59e0b; }
.order-header-strip svg { color: #fff; flex-shrink: 0; }
.order-header-strip .title { font-size: 0.875rem; font-weight: 900; color: #fff; }
.order-header-strip .subtitle { font-size: 0.6875rem; color: rgba(255,255,255,0.9); }
.order-body { padding: 1rem; }
.order-body-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.tracking-code-label { font-size: 0.6875rem; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.02em; }
.tracking-code-value { font-size: 1.125rem; font-weight: 900; letter-spacing: 0.05em; }
.copy-btn { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 800; padding: 0.5rem 0.75rem; border-radius: 0.5rem; background: color-mix(in oklch, var(--primary) 10%, transparent); color: var(--primary); border: none; }
.copy-btn.copied { background: #d1fae5; color: #047857; }
.order-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; font-size: 0.875rem; }
.order-meta-grid .label { font-size: 0.6875rem; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; }
.order-meta-grid .value { font-weight: 700; }
.order-meta-grid .value.green { color: #059669; }

.dl-row { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; padding: 0.25rem 0; }
.dl-row dt { color: var(--muted-foreground); }
.dl-row dd { font-weight: 700; text-align: right; margin: 0; }

.section-heading { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 800; margin-bottom: 0.75rem; }
.section-heading svg { color: var(--primary); }

.pending-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 0.75rem; padding: 1rem; text-align: center; }
.pending-box svg { color: #f59e0b; margin: 0 auto 0.5rem; }
.pending-box p:first-of-type { font-size: 0.875rem; font-weight: 700; color: #b45309; }
.pending-box p:last-of-type { font-size: 0.75rem; color: #d97706; margin-top: 0.25rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline-item { position: relative; display: flex; gap: 1rem; padding-bottom: 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-connector { position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--border); }
.timeline-connector.done { background: #10b981; }
.timeline-icon { position: relative; z-index: 1; flex-shrink: 0; height: 2.5rem; width: 2.5rem; border-radius: 9999px; border: 2px solid var(--border); background: #fff; color: var(--muted-foreground); display: flex; align-items: center; justify-content: center; }
.timeline-icon.done { background: #10b981; border-color: #10b981; color: #fff; }
.timeline-icon.current { background: var(--primary); border-color: var(--primary); color: #fff; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.timeline-body { min-width: 0; flex: 1; padding-top: 0.25rem; }
.timeline-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.timeline-title { font-size: 0.875rem; font-weight: 800; color: var(--foreground); }
.timeline-title.upcoming { color: var(--muted-foreground); }
.timeline-tag { font-size: 0.625rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.timeline-tag.current { background: color-mix(in oklch, var(--primary) 10%, transparent); color: var(--primary); }
.timeline-tag.done { background: #d1fae5; color: #047857; }
.timeline-desc { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.125rem; line-height: 1.5; }
.timeline-date { font-size: 0.6875rem; margin-top: 0.25rem; font-weight: 600; color: color-mix(in oklch, var(--muted-foreground) 70%, transparent); }
.timeline-date.done { color: #059669; }

/* ---------- Toast ---------- */
#toast-container { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; width: 100%; padding: 0 1rem; }
.toast {
  background: #fff; border: 1px solid var(--border); border-radius: 0.5rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 600; max-width: 24rem; text-align: center;
  animation: toast-in 0.2s ease-out;
}
.toast.success { border-color: #6ee7b7; color: #047857; }
.toast.error { border-color: #fca5a5; color: #b91c1c; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .pulse-cta, .factory-badge::after, .success-pop, .timeline-icon.current { animation: none; }
}
