/* =================================================================
   Monteiro Distribuidora — store.css v3.0
   Design system senior · natural · consistente · profissional
   ================================================================= */

/* ======================== 1. VARIÁVEIS ======================== */
:root {
  --ink:       #111827;
  --ink-2:     #1f2937;
  --ink-3:     #374151;
  --muted:     #6b7280;
  --muted-2:   #9ca3af;
  --line:      #e5e7eb;
  --line-2:    #d1d5db;
  --bg:        #f9fafb;
  --bg-2:      #f3f4f6;
  --white:     #ffffff;
  --accent:    #dc2626;
  --accent-dk: #b91c1c;
  --green:     #059669;
  --green-2:   #047857;
  --pix:       #10b981;
  --amber:     #d97706;
  --yellow:    #f59e0b;
  --yellow-dk: #d97706;
  --blue:      #1d4ed8;
  --s1: 0 1px 2px rgba(17,24,39,.06);
  --s2: 0 4px 6px rgba(17,24,39,.07), 0 1px 3px rgba(17,24,39,.05);
  --s3: 0 10px 15px rgba(17,24,39,.08), 0 4px 6px rgba(17,24,39,.04);
  --s4: 0 25px 50px rgba(17,24,39,.12), 0 10px 20px rgba(17,24,39,.06);
  --tr: .15s ease;
  --radius: 10px;
}

/* ======================== 2. RESET ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding-bottom: 80px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ======================== 3. TWEMOJI ======================== */
.twemoji-img, img.emoji {
  height: 1em; width: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  object-fit: contain;
  pointer-events: none;
}
.card-emoji .twemoji-img,
.card-emoji img.emoji {
  width: 58px !important;
  height: 58px !important;
  vertical-align: middle;
}
.ext-prod-emoji .twemoji-img,
.ext-prod-emoji img.emoji {
  width: 76px !important;
  height: 76px !important;
}

/* ======================== 4. HEADER ======================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1d4ed8;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: 64px;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}

/* Logo */
.brand { display: flex; align-items: center; flex-shrink: 0; margin: 0 4px; text-decoration: none; }
.brand-logo { height: 36px; width: auto; object-fit: contain; }
.brand-m {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 900;
  color: #fff; letter-spacing: -0.04em;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0; user-select: none;
}

/* Hamburger */
.more-menu { position: relative; flex-shrink: 0; }
.ti-more {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  background: transparent;
  border: none;
  transition: background var(--tr), color var(--tr);
}
.ti-more:hover { background: rgba(255,255,255,.12); color: #fff; }
.ti-svg { width: 18px; height: 18px; flex-shrink: 0; }

.more-dropdown {
  position: absolute;
  left: 0; top: calc(100% + 8px);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--s4);
  padding: 6px;
  z-index: 200;
  animation: fadeSlideIn .16s ease;
}
.more-dropdown[hidden] { display: none; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.more-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--tr);
  color: var(--ink);
}
.more-item:hover { background: var(--bg); }
.more-ico {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); border-radius: 8px;
  flex-shrink: 0; color: var(--ink-3);
}
.more-ico svg { width: 17px; height: 17px; }
.more-title { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.more-sub   { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* Search */
.search-bar {
  flex: 1;
  display: flex; align-items: center;
  background: var(--white);
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color var(--tr);
  height: 40px;
}
.search-bar:focus-within { border-color: #60a5fa; }
.search-bar input {
  flex: 1; border: none; outline: none;
  padding: 0 14px;
  font-size: 14px; color: var(--ink);
  background: transparent;
  height: 100%;
}
.search-bar input::placeholder { color: var(--muted-2); font-size: 13.5px; }
.search-bar button { display: none; }

/* Top text links (Atendimento, Minha Conta) */
.top-links {
  display: flex; align-items: center;
  gap: 2px; flex-shrink: 0;
}
.top-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: 6px;
  color: rgba(255,255,255,.85);
  font-size: 11px; font-weight: 500;
  white-space: nowrap; transition: background var(--tr), color var(--tr);
  text-decoration: none; line-height: 1.2;
}
.top-link:hover { background: rgba(255,255,255,.12); color: #fff; }
.top-link svg { width: 20px; height: 20px; }

/* Cart icon */
.top-icons { display: flex; align-items: center; flex-shrink: 0; }
.ti-cart {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: transparent; color: white;
  border-radius: 8px;
  position: relative;
  transition: background var(--tr);
}
.ti-cart:hover { background: rgba(255,255,255,.12); }
.ti-cart .ti-svg { width: 22px; height: 22px; }
.ti-cart .cnt {
  position: absolute; top: 4px; right: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--yellow); color: var(--ink);
  border-radius: 999px; font-size: 10px; font-weight: 800;
  border: 2px solid #1d4ed8;
}

/* ======================== 5. BENEFITS BAR ======================== */
.benefits-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.benefits-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  cursor: default;
}
.benefit-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #1d4ed8;
}
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-text { display: flex; flex-direction: column; gap: 1px; }
.benefit-text strong {
  font-size: 12.5px; font-weight: 700;
  color: var(--ink); line-height: 1.2;
  white-space: nowrap;
}
.benefit-text span {
  font-size: 11px; color: var(--muted);
  white-space: nowrap; line-height: 1.2;
}
.benefit-sep {
  width: 1px; height: 32px;
  background: var(--line); flex-shrink: 0;
}
@media (max-width: 900px) {
  .benefits-bar { display: none; }
}

/* ======================== 6. CATEGORY CHIPS ======================== */
.cat-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-bar::-webkit-scrollbar { display: none; }
.chips { display: inline-flex; gap: 6px; white-space: nowrap; }
.chip span svg { width: 15px; height: 15px; vertical-align: middle; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink-3);
  transition: all var(--tr);
  cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip .badge {
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.chip:not(.on) .badge { background: var(--bg); color: var(--muted); }

/* ======================== 6. CONTAINER ======================== */
.wrap { max-width: 1440px; margin: 0 auto; padding: 16px 20px; }

/* ======================== 7. TRUST BAR ======================== */
.trust-bar {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0;
  background: var(--ink-2);
  color: rgba(255,255,255,.8);
  padding: 9px 20px;
  font-size: 12.5px;
  border-radius: 10px;
  margin-bottom: 6px;
}
.trust-item {
  display: flex; align-items: center; gap: 7px;
  padding: 3px 18px;
  border-right: 1px solid rgba(255,255,255,.10);
}
.trust-item:last-child { border-right: none; }
.trust-ico { flex-shrink: 0; display: flex; align-items: center; }
.trust-ico svg { width: 18px; height: 18px; opacity: .75; }
.trust-item b { color: var(--white); font-weight: 600; display: block; font-size: 12.5px; }
.trust-item span { display: block; font-size: 11px; color: rgba(255,255,255,.5); }

/* ======================== 8. HERO CAROUSEL ======================== */
.hero-carousel {
  position: relative;
  border-radius: 14px; overflow: hidden;
  margin: 16px 0 22px;
  box-shadow: var(--s3);
}
.hero-track {
  display: flex;
  transition: transform .52s cubic-bezier(.4,0,.2,1);
}
.hero-slide {
  flex: 0 0 100%;
  min-height: 380px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff; overflow: hidden;
}
.hero-slide--blue  { background: #111827; }
.hero-slide--sz-sm  { min-height: 220px !important; }
.hero-slide--sz-md  { min-height: 340px !important; }
.hero-slide--sz-lg  { min-height: 480px !important; }
.hero-slide--sz-xl  { min-height: 580px !important; }
.hero-slide--yellow { background: var(--yellow); color: #fff; }
.hero-slide--dark  { background: var(--blue); }

.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 520px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255,255,255,.10); padding: 4px 10px;
  border-radius: 4px; margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.12);
}
.hero-slide--yellow .hero-eyebrow { background: rgba(0,0,0,.15); border-color: rgba(0,0,0,.12); color: #fff; }
.hero-slide h2 {
  font-size: 28px; font-weight: 800; line-height: 1.12;
  margin-bottom: 10px; letter-spacing: -0.025em;
}
.hero-slide h2 em { font-style: normal; color: var(--yellow); }
.hero-slide--yellow h2 em { color: #fff; opacity: .8; }
.hero-slide--dark h2 em  { color: var(--yellow); }
.hero-slide p {
  font-size: 14px; line-height: 1.55;
  opacity: .85; margin-bottom: 22px; max-width: 440px;
}
.hero-p--dark { opacity: .72; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 13.5px;
  padding: 11px 20px; border-radius: 8px;
  letter-spacing: .01em;
  transition: opacity var(--tr);
}
.hero-cta:hover { opacity: .88; }
.hero-slide--yellow .hero-cta { background: #111827; color: #fff; }
.hero-slide--dark .hero-cta { background: var(--yellow); color: var(--ink); }
.hero-deco {
  font-size: 110px; line-height: 1; opacity: .15;
  text-align: right;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.18));
}
.hero-dots {
  position: absolute; bottom: 13px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.hero-dots button {
  width: 22px; height: 3px; border-radius: 999px;
  background: rgba(255,255,255,.32);
  cursor: pointer; transition: all .2s;
}
.hero-dots button.active { background: #fff; width: 34px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 4; backdrop-filter: blur(8px);
  transition: background var(--tr); line-height: 1;
}
.hero-arrow:hover { background: rgba(255,255,255,.26); }
.hero-arrow--prev { left: 14px; }
.hero-arrow--next { right: 14px; }

/* ======================== 9. CATEGORY TILES ======================== */
.section-title {
  font-size: 20px; font-weight: 800; margin-bottom: 14px;
  color: var(--ink); letter-spacing: -0.02em;
}
.section-title--center { text-align: center; }
.cat-tiles { margin-bottom: 26px; }
.cat-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 9px;
}
.cat-tile {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 8px;
  text-align: center; cursor: pointer;
  transition: all var(--tr);
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
}
.cat-tile:hover { border-color: var(--line-2); box-shadow: var(--s1); }
.cat-tile.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cat-tile-ico {
  width: 42px; height: 42px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; background: var(--bg); color: var(--ink-3);
}
.cat-tile-ico svg { width: 22px; height: 22px; }
.cat-tile.active .cat-tile-ico { background: rgba(255,255,255,.12); color: #fff; }
.cat-tile.active .cat-tile-ico img { filter: brightness(0) invert(1); }
.cat-tile-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.2; }
.cat-tile-count { font-size: 10px; color: var(--muted); }
.cat-tile.active .cat-tile-count { color: rgba(255,255,255,.55); }

/* ======================== 10. SECTION HEADER ======================== */
.section-head {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 12px; flex-wrap: wrap;
}
.section-head .tag {
  background: var(--bg-2); color: var(--muted);
  padding: 4px 10px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 4px;
  border: 1px solid var(--line);
}
.section-head h2 {
  font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em;
}
.section-head .count { font-size: 12px; color: var(--muted); }
.sort-wrap { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sort-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.sort-select {
  font-size: 12.5px; padding: 5px 10px;
  border: 1.5px solid var(--line); border-radius: 7px;
  background: var(--white); color: var(--ink);
  outline: none; cursor: pointer;
}
.sort-select:focus { border-color: var(--ink); }

/* ======================== 11. PRODUCT GRID ======================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}

/* ======================== 12. PRODUCT CARDS ======================== */
.card-prod {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
  cursor: pointer;
}
.card-prod:hover {
  box-shadow: var(--s2);
  border-color: var(--line-2);
}

/* Badges */
.discount-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 800;
  padding: 3px 7px; border-radius: 5px;
  letter-spacing: .03em; z-index: 2; line-height: 1.3;
}
.card-stock {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; font-weight: 700;
  padding: 3px 6px; border-radius: 5px;
  letter-spacing: .05em; text-transform: uppercase; z-index: 2;
}
.stock-low        { background: rgba(234,88,12,.9);  color: #fff; }
.stock-empty      { background: rgba(107,114,128,.85); color: #fff; }
.stock-soon       { background: rgba(46,123,214,.9);  color: #fff; }
.stock-bestseller { background: rgba(202,138,4,.92);  color: #fff; }

/* Thumbnail strip for multi-photo cards */
.card-img { position: relative; }
.card-img-thumbs {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; gap: 3px; padding: 4px 6px;
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 100%);
  justify-content: center;
}
.card-img-thumbs img {
  width: 28px; height: 28px; object-fit: cover; border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,.4); cursor: pointer;
  transition: border-color .15s, transform .15s; flex-shrink: 0;
}
.card-img-thumbs img.cthumb-on { border-color: #fff; transform: scale(1.1); }
.card-img-thumbs img:hover { border-color: #fff; }

/* Emoji / product icon area */
.card-emoji {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-emoji-icon { display: flex; align-items: center; justify-content: center; }
.card-emoji-icon svg { width: 56px; height: 56px; color: var(--muted); opacity: .55; }
/* Real product photo */
.card-img {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .3s;
}
.card-prod:hover .card-img img { transform: scale(1.04); }

/* Body */
.card-cat {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 9px 12px 2px;
}
.card-name {
  font-size: 13px; font-weight: 600;
  color: var(--ink); line-height: 1.35;
  padding: 2px 12px 8px; min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-price-block { padding: 0 12px 8px; margin-top: auto; }
.card-price-old {
  font-size: 11px; color: var(--muted-2);
  text-decoration: line-through; line-height: 1.4;
}
.card-price-now {
  font-size: 20px; font-weight: 800;
  color: var(--ink); line-height: 1.1; letter-spacing: -0.01em;
}
.card-price-now small { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 1px; }
.card-price-unit { font-size: 10px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.card-combo-price {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 5px; padding: 5px 8px;
  background: var(--bg); border-radius: 6px;
  border: 1px solid var(--line);
}
.card-combo-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card-combo-val { font-size: 15px; font-weight: 800; color: var(--blue); letter-spacing: -0.01em; }
.card-combo-val small { font-size: 10px; font-weight: 500; color: var(--muted); margin-right: 1px; }
.card-pix { font-size: 11px; color: var(--pix); font-weight: 700; margin-top: 2px; }
.card-price-locked {
  display: flex; align-items: center; gap: 7px;
  background: #f3f4f6; border-radius: 8px;
  padding: 8px 10px; margin-bottom: 4px;
}
.card-lock-icon { font-size: 17px; line-height: 1; flex-shrink: 0; }
.card-lock-label {
  font-size: 12px; font-weight: 600;
  color: var(--muted); letter-spacing: .01em;
}
.card-btn-login {
  margin: 0 10px 10px;
  background: var(--blue); color: var(--white);
  padding: 10px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em;
  width: calc(100% - 20px);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: background var(--tr); cursor: pointer;
}
.card-btn-login::before { content: "🔒"; font-size: 13px; }
.card-btn-login:hover { background: var(--blue-2, #1a4db5); }
.card-add {
  margin: 0 10px 10px;
  background: var(--ink); color: var(--white);
  padding: 10px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
  width: calc(100% - 20px);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background var(--tr);
}
.card-add:hover { background: var(--ink-2); }
.card-add.added { background: var(--green); }
.card-add.added:hover { background: var(--green-2); }
.card-add svg { width: 15px; height: 15px; flex-shrink: 0; }
.card-qty-ctrl {
  margin: 0 10px 10px;
  display: flex; align-items: center;
  background: #2E7BD6; border-radius: 8px;
  overflow: hidden; height: 38px;
}
.qty-minus, .qty-plus {
  width: 40px; height: 38px; flex-shrink: 0;
  border: none; cursor: pointer;
  font-size: 20px; font-weight: 300;
  display: flex; align-items: center; justify-content: center;
  transition: filter var(--tr);
}
.qty-minus { background: #e53e3e; color: #fff; }
.qty-plus  { background: #38a169; color: #fff; }
.qty-minus:hover { filter: brightness(1.12); }
.qty-plus:hover  { filter: brightness(1.12); }
.qty-val {
  flex: 1; text-align: center; pointer-events: none;
  color: #fff; font-size: 14px; font-weight: 700;
}

/* Injected by extras.js */
.card-actions {
  display: flex; gap: 4px;
  position: absolute; bottom: 8px; left: 8px; z-index: 3;
}
.card-fav-btn, .card-share-btn {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr); color: var(--muted);
  backdrop-filter: blur(4px);
}
.card-fav-btn:hover, .card-share-btn:hover { background: var(--white); color: var(--ink); }
.card-fav-btn.is-fav { color: var(--accent); background: var(--white); }

/* Badge stack injected by launch.js */
.badge-stack {
  position: absolute; bottom: 52px; left: 0; right: 0;
  padding: 0 8px;
  display: flex; flex-wrap: wrap; gap: 3px; z-index: 3;
}
.badge-pill {
  display: inline-flex; align-items: center;
  font-size: 9px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .03em;
}
.badge-bestseller { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-low-stock  { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ======================== 13. EMPTY STATE ======================== */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--muted);
}
.empty-ico {
  width: 52px; height: 52px; margin: 0 auto 14px;
  display: block; opacity: .2; color: var(--ink-3);
}
.empty p { font-size: 16px; font-weight: 600; color: var(--ink-3); }

/* ======================== 14. FAB CART (MOBILE) ======================== */
.cart-fab {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  background: var(--ink); color: var(--white);
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(17,24,39,.28);
  z-index: 90; transition: background var(--tr);
}
.cart-fab:hover { background: var(--ink-2); }
.cart-fab .cart-count {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px;
  background: var(--accent); color: white;
  border-radius: 999px; font-size: 10.5px; font-weight: 800;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

/* ======================== 15. CART DRAWER ======================== */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 100%; max-width: 400px;
  background: var(--white);
  box-shadow: -10px 0 40px rgba(0,0,0,.12);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  padding: 14px 18px;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.cart-head button {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.75);
  font-size: 13px; display: flex; align-items: center; justify-content: center;
  transition: background var(--tr);
}
.cart-head button:hover { background: rgba(255,255,255,.18); color: #fff; }
.cart-list { flex: 1; overflow-y: auto; padding: 12px; background: var(--bg); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty p  { font-size: 15px; font-weight: 600; color: var(--ink-3); margin: 10px 0 4px; }
.cart-empty small { font-size: 12px; }
.cart-row {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 10px; align-items: center; margin-bottom: 8px;
}
.cr-emo { font-size: 30px; line-height: 1; }
.cr-img {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.cr-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.cr-nm  { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; line-height: 1.3; }
.cr-pr  { font-size: 11px; color: var(--muted); }
.cr-pr b { color: var(--accent); font-size: 12px; font-weight: 700; }
.cr-qty {
  display: flex; align-items: center; gap: 3px;
  background: var(--bg); border-radius: 7px; padding: 2px;
}
.cr-qty button {
  width: 24px; height: 24px; border-radius: 5px;
  background: var(--white); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--tr);
}
.cr-qty button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.cr-qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 13px; }
.cart-foot { padding: 14px 16px; background: var(--white); border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cart-total > span:first-child {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.cart-total-val {
  font-size: 24px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em;
}
.btn-checkout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px; margin-bottom: 7px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 9px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background var(--tr);
}
.btn-checkout svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .75; }
.btn-checkout:hover:not(:disabled) { background: #1a45c4; }
.btn-checkout:disabled { opacity: .4; cursor: not-allowed; }
.btn-whats {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: #25d366; color: white;
  padding: 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700;
  text-decoration: none; transition: background var(--tr); margin-bottom: 7px;
}
.btn-whats:hover { background: #1fb857; }
.btn-whats[aria-disabled="true"] { background: var(--bg-2); color: var(--muted); cursor: not-allowed; pointer-events: none; }
.btn-pix {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: var(--pix); color: white;
  padding: 11px; border-radius: 9px; font-size: 13px; font-weight: 700;
  margin-top: 6px; transition: background var(--tr);
}
.btn-pix:hover { background: #00976a; }
.cart-foot small { display: block; text-align: center; margin-top: 7px; font-size: 11px; color: var(--muted); }

/* Freebar */
.cart-freebar {
  background: var(--bg); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 10px; font-size: 12px;
}
.cart-freebar-title {
  display: flex; justify-content: space-between;
  margin-bottom: 5px; font-weight: 600; color: var(--ink-3);
}
.cart-freebar-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.cart-freebar-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .4s ease; }
.cart-freebar-msg { font-size: 11px; color: var(--muted); }
.cart-freebar.unlocked .cart-freebar-fill { background: var(--pix); }
.cart-freebar.unlocked .cart-freebar-title .lbl { color: var(--green); font-weight: 700; }

/* ======================== 16. CHECKOUT MODAL ======================== */
.checkout-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.58); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn .18s ease;
}
.checkout-modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.checkout-box {
  background: var(--white); border-radius: 14px;
  max-width: 460px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  padding: 22px 20px; position: relative;
  box-shadow: var(--s4);
}
.checkout-box h2 {
  font-size: 19px; font-weight: 800; color: var(--ink);
  margin-bottom: 16px; letter-spacing: -0.02em;
}
.checkout-close {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all var(--tr);
}
.checkout-close:hover { background: var(--line-2); color: var(--ink); }
.checkout-form label {
  display: block; margin-bottom: 10px;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}
.checkout-form input {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--ink); margin-top: 4px;
  transition: border-color var(--tr); outline: none;
}
.checkout-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.08); }
.pay-methods, .delivery-methods { border: none; padding: 0; margin: 14px 0; display: grid; gap: 7px; }
.pay-methods legend, .delivery-methods legend { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-bottom: 5px; padding: 0; }
.pay-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: 9px; cursor: pointer; transition: all var(--tr);
}
.pay-opt:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.pay-opt input { accent-color: var(--blue); flex-shrink: 0; }
.pay-opt span  { display: flex; flex-direction: column; }
.pay-opt b     { font-size: 13.5px; color: var(--ink); }
.pay-opt small { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.pay-opt.disabled { opacity: .5; cursor: not-allowed; }
.coupon-row { display: flex; gap: 8px; margin: 12px 0 4px; }
.coupon-row input {
  flex: 1; padding: 9px 12px !important;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 13px; margin-top: 0 !important;
}
.coupon-btn {
  padding: 0 16px; background: var(--blue); color: var(--white);
  border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background var(--tr);
  border: none; white-space: nowrap;
}
.coupon-btn:hover { background: #1a45c4; }
.coupon-feedback { font-size: 11.5px; min-height: 16px; margin-bottom: 4px; }
.checkout-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 3px 0; }
.checkout-line.discount { color: var(--green); font-weight: 600; }
.checkout-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-top: 1.5px dashed var(--line);
  margin: 10px 0; font-size: 14px; font-weight: 600; color: var(--ink-3);
}
.checkout-total strong { font-size: 22px; color: var(--blue); font-weight: 800; letter-spacing: -0.01em; }
.btn-co-confirm {
  width: 100%; padding: 13px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 9px;
  font-weight: 800; font-size: 15px; cursor: pointer;
  transition: background var(--tr), transform var(--tr);
}
.btn-co-confirm:hover:not(:disabled) { transform: translateY(-1px); background: #1a45c4; }
.btn-co-confirm:disabled { opacity: .55; cursor: wait; }

/* Card form (MP) */
.card-form { margin-top: 4px; }
.card-form-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.card-form-sub   { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-brand { font-size: 18px; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
.card-secure {
  background: var(--bg); border-radius: 8px;
  padding: 10px 12px; font-size: 11px; color: var(--muted); margin: 10px 0;
}
.btn-co-back {
  display: block; width: 100%; padding: 10px; margin-top: 8px;
  background: var(--bg); color: var(--ink-3);
  border: none; border-radius: 9px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background var(--tr);
}
.btn-co-back:hover { background: var(--line); }

/* Checkout result */
.checkout-result { padding: 8px 0; }
.co-success { text-align: center; }
.co-check {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  margin: 0 auto 12px; font-weight: 900;
}
.co-success h3 { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.co-pix, .co-card, .co-cash, .co-warn {
  background: var(--bg); border-radius: 10px; padding: 16px; margin: 12px 0;
}
.co-warn { background: #fffbeb; border: 1px solid #fde68a; }
.co-qr {
  display: block; margin: 12px auto;
  width: 210px; height: 210px;
  border: 6px solid var(--white); border-radius: 8px; box-shadow: var(--s2);
}
.btn-co-copy, .btn-co-pay {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 11px; margin-top: 8px;
  background: var(--ink); color: white;
  border: none; border-radius: 9px; font-weight: 700;
  cursor: pointer; text-decoration: none; font-size: 13.5px;
  transition: background var(--tr);
}
.btn-co-copy:hover, .btn-co-pay:hover { background: var(--ink-2); }
.btn-co-close {
  width: 100%; padding: 10px; margin-top: 8px;
  background: var(--bg); color: var(--ink-3);
  border: none; border-radius: 9px; font-weight: 600;
  cursor: pointer; transition: background var(--tr);
}
.btn-co-close:hover { background: var(--line); }
.checkout-result small { display: block; margin-top: 7px; color: var(--muted); font-size: 11.5px; }

/* ======================== 17. WHY MONTEIRO ======================== */
.why-monteiro {
  margin: 36px 0 20px; padding: 28px 20px;
  background: var(--white); border-radius: 14px; border: 1px solid var(--line);
}
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 14px; }
.why-card { text-align: center; padding: 6px; }
.why-ico {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 12px; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
}
.why-ico svg { width: 22px; height: 22px; color: var(--ink-3); }
.why-card h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; letter-spacing: -0.01em; }
.why-card p  { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ======================== 18. TOASTS ======================== */
.atc-toast {
  position: fixed; bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: var(--ink); color: white;
  padding: 10px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--s3); z-index: 300; opacity: 0;
  transition: opacity .2s, transform .2s; white-space: nowrap;
}
.atc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.atc-toast.success { background: var(--green); }
.atc-toast.error   { background: var(--accent); }

#extToast {
  position: fixed; bottom: 100px; right: 16px; z-index: 350;
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
}
.ext-toast {
  background: var(--ink); color: white;
  padding: 9px 16px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600;
  box-shadow: var(--s2); opacity: 1; transform: translateX(0);
  transition: opacity .3s, transform .3s;
}
.ext-toast-success { background: var(--green); }
.ext-toast-info    { background: var(--ink); }
.ext-toast-out     { opacity: 0; transform: translateX(30px); }

/* ======================== 19. EXTRAS — FILTER BAR ======================== */
.extras-filterbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.extras-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 12.5px; font-weight: 600; color: var(--ink-3);
  cursor: pointer; transition: all var(--tr);
}
.extras-toggle:hover { border-color: var(--ink-3); }
.extras-toggle.on { background: var(--accent); border-color: var(--accent); color: white; }
.extras-sort {
  padding: 6px 10px; border: 1.5px solid var(--line);
  border-radius: 7px; background: var(--white); font-size: 12.5px;
  color: var(--ink); outline: none; cursor: pointer;
}
.extras-info  { font-size: 12px; color: var(--muted); }
.extras-clear {
  padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 7px;
  background: var(--white); font-size: 12px; font-weight: 600; color: var(--ink-3);
  cursor: pointer; transition: all var(--tr);
}
.extras-clear:hover { border-color: var(--ink-3); }
.grow { flex: 1; }
.extras-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.extras-empty .ico { font-size: 46px; margin-bottom: 12px; opacity: .3; }
.extras-empty h3 { font-size: 16px; font-weight: 700; color: var(--ink-3); margin-bottom: 5px; }
.extras-empty p  { font-size: 13px; }

/* Fav pill (top-icons) */
.fav-pill {
  display: none; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.65); font-size: 12.5px; font-weight: 600;
  transition: all var(--tr);
}
.fav-pill.has-favs {
  display: inline-flex; color: var(--yellow);
  background: rgba(244,197,24,.11); border-color: rgba(244,197,24,.22);
}
.fav-pill .heart { font-size: 14px; }

/* ======================== 20. PRODUCT MODAL (extras.js) ======================== */
.ext-prod-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: flex-end; justify-content: center;
}
.ext-prod-modal[hidden] { display: none; }
.ext-prod-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); cursor: pointer; }
.ext-prod-box {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: 18px 18px 0 0;
  width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
  animation: slideUp .22s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.ext-prod-close {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.45); font-size: 12px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--tr);
}
.ext-prod-close:hover { background: rgba(0,0,0,.7); }

/* --- Carousel --- */
.ext-car-wrap {
  position: relative; width: 100%; aspect-ratio: 1/1;
  overflow: hidden; background: var(--bg);
  border-radius: 18px 18px 0 0;
}
.ext-car-track {
  display: flex; height: 100%;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.ext-car-slide {
  flex: 0 0 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ext-car-slide img { width: 100%; height: 100%; object-fit: cover; }
.ext-car-slide svg { width: 80px; height: 80px; color: var(--muted); opacity: .4; }
.ext-car-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  font-size: 22px; line-height: 1; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  z-index: 4; transition: background var(--tr);
}
.ext-car-nav:hover { background: #fff; }
.ext-car-prev { left: 10px; }
.ext-car-next { right: 10px; }
.ext-car-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px; z-index: 4;
}
.ext-car-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.5); transition: background .2s, transform .2s;
}
.ext-car-dot.on { background: #fff; transform: scale(1.3); }
.ext-car-badge {
  position: absolute; top: 10px; left: 10px; z-index: 4;
}
.ext-car-badge .card-stock { position: static; font-size: 11px; padding: 4px 9px; }

/* --- Body --- */
.ext-prod-body { padding: 16px 18px 4px; }
.ext-prod-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 3px;
}
.ext-prod-name {
  font-size: 19px; font-weight: 800; color: var(--ink);
  margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.25;
}
.ext-prod-prices {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px;
}
.ext-prod-price { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.ext-prod-pix   { font-size: 13px; color: var(--pix); font-weight: 700; }
.ext-prod-stock-row { margin-bottom: 12px; }
.ext-stock-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700; padding: 6px 11px;
  border-radius: 8px; letter-spacing: .01em;
}
.ext-stock-ok    { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.ext-stock-low   { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.ext-stock-empty { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.ext-stock-bar-wrap {
  width: 100%; height: 5px; background: #f1f5f9;
  border-radius: 99px; overflow: hidden; margin-top: 6px;
}
.ext-stock-bar {
  height: 100%; border-radius: 99px; transition: width .4s ease;
}
.ext-stock-bar-red    { background: #ef4444; }
.ext-stock-bar-orange { background: #f97316; }
.ext-prod-desc  {
  font-size: 13px; color: var(--muted);
  line-height: 1.55; margin-bottom: 10px;
}
.ext-prod-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-bottom: 4px; }
#extProdAddWrap { flex: 1; display: flex; }
.ext-prod-fav {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  transition: all var(--tr); color: var(--muted);
}
.ext-prod-fav:hover, .ext-prod-fav.is-fav { color: var(--accent); border-color: var(--accent); background: #fff5f5; }
.ext-prod-add {
  flex: 1; width: 100%; height: 46px; border-radius: 10px;
  background: var(--ink); color: var(--white);
  font-size: 14px; font-weight: 700; letter-spacing: .03em;
  transition: background var(--tr);
  display: flex; align-items: center; justify-content: center;
  border: none;
}
.ext-prod-add:hover { background: var(--ink-2); }
.ext-prod-add.added { background: var(--green); }
.ext-prod-add:disabled { background: var(--muted); cursor: not-allowed; }

/* --- Quantidade no modal --- */
.ext-qty-wrap {
  flex: 1; width: 100%; height: 46px; border-radius: 10px;
  background: var(--white); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px;
}
.ext-qty-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: none; background: var(--bg);
  font-size: 18px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--tr);
  min-width: 44px; min-height: 44px;
}
.ext-qty-btn:hover { background: var(--line); }
.ext-qty-btn:active { transform: scale(0.95); }
.ext-qty-num {
  font-size: 15px; font-weight: 800; color: var(--ink);
  font-family: var(--font-mono); min-width: 24px; text-align: center;
}

/* --- Related products --- */
.ext-related { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.ext-related-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 10px;
}
.ext-related-list {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 4px; scrollbar-width: none;
}
.ext-related-list::-webkit-scrollbar { display: none; }
.ext-rel-card {
  flex: 0 0 100px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 10px;
  overflow: hidden; transition: border-color var(--tr), box-shadow var(--tr);
}
.ext-rel-card:hover { border-color: var(--blue); box-shadow: var(--s1); }
.ext-rel-img {
  width: 100%; aspect-ratio: 1/1; background: var(--bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ext-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.ext-rel-name {
  font-size: 10px; font-weight: 600; color: var(--ink);
  padding: 5px 6px 2px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ext-rel-price {
  font-size: 11px; font-weight: 800; color: var(--blue);
  padding: 0 6px 6px;
}

/* ======================== 21. LIVE STATS ======================== */
.live-stats {
  display: flex; justify-content: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; margin: 8px 0 16px; overflow: hidden;
}
.live-stat { flex: 1; text-align: center; padding: 12px 6px; border-right: 1px solid var(--line); }
.live-stat:last-child { border-right: none; }
.live-stat-val {
  font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.live-dot {
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .45; transform: scale(1.4); }
}
.live-stat-lbl { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ======================== 22. SOCIAL PROOF ======================== */
.social-proof {
  position: fixed; bottom: 88px; left: 16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px 10px 10px;
  box-shadow: var(--s3); z-index: 80;
  max-width: 270px;
  display: flex; align-items: center; gap: 8px;
  transform: translateY(20px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease; pointer-events: none;
}
.social-proof.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.social-proof-ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.social-proof-body { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.social-proof-body b { color: var(--ink); }
.social-proof-body small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }
.social-proof-close {
  position: absolute; top: 5px; right: 5px;
  width: 18px; height: 18px; font-size: 9px; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; transition: background var(--tr);
}
.social-proof-close:hover { background: var(--bg); color: var(--ink); }

/* ======================== 23. TESTIMONIALS ======================== */
.testimonials {
  margin: 36px 0; padding: 28px 0;
  border-top: 1px solid var(--line);
}
.testimonials-head { text-align: center; margin-bottom: 22px; }
.testimonials-head h3 {
  font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 5px;
}
.testimonials-head p { font-size: 13px; color: var(--muted); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px;
}
.testimonial-stars { font-size: 13px; color: var(--amber); margin-bottom: 8px; letter-spacing: 1px; }
.testimonial-text  { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin-bottom: 14px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.testimonial-author-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.testimonial-author-meta { font-size: 11px; color: var(--muted); }
.testimonial-verified    { font-size: 10px; color: var(--green); font-weight: 600; margin-top: 1px; }

/* ======================== 24. FOOTER (launch.js inject) ======================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); margin-top: 36px; }
.footer-wrap {
  max-width: 1440px; margin: 0 auto;
  padding: 26px 24px 20px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand-block { flex: 1; min-width: 180px; }
.footer-brand-name  { font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.footer-brand-tag   { font-size: 12px; color: rgba(255,255,255,.45); }
.footer-contact-block { flex: 1; min-width: 180px; }
.footer-contact-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 8px;
}
.footer-contact-list { display: flex; flex-direction: column; gap: 6px; }
.footer-contact-link {
  display: flex; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.65); transition: color var(--tr);
}
.footer-contact-link:hover { color: #fff; }
.footer-contact-link span:last-child { color: rgba(255,255,255,.42); font-size: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 11px 24px; text-align: center;
  font-size: 11.5px; color: rgba(255,255,255,.3);
  max-width: 1440px; margin: 0 auto;
}

/* HTML static footer */
.foot-premium { background: var(--ink); color: rgba(255,255,255,.65); }
.foot-grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px; padding: 34px 24px 26px;
}
.foot-col h4 {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 12px;
}
.foot-col ul { display: flex; flex-direction: column; gap: 7px; }
.foot-col ul li, .foot-col ul a { font-size: 13px; color: rgba(255,255,255,.55); transition: color var(--tr); }
.foot-col ul a:hover { color: #fff; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.foot-brand img { height: 44px; width: auto; display: block; }
.foot-brand .name { display: none; }
.foot-brand .name em { color: var(--yellow); font-style: normal; }
.foot-col p { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.6; max-width: 280px; }
.foot-social { display: flex; gap: 10px; margin-top: 12px; }
.foot-social a { font-size: 19px; opacity: .55; transition: opacity var(--tr); }
.foot-social a:hover { opacity: 1; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  max-width: 1440px; margin: 0 auto;
}
.foot-bottom .copy { font-size: 11.5px; color: rgba(255,255,255,.35); }
.foot-bottom .pay-methods { display: flex; gap: 7px; }
.foot-bottom .pay-methods span {
  font-size: 10.5px; font-weight: 600;
  padding: 3px 9px; border: 1px solid rgba(255,255,255,.13);
  border-radius: 5px; color: rgba(255,255,255,.45);
}

/* ======================== 25. SCROLL TO TOP ======================== */
.scroll-top-btn {
  position: fixed; bottom: 88px; right: 20px;
  width: 36px; height: 36px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 50%; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--s2); z-index: 85; color: var(--ink-3);
  opacity: 0; transform: translateY(10px);
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.scroll-top-btn.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top-btn:hover { background: var(--bg); }

/* ======================== 26. ANIMATIONS ======================== */
.fadeup {
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
.fadeup.in { opacity: 1; transform: translateY(0); }
.fadeup[data-delay="1"] { transition-delay: .08s; }
.fadeup[data-delay="2"] { transition-delay: .16s; }
.fadeup[data-delay="3"] { transition-delay: .24s; }

/* ======================== 27. RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .top-link span { display: none; }
  .top-link { padding: 6px 8px; }
}

@media (max-width: 900px) {
  .topbar { padding: 0 12px; gap: 6px; height: 56px; }
  .search-bar { flex: 1; height: 38px; }
  .brand-logo  { height: 32px; }
  .top-links   { gap: 0; }
  .top-link[data-hide-mobile] { display: none; }
  .wrap        { padding: 12px 14px; }
  .trust-item  { padding: 3px 12px; }
  .hero-slide  { padding: 28px 24px 38px; min-height: 200px; }
  .hero-slide h2  { font-size: 24px; }
  .hero-slide p   { font-size: 13px; margin-bottom: 18px; }
  .hero-arrow     { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; padding: 24px 18px; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-bar   { padding: 6px 12px; }
  .cat-tiles-grid { grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 7px; }
  .cat-tile  { padding: 11px 7px; }
  .cat-tile-ico { width: 38px; height: 38px; font-size: 18px; }
  .section-head .tag { display: none; }
  .why-grid  { grid-template-columns: 1fr 1fr; gap: 12px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .checkout-box { padding: 16px 14px; border-radius: 10px; }
  .co-qr  { width: 190px; height: 190px; }
  .foot-grid { grid-template-columns: 1fr; gap: 16px; }
  .foot-bottom { flex-direction: column; text-align: center; }
  .trust-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 6px 14px; }
  .trust-item:nth-child(odd)  { border-right: 1px solid rgba(255,255,255,.08); }
  .trust-item:last-child, .trust-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .wrap { padding: 10px 10px; }
  .cart-drawer { max-width: 100%; }
  .hero-slide { padding: 20px 16px; min-height: 180px; }
  .hero-slide h2 { font-size: 20px; }
  .cat-tile { padding: 9px 6px; }
  .cat-tile-ico { width: 34px; height: 34px; font-size: 16px; }
  .card-name { font-size: 11.5px; }
  .card-price-now { font-size: 17px; }
}

@media (min-width: 720px) {
  .cart-fab { display: none !important; }
  .ext-prod-modal { align-items: center; }
  .ext-prod-box   { border-radius: 14px; max-width: 400px; animation: fadeIn .18s ease; }
}
