/* A Coleção — catálogo de rótulos avulsos. Copy e estrutura congeladas;
   camada visual alinhada ao design do quiz (vinho profundo + creme + ouro). */
:root {
  --wine: #4c0f1d;
  --wine-deep: #26090f;
  --wine-mid: #6b1526;
  --red: #bc2c2c;
  --red-deep: #9c2424;
  --blush: #e8b4a2;
  --beige: #f6f1e6;
  --paper: #fdfaf4;
  --charcoal: #2c2225;
  --ink: #241a1c;
  --muted: #7a6e6f;
  --line: rgba(82, 18, 31, 0.13);
  --gold: #c8a16c;
  --gold-soft: #e6cba0;
  --sans: "Manrope Variable", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.22, .8, .32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
/* display:flex/grid em classes vence o [hidden] do user-agent — sem esta
   guarda, o drawer do carrinho nasce aberto por cima do catálogo. */
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--beige); color: var(--charcoal); font-family: var(--sans); font-weight: 430; line-height: 1.6; -webkit-font-smoothing: antialiased; padding-bottom: 0; }
body.has-catalog-cart { padding-bottom: 84px; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Cabeçalho institucional da antiga Blind Box, compartilhado por styles.css. */
.catalog-header-cta { display: inline-flex; }

/* Hero */
.col-hero { margin: 0; background: var(--red); color: #fff; }
.col-hero__inner { padding-block: clamp(54px, 8vw, 92px) clamp(42px, 6vw, 70px); }
.col-eyebrow { margin: 0 0 14px; display: flex; align-items: center; gap: 10px; color: var(--blush); font-size: 0.69rem; font-weight: 850; letter-spacing: 0.18em; text-transform: uppercase; }
.col-eyebrow::before { width: 26px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 2px; content: ""; }
.col-hero h1 { max-width: 980px; margin: 0 0 18px; color: #fff; font-size: clamp(2.65rem, 7vw, 5.6rem); font-weight: 720; line-height: .98; letter-spacing: -0.045em; text-wrap: balance; }
.col-lead { margin: 0 0 28px; max-width: 760px; color: rgba(255,255,255,.8); font-size: clamp(.95rem, 2vw, 1.12rem); }
.col-scale { display: flex; flex-wrap: wrap; gap: 8px; }
.col-scale span { display: inline-flex; gap: 6px; align-items: baseline; padding: 8px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(76,15,29,.48); color: #fff; font-size: 0.76rem; box-shadow: 0 4px 14px rgba(76,15,29,.18); }
.col-scale span b { color: var(--gold-soft); font-weight: 800; }
.col-scale span.is-active { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Toolbar */
.col-toolbar { position: sticky; top: 76px; z-index: 20; background: rgba(246,241,230,.94); backdrop-filter: blur(8px); max-width: 1120px; margin: 0 auto; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.col-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.col-filters button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--charcoal); font-size: 0.78rem; font-weight: 650; transition: transform .15s var(--ease-out), background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.col-filters button:hover { border-color: rgba(188,44,44,.45); box-shadow: 0 6px 16px rgba(82,18,31,.1); transform: translateY(-1px); }
.col-filters button.is-active { background: linear-gradient(135deg, var(--wine), var(--wine-mid)); color: #fff; border-color: var(--wine); box-shadow: 0 8px 20px rgba(76,15,29,.24); }
.col-search input { min-width: 210px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.85rem; transition: border-color .15s ease, box-shadow .15s ease; }
.col-search input:focus { outline: 0; border-color: rgba(188,44,44,.5); box-shadow: 0 0 0 3px rgba(188,44,44,.12); }

/* Grid */
.col-grid { max-width: 1120px; margin: 24px auto 0; padding: 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.col-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(36,26,28,.05); transition: transform .2s var(--ease-out), box-shadow .2s ease, border-color .2s ease; }
.col-card:hover { transform: translateY(-3px); border-color: rgba(200,161,108,.55); box-shadow: 0 18px 40px rgba(82,18,31,.13); }
.col-card__img { position: relative; min-height: 0; aspect-ratio: 1/1; overflow: hidden; background: linear-gradient(180deg, #fff, var(--paper)); }
.col-card__img img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; transition: transform .25s var(--ease-out); }
.col-card:hover .col-card__img img { transform: scale(1.045); }
.col-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 15px 15px; flex: 1; border-top: 1px solid var(--line); }
.col-card__brand { color: #a2948f; font-size: 0.64rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.col-card__name { min-height: 2.36em; display: -webkit-box; overflow: hidden; color: var(--wine); font-size: 0.92rem; font-weight: 720; line-height: 1.18; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.col-card__cat { color: #a2948f; font-size: 0.7rem; }
.col-card__price { margin-top: auto; padding-top: 9px; color: var(--charcoal); font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.col-card__price small { color: #a2948f; font-size: 0.66rem; font-weight: 600; }
.col-card__add { margin-top: 10px; padding: 12px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--wine), var(--wine-mid)); color: #fff; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 8px 18px rgba(76,15,29,.18); transition: transform .16s var(--ease-out), box-shadow .16s ease, filter .16s ease; }
.col-card__add:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(76,15,29,.26); filter: brightness(1.06); }
.col-card--skeleton { pointer-events: none; }
.col-card--skeleton .col-card__img,
.col-card--skeleton .col-card__body span { background: linear-gradient(100deg, #f1ece7 30%, #faf7f2 48%, #f1ece7 66%); background-size: 240% 100%; animation: col-skeleton 1.3s ease-in-out infinite; }
.col-card--skeleton .col-card__body span { display: block; width: 44%; height: 9px; border-radius: 999px; }
.col-card--skeleton .col-card__body span:nth-child(2) { width: 88%; height: 15px; margin-top: 5px; }
.col-card--skeleton .col-card__body span:nth-child(3) { width: 64%; margin-top: 7px; }
@keyframes col-skeleton { to { background-position-x: -240%; } }
@media (prefers-reduced-motion: reduce) { .col-card--skeleton .col-card__img, .col-card--skeleton .col-card__body span { animation: none; } }
.col-card__qty { margin-top: 10px; display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; border: 1px solid var(--wine); border-radius: 12px; overflow: hidden; }
.col-card__qty button { padding: 10px 0; border: 0; background: var(--paper); color: var(--wine); font-weight: 900; font-size: 1rem; transition: background .15s ease, color .15s ease; }
.col-card__qty button:hover { background: var(--wine); color: #fff; }
.col-card__qty output { text-align: center; font-weight: 800; }
.col-empty { text-align: center; color: var(--muted); padding: 40px 18px; }
.col-more { text-align: center; padding: 28px 18px 10px; }
.col-more button { padding: 13px 28px; border: 1px solid var(--wine); border-radius: 999px; background: transparent; color: var(--wine); font-weight: 800; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.col-more button:hover { background: var(--wine); color: #fff; box-shadow: 0 10px 24px rgba(76,15,29,.22); }

/* Barra de carrinho fixa */
.col-cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; background: linear-gradient(135deg, var(--wine-deep), var(--wine)); border-top: 1px solid rgba(200,161,108,.35); box-shadow: 0 -10px 34px rgba(23,6,9,.35); }
.col-cartbar__summary { display: flex; align-items: baseline; gap: 8px; border: 0; background: transparent; color: #fff; }
.col-cartbar__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--gold); color: var(--wine-deep); font-weight: 900; font-size: 0.85rem; }
.col-cartbar__label { color: rgba(255,255,255,.72); font-size: 0.8rem; }
.col-cartbar__total { color: #fff; font-weight: 800; font-size: 1.05rem; margin-left: 6px; }
.col-cartbar__go { padding: 13px 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 10px 24px rgba(188,44,44,.35); transition: transform .16s var(--ease-out), box-shadow .16s ease, filter .16s ease; }
.col-cartbar__go:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(188,44,44,.42); filter: brightness(1.05); }

/* Painel do carrinho */
.col-cart-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(23,6,9,.6); backdrop-filter: blur(3px); }
.col-cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 46; width: min(420px, 92vw); display: flex; flex-direction: column; background: var(--paper); border-left: 1px solid rgba(200,161,108,.4); box-shadow: -18px 0 50px rgba(0,0,0,.35); }
.col-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: linear-gradient(135deg, var(--wine-deep), var(--wine)); color: #fff; }
.col-cart__head h2 { margin: 0; font-size: 1.1rem; }
.col-cart__head button { border: 0; background: transparent; color: #fff; font-size: 1.3rem; }
.col-cart__items { flex: 1; overflow-y: auto; padding: 12px 16px; }
.col-cart-item { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.col-cart-item img { width: 54px; height: 54px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.col-cart-item__name { font-size: 0.82rem; font-weight: 720; color: var(--wine); }
.col-cart-item__price { font-size: 0.76rem; color: var(--muted); }
.col-cart-item__qty { display: flex; align-items: center; gap: 8px; }
.col-cart-item__qty button { width: 29px; height: 29px; border: 1px solid var(--wine); border-radius: 9px; background: #fff; color: var(--wine); font-weight: 900; transition: background .14s ease, color .14s ease; }
.col-cart-item__qty button:hover { background: var(--wine); color: #fff; }
.col-cart__empty { text-align: center; color: var(--muted); padding: 40px 12px; }
.col-cart__foot { padding: 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.col-cart__line { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 4px 0; }
.col-cart__line--discount { color: #1d7a4d; font-weight: 700; }
.col-cart__line--total { font-size: 1.15rem; font-weight: 800; color: var(--wine); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 6px; }
.col-cart__note { margin: 8px 0 0; color: var(--red); font-size: 0.76rem; font-weight: 600; }
.col-cart__go { width: 100%; margin-top: 14px; padding: 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; font-weight: 900; font-size: 0.9rem; letter-spacing: 0.03em; text-transform: uppercase; box-shadow: 0 12px 26px rgba(188,44,44,.32); transition: transform .16s var(--ease-out), box-shadow .16s ease, filter .16s ease; }
.col-cart__go:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(188,44,44,.4); filter: brightness(1.05); }
.col-cart__legal { margin: 10px 0 0; text-align: center; color: #a2948f; font-size: 0.68rem; }

/* Banner contextual (downsell/upsell) */
.col-context { max-width: 1120px; margin: 16px auto 0; padding: 14px 18px; }
.col-context__inner { display: flex; gap: 12px; align-items: center; padding: 15px 18px; border-radius: 16px; background: linear-gradient(135deg, var(--wine-deep), var(--wine)); border: 1px solid rgba(200,161,108,.35); color: #fff; box-shadow: 0 12px 30px rgba(23,6,9,.2); }
.col-context__inner strong { color: var(--gold-soft); }

.col-footer { padding: 28px 18px; text-align: center; color: #a2948f; font-size: 0.72rem; background: var(--beige); border-top: 1px solid var(--line); }
.col-footer a { color: var(--wine); }

/* Página /catalogo (alias): selo de desconto, catálogo riscado e order bump */
.col-card__off { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 9px; border-radius: 999px; background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.02em; box-shadow: 0 6px 16px rgba(188,44,44,.35); }
.col-card__ref { color: #a2948f; font-size: 0.7rem; }
.col-card__ref del { text-decoration-color: rgba(188,44,44,.6); }
.col-bump { display: grid; grid-template-columns: 30px 1fr; gap: 11px; align-items: start; margin: 0 0 12px; padding: 13px 14px; border: 1px solid rgba(200,161,108,.5); border-radius: 12px; background: rgba(200,161,108,.09); cursor: pointer; }
.col-bump input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.col-bump__check { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--wine); border-radius: 50%; color: var(--wine); font-size: 1rem; font-weight: 900; transition: background .16s ease, color .16s ease, transform .16s ease; }
.col-bump:has(input:checked) { border-color: var(--wine); background: #fdf6ee; box-shadow: 0 8px 22px rgba(76,15,29,.12); }
.col-bump input:checked + .col-bump__check { background: var(--wine); color: #fff; transform: rotate(45deg); }
.col-bump input:focus-visible + .col-bump__check { outline: 3px solid var(--gold); outline-offset: 2px; }
.col-bump__copy strong { display: block; color: var(--wine); font-size: 0.82rem; }
.col-bump__copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 0.68rem; line-height: 1.5; }

/* Toast */
.toast-wrap { position: fixed; z-index: 60; bottom: 84px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 11px 20px; border-radius: 999px; background: var(--wine-deep); border: 1px solid rgba(200,161,108,.4); color: #fff; font-size: 0.78rem; font-weight: 700; box-shadow: 0 14px 36px rgba(0,0,0,.35); }
.toast.err { background: var(--red); border-color: transparent; }

@media (max-width: 640px) {
  .catalog-header-cta { min-height: 40px; padding-inline: 14px; font-size: .61rem; }
  .legal-strip { gap: 7px 10px; font-size: .53rem; }
  .legal-strip span + span::before { margin-right: 10px; }
  .col-toolbar { top: 68px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .col-filters { margin-inline: -18px; padding: 0 18px 5px; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
  .col-filters::-webkit-scrollbar { display: none; }
  .col-filters button { flex: 0 0 auto; }
  .col-search input { width: 100%; min-width: 0; }
  .col-hero__inner { padding-block: 46px 42px; }
  .col-hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .col-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .col-card__img img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
  .col-card__name { font-size: 0.82rem; }
  .col-cartbar__label { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Banner de consentimento: injetado por tracking.js em toda página. Sem estas
   regras ele caía como bloco solto no fim da Coleção, acima da barra do
   carrinho — dois botões sem aparência de botão logo abaixo do catálogo. */
.privacy-consent {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 760px;
  margin: auto;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(200, 161, 108, 0.5);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.privacy-consent strong { color: var(--wine); font-size: 12px; }
.privacy-consent p { margin: 5px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.55; }
.privacy-consent p a { color: var(--red); }
.privacy-consent__actions { display: flex; align-items: center; gap: 8px; }
.privacy-consent__actions button { padding: 10px 14px; border: 1px solid var(--wine); border-radius: 10px; font-size: 10px; font-weight: 780; cursor: pointer; }
#privacyEssential { color: var(--wine); background: transparent; }
#privacyAccept { color: #fff; background: var(--wine); }
@media (max-width: 640px) {
  .privacy-consent { grid-template-columns: 1fr; bottom: 84px; }
  .privacy-consent__actions button { flex: 1; }
}
