/* ==========================================================================
   MAGIC DICE — folha de estilo principal
   Estrutura: tokens · base · header · botões · cards · home · PDP · carrinho
              checkout · pedido · painel · utilitários · responsivo
   ========================================================================== */

/* ------------------------------- tokens ------------------------------- */
:root {
  --brand: #ee4d2d;
  --brand-hi: #f53d2d;
  --brand-600: #d73211;
  --brand-700: #b32d0f;
  --brand-soft: #fff2ee;
  --brand-ghost: #ffe9e3;

  --ink: #1f1f1f;
  --ink-2: #5a5a5a;
  --ink-3: #8f8f8f;
  --ink-4: #b5b5b5;

  --bg: #f5f5f5;
  --card: #ffffff;
  --line: #ececec;
  --line-2: #f5f5f5;

  --green: #16a34a;
  --green-soft: #ecfdf3;
  --teal: #26aa99;
  --amber: #ffb100;
  --amber-soft: #fff8e6;

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.06);
  --sh-2: 0 2px 12px rgba(0, 0, 0, 0.08);
  --sh-3: 0 10px 34px rgba(0, 0, 0, 0.13);
  --sh-brand: 0 8px 22px rgba(238, 77, 45, 0.3);

  --max: 1240px;
  --gap: 16px;

  --t-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------- base -------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  /* cor fixa em vez de "inherit": campos dentro de blocos com texto branco
     herdavam branco e ficavam invisíveis sobre o fundo branco do navegador */
  color: var(--ink);
  background-color: #fff;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 10px;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

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

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

/* ------------------------------- topstrip ------------------------------ */
.topstrip {
  background: #1f1f1f;
  color: #d8d8d8;
  font-size: 12px;
}

.topstrip-in {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.topstrip b {
  color: #fff;
}

.topstrip .sp {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.topstrip a:hover {
  color: #fff;
}

/* -------------------------------- header ------------------------------- */
.hdr {
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.hdr-in {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: var(--brand);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.logo-txt {
  line-height: 1.05;
}

.logo-txt b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-txt span {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  opacity: 0.9;
  text-transform: uppercase;
}

.searchbox {
  flex: 1;
  max-width: 640px;
  min-width: 0;
}

.searchbox-row {
  display: flex;
  background: #fff;
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 3px;
}

.searchbox-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 9px 14px;
  font-size: 13.5px;
  background: transparent;
}

.searchbox-row button {
  width: 62px;
  border-radius: var(--r-xs);
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background var(--t-fast);
}

.searchbox-row button:hover {
  background: var(--brand-600);
}

.search-hints {
  display: flex;
  gap: 12px;
  margin-top: 7px;
  font-size: 11.5px;
  color: #fff;
  opacity: 0.92;
  overflow: hidden;
  white-space: nowrap;
}

.search-hints a:hover {
  text-decoration: underline;
}

.hdr-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hdr-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: background var(--t-fast);
  position: relative;
}

.hdr-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hdr-btn svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--brand);
}

.cart-count[hidden] {
  display: none;
}

/* nav de categorias */
.catnav {
  background: rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.catnav-in {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catnav-in::-webkit-scrollbar {
  display: none;
}

.catnav a {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  transition: background var(--t-fast);
}

.catnav a:hover,
.catnav a.on {
  background: rgba(255, 255, 255, 0.24);
}

/* -------------------------------- botões ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 700;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.995);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(180deg, #f8603d, var(--brand));
  color: #fff;
  box-shadow: var(--sh-brand);
}

.btn-primary:hover:not([disabled]) {
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
}

.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}

.btn-outline:hover:not([disabled]) {
  background: var(--brand-soft);
}

/* passo numerado (substitui os emojis 1️⃣ 2️⃣ 3️⃣, que renderizam de formas diferentes) */
.passo-num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.btn-ghost {
  background: #fff;
  border: 1px solid #d8d8d8;
  color: var(--ink-2);
  box-shadow: var(--sh-1);
}

.btn-ghost:hover:not([disabled]) {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-dark {
  background: #262626;
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 15px 26px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn .spin {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* -------------------------------- seções ------------------------------- */
.section {
  margin-top: 22px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sec-head h2 {
  font-size: 19px;
}

.sec-head .sec-sub {
  color: var(--ink-3);
  font-size: 13px;
  min-width: 0;
}

.sec-head .sec-link {
  margin-left: auto;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
}

.panel {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}

/* ================================ HOME ================================= */

/* hero */
.hero {
  position: relative;
  margin-top: 18px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  background: #111;
}

.hero-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 20px;
  padding: 34px 40px;
  color: #fff;
  min-height: 320px;
}

.hero-slide.s1 {
  background: radial-gradient(1100px 420px at 12% 10%, #ff7a54 0%, #ee4d2d 42%, #a8240c 100%);
}

.hero-slide.s2 {
  background: radial-gradient(1100px 420px at 88% 90%, #2f3a56 0%, #171b26 55%, #0b0d13 100%);
}

.hero-slide.s3 {
  background: radial-gradient(1100px 420px at 20% 80%, #1c7a63 0%, #0f5245 55%, #07312a 100%);
}

.hero-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.hero-copy h1 {
  font-size: clamp(26px, 3.6vw, 42px);
  margin: 16px 0 10px;
  letter-spacing: -0.02em;
}

.hero-copy h1 em {
  font-style: normal;
  color: #ffe08a;
}

.hero-copy p {
  font-size: 15px;
  opacity: 0.94;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-price .from {
  font-size: 12px;
  opacity: 0.85;
}

.hero-price .now {
  font-size: 30px;
  font-weight: 800;
}

.hero-price .was {
  font-size: 14px;
  text-decoration: line-through;
  opacity: 0.92;
  color: #ffe6de;
}

.hero-cta .btn-primary {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-media img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffe08a;
  color: #5a3b00;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
  transform: rotate(6deg);
  z-index: 2;
}

.hero-nav {
  position: absolute;
  inset: auto 0 16px 0;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 3;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transition: all var(--t-fast);
}

.hero-dot.on {
  background: #fff;
  width: 26px;
  border-radius: var(--r-pill);
}

/* setas no canto inferior direito — antes ficavam em cima do texto do banner */
.hero-arrows {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-arrows button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background var(--t-fast);
}

.hero-arrows button:hover {
  background: rgba(0, 0, 0, 0.68);
}

/* benefícios */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 18px;
  box-shadow: var(--sh-1);
}

.benefit {
  background: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit .ic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 19px;
  flex-shrink: 0;
}

.benefit b {
  display: block;
  font-size: 13.5px;
}

.benefit span {
  color: var(--ink-3);
  font-size: 12px;
}

/* oferta relâmpago */
.flash {
  background: linear-gradient(180deg, #fff, #fff6f2);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  padding: 16px;
  margin-top: 22px;
  border: 1px solid #ffe0d6;
}

.flash-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #ffd2c4;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.flash-head h2 {
  font-size: 19px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.countdown span {
  min-width: 30px;
  padding: 5px 7px;
  border-radius: var(--r-xs);
  background: #2b2b2b;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.countdown i {
  font-style: normal;
  font-weight: 700;
}

.flash-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.flash-rail > * {
  scroll-snap-align: start;
}

.stockbar {
  margin-top: 8px;
}

.stockbar .track {
  height: 6px;
  border-radius: var(--r-pill);
  background: #ffe0d6;
  overflow: hidden;
}

.stockbar .fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #ff9a3c, var(--brand));
}

.stockbar small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
}

/* grade de produtos */
.grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 14px;
}

.pcard {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--t), box-shadow var(--t);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
}

.pcard-media {
  position: relative;
  aspect-ratio: 1;
  background: #f2efec;
  overflow: hidden;
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pcard:hover .pcard-media img {
  transform: scale(1.06);
}

.pcard-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(180deg, #ffd451, #ffb100);
  color: #7a4b00;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 9px;
  border-bottom-left-radius: var(--r-sm);
}

.pcard-flag {
  position: absolute;
  top: 8px;
  left: 0;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  text-transform: uppercase;
}

.pcard-body {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.pcard-title {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.pcard-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--brand);
  font-weight: 800;
  margin-top: auto;
}

.pcard-price .cur {
  font-size: 11.5px;
}

.pcard-price .int {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.pcard-price .dec {
  font-size: 12.5px;
}

.pcard-was {
  font-size: 11.5px;
  color: var(--ink-4);
  text-decoration: line-through;
  margin-top: -3px;
  min-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard-eco {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  min-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
  min-height: 17px;
  white-space: nowrap;
}

.pcard-meta .stars {
  font-size: 13px;
}

.pcard-loc {
  font-size: 11px;
  color: var(--ink-4);
}

.tag-free {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--green-soft);
  color: #067647;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-xs);
}

.stars {
  color: var(--amber);
  letter-spacing: -1px;
  font-size: 12px;
}

/* provas / depoimentos */
.provas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.prova {
  background: #fff;
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--sh-1);
  border-left: 3px solid var(--brand);
}

.prova p {
  font-size: 13.5px;
  color: var(--ink-2);
  font-style: italic;
}

.prova footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.prova b {
  font-size: 13px;
  display: block;
}

.prova small {
  color: var(--ink-3);
  font-size: 11.5px;
}

/* faq */
.faq-item {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 15px 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
  color: var(--brand);
  font-weight: 400;
  transition: transform var(--t-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 13.5px;
}

/* captura de contato */
.cta-capture {
  background: linear-gradient(135deg, #262626, #3d3d3d);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 22px;
}

.cta-capture h2 {
  font-size: 23px;
}

.cta-capture p {
  opacity: 0.8;
  font-size: 13.5px;
  margin-top: 8px;
}

.capture-form {
  display: flex;
  gap: 8px;
}

.capture-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-size: 14px;
  background-color: #fff;
  color: var(--ink);
  font-weight: 500;
}

.capture-form input::placeholder {
  color: var(--ink-4);
  font-weight: 400;
}

.capture-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.4);
}

/* --------------------------------- footer ------------------------------- */
.rodape {
  background: #fff;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.rodape-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
  padding: 34px 0 26px;
}

.rodape h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
  color: var(--ink);
}

.rodape li {
  margin-bottom: 8px;
}

.rodape a,
.rodape p {
  color: var(--ink-2);
  font-size: 13px;
}

.rodape a:hover {
  color: var(--brand);
}

.pagamentos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill-pay {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  font-size: 11.5px;
  color: var(--ink-2);
  background: #fafafa;
  min-width: 106px;
  text-align: center;
}

.quebra {
  word-break: break-all;
  text-align: right;
  max-width: 62%;
  line-height: 1.4;
}

.rodape-base {
  border-top: 1px solid var(--line);
  padding: 16px 0 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

/* ================================= PDP ================================= */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  padding: 16px 0 14px;
  flex-wrap: wrap;
}

.crumbs a:hover {
  color: var(--brand);
}

.crumbs b {
  color: var(--ink-2);
  font-weight: 500;
}

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 26px;
  background: #fff;
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--sh-1);
}

/* galeria */
.galeria-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: #f4f1ee;
  cursor: zoom-in;
}

.galeria-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galeria-main.zoom img {
  transform: scale(1.9);
  transition: transform 0.1s linear;
}

.galeria-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}

.galeria-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.galeria-thumbs button {
  aspect-ratio: 1;
  border-radius: var(--r-xs);
  overflow: hidden;
  border: 2px solid transparent;
  background: #f4f1ee;
  padding: 0;
  transition: border-color var(--t-fast);
}

.galeria-thumbs button.on {
  border-color: var(--brand);
}

.galeria-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galeria-selos {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.selo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 6px 10px;
}

/* resumo */
.pdp-titulo {
  font-size: 21px;
  line-height: 1.32;
}

.pdp-sub {
  color: var(--ink-3);
  font-size: 13px;
  margin-top: 6px;
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 13px;
  flex-wrap: wrap;
}

.pdp-rating .sep {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.pdp-rating b {
  font-weight: 700;
}

.pdp-rating .vendidos {
  color: var(--ink-2);
}

/* caixa de preço */
.caixa-preco {
  background: linear-gradient(100deg, #fff5f2, #fff);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  border: 1px solid #ffe3da;
}

.preco-linha {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.preco-antigo {
  font-size: 14px;
  color: var(--ink-4);
  text-decoration: line-through;
}

.preco-atual {
  display: flex;
  align-items: baseline;
  color: var(--brand);
  font-weight: 800;
}

.preco-atual .cur {
  font-size: 15px;
}

.preco-atual .int {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.preco-atual .dec {
  font-size: 18px;
}

.pct-off {
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--r-xs);
}

.preco-parcela {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 6px;
}

.preco-extra {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--green);
  font-weight: 700;
}

/* variações */
.opcoes {
  margin-top: 18px;
}

.opcoes-titulo {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 9px;
}

.opcoes-titulo b {
  color: var(--ink);
}

.opcoes-lista {
  display: grid;
  gap: 12px;
  /* espaço para a fita "MAIS VENDIDO" não ser cortada pela borda do container */
  padding-top: 10px;
}

.opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  text-align: left;
  transition: all var(--t-fast);
  position: relative;
}

.opcao:hover {
  border-color: #f6a895;
}

.opcao.on {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.09);
}

.opcao-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink-4);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all var(--t-fast);
}

.opcao.on .opcao-radio {
  border-color: var(--brand);
}

.opcao.on .opcao-radio::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
}

.opcao-txt {
  flex: 1;
  min-width: 0;
}

.opcao-txt b {
  display: block;
  font-size: 13.5px;
}

.opcao-txt span {
  font-size: 12px;
  color: var(--ink-3);
}

.opcao-preco {
  text-align: right;
  flex-shrink: 0;
}

.opcao-preco b {
  color: var(--brand);
  font-size: 15px;
  display: block;
}

.opcao-preco small {
  color: var(--ink-4);
  text-decoration: line-through;
  font-size: 11.5px;
}

.opcao-fita {
  position: absolute;
  top: -8px;
  left: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.05em;
}

/* quantidade + frete */
.qtd-frete {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.qtd {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.qtd button {
  width: 38px;
  height: 42px;
  font-size: 18px;
  color: var(--ink-2);
  transition: background var(--t-fast);
}

.qtd button:hover {
  background: #f7f7f7;
  color: var(--brand);
}

.qtd input {
  width: 52px;
  height: 42px;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-weight: 700;
  -moz-appearance: textfield;
}

.qtd input::-webkit-outer-spin-button,
.qtd input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.frete-calc {
  min-width: 0;
}

.frete-calc .linha {
  display: flex;
  gap: 8px;
}

.frete-calc input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 14px;
}

.frete-resultado {
  margin-top: 9px;
  font-size: 13px;
  display: none;
}

.frete-resultado.on {
  display: block;
}

.frete-ok {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--green-soft);
  border: 1px solid #b7ebd0;
  border-radius: var(--r-sm);
  padding: 11px 13px;
}

.frete-ok .ic {
  font-size: 18px;
}

.frete-ok b {
  color: #067647;
}

.frete-ok small {
  display: block;
  color: var(--ink-2);
  font-size: 12px;
}

.frete-erro {
  background: #fff5f5;
  border: 1px solid #ffd4d4;
  color: #b42318;
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-size: 12.5px;
}

/* botões de compra */
.acoes-compra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 20px;
}

.confianca {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.confianca div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

.confianca .ic {
  font-size: 17px;
}

/* vendedor */
.vendedor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  background: #fafafa;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}

.vendedor .avatar {
  width: 42px;
  height: 42px;
  font-size: 16px;
}

.vendedor b {
  font-size: 13.5px;
  display: block;
}

.vendedor small {
  color: var(--ink-3);
  font-size: 12px;
}

.vendedor .btn {
  margin-left: auto;
}

/* barra fixa mobile */
.barra-fixa {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 10px 14px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 70;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.barra-fixa .preco {
  color: var(--brand);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
}

.barra-fixa .preco small {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  text-decoration: line-through;
  font-weight: 400;
}

.barra-fixa .btn {
  flex: 1;
}

/* conteúdo detalhado */
.blocos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.bloco {
  background: #fff;
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--sh-1);
  margin-bottom: 16px;
}

.bloco h2 {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-2);
}

.bloco p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.lista-check {
  display: grid;
  gap: 9px;
  margin-top: 6px;
}

.lista-check li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-2);
}

.lista-check li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

.especs {
  display: grid;
  gap: 4px;
}

.especs div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  background: #fafafa;
}

.especs div:nth-child(even) {
  background: #fff;
}

.especs dt {
  color: var(--ink-2);
  font-weight: 500;
}

.especs dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.destaques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.destaque {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 15px;
  text-align: center;
}

.destaque .ic {
  font-size: 26px;
}

.destaque b {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
}

.destaque span {
  font-size: 12px;
  color: var(--ink-3);
}

/* avaliações */
.rating-resumo {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  background: #fffbf0;
  border: 1px solid #ffe9b8;
  border-radius: var(--r-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.rating-nota {
  text-align: center;
}

.rating-nota b {
  font-size: 34px;
  color: var(--brand);
  line-height: 1;
}

.rating-nota small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  margin-top: 4px;
}

.rating-barras {
  display: grid;
  gap: 5px;
}

.rating-barras .l {
  display: grid;
  grid-template-columns: 46px 1fr 38px;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}

/* display:block é obrigatório: span inline ignora height e width em % */
.rating-barras .t {
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: #e6e6e6;
  overflow: hidden;
}

.rating-barras .f {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #ffc94d, var(--amber));
}

.avaliacao {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.avaliacao:last-child {
  border-bottom: 0;
}

.avaliacao-top {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.avaliacao-top b {
  font-size: 13px;
}

.avaliacao-top .tag {
  font-size: 11px;
  color: var(--ink-2);
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: var(--r-xs);
}

.avaliacao-top .tag.verificado {
  color: #067647;
  background: var(--green-soft);
  font-weight: 600;
}

.avaliacao p {
  font-size: 13.5px;
  color: var(--ink-2);
}

.avaliacao .util {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}

/* aside do PDP */
.aside-card {
  background: #fff;
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--sh-1);
  position: sticky;
  top: 130px;
}

.aside-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
}

.mini-produto {
  display: flex;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}

.mini-produto:last-child {
  border-bottom: 0;
}

.mini-produto img {
  width: 54px;
  height: 54px;
  border-radius: var(--r-xs);
  object-fit: cover;
  flex-shrink: 0;
}

.mini-produto b {
  font-size: 12.5px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-produto span {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}

/* =============================== CARRINHO / DRAWER ====================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
  z-index: 90;
}

.drawer-overlay.on {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  z-index: 95;
  transform: translateX(102%);
  transition: transform var(--t);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.drawer.on {
  transform: translateX(0);
}

.drawer-head {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-head h3 {
  font-size: 16px;
}

.drawer-head .close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ink-3);
}

.drawer-head .close:hover {
  background: #f5f5f5;
  color: var(--ink);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}

.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 16px 18px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.item-carrinho {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}

.item-carrinho img {
  width: 74px;
  height: 74px;
  border-radius: var(--r-xs);
  object-fit: cover;
  background: #f4f1ee;
}

.item-carrinho .t {
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-carrinho .v {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.item-carrinho .p {
  color: var(--brand);
  font-weight: 700;
  margin-top: 6px;
}

.item-carrinho .rm {
  color: var(--ink-4);
  font-size: 18px;
  align-self: flex-start;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.item-carrinho .rm:hover {
  background: #fff0ee;
  color: var(--brand);
}

.qtd-mini {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  margin-top: 8px;
}

.qtd-mini button {
  width: 26px;
  height: 26px;
  color: var(--ink-2);
}

.qtd-mini button:hover {
  color: var(--brand);
}

.qtd-mini span {
  min-width: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.totais-linha {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 7px;
  color: var(--ink-2);
}

.totais-linha.grande {
  font-size: 17px;
  color: var(--ink);
  font-weight: 800;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.totais-linha .verde {
  color: var(--green);
  font-weight: 700;
}

.cupom-linha {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.cupom-linha input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 13px;
  text-transform: uppercase;
}

.vazio {
  text-align: center;
  padding: 50px 20px;
  color: var(--ink-3);
}

.vazio .ic {
  font-size: 46px;
  opacity: 0.4;
}

.vazio p {
  margin: 12px 0 18px;
}

/* =============================== CHECKOUT =============================== */
.steps {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-size: 13px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
}

.step .n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e3e3e3;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.step.on {
  color: var(--brand);
  font-weight: 700;
}

.step.on .n {
  background: var(--brand);
}

.step.done .n {
  background: var(--green);
}

.step.done .n::after {
  content: "✓";
}

.step.done .n span {
  display: none;
}

.steps .line {
  flex: 1;
  max-width: 60px;
  height: 2px;
  background: var(--line);
}

.steps .line.done {
  background: var(--green);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
  padding-bottom: 40px;
}

.card-bloco {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  padding: 22px;
  margin-bottom: 16px;
}

.card-bloco > h2 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.card-bloco > h2 .n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 12.5px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo.full {
  grid-column: 1 / -1;
}

.campo label {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 600;
}

.campo label .ob {
  color: var(--brand);
}

.campo input,
.campo select,
.campo textarea {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  background: #fff;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.1);
}

.campo input.erro,
.campo select.erro {
  border-color: #e5484d;
  background: #fffafa;
}

.campo .msg {
  font-size: 11.5px;
  color: #e5484d;
  min-height: 14px;
}

.campo .msg.ok {
  color: var(--green);
}

.campo .hint {
  font-size: 11.5px;
  color: var(--ink-4);
}

.campo-cep {
  position: relative;
}

.campo-cep .loading {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--brand);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.campo-cep.carregando .loading {
  display: block;
}

.cep-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}

/* resumo lateral */
.resumo {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  position: sticky;
  top: 130px;
  overflow: hidden;
}

.resumo-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.resumo-body {
  padding: 18px 20px;
}

.resumo-itens {
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.linha-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
}

.linha-item:last-child {
  border-bottom: 0;
}

.linha-item img {
  width: 52px;
  height: 52px;
  border-radius: var(--r-xs);
  object-fit: cover;
  background: #f4f1ee;
}

.linha-item .t {
  font-size: 12.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.linha-item .v {
  font-size: 11px;
  color: var(--ink-3);
}

.linha-item .p {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.selo-gratis {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green-soft);
  border: 1px dashed #86dfb3;
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 12.5px;
  color: #067647;
  font-weight: 700;
  margin: 12px 0;
}

.resumo-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.resumo-total .lbl {
  font-size: 14px;
  color: var(--ink-2);
}

.resumo-total .val {
  font-size: 25px;
  font-weight: 800;
  color: var(--brand);
}

.resumo-foot {
  padding: 0 20px 20px;
}

.seguranca {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
}

.seguranca div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* upsell no checkout */
.upsell {
  border: 1px dashed #ffcbb9;
  background: #fffaf7;
  border-radius: var(--r-sm);
  padding: 13px;
  margin-bottom: 14px;
}

.upsell h4 {
  font-size: 12.5px;
  color: var(--brand);
  margin-bottom: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upsell-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
  border-radius: var(--r-sm);
  transition: background var(--t-fast);
}

.upsell-item:hover {
  background: #fff;
}

.upsell-item img {
  width: 42px;
  height: 42px;
  border-radius: var(--r-xs);
  object-fit: cover;
}

.upsell-item .t {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
}

.upsell-item .t b {
  display: block;
  font-weight: 600;
}

.upsell-item .t span {
  color: var(--brand);
  font-weight: 700;
}

.check {
  width: 20px;
  height: 20px;
  border-radius: var(--r-xs);
  border: 2px solid var(--ink-4);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--t-fast);
  background: #fff;
}

.check.on {
  background: var(--brand);
  border-color: var(--brand);
}

.check.on::after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* PIX */
.pix-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  align-items: start;
}

.pix-qr {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
  background: #fff;
}

.pix-qr img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto 12px;
  border-radius: var(--r-xs);
}

.pix-copia {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: flex-start;
}

.pix-copia textarea {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  font-size: 11.5px;
  line-height: 1.5;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: #fafafa;
  resize: none;
  word-break: break-all;
  overflow-wrap: anywhere;
  color: var(--ink-2);
  scrollbar-width: thin;
}

.pix-copia textarea::-webkit-scrollbar {
  width: 8px;
}

.pix-copia textarea::-webkit-scrollbar-thumb {
  background: #d5d5d5;
  border-radius: 4px;
}

.pix-copia textarea::-webkit-scrollbar-track {
  background: transparent;
}

.pix-copia textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.1);
  background: #fff;
}

.timer {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--amber-soft);
  border: 1px solid #ffe0a3;
  border-radius: var(--r-sm);
  padding: 11px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #7a5200;
}

.timer b {
  font-variant-numeric: tabular-nums;
}

.passos-pix {
  counter-reset: p;
  display: grid;
  gap: 12px;
}

/* flex (não grid) para o texto corrido não virar vários itens separados */
.passos-pix li {
  display: flex;
  gap: 11px;
  font-size: 13.5px;
  color: var(--ink-2);
  align-items: flex-start;
  line-height: 1.5;
}

.passos-pix li > span {
  flex: 1;
  min-width: 0;
}

.passos-pix li::before {
  counter-increment: p;
  content: counter(p);
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12.5px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
}

.status-pill.pendente {
  background: #fff3d1;
  color: #8a5400;
  border: 1px solid #ffd98a;
}

.status-pill.pago {
  background: var(--green-soft);
  color: #067647;
  border: 1px solid #a7e8c6;
}

.status-pill.ruim {
  background: #fff1f1;
  color: #b42318;
  border: 1px solid #ffd0d0;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.75);
  }
}

.sucesso-hero {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}

.sucesso-hero .big {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 40px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  animation: pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

.sucesso-hero h1 {
  font-size: 25px;
}

.sucesso-hero p {
  color: var(--ink-2);
  margin-top: 8px;
}

.pedido-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f7f7f7;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  margin-top: 14px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 15px;
}

/* ------------------------------- painel -------------------------------- */
.painel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi {
  background: #fff;
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--sh-1);
  border-left: 3px solid var(--brand);
}

.kpi small {
  color: var(--ink-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi b {
  display: block;
  font-size: 26px;
  margin-top: 6px;
  color: var(--ink);
}

.tabela-wrap {
  background: #fff;
  border-radius: var(--r);
  box-shadow: var(--sh-1);
  overflow-x: auto;
}

table.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}

table.tabela th {
  text-align: left;
  padding: 13px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  white-space: nowrap;
}

table.tabela td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}

table.tabela tr:hover td {
  background: #fffaf8;
}

.mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
}

/* -------------------------------- toast -------------------------------- */
.toasts {
  position: fixed;
  /* abaixo do header fixo (34 + 78 + 40), para não cobrir busca nem carrinho */
  top: 168px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, 90vw);
}

.toast {
  background: #1f1f1f;
  color: #fff;
  border-radius: var(--r-sm);
  padding: 13px 16px;
  font-size: 13.5px;
  box-shadow: var(--sh-3);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.toast.ok {
  background: #0f5132;
}

.toast.erro {
  background: #842029;
}

@keyframes toastIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
}

/* ----------------------------- utilitários ----------------------------- */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: var(--r-xs);
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 8px;
}
.mt-2 {
  margin-top: 16px;
}
.mt-3 {
  margin-top: 24px;
}
.mb-2 {
  margin-bottom: 16px;
}
.text-center {
  text-align: center;
}
.muted {
  color: var(--ink-3);
}
.verde {
  color: var(--green);
}
.brand {
  color: var(--brand);
}
.hidden {
  display: none !important;
}

/* ------------------------------ responsivo ----------------------------- */
@media (max-width: 1024px) {
  .pdp {
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 20px;
  }
  .blocos {
    grid-template-columns: 1fr;
  }
  .aside-card {
    position: static;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .resumo {
    position: static;
  }
  .rodape-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 22px 46px;
    min-height: auto;
  }
  .hero-copy p {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-media img {
    max-width: 240px;
  }
}

@media (max-width: 760px) {
  .topstrip {
    display: none;
  }
  .hdr-in {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  .logo-txt b {
    font-size: 16px;
  }
  .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
  .searchbox {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }
  .search-hints {
    display: none;
  }
  .hdr-btn .lbl {
    display: none;
  }
  .catnav-in {
    height: 38px;
  }
  /* dica visual de que a faixa de categorias rola para o lado */
  .catnav {
    position: relative;
  }
  .catnav::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 44px;
    background: linear-gradient(270deg, #e8452a 15%, rgba(238, 77, 45, 0));
    pointer-events: none;
  }
  /* stepper em uma linha só, sem os conectores */
  .steps {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    font-size: 11.5px;
    padding: 14px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .steps::-webkit-scrollbar {
    display: none;
  }
  .steps .line {
    display: none;
  }
  .step {
    flex: 0 0 auto;
  }
  .step .n {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    font-size: 10.5px;
  }
  /* código PIX: empilha o botão para o texto não estourar a caixa */
  .pix-copia {
    flex-direction: column;
  }
  .pix-copia .btn {
    width: 100%;
  }
  /* deixa o próximo card aparecendo, sinalizando que a faixa rola */
  .flash-rail {
    grid-auto-columns: 76%;
  }
  .flash-head h2 {
    font-size: 17px;
  }
  .countdown {
    margin-left: 0;
  }
  .pdp {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 0;
  }
  .pdp-titulo {
    font-size: 18px;
  }
  .preco-atual .int {
    font-size: 32px;
  }
  .acoes-compra {
    grid-template-columns: 1fr;
  }
  .confianca {
    grid-template-columns: 1fr;
  }
  .qtd-frete {
    grid-template-columns: 1fr;
  }
  .grid-produtos {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
  }
  .pcard-title {
    font-size: 12.5px;
  }
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
  .benefit {
    padding: 12px;
  }
  .benefit .ic {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .pix-grid {
    grid-template-columns: 1fr;
  }
  .rating-resumo {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .especs div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta-capture {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .capture-form {
    flex-direction: column;
  }
  .rodape-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section {
    margin-top: 16px;
  }
  .container {
    padding: 0 12px;
  }
  .barra-fixa {
    display: flex;
  }
  body.tem-barra-fixa {
    padding-bottom: 86px;
  }
  .hero {
    border-radius: var(--r);
    margin-top: 12px;
  }
  .hero-arrows {
    display: none;
  }
  .toasts {
    top: auto;
    bottom: 100px;
    right: 12px;
    left: 12px;
    max-width: none;
  }
}
