/* ============================================================================
   LOJA DO BOB — Máquina de vendas (2026)

   Vitrine brasileira de ofertas: mobile-first, tipografia grande, contraste
   alto, CTA impossível de perder. Paleta: navy profundo + lima + vermelho de
   desconto. Zero visual de dashboard/admin.
   ============================================================================ */

:root {
  --navy: #0A1E45;
  --navy-deep: #061331;
  --navy-soft: #13306B;
  --lime: #C9E84B;
  --lime-dark: #A8C92E;
  --red: #FF3D2E;
  --amber: #FFB020;
  --ink: #101828;
  --ink-soft: #475467;
  --ink-faint: #98A2B3;
  --bg: #F4F6F8;
  --card: #FFFFFF;
  --line: #E4E9F0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(10, 30, 69, .07);
  --shadow-lg: 0 12px 34px rgba(10, 30, 69, .14);
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* hidden precisa ganhar de qualquer display definido em classe
   (ex.: .pdp-loading tem display:grid e cobria a página inteira) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ------------------------------- Topbar ---------------------------------- */

.topbar {
  background: var(--navy-deep);
  color: #D7E0F2;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding-block: 7px;
}
.topbar strong { color: var(--lime); font-weight: 700; }
.api-status { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .22);
  animation: pulse-dot 2s infinite;
}
.api-status.offline .status-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 61, 46, .22); animation: none; }
@keyframes pulse-dot { 50% { opacity: .55; } }

/* -------------------------------- Header --------------------------------- */

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  padding-block: 14px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900; font-size: 22px; letter-spacing: -.02em;
  color: var(--navy); white-space: nowrap;
}
.logo span { color: var(--lime-dark); }

.header-nav { display: flex; gap: 4px; margin-left: auto; }
.header-nav a {
  font-weight: 600; font-size: 14.5px; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 999px;
  transition: background .15s, color .15s;
}
.header-nav a:hover { background: var(--bg); color: var(--navy); }

/* Busca do header (só desktop) */
.search-header { flex: 1; max-width: 440px; }
@media (max-width: 820px) { .search-header { display: none; } }

/* ------------------------------- Busca ----------------------------------- */

.search {
  position: relative; display: flex; align-items: center;
  background: #fff; border: 2px solid transparent;
  border-radius: 999px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(201, 232, 75, .28); }
.search-icon {
  position: absolute; left: 18px; width: 20px; height: 20px;
  color: var(--ink-faint); pointer-events: none;
}
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0;
  padding: 14px 16px 14px 46px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: transparent;
}
.search input::placeholder { color: var(--ink-faint); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-btn {
  align-self: stretch; border: 0; margin: 4px;
  padding: 0 22px; border-radius: 999px;
  background: var(--navy); color: var(--lime);
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  transition: background .15s, transform .1s;
}
.search-btn:hover { background: var(--navy-soft); }
.search-btn:active { transform: scale(.97); }

/* -------------------------------- Hero ----------------------------------- */

.market-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 480px at 85% -20%, rgba(201, 232, 75, .16), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(19, 48, 107, .9), transparent 60%),
    var(--navy);
  color: #fff;
}
.market-hero-shape {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.market-hero-inner { position: relative; padding: 72px 0 84px; }
@media (min-width: 900px) {
  .market-hero-inner {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 48px; align-items: center;
  }
}
.market-hero-full { max-width: 780px; }

.market-hero-visual { display: none; }
@media (min-width: 900px) {
  .market-hero-visual { display: block; }
  .market-hero-visual img {
    width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
    border-radius: 24px;
    border: 3px solid rgba(201, 232, 75, .5);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
    transform: rotate(1.2deg);
  }
}

.header-nav-cta {
  background: var(--lime); color: var(--navy) !important;
  font-weight: 800 !important;
}
.header-nav-cta:hover { background: var(--lime-dark) !important; color: var(--navy) !important; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lime-dark);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--lime); }

.market-hero h1 {
  font-family: var(--font-display);
  font-weight: 900; letter-spacing: -.03em;
  font-size: clamp(34px, 6.4vw, 62px);
  line-height: 1.02; margin-bottom: 18px;
}
.market-hero h1 em { font-style: normal; color: var(--lime); }
.market-hero p {
  font-size: clamp(16px, 2.4vw, 19px);
  color: #C4D0E8; max-width: 620px; margin-bottom: 30px;
}

.search-hero { max-width: 640px; }
.search-hero input { font-size: 16.5px; padding-block: 17px; }
.search-hero .search-btn { font-size: 16px; padding: 0 30px; }

.hero-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  margin-top: 22px; font-size: 14px; color: #9FB0D4;
}
.hero-chips a, .hero-chips button {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #fff; font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 7px 15px; border-radius: 999px;
  transition: background .15s, border-color .15s, transform .1s;
}
.hero-chips a:hover, .hero-chips button:hover {
  background: var(--lime); border-color: var(--lime);
  color: var(--navy); transform: translateY(-1px);
}

/* ----------------------------- Trust strip ------------------------------- */

.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  padding-block: 22px;
}
@media (min-width: 821px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--lime);
  border-radius: 12px; font-weight: 900; font-size: 17px;
}
.trust-item strong { display: block; font-size: 14px; color: var(--navy); }
.trust-item small { font-size: 12.5px; color: var(--ink-soft); }

/* ------------------------------ Seções ----------------------------------- */

section { scroll-margin-top: 84px; }
.offers-section, .lowest-section, .brands-section { padding: 64px 0; }
.lowest-section { background: #fff; }

.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 30px; flex-wrap: wrap;
}
.section-heading h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em;
  color: var(--navy); line-height: 1.08;
}
.section-heading p { color: var(--ink-soft); margin-top: 6px; max-width: 560px; }

.text-button {
  font-weight: 700; font-size: 15px; color: var(--navy);
  border-bottom: 2px solid var(--lime-dark); padding-bottom: 2px;
  transition: color .15s;
}
.text-button:hover { color: var(--lime-dark); }

.section-cta { text-align: center; margin-top: 34px; }
.section-empty { color: var(--ink-soft); padding: 30px 0; }
.loading-line { color: var(--ink-soft); padding: 20px 0; }

/* --------------------------- Grid de produtos ---------------------------- */

.product-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #CFD8E8;
}

.product-media {
  position: relative; display: block;
  aspect-ratio: 1; background: #fff;
  border-bottom: 1px solid var(--line);
}
.product-media img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 14px;
  transition: transform .25s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }

.discount-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 14px;
  padding: 4px 10px; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 61, 46, .4);
}

.product-body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 16px; gap: 8px; }

.product-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--lime-dark);
}
.product-meta small { color: var(--ink-faint); font-weight: 600; text-transform: none; letter-spacing: 0; }

.product-card h3 {
  font-size: 14.5px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.product-card h3 a:hover { color: var(--navy-soft); }

.seller-line {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-soft);
}
.seller-line svg { width: 14px; height: 14px; flex: none; }

/* Preço: a estrela do card */
.product-price { margin-top: auto; padding-top: 4px; }
.product-price del { display: block; font-size: 12.5px; color: var(--ink-faint); }
.product-price del.empty-price { visibility: hidden; }
.product-price strong {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(20px, 2.6vw, 25px); letter-spacing: -.02em;
  color: var(--navy); line-height: 1.1;
}
.product-price small { font-size: 11px; color: var(--ink-faint); }
.product-price .savings-line {
  display: inline-block; margin-top: 3px;
  color: #187A3C; background: #E4F8EC;
  font-size: 11.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}

/* CTA: impossível de perder */
.product-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; padding: 13px 16px;
  background: var(--lime); color: var(--navy);
  border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  text-align: center;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.product-cta svg { width: 17px; height: 17px; }
.product-cta:hover { background: var(--lime-dark); box-shadow: 0 6px 18px rgba(168, 201, 46, .45); }
.product-cta:active { transform: scale(.98); }
.product-cta.is-generating { opacity: .75; pointer-events: none; }
.product-cta.is-unavailable {
  background: var(--line); color: var(--ink-soft);
  pointer-events: none; box-shadow: none;
}

.product-pdp-link {
  text-align: center; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); padding: 6px;
  transition: color .15s;
}
.product-pdp-link:hover { color: var(--navy); }

/* Skeletons */
.skeleton-card { pointer-events: none; }
.skeleton-media { aspect-ratio: 1; background: linear-gradient(110deg, #EAEEF4 30%, #F6F8FB 50%, #EAEEF4 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton-copy { padding: 14px; display: grid; gap: 9px; }
.skeleton-copy i, .skeleton-copy b, .skeleton-copy em {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(110deg, #EAEEF4 30%, #F6F8FB 50%, #EAEEF4 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
.skeleton-copy i.short { width: 55%; }
.skeleton-copy b { height: 22px; width: 70%; }
.skeleton-copy em { height: 38px; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --------------------------- Banner de cupons ---------------------------- */

.coupon-banner {
  background:
    radial-gradient(600px 300px at 90% 50%, rgba(201, 232, 75, .22), transparent 65%),
    var(--navy);
  color: #fff;
}
.coupon-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 46px; flex-wrap: wrap;
}
.coupon-banner h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em;
}
.coupon-banner p { color: #C4D0E8; margin-top: 6px; }

/* ------------------------------- Botões ---------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 15.5px;
  padding: 14px 28px; text-align: center;
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--lime); color: var(--navy);
  box-shadow: 0 8px 22px rgba(168, 201, 46, .4);
}
.btn-primary:hover { background: var(--lime-dark); }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--lime); }
.btn-xl { font-size: 18px; padding: 17px 40px; }
.btn-filter { background: var(--navy); color: var(--lime); align-self: flex-end; }
.btn-filter:hover { background: var(--navy-soft); }
.btn-load-more {
  background: #fff; color: var(--navy);
  border: 2px solid var(--navy); min-width: 260px;
}
.btn-load-more:hover:not(:disabled) { background: var(--navy); color: var(--lime); }
.btn-load-more:disabled { opacity: .55; cursor: default; }

/* ------------------------------ Página busca ----------------------------- */

.search-page-hero {
  background:
    radial-gradient(900px 380px at 80% -30%, rgba(201, 232, 75, .14), transparent 60%),
    var(--navy);
  color: #fff; padding: 52px 0 46px;
}
.search-page-hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 5vw, 44px); letter-spacing: -.025em;
  margin-bottom: 24px; line-height: 1.05;
}
.search-page-hero h1 em { font-style: normal; color: var(--lime); }
.search-page-hero .search { max-width: 720px; }

.catalog-section { padding: 44px 0 72px; }

.search-progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 18px; }
.search-progress span {
  display: block; height: 100%; width: 40%;
  background: var(--lime-dark); border-radius: 3px;
  animation: progress-slide 1s ease-in-out infinite;
}
@keyframes progress-slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  margin-bottom: 18px; box-shadow: var(--shadow);
}
.filter-field { display: grid; gap: 6px; flex: 1; min-width: 150px; }
.filter-field label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-soft);
}
.filter-field select, .filter-field input {
  font: inherit; font-size: 14.5px; color: var(--ink);
  padding: 11px 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fff; outline: none; width: 100%;
  transition: border-color .15s;
}
.filter-field select:focus, .filter-field input:focus { border-color: var(--lime-dark); }
.price-filter > div { display: flex; gap: 8px; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-filters span {
  background: var(--navy); color: var(--lime);
  font-size: 12.5px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}

.search-hint {
  background: #FFF6E0; border: 1px solid #F5D98A; color: #7A5A00;
  font-size: 14px; padding: 11px 16px; border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.catalog-toolbar {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.catalog-toolbar p { font-weight: 700; color: var(--navy); }
.catalog-note { font-size: 12.5px; color: var(--ink-faint); }

.catalog-footer { text-align: center; margin-top: 34px; }
.catalog-footer p { color: var(--ink-soft); font-size: 14px; margin-bottom: 12px; }

.empty-state {
  grid-column: 1 / -1; text-align: center;
  background: #fff; border: 1px dashed #C7D2E4;
  border-radius: var(--radius); padding: 52px 24px;
}
.empty-state strong {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; color: var(--navy); display: block; margin-bottom: 8px;
}
.empty-state p { color: var(--ink-soft); margin-bottom: 18px; }

/* ------------------------------- Cupons ---------------------------------- */

.cupons-hero { background: var(--navy); color: #fff; padding: 60px 0; }
.cupons-hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(28px, 5vw, 44px); letter-spacing: -.025em;
}
.cupons-hero h1 em { font-style: normal; color: var(--lime); }
.cupons-hero p { color: #C4D0E8; margin-top: 10px; max-width: 560px; }

.campaigns-page { padding: 48px 0 72px; }

.campaign-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .campaign-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .campaign-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.campaign-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s;
}
.campaign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.campaign-card.highlight { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(201, 232, 75, .3); }

.campaign-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.campaign-type {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--lime-dark);
}
.campaign-type svg { width: 15px; height: 15px; }
.featured-label {
  background: var(--lime); color: var(--navy);
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px;
}

.campaign-card h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 18px; color: var(--navy); line-height: 1.25;
}
.campaign-card > p { font-size: 14px; color: var(--ink-soft); flex: 1; }

.campaign-info {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 12px; color: var(--ink-faint);
  border-top: 1px dashed var(--line); padding-top: 10px;
}

.coupon-code {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1.5px dashed var(--lime-dark);
  border-radius: var(--radius-sm); padding: 9px 12px;
}
.coupon-code code {
  flex: 1; font-family: ui-monospace, monospace; font-size: 15px;
  font-weight: 700; color: var(--navy); letter-spacing: .06em;
}
.coupon-code button {
  border: 0; background: var(--navy); color: var(--lime);
  font-weight: 700; font-size: 12.5px;
  padding: 7px 14px; border-radius: 8px;
  transition: background .15s;
}
.coupon-code button:hover { background: var(--navy-soft); }

.campaign-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; margin-top: 4px;
  background: var(--lime); color: var(--navy);
  border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  transition: background .15s, box-shadow .15s;
}
.campaign-cta svg { width: 16px; height: 16px; }
.campaign-cta:hover { background: var(--lime-dark); box-shadow: 0 6px 18px rgba(168, 201, 46, .45); }
.campaign-cta.is-generating { opacity: .75; pointer-events: none; }
.campaign-cta.is-unavailable { background: var(--line); color: var(--ink-soft); pointer-events: none; box-shadow: none; }

/* -------------------------------- Marcas --------------------------------- */

.brand-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .brand-grid { grid-template-columns: repeat(6, 1fr); } }

.brand-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 14px;
  text-align: center; box-shadow: var(--shadow);
  transition: transform .16s, box-shadow .16s;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.brand-logo {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--navy); color: var(--lime);
  font-family: var(--font-display); font-weight: 900; font-size: 24px;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-card strong { font-size: 14px; color: var(--navy); }
.brand-card a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--lime-dark);
}
.brand-card a svg { width: 14px; height: 14px; }
.brand-card a:hover { color: var(--navy); }

/* ------------------------------ Como funciona ---------------------------- */

.how-section { background: #fff; padding: 70px 0; border-top: 1px solid var(--line); }
.how-grid {
  display: grid; gap: 34px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; } }
.how-grid h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em;
  color: var(--navy); line-height: 1.1; margin-bottom: 14px;
}
.how-grid > div > p { color: var(--ink-soft); max-width: 460px; }

.how-steps { display: grid; gap: 14px; }
.how-steps > div {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.how-steps b {
  flex: 0 0 46px; width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--navy);
  border-radius: 14px;
  font-family: var(--font-display); font-weight: 900; font-size: 20px;
}
.how-steps strong { display: block; color: var(--navy); font-size: 15.5px; }
.how-steps small { color: var(--ink-soft); font-size: 13.5px; }

/* ------------------------------- CTA final ------------------------------- */

.final-cta {
  background:
    radial-gradient(700px 320px at 50% -40%, rgba(201, 232, 75, .2), transparent 65%),
    var(--navy-deep);
  color: #fff; text-align: center; padding: 84px 0;
}
.final-cta h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 5vw, 46px); letter-spacing: -.025em;
  margin-bottom: 12px;
}
.final-cta p { color: #C4D0E8; margin-bottom: 30px; font-size: 17px; }

/* -------------------------------- Footer --------------------------------- */

.footer { background: var(--navy-deep); color: #9FB0D4; }
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1fr;
  padding: 54px 0 34px;
}
@media (min-width: 821px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }
.footer .logo { color: #fff; display: inline-block; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; max-width: 320px; }
.footer-links { display: grid; gap: 9px; align-content: start; font-size: 14px; }
.footer-links h3 {
  font-family: var(--font-display); font-weight: 800;
  color: #fff; font-size: 14px; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 4px;
}
.footer-links a:hover { color: var(--lime); }
.footer-links span { font-size: 13px; line-height: 1.6; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 20px; display: grid; gap: 6px;
  font-size: 12.5px; color: #7C8FB8;
}

/* -------------------------------- Toast ---------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90;
  transform: translate(-50%, 140%);
  background: var(--navy); color: #fff;
  font-size: 14.5px; font-weight: 600;
  padding: 13px 22px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.2);
  max-width: min(92vw, 480px); text-align: center;
}
.toast.visible { transform: translate(-50%, 0); }
.toast.error { background: var(--red); }

/* ------------------------------ Página produto --------------------------- */

.pdp-main { padding: 34px 0 90px; }

.breadcrumb {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-faint); margin-bottom: 26px;
}
.breadcrumb a { color: var(--ink-soft); font-weight: 600; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb strong { color: var(--navy); }

.pdp {
  display: grid; gap: 34px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 52px; }
}

.pdp-gallery { display: grid; gap: 12px; align-content: start; }
.pdp-main-image {
  position: relative;
  background: linear-gradient(110deg, #EAEEF4 30%, #F6F8FB 50%, #EAEEF4 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--line);
  border-radius: var(--radius); aspect-ratio: 1;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: var(--shadow);
}
.pdp-main-image img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain; padding: 26px;
  background: #fff;
}
@media (min-width: 900px) {
  .pdp-info { position: sticky; top: 100px; align-self: start; }
}
/* Seções abaixo da dobra ficam FORA da grade de duas colunas (correção 17/09): dentro da
   grade, o card de oferta (sticky) passava por cima da descrição e das fotos. */
.pdp-description, .pdp-photos, .pdp-related { margin-top: 52px; }
.pdp-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-thumb {
  width: 68px; height: 68px; border: 2px solid var(--line);
  border-radius: 12px; background: #fff; overflow: hidden; padding: 5px;
  transition: border-color .15s;
}
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--lime-dark); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdp-info { display: grid; gap: 16px; align-content: start; }
.pdp-info h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.02em;
  color: var(--navy); line-height: 1.12;
}

.pdp-price-block {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow);
}
.pdp-price-block del { color: var(--ink-faint); font-size: 15px; }
.pdp-price-block strong {
  display: inline-block;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 5vw, 46px); letter-spacing: -.03em;
  color: var(--navy); line-height: 1.05; margin-right: 12px;
}
.pdp-price-block small { display: block; color: var(--ink-faint); font-size: 12.5px; margin-top: 6px; }
.pdp-discount {
  display: inline-block; vertical-align: top;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 900; font-size: 16px;
  padding: 5px 12px; border-radius: 9px;
  box-shadow: 0 4px 12px rgba(255, 61, 46, .4);
}

.pdp-facts { list-style: none; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-soft); }
.pdp-facts li { display: flex; align-items: baseline; gap: 8px; }
.pdp-facts li::before { content: "✓"; color: var(--lime-dark); font-weight: 900; }
.pdp-facts strong { color: var(--navy); }

.pdp-urgency {
  background: #FFF3E8; border: 1px solid #FFD9A8;
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: 14px; color: #7A4A00;
}
.pdp-urgency strong { display: block; color: #B4530A; margin-bottom: 2px; }

.pdp-cta {
  padding: 18px 24px; font-size: 17px; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(168, 201, 46, .45);
}
.pdp-affiliate { font-size: 12px; color: var(--ink-faint); text-align: center; }

.pdp-description, .pdp-related, .pdp-photos { grid-column: 1 / -1; }
.pdp-description h2, .pdp-related h2, .pdp-photos h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: 22px; color: var(--navy); margin-bottom: 14px;
}
.pdp-photos-count { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--ink-faint); }
.pdp-description p {
  color: var(--ink-soft); white-space: pre-line;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.pdp-photos-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 821px) { .pdp-photos-grid { grid-template-columns: repeat(3, 1fr); } }
.pdp-photo {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; display: grid; place-items: center;
}
.pdp-photo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

.pdp-loading { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pdp-loading { grid-template-columns: 1fr 1fr; gap: 52px; } }
.pdp-skeleton-img { border-radius: var(--radius); }
.pdp-skeleton-copy { display: grid; gap: 14px; align-content: start; padding-top: 20px; }

.pdp-error {
  text-align: center; background: #fff; border: 1px dashed #C7D2E4;
  border-radius: var(--radius); padding: 60px 26px;
}
.pdp-error strong {
  font-family: var(--font-display); font-weight: 800;
  font-size: 21px; color: var(--navy); display: block; margin-bottom: 10px;
}
.pdp-error p { color: var(--ink-soft); margin-bottom: 22px; }

/* CTA sticky mobile */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(10, 30, 69, .12);
}
.sticky-cta-info { flex: 1; min-width: 0; }
.sticky-cta-info strong {
  display: block; font-family: var(--font-display); font-weight: 900;
  font-size: 20px; color: var(--navy);
}
.sticky-cta-info small {
  display: block; font-size: 12px; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sticky-cta .product-cta { margin-top: 0; padding: 13px 22px; flex: none; }
@media (min-width: 821px) { .sticky-cta { display: none; } }

/* ------------------------------ Mobile ajustes --------------------------- */

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-nav { margin-left: auto; }
  .header-nav a { padding: 7px 9px; font-size: 13.5px; }
  .market-hero-inner { padding: 52px 0 60px; }
  .search-hero .search-btn { padding: 0 18px; }
  .coupon-banner-inner .btn { width: 100%; }
  .filter-bar { padding: 14px; }
  .btn-filter { width: 100%; }
  .toast { bottom: 18px; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
}

/* Respeito a quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Selo de preço conferido + nota da loja (regra 12/09) */
.price-check { color: var(--ink-soft); font-size: 12px; }
.price-check.ok { color: var(--lime-dark); font-weight: 600; }
.rating-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 12px;
  font-weight: 600; color: var(--ink); background: rgba(10, 30, 69, .06);
  padding: 2px 6px; border-radius: 999px; margin-left: auto; }
.rating-badge svg { width: 12px; height: 12px; color: #F5A623; }

/* Card de oferta: loja + benefício (CEO 12/09) */
.offer-store { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.offer-logo { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid rgba(10,30,69,.12);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  font-weight: 700; color: var(--navy, #0A1E45); font-size: 14px; flex: 0 0 auto; }
.offer-logo img { width: 100%; height: 100%; object-fit: contain; }
.offer-store-name { font-weight: 700; font-size: 14px; color: var(--navy, #0A1E45); }
.offer-store .campaign-type { margin-left: auto; }
.offer-benefit { display: inline-block; background: #C9E84B; color: #0A1E45; font-weight: 800;
  font-size: 13px; letter-spacing: .3px; padding: 5px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Descrição da loja no card de oferta (o que ela vende) */
.offer-about { font-size: 13px; line-height: 1.45; color: var(--ink-soft);
  margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
