/* Blucrate store — white overall, electric-blue brand accents. Mobile-first. */

:root {
  --blue: #1f6bff;
  --blue-dark: #1557d6;
  --blue-soft: #eaf1ff;
  --ink: #101828;
  --muted: #5b6472;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --wa: #1faa53;
  --wa-dark: #178741;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 24, 40, 0.08);
  /* Fluidity Standard motion tokens (2026-10-24) */
  --ease-spring: cubic-bezier(0.22, 1.24, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.2, 0.9, 0.3, 1.15);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 10px 12px;
}
.announce strong { color: #8fb4ff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.brand-mark { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand-mark.sm { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.brand-tag { font-size: 11px; color: var(--muted); }

.header-nav { display: none; gap: 4px; margin-left: 12px; }
@media (min-width: 760px) { .header-nav { display: flex; } }
.nav-link {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }

.cart-btn {
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-count {
  background: var(--blue);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 6px;
}

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%);
}
.hero-mark { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow); }
.hero h1 {
  font-size: clamp(34px, 7vw, 56px);
  letter-spacing: -1px;
  margin: 16px 0 8px;
  line-height: 1.05;
}
.hero-sub { color: var(--muted); max-width: 520px; margin: 0 auto 20px; font-size: 16px; }

.search-wrap { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 16px; }
.search-wrap input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 15px;
  outline: none;
  background: #fff;
}
.search-wrap input:focus { border-color: var(--blue); }
.search-wrap button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.search-wrap button:hover { background: var(--blue-dark); }

.cta-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.cta-primary:hover { background: var(--blue-dark); }
.cta-primary.full, .cta-whatsapp.full, .cta-secondary.full { width: 100%; }
.cta-secondary {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.cta-whatsapp {
  background: var(--wa);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.cta-whatsapp:hover { background: var(--wa-dark); }

/* ---------- Sections ---------- */
.section-title { font-size: 22px; letter-spacing: -0.4px; margin: 36px 0 14px; }

.cat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 760px) { .cat-cards { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out);
}
.cat-card:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow); }
.cat-card:active { transform: scale(0.97); }
.cat-card .cat-icon { width: 46px; height: 46px; margin: 0 auto 8px; display: block; color: var(--blue); }
.cat-card h3 { margin: 0 0 4px; font-size: 16px; }
.cat-card p { margin: 0; font-size: 12px; color: var(--muted); }
.cat-card .cat-count { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--blue); }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.card-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbe7ff 0%, #f2f6ff 60%, #e7efff 100%);
  position: relative;
}
.card-tile svg { width: 52px; height: 52px; color: var(--blue); opacity: 0.9; }
.card-tile .cond-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(16, 24, 40, 0.85);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; font-size: 14.5px; line-height: 1.3; }
.card-body .card-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.card-price { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 15.5px; color: var(--ink); }
.card-price .from { font-weight: 600; font-size: 12px; color: var(--muted); }

.result-meta { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }

.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty-state p { margin-bottom: 16px; font-size: 16px; }

/* ---------- Info / contact cards ---------- */
.info-cards, .contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 760px) { .info-cards { grid-template-columns: repeat(4, 1fr); } .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.info-card, .contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
}
.contact-card:hover { box-shadow: var(--shadow); }
.info-icon { font-size: 30px; margin-bottom: 8px; }
.info-card h3, .contact-card h3 { margin: 0 0 6px; font-size: 16px; }
.info-card p, .contact-card p { margin: 0; font-size: 14px; color: var(--muted); }
.contact-card p { font-weight: 700; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 32px 0 48px; background: var(--bg-soft); }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; gap: 10px; align-items: center; }
.footer-brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.footer-note { margin: 0; font-size: 13px; color: var(--muted); }
.footer-note.dim { color: #98a1ad; }
.footer-note a { color: var(--blue); text-decoration: none; }

/* ---------- Chips ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.chip:hover { transform: translateY(-1px); border-color: #c9d4e6; }
.chip:active { transform: scale(0.94); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.static { cursor: default; background: var(--blue-soft); border-color: transparent; color: var(--blue-dark); }

/* ---------- Shop toolbar ---------- */
.shop-toolbar { padding-top: 20px; }
.shop-search { margin: 0 0 4px; max-width: none; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, 0.5);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 760px) { .modal-backdrop { align-items: center; padding: 24px; } }

.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px 20px 28px;
  position: relative;
}
@media (min-width: 760px) { .modal { border-radius: 20px; } }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-soft);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
}

.modal-tile {
  height: 150px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dbe7ff 0%, #f2f6ff 60%, #e7efff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.modal-tile svg { width: 64px; height: 64px; color: var(--blue); }

.modal h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -0.3px; }
.pm-note { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.variant-select, .modal input[type="text"], .modal textarea, .drawer input[type="text"], .drawer textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.variant-select:focus, .modal input:focus, .modal textarea:focus, .drawer input:focus, .drawer textarea:focus { border-color: var(--blue); }
.pm-price { font-size: 24px; font-weight: 800; margin: 14px 0 4px; }
.pm-price .from { font-size: 13px; font-weight: 600; color: var(--muted); }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 18px; }
.qty-row .field-label { margin: 0; }
.qty-stepper { display: flex; align-items: center; gap: 16px; }
.qty-stepper button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.qty-stepper span { font-size: 17px; font-weight: 800; min-width: 24px; text-align: center; }

.modal .cta-primary, .modal .cta-whatsapp, .modal .cta-secondary { margin-top: 10px; }

/* ---------- Cart drawer ---------- */
.drawer {
  background: #fff;
  width: 100%;
  max-width: 460px;
  height: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  border-radius: 20px 0 0 20px;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-head .modal-close { position: static; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer-body h3 { margin: 18px 0 4px; font-size: 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { margin: 0 0 2px; font-size: 14.5px; }
.cart-item-info .variant { margin: 0; font-size: 12.5px; color: var(--muted); }
.cart-item-info .line-total { margin: 6px 0 0; font-weight: 800; font-size: 14.5px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.mini-stepper { display: flex; align-items: center; gap: 10px; }
.mini-stepper button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.mini-stepper span { font-weight: 800; font-size: 14px; min-width: 18px; text-align: center; }
.remove-link { background: none; border: none; color: #c0362c; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 0; }

.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px 22px; background: #fff; }
.gift-note {
  background: #fff7e6;
  border: 1px solid #f5d98b;
  color: #8a5a00;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin-bottom: 2px; }
.cart-total strong { font-size: 22px; }
.shipping-note { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }

/* ---------- Welcome popup ---------- */
.welcome-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 10, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.welcome-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  background: radial-gradient(120% 120% at 50% 0%, #16224a 0%, #0b1122 55%, #070b18 100%);
  border: 1px solid rgba(120, 165, 255, 0.35);
  border-radius: 24px;
  box-shadow: 0 0 70px rgba(31, 107, 255, 0.45), 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 38px 28px 30px;
  color: #fff;
  animation: welcomePop 0.55s cubic-bezier(0.2, 1.4, 0.35, 1);
}
.welcome-backdrop.leaving .welcome-card { animation: welcomeOut 0.24s ease forwards; }
.welcome-confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti-bit {
  position: absolute;
  top: -14px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}
.welcome-mark {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 0 34px rgba(31, 107, 255, 0.65);
  animation: markBounce 0.9s cubic-bezier(0.2, 1.6, 0.35, 1) 0.15s backwards;
}
.welcome-kicker {
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9db9f5;
  font-weight: 700;
}
.welcome-title {
  margin: 2px 0 6px;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(100deg, #8fb4ff 20%, #ffffff 40%, #8fb4ff 60%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleShine 2.4s linear infinite;
}
.welcome-sub { margin: 0; font-size: 16px; font-weight: 700; color: #e6eeff; }
.welcome-line { margin: 10px 0 22px; font-size: 14px; color: #aeb9d4; }
.welcome-cta { width: 100%; margin-bottom: 6px; box-shadow: 0 8px 26px rgba(31, 107, 255, 0.5); }
.welcome-skip {
  background: none;
  border: none;
  color: #8b96b5;
  font-size: 13.5px;
  cursor: pointer;
  padding: 8px;
}
.welcome-skip:hover { color: #cdd7ef; }

@keyframes welcomePop {
  0% { transform: scale(0.7) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes welcomeOut {
  to { transform: scale(0.85) translateY(20px); opacity: 0; }
}
@keyframes markBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.18) rotate(-6deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes titleShine { to { background-position: 220% center; } }
@keyframes confettiFall {
  to { transform: translateY(480px) rotate(720deg); opacity: 0.9; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Skeleton loading ---------- */
.skeleton-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.skel-tile { aspect-ratio: 1 / 1; }
.skel-tile, .skel-line {
  background: linear-gradient(100deg, #eef2f7 40%, #f9fbfe 50%, #eef2f7 60%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
.skel-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.skel-line { height: 13px; border-radius: 7px; }
.skel-line.short { width: 45%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Entrance animations ---------- */
.product-card.card-in { animation: cardIn 0.45s var(--ease-spring) backwards; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
}
.modal-backdrop { animation: fadeIn 0.18s var(--ease-out); }
.modal { animation: modalUp 0.3s var(--ease-spring); }
@keyframes modalUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
}
.drawer { animation: drawerIn 0.3s var(--ease-spring); }
@keyframes drawerIn {
  from { transform: translateX(60px); opacity: 0.5; }
}
/* Exit animations — nothing vanishes mid-air (Fluidity Standard) */
.modal-backdrop.closing { animation: fadeOut 0.2s var(--ease-in) forwards; }
.modal-backdrop.closing .modal { animation: modalDown 0.2s var(--ease-in) forwards; }
@keyframes modalDown {
  to { opacity: 0; transform: translateY(26px) scale(0.98); }
}
@keyframes fadeOut { to { opacity: 0; } }
#cart-drawer.closing { animation: fadeOut 0.22s var(--ease-in) forwards; }
#cart-drawer.closing .drawer { animation: drawerOut 0.22s var(--ease-in) forwards; }
@keyframes drawerOut {
  to { transform: translateX(70px); opacity: 0.4; }
}
.cart-count.bump { animation: bump 0.4s cubic-bezier(0.2, 1.6, 0.4, 1); display: inline-flex; }
@keyframes bump {
  40% { transform: scale(1.55); }
}

/* ---------- Button loading spinner ---------- */
.is-loading { position: relative; pointer-events: none; color: transparent !important; }
.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-primary:disabled, .cta-whatsapp:disabled { cursor: wait; opacity: 0.9; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 3D hero (Option A) ---------- */
.hero-3d {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: radial-gradient(1200px 620px at 50% -10%, #0b1e4b 0%, #05070f 55%, #03040a 100%);
  color: #fff;
}
#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
/* soft fade from the 3D scene into the white catalog below */
.hero-3d::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 110px 20px 90px;
  max-width: 760px;
}
.hero-3d h1 {
  color: #fff;
  text-shadow: 0 2px 34px rgba(31, 107, 255, 0.4);
}
.hero-3d .hero-sub { color: #b9c4d6; }
.hero-3d .search-wrap input {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.hero-3d .search-wrap input::placeholder { color: #93a0b8; }
.hero-3d .search-wrap input:focus { border-color: var(--blue); background: rgba(255,255,255,0.1); }
.hero-3d .cta-primary { box-shadow: 0 8px 30px rgba(31, 107, 255, 0.45); }
@media (max-width: 640px) {
  .hero-3d { min-height: 560px; }
  .hero-content { padding: 90px 20px 80px; }
}

/* ---------- 3D product cards ---------- */
.product-grid { perspective: 1400px; }
.product-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.34s var(--ease-spring), box-shadow 0.24s var(--ease-out);
  will-change: transform;
}
.product-card.tilting {
  /* transform is driven by the JS spring loop in cards-3d.js — no CSS
     transition on it, or the two fight and the tilt turns to jelly */
  transition: box-shadow 0.24s var(--ease-out);
  box-shadow: 0 20px 44px rgba(16, 24, 40, 0.2);
  z-index: 2;
}
.product-card.tilt-press { box-shadow: 0 8px 20px rgba(16, 24, 40, 0.16); }
/* glare that follows the pointer */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(560px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 46%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.product-card.tilting::before { opacity: 1; }
/* depth layers pop toward the viewer while tilting */
.card-tile, .card-body { transition: transform 0.3s var(--ease-spring); transform-style: preserve-3d; }
.product-card.tilting .card-tile { transform: translateZ(30px); }
.product-card.tilting .card-body { transform: translateZ(16px); }
.card-tile svg { transition: transform 0.3s var(--ease-spring), filter 0.3s var(--ease-out); }
.product-card.tilting .card-tile svg {
  transform: translateZ(58px) scale(1.07);
  filter: drop-shadow(0 16px 18px rgba(31, 107, 255, 0.38));
}
.product-card.tilting .card-tile .cond-chip { transform: translateZ(44px); }
.card-tile .cond-chip { transition: transform 0.3s var(--ease-spring); }

/* PREVIEW-ONLY fake product photos */
.card-tile.has-img { padding: 0; overflow: hidden; background: #eef2f7; }
.card-tile.has-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s var(--ease-spring), filter 0.3s var(--ease-out);
}
.product-card.tilting .card-tile.has-img img { transform: translateZ(40px) scale(1.05); }
.card-tile.has-img .cond-chip { z-index: 2; }
.pm-tile.has-img { padding: 0; overflow: hidden; }
.pm-tile.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

/* add-to-cart flying dot (app.js flyDot) */
.fly-dot {
  position: fixed;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 4px 14px rgba(31, 107, 255, 0.55);
  z-index: 200;
  pointer-events: none;
}

/* ---------- 3D site ambience ---------- */
#site-ambience {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
main, .site-footer, .announce { position: relative; z-index: 1; }

/* chunky 3D cart button */
.cart-btn {
  background: linear-gradient(180deg, #22304f 0%, #101828 100%);
  box-shadow: 0 4px 0 #070b14, 0 12px 24px rgba(16, 24, 40, 0.3);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.cart-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #070b14, 0 5px 12px rgba(16, 24, 40, 0.24);
}

/* 3D press effect on CTAs */
.cta-primary, .cta-whatsapp, .cta-secondary {
  transition: transform 0.08s ease, box-shadow 0.14s ease;
}
.cta-primary:not(.welcome-cta), .cta-whatsapp {
  box-shadow: 0 4px 0 rgba(8, 15, 30, 0.28), 0 12px 26px rgba(16, 24, 40, 0.22);
}
.cta-primary:not(.welcome-cta):active, .cta-whatsapp:active { transform: translateY(3px); }
.cta-primary:not(.welcome-cta):active {
  box-shadow: 0 1px 0 rgba(8, 15, 30, 0.28), 0 5px 12px rgba(16, 24, 40, 0.18);
}
.cta-whatsapp:active {
  box-shadow: 0 1px 0 rgba(8, 15, 30, 0.28), 0 5px 12px rgba(16, 24, 40, 0.18);
}
.cta-secondary:active { transform: translateY(2px); }
