/* ==========================================================================
   Arcano 3D Studio — vitrine pública
   Identidade de marketplace: amarelo de marca + azul de ação, cards claros,
   selos de confiança e hierarquia forte de preço.
   ========================================================================== */

:root {
  --brand: #ffe600;
  --brand-ink: #2d3277;
  --accent: #1668d4;
  --accent-strong: #0d52ad;
  --accent-soft: #eaf2ff;
  --ink: #1f2430;
  --ink-soft: #4a5160;
  --muted: #626a78;
  --surface: #ffffff;
  --surface-alt: #f5f6f8;
  --border: #e5e8ee;
  --border-strong: #d4d9e2;
  --success: #00a650;
  --success-soft: #e8f8ef;
  --danger: #e5484d;
  --warning: #b45309;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgb(16 24 40 / 5%);
  --shadow-sm: 0 2px 8px rgb(16 24 40 / 6%);
  --shadow: 0 12px 32px rgb(16 24 40 / 10%);
  --shadow-accent: 0 10px 24px rgb(52 131 250 / 22%);
  --container: 1240px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--surface-alt);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.02em; }

img { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1200;
  padding: .6rem 1rem;
  background: var(--brand-ink);
  color: #fff;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.container-page {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Barra superior de confiança
   -------------------------------------------------------------------------- */
.topbar {
  background: #1b2257;
  color: #eef0ff;
  font-size: .78rem;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 34px;
  flex-wrap: wrap;
  padding-block: .35rem;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.topbar-item svg { width: 15px; height: 15px; flex: 0 0 auto; }
.topbar-item--end { margin-left: auto; color: #c7cbf0; }
.topbar-item--end a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 1px 0 rgb(0 0 0 / 8%), 0 4px 16px rgb(16 24 40 / 6%);
  transition: box-shadow .2s ease;
}
.site-header.is-compact { box-shadow: 0 8px 24px rgb(16 24 40 / 12%); }

.header-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: .8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--brand-ink);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.brand:hover { color: var(--brand-ink); }
.brand img { height: 44px; width: auto; border-radius: 10px; object-fit: contain; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-ink);
  color: var(--brand);
  font-weight: 900;
  font-size: 1.05rem;
}
/* Busca estilo marketplace */
.header-search { flex: 1 1 460px; min-width: 240px; }
.search-bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px rgb(16 24 40 / 12%);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(52 131 250 / 18%);
}
.search-bar__select {
  border: 0;
  border-right: 1px solid var(--border);
  background: #fafbfc;
  color: var(--ink-soft);
  font-size: .85rem;
  padding: .5rem .75rem;
  max-width: 190px;
  cursor: pointer;
}
.search-bar__select:focus { outline: none; }
.search-bar__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: .65rem .9rem;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
}
.search-bar__input:focus { outline: none; }
.search-bar__input::placeholder { color: #98a1b2; }
.search-bar__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  padding: 0 1.15rem;
  background: #1b2257;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.search-bar__button:hover { background: #2a3370; }
.search-bar__button svg { width: 19px; height: 19px; }

.header-actions { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

/* Navegação de categorias */
.category-nav {
  display: flex;
  align-items: center;
  gap: .4rem 1rem;
  padding-block: .55rem .8rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav a {
  position: relative;
  color: var(--brand-ink);
  font-size: .86rem;
  font-weight: 600;
  white-space: nowrap;
  padding: .25rem 0;
  text-decoration: none;
  opacity: .86;
}
.category-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.category-nav a:hover,
.category-nav a[aria-current="page"] { opacity: 1; }
.category-nav a:hover::after,
.category-nav a[aria-current="page"]::after { transform: scaleX(1); }
.category-nav a[aria-current="page"] { font-weight: 800; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn { border-radius: var(--radius-xs); font-weight: 600; }

.btn-accent {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
}
.btn-accent:hover, .btn-accent:focus {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #fff;
}

.btn-accent-outline {
  background: #fff;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-weight: 700;
}
.btn-accent-outline:hover { background: var(--accent-soft); color: var(--accent-strong); }

.btn-offers {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 10%);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius-xs);
  padding: .55rem .9rem;
  white-space: nowrap;
}
.btn-offers:hover { background: #fffdf0; color: var(--ink); }
.btn-offers svg { width: 18px; height: 18px; color: var(--danger); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { margin-top: 1.5rem; }

.hero-banner .carousel-item img {
  width: 100%;
  height: clamp(220px, 34vw, 380px);
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero-banner .carousel-caption {
  left: clamp(1rem, 4vw, 2.5rem);
  right: auto;
  bottom: clamp(1rem, 4vw, 2.5rem);
  max-width: min(560px, 82%);
  padding: clamp(.9rem, 2vw, 1.4rem) clamp(1rem, 2.5vw, 1.75rem);
  text-align: left;
  background: linear-gradient(135deg, rgb(17 24 39 / 82%), rgb(17 24 39 / 55%));
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.hero-banner .carousel-caption h2 {
  color: #fff;
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 .35rem;
}
.hero-banner .carousel-caption p { color: #e7eaf3; margin: 0; font-size: clamp(.85rem, 1.6vw, 1rem); }
.hero-banner .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; }

/* Hero padrão (quando não há banners) */
.hero-default {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 400px at 110% -20%, color-mix(in srgb, var(--brand-light) 55%, transparent), transparent 60%),
    linear-gradient(120deg, #1b2257 0%, #2d3277 55%, #38408f 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.hero-default h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin: 0 0 .75rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .8rem;
  color: var(--brand-light);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.hero-default h2 span { color: var(--brand-light); }
.hero-default p { color: #d7dbf5; font-size: clamp(.95rem, 1.8vw, 1.1rem); max-width: 48ch; margin: 0 0 1.4rem; }
.hero-default__actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-default__actions .btn { padding: .7rem 1.3rem; font-weight: 700; }
.hero-default__actions .btn-accent {
  box-shadow: 0 10px 24px rgb(52 131 250 / 28%);
}
.hero-default__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: .82rem;
  color: #cdd2f2;
}
.hero-default__trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-default__trust svg { width: 16px; height: 16px; color: var(--brand); }

.hero-default__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
}
.hero-default__art::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgb(255 230 0 / 90%), rgb(255 230 0 / 8%) 62%, transparent 70%);
  filter: blur(2px);
}
.hero-tag {
  position: relative;
  display: grid;
  gap: .5rem;
  width: min(100%, 320px);
  padding: 1.15rem;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 22%);
  backdrop-filter: blur(8px);
}
.hero-tag__row { display: flex; align-items: center; gap: .65rem; }
.hero-tag__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  flex: 0 0 auto;
}
.hero-tag__icon svg { width: 20px; height: 20px; }
.hero-tag__row strong { display: block; color: #fff; font-size: .92rem; }
.hero-tag__row small { color: #c9cef0; font-size: .76rem; }

/* --------------------------------------------------------------------------
   Faixa de confiança
   -------------------------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}
.trust-strip--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}
.trust-item__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  flex: 0 0 auto;
}
.trust-item__icon svg { width: 20px; height: 20px; }
.trust-item strong { display: block; font-size: .85rem; line-height: 1.25; }
.trust-item small { display: block; color: var(--muted); font-size: .75rem; }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { margin-block: 2.75rem; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.section-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 3px;
  background: var(--accent);
}
.section-sub { color: var(--muted); margin: .2rem 0 0 1rem; font-size: .9rem; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--accent-strong);
  white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }
.section-link svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   Card de produto
   -------------------------------------------------------------------------- */
.product-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .85rem;
  transition: transform .28s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #98a1b2;
  background: repeating-linear-gradient(45deg, #f8f9fb, #f8f9fb 12px, #f1f3f6 12px, #f1f3f6 24px);
  font-size: .8rem;
}

.badge-discount {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 2;
  background: var(--success);
  color: #fff;
  border-radius: 999px;
  padding: .28rem .55rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.badge-flag {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 2;
  background: #1b2257;
  color: #fff;
  border-radius: 999px;
  padding: .24rem .55rem;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .35rem;
  padding: .9rem .95rem 1rem;
}
.product-card__brand {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  min-height: 1em;
}
.product-card__title {
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.45em;
}
.product-card__title:hover { color: var(--accent-strong); }

.product-card__price { display: grid; gap: .05rem; margin-top: .15rem; }
.price-old { color: var(--muted); font-size: .8rem; text-decoration: line-through; }
.price-now {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.price-installment { color: var(--success); font-size: .78rem; font-weight: 700; }
.price-note { color: var(--muted); font-size: .74rem; }

.product-card__badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
}
.pill svg { width: 12px; height: 12px; }
.pill--trust { background: var(--success-soft); color: #04783c; }
.pill--info { background: var(--accent-soft); color: var(--accent-strong); }
.pill--warn { background: #fff5e6; color: var(--warning); }

.product-card__actions { margin-top: auto; padding-top: .55rem; display: grid; gap: .35rem; }
.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  min-height: 40px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: var(--radius-xs);
  font-size: .86rem;
  font-weight: 700;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-buy:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; box-shadow: var(--shadow-accent); transform: translateY(-1px); }
.btn-buy svg { width: 16px; height: 16px; }
.btn-buy--large { min-height: 52px; font-size: 1rem; }
.btn-buy--large svg { width: 19px; height: 19px; }
.product-card__details {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
}
.product-card__details:hover { color: var(--accent-strong); text-decoration: underline; }
.product-card__unavailable {
  text-align: center;
  font-size: .76rem;
  color: var(--muted);
  padding: .5rem 0;
}

/* --------------------------------------------------------------------------
   Cabeçalho de página / lista
   -------------------------------------------------------------------------- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 1.75rem 1rem;
}
.page-head h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0;
}
.page-head p { color: var(--muted); margin: .3rem 0 0; font-size: .9rem; }
.page-head strong { color: var(--ink); }

.filters-card {
  position: sticky;
  top: calc(var(--header-h) + 2.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  padding: 1.1rem;
}

.filters-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  padding: .7rem .95rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  text-align: left;
}
.filters-toggle svg { width: 19px; height: 19px; color: var(--accent-strong); flex: 0 0 auto; }
.filters-toggle[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(52 131 250 / 15%); }
.filters-card h2 {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.filter-group { margin-bottom: 1rem; }
.filter-group:last-of-type { margin-bottom: .5rem; }
.filter-group .form-label {
  font-size: .76rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .3rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.filters-card .form-control,
.filters-card .form-select {
  border-color: var(--border);
  border-radius: var(--radius-xs);
  font-size: .88rem;
  padding: .5rem .65rem;
}
.filters-card .form-control:focus,
.filters-card .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(52 131 250 / 15%);
}
.filters-card .form-check-label { font-size: .86rem; }

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
  margin-bottom: 1rem;
}
.results-toolbar__count { font-size: .85rem; color: var(--muted); }
.results-toolbar__count strong { color: var(--ink); }
.results-toolbar__sort { display: flex; align-items: center; gap: .5rem; }
.results-toolbar__sort label { font-size: .8rem; color: var(--muted); white-space: nowrap; margin: 0; }
.results-toolbar__sort select { min-width: 180px; }

.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.chip span { font-size: .95rem; line-height: 1; }

/* --------------------------------------------------------------------------
   Detalhe do produto
   -------------------------------------------------------------------------- */
.breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--muted);
  margin-block: 1.1rem;
}
.breadcrumb-bar a { color: var(--muted); }
.breadcrumb-bar a:hover { color: var(--accent-strong); text-decoration: underline; }
.breadcrumb-bar .sep { color: var(--border-strong); }
.breadcrumb-bar .current { color: var(--ink-soft); }

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-xs);
}
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.gallery-thumbs button {
  width: 72px;
  height: 72px;
  padding: .3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-xs);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease;
}
.gallery-thumbs button:hover,
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.buy-box {
  position: sticky;
  top: calc(var(--header-h) + 2.2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow-sm);
}
.buy-box h1 {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .4rem;
}
.buy-box__meta { color: var(--muted); font-size: .84rem; margin: 0 0 .85rem; }
.buy-box__meta strong { color: var(--ink-soft); }

.price-block { padding-block: .35rem .9rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.price-block .price-now { font-size: clamp(1.9rem, 4.5vw, 2.5rem); }
.price-block .price-old { font-size: .9rem; }
.price-block__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.price-block__discount {
  background: var(--success-soft);
  color: #04783c;
  font-weight: 800;
  font-size: .82rem;
  padding: .2rem .5rem;
  border-radius: 999px;
}

.buy-box .btn-buy { min-height: 52px; font-size: 1rem; }
.buy-box__note { color: var(--muted); font-size: .78rem; text-align: center; margin: .6rem 0 0; }

.trust-list {
  display: grid;
  gap: .55rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .84rem;
  color: var(--ink-soft);
}
.trust-list li { display: flex; gap: .55rem; align-items: start; }
.trust-list svg { width: 17px; height: 17px; color: var(--success); flex: 0 0 auto; margin-top: .1rem; }

.notice {
  border-left: 3px solid var(--brand);
  background: #fffbe0;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  padding: .7rem .9rem;
  color: #6b5b00;
  font-size: .82rem;
}

.description-card,
.steps-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  box-shadow: var(--shadow-xs);
}
.description-card h2,
.steps-card h2 { font-size: 1.1rem; font-weight: 800; margin: 0 0 .8rem; }
.description-card .text-body { color: var(--ink-soft); font-size: .93rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 3.1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .84rem;
  color: var(--ink-soft);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: .9rem;
  top: .9rem;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
}
.steps strong { display: block; color: var(--ink); font-size: .88rem; margin-bottom: .15rem; }

/* Chamada de conversão final: reforça benefício e próximo passo sem urgência falsa. */
.conversion-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-block: 2.75rem;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #1b2257 0%, #2d3277 62%, #38408f 100%);
  color: #dfe3ff;
  box-shadow: var(--shadow);
}
.conversion-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  right: -100px;
  top: -160px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 42%, transparent);
  filter: blur(4px);
}
.conversion-cta__eyebrow {
  color: var(--brand-light);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.conversion-cta h2 {
  max-width: 650px;
  margin: .35rem 0 .45rem;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
}
.conversion-cta p { max-width: 650px; margin: 0; color: #cbd1f3; }
.conversion-cta__actions { display: grid; flex: 0 0 auto; gap: .45rem; text-align: center; }
.conversion-cta__actions .btn { min-height: 48px; display: inline-flex; align-items: center; gap: .5rem; padding-inline: 1.35rem; }
.conversion-cta__actions small { color: #b9c0e8; }

/* Ações móveis aparecem somente onde melhoram a jornada. */
.mobile-offers-bar,
.mobile-buy-dock { display: none; }

/* --------------------------------------------------------------------------
   Estado vazio / paginação
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty-state strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: .25rem; }
.empty-state p { margin: 0 0 1rem; }

.pagination { gap: .25rem; }
.pagination .page-link {
  color: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: .85rem;
  font-weight: 600;
  padding: .45rem .75rem;
}
.pagination .page-link:hover { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); }
.pagination .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-item.disabled .page-link { color: #aeb5c2; background: var(--surface); }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer { margin-top: 4rem; background: #1b2257; color: #d5d9f0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 2px; }

.footer-seals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}
.footer-seal { display: flex; align-items: center; gap: .65rem; }
.footer-seal__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgb(255 255 255 / 10%);
  color: var(--brand-light);
  flex: 0 0 auto;
}
.footer-seal__icon svg { width: 20px; height: 20px; }
.footer-seal strong { display: block; color: #fff; font-size: .84rem; line-height: 1.25; }
.footer-seal small { display: block; color: #a9b0dd; font-size: .74rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 2.5rem 1.75rem;
}
.footer-grid h2 {
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .85rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .86rem; }
.footer-brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: .6rem; }
.footer-brand img { height: 38px; width: auto; border-radius: 9px; object-fit: contain; }
.footer-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 900;
}
.footer-about { font-size: .84rem; color: #b9bfe3; max-width: 38ch; }
.footer-disclaimer { font-size: .78rem; color: #a9b0dd; max-width: 44ch; margin: .75rem 0 0; }
.footer-disclaimer strong { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1rem 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: .76rem;
  color: #a9b0dd;
}
.footer-bottom a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .header-main { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-actions { margin-left: auto; }
  .filters-card, .buy-box { position: static; }
  .hero-default { grid-template-columns: 1fr; }
  .hero-default__art { display: none; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-seals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .conversion-cta { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .conversion-cta__actions { width: 100%; }
  .conversion-cta__actions .btn { justify-content: center; }
}

@media (max-width: 767.98px) {
  :root { --header-h: 124px; }
  .topbar-inner { min-height: 30px; justify-content: center; }
  .topbar-item:nth-child(2) { display: none; }
  .header-main { gap: .65rem; padding-block: .6rem; }
  .header-search { min-width: 100%; }
  .search-bar__input { min-height: 44px; font-size: 16px; }
  .search-bar__button { min-width: 48px; }
  .category-nav { margin-inline: -.55rem; padding-inline: .55rem; scroll-padding-inline: .55rem; }
  .hero { margin-top: .85rem; }
  .hero-default { gap: 1rem; }
  .hero-default__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-default__actions .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
  .section { margin-block: 2.1rem; }
  .section-head { align-items: center; }
  .site-footer { margin-top: 2.5rem; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .mobile-offers-bar {
    position: fixed;
    z-index: 1035;
    left: .65rem;
    right: .65rem;
    bottom: max(.65rem, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    min-height: 54px;
    padding: .65rem .8rem .65rem 1rem;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 15px;
    background: rgb(27 34 87 / 96%);
    color: #fff;
    box-shadow: 0 12px 34px rgb(15 23 42 / 32%);
    backdrop-filter: blur(12px);
  }
  .mobile-offers-bar:hover { color: #fff; }
  .mobile-offers-bar > span { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; }
  .mobile-offers-bar svg { width: 18px; height: 18px; color: var(--brand); }
  .mobile-offers-bar strong {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .48rem .7rem;
    border-radius: 9px;
    background: var(--brand);
    color: var(--brand-ink);
    font-size: .78rem;
    white-space: nowrap;
  }
  body:has(.mobile-buy-dock) .mobile-offers-bar { display: none; }
  .mobile-buy-dock {
    position: fixed;
    z-index: 1040;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .7rem max(.8rem, env(safe-area-inset-right)) max(.7rem, env(safe-area-inset-bottom)) max(.8rem, env(safe-area-inset-left));
    border-top: 1px solid var(--border);
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 -8px 24px rgb(16 24 40 / 12%);
    backdrop-filter: blur(12px);
  }
  .mobile-buy-dock > div { display: grid; }
  .mobile-buy-dock small { color: var(--muted); font-size: .68rem; }
  .mobile-buy-dock strong { color: var(--ink); font-size: 1.05rem; }
  .mobile-buy-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .55rem 1rem;
    border-radius: var(--radius-xs);
    background: var(--accent);
    color: #fff;
    font-weight: 800;
  }
}

@media (max-width: 575.98px) {
  body { font-size: 14px; }
  .container-page { width: min(100% - 1.1rem, var(--container)); }
  .topbar-item--end { display: none; }
  .topbar-inner { gap: .9rem; }
  .topbar-item { white-space: normal; text-align: center; }
  .brand { font-size: 1.15rem; }
  .brand img, .brand__mark { height: 36px; width: 36px; }
  .search-bar__select { display: none; }
  .search-bar__button { padding-inline: .85rem; }
  .btn-offers span { display: none; }
  .hero-banner .carousel-item img { height: 190px; border-radius: var(--radius); }
  .hero-default { padding: 1.35rem 1.15rem; }
  .hero-default h2 { font-size: clamp(1.65rem, 9vw, 2.15rem); }
  .hero-default p { line-height: 1.6; }
  .hero-default__trust { gap: .5rem .8rem; margin-top: 1.1rem; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { padding: .7rem .8rem; }
  .footer-seals { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .product-card__body { padding: .75rem; }
  .price-now { font-size: 1.2rem; }
  .btn-buy { font-size: .8rem; min-height: 38px; }
  .section-sub { margin-left: .65rem; }
  .conversion-cta { border-radius: var(--radius); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .brand { max-width: calc(100% - 55px); }
  .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .hero-default__actions { grid-template-columns: 1fr; }
  .hero-default__actions .btn { width: 100%; }
  .section-head { align-items: flex-start; }
  .section-link { padding-top: .2rem; }
  .row-cols-2 > * { width: 100%; }
  .product-card__media { aspect-ratio: 4 / 3; }
  .product-card__body { padding: .9rem; }
  .product-card__title { font-size: .96rem; }
  .btn-buy { min-height: 44px; font-size: .88rem; }
  .results-toolbar__sort { width: 100%; justify-content: space-between; }
  .results-toolbar__sort select { min-width: 0; flex: 1; }
  .mobile-offers-bar > span { font-size: .72rem; }
}

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