:root {
  --bg: #faf8f7;
  --surface: #ffffff;
  --surface-muted: #f3efed;
  --ink: #292627;
  --muted: #726a6b;
  --primary: #d6001c;
  --primary-dark: #aa1018;
  --primary-soft: #fbe8e8;
  --accent: #e8b84a;
  --accent-soft: #fff5dc;
  --danger: #c7362f;
  --danger-soft: #fde8e7;
  --info: #2368a2;
  --info-soft: #e6f0fa;
  --border: #e8dfdd;
  --shadow-sm: 0 1px 2px rgba(41, 38, 39, 0.06);
  --shadow: 0 10px 30px rgba(41, 38, 39, 0.08);
  --shadow-lg: 0 24px 60px rgba(41, 38, 39, 0.14);
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 12px;
  --container: 1280px;
  --font-inter: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans: var(--font-inter);
  --bottom-nav-h: 64px;
  --sticky-cta-h: 64px;
  --promo-banner-h: 44px;

  /* Empilement : contenu < header < barre d'achat < bottom nav < installation < menus < modales < toasts */
  --z-content: 0;
  --z-header: 50;
  --z-sticky-cta: 60;
  --z-bottom-nav: 70;
  --z-install: 80;
  --z-menu: 120;
  --z-modal: 200;
  --z-toast: 210;
  --z-loader: 220;
}

* { box-sizing: border-box; }

.page-loader { position: fixed; inset: 0 0 auto; z-index: var(--z-loader); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.page-loader-bar { position: absolute; top: 0; left: 0; width: 38%; height: 3px; border-radius: 0 999px 999px 0; background: linear-gradient(90deg, transparent, var(--primary), #ffb400, transparent); animation: page-loader-slide 1.05s ease-in-out infinite; }
.page-loader-label { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(41, 38, 39, 0.94); color: #fff; font-size: 12px; font-weight: 800; box-shadow: var(--shadow-lg); }
.page-loader-label::before { content: ''; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: page-loader-spin 0.7s linear infinite; }
@keyframes page-loader-slide { from { transform: translateX(-100%); } to { transform: translateX(360%); } }
@keyframes page-loader-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .page-loader-bar { animation-duration: 2s; } .page-loader-label::before { animation-duration: 1.4s; } }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.site-main { min-height: 60vh; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo {
  width: 68px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover { color: var(--ink); background: var(--surface-muted); }
.nav-link.active { color: var(--primary-dark); background: var(--primary-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.cart-link svg, .menu-toggle svg { display: block; }

.cart-count {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

/* ---------- Notifications ---------- */
.notif-wrap { position: relative; }

.notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, color 0.2s;
}

.notif-btn:hover { background: var(--surface-muted); }

.notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid var(--surface);
}

.notif-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: var(--z-menu);
  width: min(380px, calc(100vw - 32px));
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.notif-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.notif-head strong { font-size: 14px; }

.notif-mark-all {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.notif-list { display: grid; }

.notif-item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--surface-muted); }
.notif-item.unread { background: var(--primary-soft); }

.notif-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-item-head strong { font-size: 13px; }
.notif-item p { margin: 4px 0 6px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.notif-item small { font-size: 11px; color: var(--muted); }

.notif-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--primary);
}

.notif-empty { padding: 22px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.notif-error { padding: 14px 16px; font-size: 12px; color: var(--danger); }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar svg { width: 20px; height: 20px; }
.profile-avatar-guest { background: var(--surface-muted); color: var(--muted); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
}

.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(215, 25, 32, 0.2); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #3d2a00; }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-muted); color: var(--ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-whatsapp { background: #25d366; color: #063d1c; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.label { font-size: 13px; font-weight: 700; color: var(--ink); }
.hint { font-size: 12px; color: var(--muted); }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
}

.textarea { min-height: 96px; resize: vertical; }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-body { padding: 20px; }
.section { padding: 28px 0; }
.section-sm { padding: 28px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; margin-bottom: 4px; }
.section-head p { color: var(--muted); margin: 0; font-size: 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.page-header { padding: 34px 0 18px; }
.page-header h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; margin-bottom: 8px; }
.page-header p { color: var(--muted); max-width: 680px; margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--primary-dark); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--surface-muted);
  color: var(--muted);
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: var(--accent-soft); color: #7a5600; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: var(--surface-muted); color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(215, 25, 32, 0.13), transparent 60%),
    radial-gradient(700px 380px at 0% 20%, rgba(232, 184, 74, 0.18), transparent 55%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(41, 38, 39, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 56px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}
.hero h1 span { color: var(--primary); }
.hero p { color: var(--muted); font-size: 16px; max-width: 520px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.hero-stat strong { display: block; font-size: 22px; letter-spacing: -0.02em; }
.hero-stat span { font-size: 12px; color: var(--muted); }

.hero-visual {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}
.hero-card {
  position: relative;
  width: min(100%, 360px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-2deg);
}
.hero-card img { width: 100%; height: 300px; object-fit: cover; }
.hero-card-body { padding: 16px 18px; }
.hero-card-body strong { display: block; font-size: 16px; }
.hero-card-body span { color: var(--primary-dark); font-weight: 800; }
.hero-float {
  position: absolute;
  right: 0;
  bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(2deg);
}
.hero-float strong { display: block; color: var(--primary-dark); font-size: 15px; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.benefit-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  font-size: 18px;
}
.benefit strong { display: block; font-size: 13px; }
.benefit span { font-size: 12px; color: var(--muted); }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(215, 25, 32, 0.35); }
.category-card .cat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  font-size: 20px;
}
.category-card strong { font-size: 14px; }
.category-card span { font-size: 12px; color: var(--muted); }

/* ---------- Product grid / card ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(215, 25, 32, 0.3); }
.product-card-promo { border-color: rgba(215, 25, 32, 0.28); }
.product-card-promo:hover { border-color: var(--primary); }
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #efe7d8, #f8f2e7);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media .badge { position: absolute; top: 10px; left: 10px; }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px 16px; flex: 1; }
.product-cat { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.product-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
.product-description { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.product-price { font-size: 16px; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.02em; }
.product-prices { display: grid; gap: 1px; min-width: 0; }
.product-prices small { color: var(--muted); font-size: 11px; }
.product-old-price { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.promo-price { color: var(--primary); }
.discount-badge { padding: 5px 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; }
.product-deal { display: inline-flex; align-self: flex-start; margin-top: 8px; padding: 4px 8px; border-radius: 7px; background: var(--accent-soft); color: #6d4a00; font-size: 11px; font-weight: 700; }
.promo-section { background: linear-gradient(145deg, #fff1f0, #faf8f7 65%); }
.promo-eyebrow { color: var(--primary) !important; }
.promo-ribbon { position: absolute; top: 12px; right: 12px; padding: 6px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; box-shadow: var(--shadow-sm); }
.home-logo { width: min(76%, 320px); max-height: 220px; object-fit: contain; mix-blend-mode: multiply; border-radius: 18px; }
.product-link { font-size: 12px; font-weight: 800; color: var(--primary); }

/* ---------- Filters ---------- */
.filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.results-bar p { margin: 0; font-size: 13px; color: var(--muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 28px 0 44px; }
.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #efe7d8, #f8f2e7);
  border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-muted);
  padding: 0;
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-price { font-size: clamp(28px, 4vw, 38px); font-weight: 900; letter-spacing: -0.03em; color: var(--primary-dark); margin-bottom: 8px; }
.detail-unit { color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.detail-promotion { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 14px; }
.detail-promotion del { color: var(--muted); font-weight: 600; }
.price-deal { display: grid; gap: 3px; margin: 12px 0; padding: 12px 14px; border: 1px solid rgba(232, 184, 74, 0.6); border-radius: 12px; background: var(--accent-soft); }
.price-deal strong { font-size: 13px; }
.price-deal span { font-weight: 800; color: #6d4a00; }
.price-deal small { color: var(--muted); font-size: 11px; }
.quantity-total { margin-left: auto; color: var(--primary-dark); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.detail-description { color: var(--muted); font-size: 15px; margin: 18px 0 22px; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.qty-control button { width: 40px; height: 42px; border: 0; background: transparent; font-size: 18px; font-weight: 800; color: var(--primary-dark); }
.qty-control button:hover { background: var(--primary-soft); }
.qty-control span { min-width: 40px; text-align: center; font-weight: 800; }
.qty-input {
  width: 52px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  font-weight: 800;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.product-stock { font-size: 11px; color: var(--muted); white-space: nowrap; }
.product-stock strong { color: var(--ink); }
.qty-presets { display: inline-flex; gap: 6px; }
.qty-presets button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}
.qty-presets button.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.detail-price [hidden], .sticky-cta[hidden], .qty-presets [hidden], .price-deal[hidden] { display: none; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.info-strip div { padding: 12px; border-radius: 12px; background: var(--surface-muted); font-size: 12px; }
.info-strip strong { display: block; font-size: 13px; margin-bottom: 2px; }
.info-strip span { color: var(--muted); }

.cta-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 0; }

/* ---------- Reviews ---------- */
.reviews { margin-top: 40px; }
.review-list { display: grid; gap: 12px; }
.review {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.review-head strong { font-size: 14px; }
.review-head span { font-size: 12px; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.review p { margin: 0; font-size: 14px; color: var(--muted); }
.review-images, .review-image-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.review-images a, .review-image-preview { display: block; width: 112px; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-muted); }
.review-image-preview { padding: 5px; }
.review-image-preview .btn { width: 100%; margin-top: 5px; }
.review-images img, .review-image-preview img { display: block; width: 100%; height: 102px; object-fit: cover; border-radius: 8px; }
.review-images a { transition: transform 160ms ease, box-shadow 160ms ease; }
.review-images a:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.review-form { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.rating-input { display: flex; gap: 4px; }
.rating-input button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 19px;
  color: var(--border);
}
.rating-input button.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 24px; align-items: start; padding-bottom: 44px; }
.cart-list { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.cart-thumb { position: relative; width: 86px; height: 86px; border-radius: 12px; overflow: hidden; background: var(--surface-muted); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.cart-info span { font-size: 12px; color: var(--muted); }
.cart-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cart-subtotal { font-weight: 800; color: var(--primary-dark); }
.cart-deal { font-size: 12px; color: #6d4a00; font-weight: 700; }
.promo-empty { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1px dashed rgba(215, 25, 32, 0.3); border-radius: var(--radius); background: rgba(255,255,255,0.65); }
.promo-empty > span { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: var(--primary-soft); font-size: 22px; }
.promo-empty strong { display: block; margin-bottom: 3px; }
.promo-empty p { margin: 0; color: var(--muted); font-size: 13px; }
.btn-disabled { opacity: 0.5; cursor: not-allowed; }
.text-danger { color: var(--danger); }
.summary { position: sticky; top: 92px; padding: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 10px; color: var(--muted); }
.summary-row strong { color: var(--ink); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--border); }
.summary-total span { font-size: 13px; color: var(--muted); }
.summary-total strong { font-size: 24px; letter-spacing: -0.03em; color: var(--primary-dark); }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 24px; align-items: start; padding-bottom: 44px; }
.checkout-card { padding: 22px; }
.checkout-card h2 { font-size: 18px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .field.full { grid-column: 1 / -1; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; }
.payment-method { position: relative; flex: 1 1 160px; cursor: pointer; }
.payment-method-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.payment-method-content {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.payment-method-content img { width: 72px; height: 48px; object-fit: contain; }
.payment-method-content strong { font-size: 13px; color: var(--ink); }
.payment-method:hover .payment-method-content { transform: translateY(-1px); border-color: var(--primary); }
.payment-method-input:checked + .payment-method-content { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(214, 0, 28, 0.12); }
.payment-method-input:focus-visible + .payment-method-content { outline: 2px solid var(--primary); outline-offset: 2px; }
.payment-details { margin-top: 16px; }
.payment-details[hidden] { display: none; }
.checkout-items { display: grid; gap: 10px; margin-bottom: 14px; }
.checkout-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.checkout-item span:last-child { font-weight: 700; white-space: nowrap; }

/* ---------- Orders ---------- */
.orders-list { display: grid; gap: 16px; padding-bottom: 44px; }
.order-card { overflow: hidden; }
.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}
.order-head strong { font-size: 14px; }
.order-head span { font-size: 12px; color: var(--muted); }
.order-body { padding: 16px 18px; }
.order-items { display: grid; gap: 8px; margin-bottom: 14px; }
.order-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.order-item span:last-child { font-weight: 700; white-space: nowrap; }
.order-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.order-total { font-weight: 800; color: var(--primary-dark); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.order-tracker { display: flex; gap: 6px; margin: 16px 0; }
.tracker-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; color: var(--muted); }
.tracker-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.tracker-step:first-child::before { display: none; }
.tracker-step.done::before { background: var(--primary); }
.tracker-dot { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-muted); border: 2px solid var(--border); font-size: 11px; font-weight: 800; }
.tracker-step.done .tracker-dot { background: var(--primary); border-color: var(--primary); color: #fff; }
.tracker-label { font-size: 11px; font-weight: 700; text-align: center; }
.tracker-step.done .tracker-label { color: var(--primary-dark); }

/* ---------- Auth ---------- */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 30px; }
.auth-card h1 { font-size: 28px; letter-spacing: -0.03em; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.auth-switch a { color: var(--primary-dark); font-weight: 800; }
.promo-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 48px);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(600px 300px at 80% 10%, rgba(244, 180, 0, 0.4), transparent 60%),
    linear-gradient(150deg, var(--primary-dark), #04331f);
}
.promo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
}
.promo-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: clamp(24px, 2.6vw, 34px) clamp(20px, 2.4vw, 30px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.promo-panel h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 14px; }
.promo-panel p { color: rgba(255,255,255,0.8); max-width: 420px; margin: 0 auto; }
.promo-panel ul { list-style: none; padding: 0; margin: 24px auto 0; display: grid; gap: 10px; max-width: 420px; }
.promo-panel li { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.92); }
.promo-panel li::before { content: "✓"; color: var(--accent); font-weight: 900; flex: none; }

/* ---------- Alerts / empty ---------- */
.alert { padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f3c7c4; }
.alert-success { background: var(--primary-soft); color: var(--primary-dark); border-color: #bfe3cf; }
.alert-info { background: var(--info-soft); color: var(--info); border-color: #c9def2; }

.empty-state { text-align: center; padding: 52px 20px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; background: var(--surface-muted); font-size: 28px; }
.empty-state h2 { font-size: 22px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 20px; background: #122019; color: rgba(255,255,255,0.72); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 30px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,0.5); }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.site-footer a { display: block; font-size: 13px; margin-bottom: 8px; color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 0 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; color: rgba(255,255,255,0.5); }

/* ---------- Utilities ---------- */
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.skeleton {
  background: linear-gradient(90deg, #efe8dc 25%, #f7f2e9 37%, #efe8dc 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.page-loading {
  min-height: 48vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 3px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loading-spin 0.75s linear infinite;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 44px 0; }
  .hero-visual { display: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 22px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth-layout { grid-template-columns: 1fr; }
  .promo-panel { display: none; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-grid > div:last-child { display: none; }
  .filters { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .mobile-nav.open {
    display: grid;
    gap: 4px;
    padding: 10px 0 16px;
    border-top: 1px solid var(--border);
  }
  .mobile-nav .nav-link { display: block; width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; background: transparent; text-align: left; }
  .header-actions .user-chip { display: none; }
  .header-actions > .btn { display: none; }
  .cart-link span.cart-label { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 32px 0; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 11px 11px 13px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 14px; }
  .product-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .product-media .badge { font-size: 10px; padding: 3px 7px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-thumb { width: 64px; height: 64px; }
  .cart-item > .cart-subtotal { grid-column: 1 / -1; }
  .info-strip { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .order-head, .order-body { padding: 14px; }
  .detail-actions .btn { width: 100%; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .auth-card { padding: 22px; }
}

/* ---------- Polished interactions ---------- */
:root {
  --shadow-sm: 0 2px 8px rgba(27, 42, 34, 0.05);
  --shadow: 0 14px 36px rgba(27, 42, 34, 0.1);
  --shadow-lg: 0 28px 72px rgba(27, 42, 34, 0.16);
}

html { scroll-behavior: smooth; }
body { background-image: radial-gradient(circle at 8% 12%, rgba(232, 184, 74, 0.045), transparent 28rem); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.42);
  outline-offset: 3px;
}

.site-header { box-shadow: 0 4px 20px rgba(27, 42, 34, 0.035); }
.brand-logo { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.brand:hover .brand-logo { transform: scale(1.04); box-shadow: var(--shadow); }
.nav-link, .cart-link, .btn, .category-card, .product-card, .benefit, .card {
  transition-timing-function: cubic-bezier(0.2, 0.75, 0.25, 1);
}
.cart-link:hover { border-color: rgba(215, 25, 32, 0.35); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn { position: relative; overflow: hidden; }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(215, 25, 32, 0.22); }

.site-main > main { animation: page-enter 0.48s both; }
.site-main > main.product-detail-page { animation: none; }
.hero-inner > :first-child { animation: rise-in 0.65s 0.06s both; }
.hero-visual { animation: rise-in 0.7s 0.16s both; }
.hero-card { animation: hero-float 6s ease-in-out infinite; }
.hero-float { animation: float-soft 4.5s ease-in-out infinite; }
.hero-card img { transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1); }
.hero-card:hover img { transform: scale(1.045); }
.hero-placeholder {
  min-height: 270px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 28%, rgba(244, 180, 0, 0.34), transparent 34%),
    linear-gradient(145deg, #e6f3e9, #f8edda);
  font-size: 76px;
}
.hero-card-empty { transform: none; }
.hero-card-empty .hero-placeholder { min-height: 300px; }

.benefit { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.benefit:hover { transform: translateY(-3px); border-color: rgba(215, 25, 32, 0.2); box-shadow: var(--shadow-sm); }
.benefit-icon { transition: transform 0.25s ease; }
.benefit:hover .benefit-icon { transform: rotate(-6deg) scale(1.06); }
.category-card { animation: rise-in 0.45s both; }
.category-card:nth-child(2) { animation-delay: 0.04s; }
.category-card:nth-child(3) { animation-delay: 0.08s; }
.category-card:nth-child(4) { animation-delay: 0.12s; }
.category-card:nth-child(5) { animation-delay: 0.16s; }
.product-card { box-shadow: 0 2px 10px rgba(27, 42, 34, 0.035); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-card:nth-child(2n) { animation-delay: 0.05s; }
.product-card:nth-child(3n) { animation-delay: 0.1s; }
.product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 72% 25%, rgba(244, 180, 0, 0.2), transparent 34%),
    linear-gradient(145deg, #e7f2e9, #f7eddd);
  font-size: 44px;
  transition: transform 0.35s ease;
}
.product-card:hover .product-placeholder { transform: scale(1.06); }
.product-media img { transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.25, 1); }
.product-card:hover .product-media img { transform: scale(1.06); }

.filters { box-shadow: 0 8px 26px rgba(27, 42, 34, 0.045); }
.input, .select, .textarea { transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { background: #fff; }
.summary { box-shadow: 0 12px 32px rgba(27, 42, 34, 0.07); }
.cart-item, .order-card, .checkout-card { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.cart-item:hover, .order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.qty-control button { transition: color 0.18s ease, background 0.18s ease; }
.tracker-dot { transition: background 0.25s ease, transform 0.25s ease; }
.tracker-step.done .tracker-dot { transform: scale(1.04); }
.empty-icon { animation: float-soft 4s ease-in-out infinite; }
.promo-panel { isolation: isolate; }
.promo-panel::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  top: -150px;
  right: -100px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255,255,255,0.035), 0 0 0 72px rgba(255,255,255,0.025);
}
.site-footer { background: linear-gradient(145deg, #292627, #171516); }

@keyframes page-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-7px); }
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 640px) {
  .hero-placeholder { min-height: 190px; }
  .hero-card-empty .hero-placeholder { min-height: 210px; }
  .hero-card-empty { display: block; }
  .product-placeholder { min-height: 110px; font-size: 36px; }
  .product-card:hover { transform: translateY(-2px); }
  .cart-item:hover, .order-card:hover { transform: none; }
  .site-header { backdrop-filter: blur(18px); }
}

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

/* ---------- Annonce ---------- */
.announce-bar { background: var(--ink); color: #fff; font-size: 13px; }
.announce-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.announce-close { background: transparent; border: 0; color: #fff; font-size: 16px; padding: 4px 8px; }

/* ---------- Header search ---------- */
.header-search { flex: 1 1 300px; min-width: 0; display: flex; align-items: stretch; max-width: 640px; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.header-search-cat { border: 0; background: var(--surface-muted); padding: 0 10px; font-size: 13px; max-width: 140px; }
.header-search input { flex: 1; border: 0; padding: 0 14px; font-size: 15px; outline: none; min-width: 0; }
.header-search button { border: 0; background: var(--primary); color: #fff; padding: 0 16px; display: grid; place-items: center; }
.header-search button:hover { background: var(--primary-dark); }
.header-wa { display: inline-flex; align-items: center; gap: 6px; }
.wa-label { display: none; }
@media (min-width: 900px) { .wa-label { display: inline; } }
.mobile-search { display: flex; gap: 8px; padding: 8px 0; }
.mobile-search input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.mobile-search button { padding: 10px 14px; border: 0; background: var(--primary); color: #fff; border-radius: var(--radius-sm); }
@media (max-width: 760px) {
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-wa .wa-label { display: none; }
}

/* ---------- Product card (marketplace) ---------- */
.product-card { display: flex; flex-direction: column; container-type: inline-size; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card-oos { opacity: .7; }
.product-media { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.product-media img { object-fit: contain; background: #fff; padding: 6px; transition: transform .25s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-placeholder { display: grid; place-items: center; height: 100%; font-size: 48px; }
.product-badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; color: #fff; }
.badge-promo { background: var(--primary); }
.badge-new { background: #2e7d32; }
.badge-warn { background: #e67e22; }
.badge-oos { background: #6b7280; }
.badge-success { background: #2e7d32; }
.badge-warning { background: #e67e22; }
.badge-danger { background: var(--primary); }
.badge-neutral { background: #6b7280; }
.badge-info { background: #2368a2; }
.product-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.product-name { font-size: 14px; line-height: 1.35; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.product-name-link { color: inherit; }
.product-prices { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.product-old-price { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.product-price { font-size: 16px; font-weight: 700; color: var(--ink); }
.promo-price { color: var(--primary); }
.product-prices small { font-size: 11px; color: var(--muted); }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; margin-top: 4px; }
.product-actions form { display: flex; flex: 1 1 auto; gap: 8px; align-items: center; min-width: 0; }
.product-add { flex: 1 1 auto; min-width: 0; min-height: 44px; }
.product-wa {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: #25d366;
  text-align: center;
  line-height: 1.15;
}
.product-wa span { white-space: normal; }
.product-wa:hover { background: #e8f8ee; }

@container (max-width: 290px) {
  .product-add, .product-wa { flex: 1 1 100%; width: 100%; }
  .product-add { justify-content: center; font-size: 12px; }
  .product-wa span { display: inline; }
}

@container (min-width: 291px) {
  .product-add { justify-content: flex-start; }
  .product-wa { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
  .product-wa span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .product-media img { transition: none !important; transform: none !important; }
}

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 220px; background: linear-gradient(135deg, var(--primary-soft), #fff); }
@media (min-width: 768px) { .hero-carousel { height: 400px; } }
.hero-slides { display: flex; height: 100%; transition: transform .4s ease; }
.hero-slide { position: relative; min-width: 100%; height: 100%; display: block; }
.hero-slide { position: relative; min-width: 100%; height: 100%; display: flex; align-items: center; padding: 24px 32px; gap: 16px; }
.hero-slide-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--primary-soft), #fff); }
.hero-slide-content { position: relative; z-index: 2; max-width: 55%; display: flex; flex-direction: column; gap: 10px; }
.hero-slide-content h3 { margin: 0; font-size: clamp(18px, 2.4vw, 28px); color: var(--ink); }
.hero-slide-eyebrow { color: var(--primary); }
.hero-slide-cta { align-self: flex-start; }
.hero-slide-image { position: relative; z-index: 1; flex: 1; max-width: 40%; height: 100%; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--ink); }
.hero-prev { left: 10px; }
.hero-next { right: 10px; }
.hero-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); padding: 0; }
.hero-dot.active { background: #fff; width: 20px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .hero-slides { transition: none; } }

/* ---------- Home layout ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 2fr 1fr; } }
.hero-side { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.hero-side .hero-banner { flex: 1; }
.hero-banner { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 20px; border-radius: var(--radius-lg); background: var(--primary-soft); color: var(--ink); min-height: 120px; }
.hero-banner-wa { background: #e8f8ee; }
.hero-banner strong { font-size: 18px; }
.hero-banner-cta { font-size: 13px; font-weight: 600; color: var(--primary); }
.trust-bar { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 768px) { .trust-bar { grid-template-columns: repeat(4,1fr); } }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { font-size: 12px; color: var(--muted); }
.product-rail { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.product-rail > * { flex: 0 0 220px; scroll-snap-align: start; }
.category-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px) { .category-grid { grid-template-columns: repeat(5,1fr); } }
.category-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.category-tile strong { font-size: 15px; }
.category-tile span { font-size: 12px; color: var(--muted); }
.visit-card { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 24px; }
@media (min-width: 768px) { .visit-card { grid-template-columns: 2fr 1fr; } }
.visit-map { display: grid; place-items: center; background: var(--surface-muted); border-radius: var(--radius); font-size: 24px; min-height: 120px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown { font-size: 10px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 2px 6px; border-radius: 4px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: var(--z-sticky-cta); }
.sticky-cta strong { font-size: 16px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Product carousel ---------- */
.product-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; touch-action: pan-y; height: 100%; scrollbar-width: none; }
.product-carousel::-webkit-scrollbar { display: none; }
.product-slide { position: relative; display: block; width: 100%; height: 100%; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.product-placeholder-link { display: grid; place-items: center; background: var(--surface-muted); }
.product-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.product-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7); }
.product-fav { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--muted); }
.product-fav.active { color: var(--primary); }
.product-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); border: 0; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--ink); opacity: 0; transition: opacity .2s; }
.product-card:hover .product-arrow { opacity: 1; }
.product-arrow-prev { left: 6px; }
.product-arrow-next { right: 6px; }

/* ---------- Header scroll shadow ---------- */
.site-header.scrolled { box-shadow: 0 2px 12px rgba(41,38,39,.08); }

/* ---------- Category bar ---------- */
.category-bar { border-top: 1px solid var(--border); background: var(--surface); }
.category-bar-inner { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.cat-all-btn { border: 0; background: var(--primary); color: #fff; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; white-space: nowrap; }
.category-bar-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.category-bar-scroll::-webkit-scrollbar { display: none; }
.category-chip { white-space: nowrap; padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--surface-muted); color: var(--ink); }
.category-chip:hover { background: var(--primary-soft); color: var(--primary); }
.cat-dropdown { position: absolute; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow); z-index: var(--z-menu); padding: 12px 0; }
.cat-dropdown .container { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.cat-dropdown-item { padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; }
.cat-dropdown-item:hover { background: var(--surface-muted); }
@media (max-width: 760px) { .cat-dropdown .container { grid-template-columns: 1fr; } }

.promo-banner { position: static; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: var(--promo-banner-h); padding: 0 20px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; line-height: 1; }
.promo-banner-text { display: inline-flex; align-items: center; gap: 6px; }
.promo-banner-text span { opacity: .75; }
.promo-banner svg { flex: 0 0 auto; }
.promo-banner:focus-visible { box-shadow: inset 0 0 0 3px rgba(255,255,255,.9); }
.category-chip-promo { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; font-weight: 700; }
.category-chip-promo:hover { background: var(--primary-dark); color: #fff; }
.category-chip-promo svg { display: block; flex: 0 0 auto; }
.promo-row-section { padding-top: 18px; padding-bottom: 10px; }
.promo-rail { padding-right: 20px; scrollbar-width: none; }
.promo-rail::-webkit-scrollbar { display: none; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.filter-pill-promo { background: var(--primary-soft); color: var(--primary); }
.filter-pill svg { display: block; flex: 0 0 auto; }
.filter-pill button { display: grid; place-items: center; width: 32px; height: 32px; min-width: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.filter-pill button:hover { background: rgba(214,0,28,.12); }

/* ---------- Titres / eybrow ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}
.section-head h2, .hero-slide-content h3 { font-family: var(--font-sans); font-weight: 700; }

/* ---------- Hero carousel (2 zones) ---------- */
.hero-carousel { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 240px; background: #fff; }
@media (min-width: 768px) { .hero-carousel { height: 400px; } }
.hero-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.hero-slides::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; height: 100%; display: flex; align-items: center; gap: 14px; padding: 0 16px; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; }
.hero-slide-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide-text { position: relative; z-index: 2; flex: 1; max-width: 48%; padding-left: 64px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.hero-slide-text h3 { margin: 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; line-height: 1.25; }
.hero-slide-eyebrow { font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.hero-slide-price { font-size: 16px; font-weight: 800; color: var(--primary); margin: 0; }
.hero-slide-cta { align-self: flex-start; padding: 9px 16px; font-size: 14px; }
.hero-slide-image { position: relative; z-index: 1; flex: 0 0 46%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-product-card { width: 100%; height: 100%; background: #fff; border-radius: 16px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.hero-product-card img { max-height: 86%; width: auto; object-fit: contain; }
.hero-icon-wrap { width: 64px; height: 64px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--ink); opacity: 0; transition: opacity .2s; z-index: 5; }
.product-card:hover .product-arrow, .hero-carousel:hover .hero-arrow { opacity: 1; }
.product-arrow-prev, .hero-arrow-prev { left: 10px; }
.product-arrow-next, .hero-arrow-next { right: 10px; }
.hero-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 8; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #9ca3af; padding: 0; }
.hero-dot.active { background: var(--primary); width: 24px; height: 8px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .hero-slides { transition: none; } }
@media (max-width: 767px) {
  .hero-slide { padding: 0 10px; }
  .hero-slide-text { max-width: none; padding-left: 0; padding-top: 10px; }
  .hero-slide-image { display: none; }
  .hero-arrow { opacity: 1; }
}

/* Right column cards same height */
.hero-side { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.hero-side .hero-banner { flex: 1; }
.hero-banner { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface-muted); color: var(--ink); min-height: 96px; }
.hero-banner svg { width: 24px; height: 24px; stroke-width: 2.2; }
.hero-banner strong { font-size: 14px; font-weight: 700; }
.hero-banner-cta { font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 4px; align-self: flex-start; }

/* ---------- Boutons Accueil / Boutique ---------- */
.header-nav { display: flex; gap: 8px; margin-right: 12px; }
.nav-btn { white-space: nowrap; font-size: 13px; font-weight: 700; padding: 6px 14px; }

/* ---------- Modale de confirmation panier + toast ---------- */
.cart-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(41, 38, 39, 0.45);
  backdrop-filter: blur(2px);
  animation: cart-fade-in 0.15s ease-out;
}

.cart-dialog {
  width: 100%;
  max-width: 380px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: cart-pop-in 0.18s ease-out;
}

.cart-dialog h3 { font-size: 18px; margin-bottom: 8px; }
.cart-dialog p { margin: 0 0 20px; color: var(--muted); }
.cart-dialog p strong { color: var(--ink); }
.cart-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cart-dialog-actions .btn { min-width: 96px; }

.quantity-dialog .field { margin-bottom: 10px; }
.quantity-input { width: 100%; text-align: center; font-size: 16px; font-weight: 800; }
.quantity-total { margin-bottom: 16px !important; color: var(--ink) !important; font-weight: 800; }
.quantity-dialog .form-error { margin-bottom: 10px; }

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #1f7a3d;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  animation: cart-toast-in 0.2s ease-out;
}

.cart-toast-error { background: #b3261e; box-shadow: 0 18px 44px rgba(120, 25, 20, 0.3); }

@media (max-width: 767px) {
  .cart-toast { bottom: 84px; }
  .brand { font-size: 17px; }
  .brand-logo { width: 54px; height: 42px; }
}

@keyframes cart-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cart-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes cart-toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Profil utilisateur ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 52px;
}

.profile-stack { display: grid; gap: 20px; min-width: 0; }

.profile-card { text-align: center; padding: 26px 22px; }

.profile-avatar-large {
  width: 122px;
  height: 122px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 38px;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h2 { font-size: 20px; margin: 0 0 4px; }
.profile-card .badge { margin-top: 10px; }

.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.profile-section-title { font-size: 16px; margin: 0 0 16px; }

.profile-logout { margin-top: 18px; }

@media (max-width: 860px) {
  .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .profile-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 13px; }
}

@media (max-width: 560px) {
  .profile-fields { grid-template-columns: 1fr; }
}

/* ---------- Motion layer ---------- */
@keyframes motion-rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes motion-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes motion-pop {
  0% { opacity: 0; scale: 0.94; }
  65% { opacity: 1; scale: 1.025; }
  100% { opacity: 1; scale: 1; }
}
@keyframes bell-wiggle {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -10deg; }
  75% { rotate: 10deg; }
}
@keyframes count-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 25, 32, 0.3); }
  55% { box-shadow: 0 0 0 5px rgba(215, 25, 32, 0); }
}
@keyframes notif-drop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes heart-pop {
  0% { scale: 1; }
  45% { scale: 1.3; }
  100% { scale: 1; }
}
@keyframes tracker-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 25, 32, 0.22); }
  50% { box-shadow: 0 0 0 5px rgba(215, 25, 32, 0); }
}

.page-header { animation: motion-fade 0.45s ease both; }
.section-head { animation: motion-rise 0.5s 0.04s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.filters { animation: motion-rise 0.5s 0.06s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.results-bar { animation: motion-fade 0.4s 0.12s ease both; }
.visit-card { animation: motion-rise 0.55s 0.08s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.auth-card { animation: motion-pop 0.5s cubic-bezier(0.2, 0.75, 0.25, 1) both; }

.hero-banner {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: motion-rise 0.5s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.hero-banner:nth-child(2) { animation-delay: 0.08s; }
.hero-banner:nth-child(3) { animation-delay: 0.16s; }
.hero-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.trust-item { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.trust-item:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 25, 32, 0.2);
  box-shadow: var(--shadow-sm);
}
.trust-item svg { transition: transform 0.3s ease; }
.trust-item:hover svg { transform: scale(1.12) rotate(-4deg); }

.grid-products > .product-card,
.product-rail > .product-card {
  animation: motion-rise 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.grid-products > .product-card:nth-child(2),
.product-rail > .product-card:nth-child(2) { animation-delay: 0.04s; }
.grid-products > .product-card:nth-child(3),
.product-rail > .product-card:nth-child(3) { animation-delay: 0.08s; }
.grid-products > .product-card:nth-child(4),
.product-rail > .product-card:nth-child(4) { animation-delay: 0.12s; }
.grid-products > .product-card:nth-child(5),
.product-rail > .product-card:nth-child(5) { animation-delay: 0.16s; }
.grid-products > .product-card:nth-child(6),
.product-rail > .product-card:nth-child(6) { animation-delay: 0.2s; }
.grid-products > .product-card:nth-child(7),
.product-rail > .product-card:nth-child(7) { animation-delay: 0.24s; }
.grid-products > .product-card:nth-child(8),
.product-rail > .product-card:nth-child(8) { animation-delay: 0.28s; }

.category-grid > .category-tile {
  animation: motion-pop 0.45s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.category-grid > .category-tile:nth-child(2) { animation-delay: 0.04s; }
.category-grid > .category-tile:nth-child(3) { animation-delay: 0.08s; }
.category-grid > .category-tile:nth-child(4) { animation-delay: 0.12s; }
.category-grid > .category-tile:nth-child(5) { animation-delay: 0.16s; }
.category-grid > .category-tile:nth-child(6) { animation-delay: 0.2s; }
.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 25, 32, 0.22);
  box-shadow: var(--shadow);
}

.product-fav { transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.product-fav:hover { transform: scale(1.1); }
.product-fav.active { color: var(--primary); animation: heart-pop 0.35s ease; }

.cart-list > .cart-item,
.orders-list > .order-card {
  animation: motion-rise 0.5s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
.cart-list > .cart-item:nth-child(2),
.orders-list > .order-card:nth-child(2) { animation-delay: 0.05s; }
.cart-list > .cart-item:nth-child(3),
.orders-list > .order-card:nth-child(3) { animation-delay: 0.1s; }
.cart-list > .cart-item:nth-child(4),
.orders-list > .order-card:nth-child(4) { animation-delay: 0.15s; }
.summary, .checkout-card { animation: motion-rise 0.5s 0.04s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.empty-state { animation: motion-pop 0.45s cubic-bezier(0.2, 0.75, 0.25, 1) both; }

.profile-card { animation: motion-pop 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.profile-stack > .card { animation: motion-rise 0.5s cubic-bezier(0.2, 0.75, 0.25, 1) both; }
.profile-stack > .card:nth-child(2) { animation-delay: 0.06s; }
.profile-stack > .card:nth-child(3) { animation-delay: 0.12s; }

.main-nav .nav-link { position: relative; }
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.35;
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.25s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { scale: 1 1; }

.btn-primary::after,
.btn-whatsapp::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.26) 50%, transparent 65%);
  translate: -140% 0;
  transition: translate 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after,
.btn-whatsapp:hover::after { translate: 140% 0; }
.btn:active { transform: translateY(1px) scale(0.985); }

.notif-btn { transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.notif-btn:hover { transform: translateY(-1px); }
.notif-btn:hover svg { animation: bell-wiggle 0.45s ease; }
.notif-count { animation: count-pulse 2.8s ease-in-out infinite; }
.notif-panel { animation: notif-drop 0.22s ease both; transform-origin: top right; }
.notif-item { transition: background 0.2s ease, box-shadow 0.2s ease; }
.notif-item:hover { box-shadow: inset 3px 0 0 var(--primary); }

.tracker-step.done .tracker-dot { animation: tracker-pulse 2.8s ease-in-out infinite; }

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; }
}

@media (max-width: 760px) {
  .header-search { width: 100%; }
  .header-actions { margin-left: auto; gap: 8px; }
}

@media (max-width: 640px) {
  .brand span { display: none; }
  .brand-logo { width: 48px; height: 38px; }
  .header-actions .profile-avatar { display: none; }
  .cart-link, .notif-btn, .menu-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
  }
  .cart-link { gap: 0; border-radius: 999px; }
  .menu-toggle { border-radius: 999px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-header, .section-head, .filters, .results-bar, .visit-card, .auth-card,
  .hero-banner, .grid-products > .product-card, .product-rail > .product-card,
  .category-grid > .category-tile, .cart-list > .cart-item, .orders-list > .order-card,
  .summary, .checkout-card, .empty-state, .profile-card, .profile-stack > .card,
  .notif-panel, .notif-count, .tracker-step.done .tracker-dot, .product-fav.active {
    animation: none !important;
  }
  .btn-primary::after, .btn-whatsapp::after { display: none; }
}

html, body { overflow-x: clip; }
html { scroll-padding-top: 110px; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea):focus:not(:focus-visible) { outline: none; box-shadow: none; }
.announce-short { display: none; }
.header-search-toggle { display: none; }
.search-overlay { display: none; }
.mobile-filter-bar { display: none; }
.sheet-overlay { display: none; }
.category-bar-mobile { display: none; }
.bottom-nav { display: none; }
.offline-badge {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-menu);
  padding: 6px 12px;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.install-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-install);
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, calc(100% - 32px));
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.install-banner > div { display: flex; flex: 1; flex-direction: column; line-height: 1.2; }
.install-banner strong { font-size: 12px; }
.install-banner span { font-size: 10px; color: var(--muted); }
.install-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}
.detail-gallery { position: relative; display: grid; gap: 12px; }
.gallery-thumb { position: relative; }
.gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.detail-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius-lg);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.detail-gallery-track::-webkit-scrollbar { display: none; }
.detail-gallery-item {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #efe7d8, #f8f2e7);
}
.detail-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-nav {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.detail-gallery-dot {
  width: 28px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
}
.detail-gallery-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.detail-gallery-dot.active::after { width: 20px; border-radius: 4px; background: #fff; }
.detail-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  z-index: 4;
}
.detail-gallery-prev { left: 8px; }
.detail-gallery-next { right: 8px; }

@media (max-width: 768px) {
  html { scroll-padding-top: 140px; }
  .announce-inner { min-height: 36px; }
  .announce-full { display: none; }
  .announce-short { display: inline; }
  .announce-close { width: 44px; min-width: 44px; height: 44px; }
  .header-inner { min-height: 52px; flex-wrap: nowrap; gap: 6px; padding: 5px 0; }
  .brand span, .header-nav, .header-search-desktop, .header-notif, .header-wa, .wa-label, .profile-avatar, .cart-label { display: none !important; }
  .brand-logo { width: 40px; height: 40px; object-fit: contain; }
  .header-search-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
  }
  .header-actions { gap: 4px; margin-left: auto; }
  .cart-link, .menu-toggle { width: 44px; min-width: 44px; height: 44px; padding: 0; }
  .category-bar-desktop { display: none !important; }
  .category-bar-mobile { position: relative; display: block; border-top: 1px solid var(--border); background: var(--surface); }
  .category-bar-mobile .category-bar-inner { min-height: 44px; gap: 8px; }
  .cat-all-btn, .category-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .cat-all-btn { padding: 8px 12px; }
  .search-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    align-items: flex-start;
    background: rgba(41, 38, 39, 0.45);
  }
  .search-overlay-inner {
    width: 100%;
    padding: calc(env(safe-area-inset-top) + 12px) 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .search-overlay-form { display: flex; gap: 8px; }
  .search-overlay-form input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); font-size: 16px; }
  .search-overlay-form input::placeholder { color: var(--muted); opacity: 1; }
  .search-overlay-form button { width: 48px; min-width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; }
  .search-overlay-form button:last-child { background: var(--surface-muted); color: var(--muted); }

  .site-main > main.products-page { animation: none; }
  .products-page .page-header { padding-top: 14px; padding-bottom: 10px; }
  .products-page .page-header h1 { font-size: 24px; }
  .products-page .page-header p { display: none; }
  .products-page .breadcrumb { margin-bottom: 6px; }
  .products-page .filters { display: none; }
  .mobile-filter-bar { display: flex; gap: 8px; margin: 10px 0 8px; }
  .filter-trigger { flex: 1; justify-content: center; min-height: 44px; }
  .filter-count {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
  }
  .compact-sort { flex: 0 0 132px; min-height: 44px; padding: 0 10px; font-size: 13px; }
  .results-bar { margin-top: 0; padding-top: 8px; padding-bottom: 8px; }
  .results-bar .btn { min-height: 44px; }
  .sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    display: flex;
    align-items: flex-end;
    background: rgba(41, 38, 39, 0.45);
  }
  .filter-sheet {
    display: grid;
    gap: 14px;
    width: 100%;
    max-height: min(85dvh, 620px);
    overflow-y: auto;
    padding: 10px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: var(--surface);
  }
  .sheet-handle {
    width: 44px;
    height: 4px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--border);
  }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; }
  .sheet-head h2 { margin: 0; font-size: 20px; }
  .sheet-head button { width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--surface-muted); color: var(--muted); }
  .filter-sheet .field { display: grid; gap: 6px; }
  .filter-sheet .select { width: 100%; }

  body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 16px); }
  .site-main { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 16px); }
  .product-detail-page { padding-bottom: calc(var(--sticky-cta-h) + 32px); }
  .site-footer { padding-bottom: 0; }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-bottom-nav);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 -6px 22px rgba(41,38,39,.08);
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
  }
  .bottom-nav-item.active { color: var(--primary); background: var(--primary-soft); }
  .bottom-nav-icon { position: relative; display: grid; place-items: center; }
  .bottom-nav-count {
    position: absolute;
    top: -6px;
    right: -10px;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
  }

  .install-banner {
    left: 12px;
    right: 12px;
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 8px);
    width: auto;
  }
  .btn, .btn-sm, .btn-whatsapp, .product-wa, .product-fav, .gallery-thumb,
  .qty-control button, .rating-input button { min-width: 44px; min-height: 44px; }
  .btn-sm { padding: 10px 14px; }
  .product-fav { width: 44px; height: 44px; }
  .product-card .product-actions { flex-wrap: nowrap; }
  .product-card .product-actions form { flex: 1 1 auto; min-width: 0; }
  .product-card .product-add { flex: 1 1 auto; width: auto; justify-content: center; gap: 6px; }
  .product-card .product-wa { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
  .product-card .product-wa span { display: none; }

  .section { padding-top: 28px; padding-bottom: 28px; }
  .hero-side { display: none; }
  .trust-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .trust-bar::-webkit-scrollbar { display: none; }
  .trust-item {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 10px;
    white-space: nowrap;
  }
  .trust-item strong { font-size: 12px; }
  .trust-item span { display: none; }
  .trust-item svg { width: 16px; height: 16px; flex: 0 0 16px; }

  .hero-carousel { height: 210px; }
  .hero-slides { -webkit-overflow-scrolling: touch; }
  .hero-slide { padding: 12px; gap: 8px; }
  .hero-slide-text { max-width: 56%; padding-left: 0; padding-top: 0; padding-bottom: 34px; }
  .hero-slide-text h3 { font-size: 18px; }
  .hero-slide-price { font-size: 15px; }
  .hero-slide-image { display: flex; flex: 0 0 42%; max-width: 42%; }
  .hero-product-card { padding: 6px; border-radius: 12px; }
  .hero-icon-wrap { width: 44px; height: 44px; }
  .hero-icon-wrap svg { width: 24px; height: 24px; }
  .hero-arrow { display: none; }
  .hero-dots { bottom: 12px; gap: 6px; }
  .product-rail > * { flex-basis: min(72vw, 220px); }
  .detail-gallery-arrow { display: none; }

  .sticky-cta {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
    padding: 8px 12px;
  }
  .sticky-cta .btn { min-height: 44px; }
  .cart-toast {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 12px);
    max-width: calc(100% - 24px);
    text-align: center;
  }
  .cart-dialog { max-height: calc(100dvh - 32px - env(safe-area-inset-bottom)); overflow-y: auto; padding: 18px; }
  .cart-dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-dialog-actions .btn { min-width: 0; min-height: 44px; }
  .payment-methods { gap: 8px; }
  .payment-method { flex: 1 1 0; min-width: 0; }
  .payment-method-content { min-height: 84px; padding: 8px 4px; }
  .payment-method-content img { width: 56px; height: 40px; }
  .input, .select, .textarea { min-height: 44px; font-size: 16px; }
  .auth-card form > .btn, .checkout-card form > .btn[type='submit'], .form-actions .btn { width: 100%; }
  .empty-state .btn-lg, .cart-layout .btn-lg { width: 100%; }
  .order-tracker { overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .order-tracker::-webkit-scrollbar { display: none; }
  .tracker-step { min-width: 84px; }
  .order-head, .order-foot, .summary-row, .checkout-item { overflow-wrap: anywhere; }
}

@media (min-width: 769px) {
  .hero-arrow { display: grid; opacity: 0; }
  .hero-carousel:hover .hero-arrow { opacity: 1; }
  .hero-slides { overflow: hidden; }
  .detail-gallery-arrow { display: grid; opacity: 0; }
  .detail-gallery:hover .detail-gallery-arrow { opacity: 1; }
}

@media (max-width: 380px) {
  .header-search input::placeholder { color: transparent; }
  .product-body { padding: 9px; }
  .product-name { font-size: 12.5px; }
  .hero-slide-text h3 { font-size: 17px; }
}

.store-catalog .product-stock { margin: 0; font-size: 12px; color: var(--muted); }
.store-catalog .product-actions { display: flex; gap: 8px; margin-top: auto; }
.store-catalog .product-actions form { flex: 1; min-width: 0; }
.store-catalog .product-actions .btn { width: 100%; justify-content: center; }
.store-catalog .filters .btn { align-self: end; }

input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; display: none; }

.search-field { position: relative; flex: 1 1 auto; min-width: 0; }
.search-field input { width: 100%; min-width: 0; padding-right: 44px !important; }
.search-clear {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.search-overlay-form { display: flex; gap: 8px; align-items: center; }
.search-submit,
.search-overlay-close {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.search-submit { background: var(--primary); color: #fff; }
.search-overlay-close { background: var(--surface-muted); color: var(--ink); }

.hero-carousel-shell { min-width: 0; }
.hero-carousel { display: flex; min-width: 0; }
.hero-slides { min-width: 0; width: 100%; }
.hero-slide { min-width: 0; flex: 0 0 100%; }
.hero-slide-text { min-width: 0; flex: 1 1 auto; }
.hero-slide-image { min-width: 0; flex: 0 0 42%; max-width: 42%; }
.hero-product-card { min-width: 0; max-width: 100%; }
.hero-product-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.hero-dots {
  position: static;
  transform: none;
  justify-content: center;
  margin-top: 10px;
  z-index: auto;
}
.hero-dot { min-width: 44px; min-height: 44px; background: transparent; position: relative; }
.hero-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #9ca3af;
}
.hero-dot.active::after { width: 24px; background: var(--primary); }

.install-banner {
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 8px);
  z-index: var(--z-install);
}
body.pwa-install-banner-visible {
  padding-bottom: calc(var(--install-banner-h, 0px) + env(safe-area-inset-bottom) + 12px);
}
body.pwa-install-banner-visible .site-main {
  padding-bottom: calc(var(--bottom-nav-h) + var(--install-banner-h, 0px) + env(safe-area-inset-bottom) + 24px);
}
.install-banner .install-ios-help { color: var(--ink); font-weight: 600; }
.update-banner {
  position: fixed;
  left: 50%;
  bottom: calc(64px + env(safe-area-inset-bottom) + 8px);
  z-index: var(--z-install);
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(420px, calc(100% - 24px));
  transform: translateX(-50%);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
}
.update-banner > span { flex: 1; }

.bottom-nav-item { min-height: 52px; font-size: 11.5px; }
.bottom-nav-item.active { color: var(--primary); background: var(--primary-soft); }
.bottom-nav-icon { width: 24px; height: 24px; }
.bottom-nav-icon svg { display: block; width: 24px; height: 24px; }
.bottom-nav-count { min-width: 18px; height: 18px; font-size: 10px; }

.grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  html { scroll-padding-top: calc(140px + env(safe-area-inset-top)); }
  .site-header { padding-top: env(safe-area-inset-top); }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .install-banner { left: 12px; right: 12px; bottom: calc(64px + env(safe-area-inset-bottom) + 8px); }
}
@media (display-mode: standalone) {
  body { background: var(--bg); }
  .site-header { padding-top: env(safe-area-inset-top); }
  .bottom-nav { padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
}

.product-card { min-width: 0; }
.product-media { background: #f6f3ef; }
.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  padding: 10px;
  object-fit: contain;
  background: #fff;
}
.product-image-fallback { position: absolute; inset: 0; }
.image-failed .product-image-fallback { display: grid; }
.product-body { flex: 1 1 auto; }
.product-name { min-height: 2.7em; }
.product-actions { margin-top: auto; }
.product-fav.active { color: var(--primary); background: #fff; }

.product-skeletons { display: none; }
.product-skeletons.is-visible { display: contents; }
.product-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.skeleton-media { aspect-ratio: 1 / 1; }
.skeleton-line { height: 12px; }
.skeleton-line-short { width: 45%; }
.skeleton-line-price { width: 65%; height: 16px; }
.skeleton-actions { height: 44px; margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  z-index: var(--z-toast);
  width: min(420px, calc(100% - 24px));
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .pwa-toast { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 24px); }
  body.pwa-install-banner-visible .pwa-toast {
    bottom: calc(var(--bottom-nav-h) + var(--install-banner-h, 0px) + env(safe-area-inset-bottom) + 16px);
  }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 520ms cubic-bezier(0.2, 0.75, 0.25, 1);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Storefront parity affordances ---------- */
.hero-banner > svg { flex: 0 0 auto; color: var(--primary); }
.hero-banner-wa > svg { color: #25d366; }
.trust-item > svg { flex: 0 0 auto; color: var(--primary); }
.header-wa { gap: 6px; }
.header-wa svg { display: block; flex: 0 0 auto; }
.product-card-promo .badge-promo { text-transform: uppercase; letter-spacing: 0.04em; }
.auth-card [data-loading-label] { min-height: 44px; }
.auth-card [data-loading-label][disabled] { opacity: 0.75; cursor: wait; }
.site-footer .brand small { display: block; color: rgba(255, 255, 255, 0.5); font-size: 11px; }
.footer-bottom span + span { color: rgba(255, 255, 255, 0.45); }
@media (max-width: 768px) {
  .hero-arrow { width: 44px; height: 44px; }
  .hero-banner > svg { width: 20px; height: 20px; }
}

}
