/* ORBE — Orbe One PDP. Mobile-first, token-driven, light/dark. */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #efece5;
  --fg: #1a1916;
  --muted: #6b665d;
  --line: #e3ded3;
  --accent: #b8893f;
  --accent-2: #c8a45b;
  --accent-strong: #7d5310; /* readable accent for small text on light */
  --accent-ink: #ffffff;
  --good: #2f7d54;
  --danger: #b3402f;
  --danger-text: #8f2d1f; /* AA-contrast red for small text on tinted chips */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(28, 24, 16, 0.10);
  --shadow-soft: 0 4px 18px rgba(28, 24, 16, 0.07);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 64px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0c0c10;
  --surface: #16161d;
  --surface-2: #1f1f29;
  --fg: #f3f1ec;
  --muted: #a7a294;
  --line: #2b2b36;
  --accent: #d9b057;
  --accent-2: #e6c477;
  --accent-strong: #e6c477;
  --accent-ink: #15130d;
  --good: #5fce95;
  --danger: #ef8a78;
  --danger-text: #ef8a78;
  --shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 6px 22px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; font-weight: 650; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
button { font: inherit; cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 600; font-size: 0.95rem; padding: 0 0 0.5rem; }
.muted { color: var(--muted); }
.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: 8px;
}
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  border: 1px solid transparent; border-radius: 999px; padding: 0.85rem 1.4rem;
  font-weight: 600; transition: transform 0.18s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s;
  background: var(--surface-2); color: var(--fg);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--fg); color: var(--bg); }
html[data-theme="dark"] .btn.primary { background: var(--accent-2); color: var(--accent-ink); }
.btn.primary:hover { box-shadow: var(--shadow); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.block { width: 100%; }
.icon-btn {
  background: transparent; border: 0; padding: 0.5rem; border-radius: 12px; position: relative;
  display: inline-flex; align-items: center; gap: 0.35rem; color: inherit; font-size: 1.05rem;
}
.icon-btn:hover { background: var(--surface-2); }
.badge {
  background: var(--accent); color: var(--accent-ink); font-size: 0.7rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center;
}

/* Announce bar */
.announce-bar { background: var(--fg); color: var(--bg); font-size: 0.82rem; text-align: center; }
.announce-bar p { margin: 0; padding: 0.5rem 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1rem; min-height: var(--header-h);
}
.brand { font-weight: 750; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; }
.brand-mark { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent)); box-shadow: 0 0 16px var(--accent-2); }
.primary-nav { display: none; gap: 1.2rem; margin-inline: auto; }
.primary-nav a { color: var(--muted); font-weight: 550; }
.primary-nav a:hover { color: var(--fg); }
.header-tools { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.search { display: none; }
.search-input, .currency-select, .locale-select {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--fg);
  border-radius: 999px; padding: 0.5rem 0.8rem; font-size: 0.85rem;
}
.currency-select, .locale-select { padding: 0.5rem 0.5rem; }
.locale-select { display: none; }
.theme-toggle { font-size: 1.15rem; }
.wishlist-count { position: absolute; top: -2px; right: -2px; }

.hamburger { display: inline-flex; flex-direction: column; gap: 4px; background: transparent; border: 0; padding: 8px; border-radius: 10px; }
.hamburger span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.mobile-nav { display: grid; padding: 0.5rem 1rem 1rem; gap: 0.2rem; border-bottom: 1px solid var(--line); animation: fade-in 0.25s var(--ease); }
.mobile-nav a { padding: 0.7rem 0.4rem; border-radius: 10px; }
.mobile-nav a:hover { background: var(--surface-2); }

/* Breadcrumb */
.breadcrumb { max-width: var(--maxw); margin: 0 auto; padding: 0.9rem 1rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; font-size: 0.82rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }

/* PDP layout */
.pdp { max-width: var(--maxw); margin: 0 auto; padding: 1rem; display: grid; gap: 1.5rem; }
.stage {
  position: relative; margin: 0; background:
    radial-gradient(120% 100% at 50% 0%, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-soft);
}
.config-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.config-canvas:active { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.stage-hint { position: absolute; left: 12px; bottom: 12px; font-size: 0.72rem; color: var(--muted); background: color-mix(in srgb, var(--bg) 70%, transparent); padding: 0.25rem 0.6rem; border-radius: 999px; }
.config-badge { position: absolute; right: 12px; top: 12px; font-size: 0.72rem; background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); padding: 0.25rem 0.6rem; border-radius: 999px; }
.gallery { list-style: none; display: flex; gap: 0.6rem; padding: 0.8rem 0 0; margin: 0; overflow-x: auto; }
.gallery li { flex: 0 0 auto; }
.gallery figure { margin: 0; }
.gallery img { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: transform 0.2s var(--ease), border-color 0.2s; }
.gallery img:hover, .gallery img[aria-current="true"] { transform: translateY(-2px); border-color: var(--accent); }

/* Buy box */
.buy-box { display: grid; gap: 0.5rem; align-content: start; }
.eyebrow { color: var(--accent-strong); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; margin: 0; }
.subtitle { color: var(--muted); margin: 0 0 0.4rem; }
.rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.stars { color: var(--accent-2); letter-spacing: 0.1em; }
.rating-link { color: var(--muted); border-bottom: 1px dotted var(--line); }
.price-row { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.4rem; }
.price { font-size: 1.9rem; font-weight: 700; }
.old-price { color: var(--muted); }
.discount { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger-text); font-weight: 700; font-size: 0.8rem; padding: 0.15rem 0.5rem; border-radius: 999px; }
.price-note { font-size: 0.82rem; color: var(--muted); margin: 0; min-height: 1em; }
.stock { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; color: var(--muted); margin: 0.2rem 0 0.4rem; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); animation: pulse 2.4s infinite; }

.configurator { display: grid; gap: 1.1rem; margin-top: 0.6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch {
  --c: #ccc; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--c); position: relative; transition: transform 0.15s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.swatch[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); transform: scale(1.05); }
.swatch:hover { transform: scale(1.08); }
.swatch.accent-swatch { width: 34px; height: 34px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.seg button {
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 12px;
  padding: 0.5rem 0.9rem; font-weight: 550; transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.seg button[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.seg button .seg-sub { display: block; font-size: 0.72rem; color: var(--muted); }
.engrave-input, .coupon-input, .assistant-input, .field input, .field select, .fit-range {
  width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--fg);
  border-radius: 12px; padding: 0.7rem 0.85rem; font-size: 0.95rem;
}
.fit { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem; }
.fit-title { font-weight: 600; margin: 0 0 0.3rem; }
.fit-range { padding: 0; }
.fit-rec { font-size: 0.84rem; color: var(--accent-strong); margin: 0.4rem 0 0; min-height: 1.2em; font-weight: 600; }

.qty { display: inline-flex; align-items: center; gap: 0.2rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem; width: max-content; }
.qty-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; font-size: 1.2rem; }
.qty-btn:hover { background: var(--surface-2); }
.qty-input { width: 42px; text-align: center; border: 0; background: transparent; color: var(--fg); font-weight: 600; }
.buy-actions { display: flex; gap: 0.6rem; align-items: stretch; }
.buy-actions .add-to-cart { flex: 1; font-size: 1.02rem; }
.add-to-cart { position: relative; overflow: hidden; }
.add-to-cart.added { animation: pop 0.4s var(--ease); }
.reassure { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* Rewards / gamification */
.rewards { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-top: 0.6rem; }
.rewards-head { display: flex; justify-content: space-between; align-items: center; }
.rewards-title { font-weight: 700; letter-spacing: 0.02em; }
.rewards-points { font-weight: 700; color: var(--accent-strong); }
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 0.6rem 0 0.4rem; }
.progress-bar { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.6s var(--ease); }
.rewards-note { font-size: 0.82rem; margin: 0; color: var(--muted); }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0 0; margin: 0; }
.badges li { font-size: 0.72rem; border: 1px solid var(--accent-strong); color: var(--accent-strong); border-radius: 999px; padding: 0.15rem 0.55rem; animation: pop 0.4s var(--ease); font-weight: 600; }

/* Sections */
section[id] { scroll-margin-top: 80px; }
.bundle, .catalog, .reviews, .value-props { max-width: var(--maxw); margin: 2.5rem auto; padding: 0 1rem; }
.bundle-grid { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.bundle-item { display: flex; gap: 0.8rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem; }
.bundle-item img { width: 56px; height: 56px; border-radius: 10px; }
.bundle-item .bi-name { font-weight: 600; }
.bundle-item .bi-price { margin-left: auto; font-weight: 600; }
.bundle-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-top: 1rem; padding: 1rem; background: var(--surface-2); border-radius: var(--radius); }

.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s var(--ease), box-shadow 0.2s; position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card .thumb { aspect-ratio: 4 / 3; background: var(--surface-2); }
.product-card .pc-body { padding: 0.8rem; display: grid; gap: 0.3rem; }
.product-card .pc-name { font-weight: 600; }
.product-card .pc-price { font-weight: 650; }
.product-card .pc-rating { font-size: 0.78rem; color: var(--muted); }
.product-card .pc-add { margin-top: 0.4rem; }
.product-card .pc-fav { position: absolute; top: 8px; right: 8px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.empty-state { text-align: center; color: var(--muted); padding: 2rem; }

/* Reviews */
.reviews-summary { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-bottom: 1rem; }
.reviews-score { display: grid; }
.reviews-score .big { font-size: 2.4rem; font-weight: 700; }
.rating-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; min-width: 220px; flex: 1; }
.rating-bars li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.rating-bars .bar { flex: 1; height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.rating-bars .bar span { display: block; height: 100%; background: var(--accent-2); }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }
.review-card .rc-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.review-card .rc-author { font-weight: 600; }

/* Value props */
.value-props { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.value-card h3 { font-size: 1.05rem; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; background: var(--surface); }
.footer-grid { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.footer-grid nav { display: grid; gap: 0.3rem; }
.footer-grid h4 { margin: 0 0 0.3rem; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--fg); }
.copyright { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 0 1rem 2rem; margin: 0; }

/* Cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(10, 9, 7, 0.45); z-index: 80; animation: fade-in 0.25s var(--ease); }
.cart-drawer, .assistant-panel {
  position: fixed; z-index: 90; background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.cart-drawer {
  top: 0; right: 0; height: 100%; width: min(420px, 100%); transform: translateX(105%);
  transition: transform 0.35s var(--ease); padding: 1rem;
}
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-items { list-style: none; padding: 0; margin: 0.5rem 0; overflow-y: auto; flex: 1; display: grid; gap: 0.7rem; align-content: start; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.7rem; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 0.7rem; }
.cart-item img { width: 56px; height: 56px; border-radius: 10px; }
.cart-item .ci-name { font-weight: 600; font-size: 0.92rem; }
.cart-item .ci-meta { font-size: 0.76rem; color: var(--muted); }
.cart-item .ci-price { font-weight: 600; }
.cart-item .ci-qty { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.2rem; }
.cart-item .ci-qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; }
.ci-remove { background: transparent; border: 0; color: var(--muted); font-size: 0.76rem; text-decoration: underline; padding: 0; }
.cart-empty { color: var(--muted); text-align: center; padding: 2rem 0; }
.coupon { display: flex; gap: 0.5rem; }
.coupon .coupon-input { flex: 1; }
.coupon-msg { font-size: 0.8rem; min-height: 1.1em; margin: 0.3rem 0; }
.coupon-msg.ok { color: var(--good); }
.coupon-msg.bad { color: var(--danger); }
.totals { margin: 0.5rem 0 1rem; display: grid; gap: 0.25rem; }
.totals > div { display: flex; justify-content: space-between; font-size: 0.9rem; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { font-size: 1.1rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 0.5rem; margin-top: 0.25rem; }

/* Checkout */
.checkout { position: fixed; inset: 0; z-index: 100; display: none; }
.checkout[aria-hidden="false"] { display: block; }
.checkout::before { content: ""; position: absolute; inset: 0; background: rgba(8, 8, 12, 0.55); }
.checkout-panel {
  position: absolute; inset: 0; margin: auto; width: min(960px, 96vw); height: min(92vh, 760px);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); animation: rise 0.3s var(--ease);
}
.checkout-head { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; padding: 0; margin: 0; font-size: 0.8rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 0.4rem; }
.steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: 0.7rem; }
.steps li.is-active { color: var(--fg); font-weight: 600; }
.steps li.is-active::before { background: var(--accent); border-color: var(--accent); }
.steps li.is-done::before { content: "✓"; background: var(--good); border-color: var(--good); color: #fff; }
.checkout-body { display: grid; grid-template-columns: 1fr; gap: 0; overflow: auto; flex: 1; }
.checkout-main { padding: 1.2rem; }
.step-panel { display: none; animation: fade-in 0.25s var(--ease); }
.step-panel.is-active { display: block; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.field { display: grid; gap: 0.3rem; margin: 0; }
.field label { font-size: 0.82rem; color: var(--muted); }
.field.span2 { grid-column: 1 / -1; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: 0.74rem; min-height: 0.9em; }
.radio-card { display: flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem; margin-bottom: 0.5rem; }
.radio-card em { color: var(--muted); font-style: normal; margin-left: auto; }
.ship-methods, .pay-methods { margin-bottom: 1rem; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.pay-methods legend { grid-column: 1 / -1; }
.step-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1rem; }
.checkout-summary { padding: 1.2rem; border-top: 1px solid var(--line); background: var(--surface); }
.trust-line { font-size: 0.78rem; color: var(--muted); }
.confirmation { text-align: center; padding: 2rem 1rem; }
.check-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--good); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 1rem; animation: pop 0.5s var(--ease); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--fg); color: var(--bg); padding: 0.7rem 1.1rem; border-radius: 999px; z-index: 120;
  box-shadow: var(--shadow); opacity: 0; transition: opacity 0.25s, transform 0.25s var(--ease); font-size: 0.9rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Assistant */
.assistant-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 95; width: 56px; height: 56px; border-radius: 50%;
  border: 0; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink);
  font-size: 1.4rem; box-shadow: var(--shadow); animation: float 4s ease-in-out infinite;
}
.assistant-toggle:hover { transform: scale(1.06); }
.assistant-panel {
  right: 18px; bottom: 18px; width: min(380px, calc(100vw - 36px)); height: min(560px, 80vh);
  border: 1px solid var(--line); border-radius: var(--radius); transform: translateY(20px) scale(0.98);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease);
}
.assistant-panel[aria-hidden="false"] { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.assistant-head { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.assistant-title { font-weight: 700; }
.assistant-log { flex: 1; overflow-y: auto; padding: 1rem; display: grid; gap: 0.6rem; align-content: start; }
.msg { padding: 0.6rem 0.8rem; border-radius: 14px; max-width: 85%; font-size: 0.9rem; animation: fade-in 0.2s var(--ease); }
.msg.user { background: var(--accent); color: var(--accent-ink); justify-self: end; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--surface-2); justify-self: start; border-bottom-left-radius: 4px; }
.msg .step { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.assistant-suggest { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.4rem; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.78rem; color: var(--fg); }
.chip:hover { border-color: var(--accent); }
.assistant-form { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--line); align-items: flex-end; }
.assistant-input { resize: none; max-height: 120px; }
.assistant-undo { margin: 0 0.8rem 0.8rem; background: transparent; border: 1px dashed var(--line); color: var(--muted); border-radius: 10px; padding: 0.4rem; }

/* Animations */
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0.9); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 30%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--good) 0%, transparent); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

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

/* Tablet / desktop */
@media (min-width: 720px) {
  .search { display: block; flex: 1; max-width: 280px; }
  .locale-select { display: inline-block; }
  .bundle-grid { grid-template-columns: repeat(3, 1fr); }
  .value-props { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .review-list { grid-template-columns: 1fr 1fr; }
  .checkout-body { grid-template-columns: 1.6fr 1fr; }
  .checkout-summary { border-top: 0; border-left: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
  .primary-nav { display: flex; }
  .pdp { grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 2.5rem; padding: 1.5rem 1rem; }
  .gallery img { width: 72px; height: 72px; }
  .buy-box { position: sticky; top: calc(var(--header-h) + 16px); }
  .value-props { grid-template-columns: repeat(4, 1fr); }
}
