/* CC Catálogo v2.23.0 — Design System v3 (redesign cards aprovado Ieda) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ── SCROLLBAR ELEGANTE (página catálogo + painéis) ────────────── */
html:has(#cc-app) { scrollbar-width: thin; scrollbar-color: rgba(212,178,122,.35) #15161B; }
html:has(#cc-app)::-webkit-scrollbar { width: 5px; }
html:has(#cc-app)::-webkit-scrollbar-track { background: #15161B; }
html:has(#cc-app)::-webkit-scrollbar-thumb { background: rgba(212,178,122,.35); border-radius: 3px; }
html:has(#cc-app)::-webkit-scrollbar-thumb:hover { background: #D4B27A; }

/* ── VARIÁVEIS ──────────────────────────────────────────────────── */
.cc {
  --noir:   #08090B;                     /* fundo página */
  --noir-2: #15161B;                     /* card */
  --noir-3: #1C1D23;                     /* superfície / plinth / headers */
  --noir-4: #22232A;                     /* stepper */
  --or:     #D4B27A;
  --or-l:   #E2C99A;
  --or-dim: rgba(212,178,122,.12);
  --or-b:   rgba(212,178,122,.25);
  --txt:    #F5F1E8;                     /* primário marfim */
  --txt2:   rgba(245,241,232,.72);       /* secundário */
  --txt3:   rgba(245,241,232,.60);       /* terciário — nunca abaixo de .55 */
  --bord:   rgba(255,255,255,.10);       /* linhas internas */
  --bord2:  rgba(255,255,255,.14);       /* bordas cards/tabelas */
  --ok:     #7FBF9A;                     /* verde membro */
  --ff:     'Outfit', system-ui, sans-serif;
  --fc:     'Cormorant Garamond', Georgia, serif;
}

/* ── FUNDO POR MODO DE VENDA (v2.50.0, aprovado Ieda) ───────────────
   Pré-venda = PRETO (o default acima, sem classe). Garimpo = AZUL-NAVY
   (`.cc-bg-navy`). Pronta Entrega = VERDE-SINUCA (`.cc-bg-pe`). Só mudam
   ground/superfícies/bordas + o verde-membro; o dourado segue o acento.
   A classe é posta no root pelo template. Especificidade (.cc.cc-bg-x)
   ganha do base .cc; no claro, `body.cc-light .cc.cc-bg-x` ganha do
   `body.cc-light .cc`. */
.cc.cc-bg-navy {              /* Garimpo — navy escuro */
  --noir:#0A0F1E; --noir-2:#111829; --noir-3:#141C31; --noir-4:#1B2540;
  --or-dim:rgba(212,178,122,.14); --or-b:rgba(212,178,122,.28);
  --txt:#F3F1EA; --txt2:rgba(243,241,234,.74); --txt3:rgba(243,241,234,.56);
  --bord:rgba(255,255,255,.10); --bord2:rgba(255,255,255,.15); --ok:#86C9A4;
}
.cc.cc-bg-pe {                /* Pronta Entrega — verde-sinuca escuro (v2.50.1: mais verde p/ descolar do preto) */
  --noir:#0B2215; --noir-2:#122E1D; --noir-3:#153725; --noir-4:#1C422D;
  --or-dim:rgba(212,178,122,.14); --or-b:rgba(212,178,122,.30);
  --txt:#F1F3EE; --txt2:rgba(241,243,238,.74); --txt3:rgba(241,243,238,.56);
  --bord:rgba(255,255,255,.10); --bord2:rgba(255,255,255,.15); --ok:#B7E7C9;
}
/* Tema claro — cada modo puxa a sua cor; cards continuam brancos */
body.cc-light .cc.cc-bg-navy {   /* Garimpo — marfim azulado */
  --noir:#EDF0F6; --noir-2:#FFFFFF; --noir-3:#E3E8F1; --noir-4:#DAE1EE;
  --or:#8A6A2F; --or-l:#6E5320; --or-dim:rgba(138,106,47,.12); --or-b:rgba(138,106,47,.30);
  --txt:#141A24; --txt2:#4A505C; --txt3:#767C88;
  --bord:rgba(20,26,36,.09); --bord2:rgba(20,26,36,.16); --ok:#1E6B48;
}
body.cc-light .cc.cc-bg-pe {     /* Pronta Entrega — marfim esverdeado */
  --noir:#EDF3EC; --noir-2:#FFFFFF; --noir-3:#E2EBDF; --noir-4:#D9E4D5;
  --or:#6E5A24; --or-l:#5A4A1E; --or-dim:rgba(110,90,36,.12); --or-b:rgba(110,90,36,.32);
  --txt:#131A14; --txt2:#495049; --txt3:#757B74;
  --bord:rgba(19,26,20,.09); --bord2:rgba(19,26,20,.16); --ok:#1E6040;
}

/* ── RESET ESCOPO ───────────────────────────────────────────────── */
.cc *, .cc *::before, .cc *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── ESCONDER HEADER/FOOTER DO TEMA ────────────────────────────── */
body:has(.cc) .site-header, body:has(.cc) #masthead,
body:has(.cc) header.site-header, body:has(.cc) .site-header-container,
body:has(.cc) .main-header-bar, body:has(.cc) .header-main, body:has(.cc) .header-area,
body:has(.cc) .top-navigation, body:has(.cc) nav.main-navigation,
body:has(.cc) .wp-block-template-part[class*="header"],
body:has(.cc) header.wp-block-template-part,
body:has(.cc) .wp-site-blocks > header:first-child,
body:has(.cc) .hfeed > header, body:has(.cc) body > header:not(#cc-app header),
body:has(.cc) .site-footer, body:has(.cc) footer.site-footer,
body:has(.cc) #colophon, body:has(.cc) .footer-area,
body:has(.cc) .wp-block-template-part[class*="footer"],
body:has(.cc) footer.wp-block-template-part { display: none !important; }

body:has(.cc) { padding-top: 0 !important; overflow-x: hidden !important; display: block !important; }
body:has(.cc) #page, body:has(.cc) .site, body:has(.cc) #content,
body:has(.cc) .hfeed { padding-top: 0 !important; margin-top: 0 !important; }
body:has(.cc) h1.entry-title, body:has(.cc) .entry-title,
body:has(.cc) h1.page-title, body:has(.cc) .page-title,
body:has(.cc) .wp-block-post-title, body:has(.cc) .entry-header { display: none !important; }
body:has(.cc) .entry-content, body:has(.cc) .page-content,
body:has(.cc) .wp-block-post-content, body:has(.cc) article.hentry,
body:has(.cc) #primary, body:has(.cc) main.site-main {
  padding: 0 !important; margin: 0 !important;
  max-width: 100% !important; overflow: visible !important;
}

/* ── WRAPPER PRINCIPAL (breakout full-width) ────────────────────── */
.cc {
  font-family: 'Outfit', system-ui, sans-serif !important;
  font-size: 20.4px;
  font-weight: 400;
  color: var(--txt);
  background: var(--noir);
  min-height: 100vh;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0 !important;
  overflow-x: clip; /* clip sem criar scroll-container → position:sticky funciona */
}
/* Garantir Outfit em todos os filhos excepto wishlist total */
.cc *:not(.cc-wl-total-val) {
  font-family: 'Outfit', system-ui, sans-serif;
}

/* ── TOPBAR ─────────────────────────────────────────────────────── */
.cc .cc-topbar {
  background: var(--noir-2);
  border-bottom: 1px solid var(--bord);
  position: sticky;
  top: 0;
  z-index: 200;
}
body.admin-bar .cc .cc-topbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .cc .cc-topbar { top: 46px; } }

/* Topbar linha 1 */
.cc .cc-tb-row1 {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 15px 40px;
  border-bottom: 1px solid var(--bord);
  height: 96px;
}
@media (max-width: 640px) {
  .cc .cc-tb-row1 { padding: 11px 20px; height: 74px; }
}

.cc .cc-tb-logo img {
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 640px) { .cc .cc-tb-logo img { height: 48px; } }

.cc .cc-tb-sep {
  width: 1px;
  height: 30px;
  background: var(--bord);
  margin: 0 22px;
  flex-shrink: 0;
}
@media (max-width: 640px) { .cc .cc-tb-sep { margin: 0 12px; } }

.cc .cc-tb-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--noir-3);
  border: 1px solid var(--bord);
  border-radius: 6px;
  padding: 12px 19px;
  transition: border-color .2s;
  max-width: 576px;
}
.cc .cc-tb-search:focus-within { border-color: var(--or-b); }
.cc .cc-search-icon { flex-shrink: 0; color: var(--txt3); }
.cc .cc-tb-search input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--ff);
  font-size: 20.4px;
  font-weight: 400;
  color: var(--txt);
  width: 100%;
  caret-color: var(--or);
}
.cc .cc-tb-search input::placeholder { color: var(--txt3); }

.cc .cc-tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  padding-left: 24px;
}

.cc .cc-tb-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: 6px;
  font-family: var(--ff);
  font-size: 15.6px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid var(--bord);
  background: none;
  color: var(--txt2);
  transition: all .15s;
  white-space: nowrap;
}
.cc .cc-tb-btn:hover { border-color: var(--or-b); color: var(--or); }
a.cc-tb-btn { text-decoration: none; }
.cc .cc-tb-btn.active { border-color: var(--or-b); color: var(--or); background: var(--or-dim); }
.cc .cc-tb-btn-gold { background: var(--or); color: #1A1507; border-color: var(--or); }
.cc .cc-tb-btn-gold:hover { background: var(--or-l); color: #1A1507; }

/* v2.45.9 — Rastreamento = botão PREENCHIDO (destacado) · Garimpo = botão normal com o
   DIAMANTE preenchido de azul (pedido da Ieda). */
/* Rastreamento: botão dourado sólido (como o botão de acção da marca) */
.cc .cc-nav-rast { background: var(--or); color: #1A1507; border-color: var(--or); }
.cc .cc-nav-rast:hover { background: var(--or-l); color: #1A1507; border-color: var(--or-l); }
body.cc-light .cc .cc-nav-rast { color: #EFE6D2; }
/* Garimpo: botão fica NEUTRO (herda o normal); só o diamante é azul E preenchido */
.cc .cc-nav-garimpo svg { fill: #3E8FD6; stroke: #3E8FD6; }
body.cc-light .cc .cc-nav-garimpo svg { fill: #185FA5; stroke: #185FA5; }
/* v2.46.1 — Lista Rápida: botão neutro (herda o normal); rótulo curto "Lista" só no mobile */
.cc .cc-nav-lista .cc-nav-short { display: none; }

.cc .cc-wl-badge {
  background: #0C0D0F;
  color: var(--or);
  font-size: 12px;
  font-weight: 400;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin-left: 2px;
}
/* @media (max-width: 480px) — span:not removido (era nó de texto; coberto pelo fix 768px) */

/* Topbar linha 2 — chips */
/* Topbar linha 2 — MODO DE VENDA (esq.) + Lista/Filtros (dir.) — v2.49.0.
   Substitui a antiga faixa de chips (que rolava). Altura ~64px: o topbar
   continua ~162px, então os offsets sticky do painel ficam válidos. */
.cc .cc-tb-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 40px;
}
@media (max-width: 640px) { .cc .cc-tb-row2 { padding: 8px 19px; } }
.cc .cc-tb-row2-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Seletor de modo de venda (segmentado; o modo atual acende em dourado) */
.cc .cc-modes {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  background: var(--noir-3);
  border: 1px solid var(--bord2);
  border-radius: 26px;
}
.cc .cc-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 22px;
  font-family: var(--ff);
  font-size: 15.6px;
  letter-spacing: .04em;
  font-weight: 400;
  color: var(--txt2);
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all .15s;
}
a.cc-mode { text-decoration: none; }
.cc .cc-mode svg { flex-shrink: 0; }
.cc .cc-mode .cc-mode-short { display: none; }
.cc .cc-mode:hover { color: var(--txt); }
.cc .cc-mode.active {
  background: var(--or);
  color: #1A1507;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(212,178,122,.32);
}
body.cc-light .cc .cc-mode.active { color: #EFE6D2; box-shadow: 0 2px 10px rgba(138,106,47,.26); }
.cc .cc-mode.disabled { opacity: .4; pointer-events: none; }
.cc .cc-mode.locked svg { opacity: .7; }

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.cc .cc-layout {
  display: flex;
  min-height: calc(100vh - 162px);
}

/* Grid (lista de produtos) */
.cc .cc-grid-wrap {
  flex: 1;
  padding: 29px 34px;
  min-width: 0;
}
@media (max-width: 640px) { .cc .cc-grid-wrap { padding: 19px; } }

.cc .cc-prod-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Contador de vinhos — v2.10.3 */
.cc .cc-prod-count {
  font-size: 14.4px;
  color: var(--txt3);
  letter-spacing: .04em;
  padding: 4px 0 6px;
  min-height: 20px;
}

/* Loading / empty */
.cc .cc-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 20px;
  color: var(--txt3);
  font-size: 15.6px;
}
.cc .cc-spin {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--bord2);
  border-top-color: var(--or);
  border-radius: 50%;
  animation: cccat-spin .9s linear infinite;
}
@keyframes cccat-spin { to { transform: rotate(360deg); } }

.cc .cc-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--txt3);
  font-family: var(--fc);
  font-style: italic;
  font-size: 22.8px;
}

/* ── PRODUCT CARD ───────────────────────────────────────────────── */
.cc .prod-card {
  display: flex;
  background: var(--noir-2);
  border: 1px solid var(--bord2);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.cc .prod-card:hover { border-color: var(--or-b); transform: translateY(-1px); }
.cc .prod-card.in-wl { border-color: rgba(212,178,122,.4); }

/* v2.45.1: o bloco "CARD COMPACTO mobile" mudou-se para o FIM do ficheiro —
   aqui as regras base (.prod-info flex etc.), que vêm mais abaixo, ganhavam-lhe
   na cascata e o card ficava espremido numa coluna ao lado da foto. */

/* Carousel (lado esquerdo) */
.cc .prod-carousel {
  position: relative;
  overflow: hidden;
  background: var(--noir-3);
  display: flex;
  flex-direction: column;
  width: 400px;
  height: 420px;
  flex-shrink: 0;
  align-self: flex-start;
}
@media (max-width: 1200px) { .cc .prod-carousel { width: 340px; } }
@media (max-width: 900px)  { .cc .prod-carousel { width: 280px; } }
/* v2.45.1: o bloco mobile do carousel (foto flutuante) também vive agora no FIM
   do ficheiro, junto ao card compacto. */

.cc .carousel-track-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  transform: translateZ(0); /* forçar camada GPU — overflow:hidden clipa transforms correctamente */
}
.cc .carousel-track {
  display: flex;
  width: 100%;    /* explícito: base para translateX(-100%) = 1 slide */
  height: 100%;
  min-height: 350px;
  transition: transform .3s ease;
}
.cc .carousel-slide {
  flex: 0 0 100%; /* flex-basis:100% do track = 1 slide width — mais fiável que min-width */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--noir-3);
}
.cc .carousel-slide img,
.cc .carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc .carousel-slide-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: .55;
  color: var(--or);
}
.cc .carousel-slide-placeholder span {
  font-size: 13.2px;
  color: var(--txt3);
  letter-spacing: .08em;
}

/* Setas carousel */
.cc .carousel-prev,
.cc .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(12,13,15,.75);
  border: 1px solid var(--bord2);
  color: var(--txt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  z-index: 2;
  padding: 0;
}
.cc .carousel-prev { left: 6px; }
.cc .carousel-next { right: 6px; }
.cc .carousel-prev:hover,
.cc .carousel-next:hover { background: var(--or); color: #1A1507; border-color: var(--or); }

/* Badge de região */
.cc .prod-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--or);
  color: #1A1507;
  font-family: var(--ff);
  font-size: 13.2px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 2px;
}

/* Dots */
.cc .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 7px 0;
  background: var(--noir-3);
  flex-shrink: 0;
}
.cc .carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bord2);
  cursor: pointer;
  transition: all .15s;
}
.cc .carousel-dot.on {
  background: var(--or);
  width: 14px;
  border-radius: 3px;
}

/* Info (lado direito) */
.cc .prod-info {
  flex: 1;
  padding: 19px 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cc .prod-info-bottom {
  width: 95%;
  margin: 5px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Nome */
.cc .prod-name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 21.6px;
  font-weight: 400;
  color: var(--txt);
  line-height: 1.45;
}

/* v2.29.0: SKU do container no card — 1 card por sku_container */
.cc .prod-sku {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--or);
  opacity: .85;
  margin-top: 2px;
}

/* Nota scores — v2.23.0: linha abaixo da zona de compra (sem caixa) */
.cc .prod-nota {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  flex-wrap: wrap;
}
.cc .prod-nota-label {
  font-family: var(--ff);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 400;
  flex-shrink: 0;
}
.cc .prod-nota-scores {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cc .nota-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: var(--noir-3);
  border: 1px solid rgba(212,178,122,.33);
  border-radius: 3px;
  padding: 2px 8px;
}
body.cc-light .cc .nota-score { border-color: rgba(138,106,47,.33); }
.cc .ns-safra {
  font-family: var(--ff);
  font-size: 10px;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-right: 6px;
  margin-right: 2px;
  border-right: 1px solid rgba(212,178,122,.25);
  white-space: nowrap;
}
body.cc-light .cc .ns-safra { border-right-color: rgba(138,106,47,.25); }
.cc .ns-critic {
  font-family: var(--ff);
  font-size: 13.2px;
  color: var(--txt3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cc .ns-pts {
  font-family: var(--ff);
  font-size: 15.6px;
  color: var(--txt);
  font-weight: 500;
}

/* v2.23.0 — Zona de descrições: gatilhos em linha (desktop) / empilhados (mobile) */
.cc .prod-desc-zone {
  border-top: 1px solid var(--bord);
  padding-top: 12px;
}
.cc .prod-desc-accordion {
  margin: 0;
  border: none;
  padding: 0;
}
.cc .prod-desc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--txt3);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 0;
  transition: color .15s;
}
.cc .prod-desc-toggle:hover { color: var(--or); }
.cc .prod-desc-toggle.open  { color: var(--or); }
.cc .prod-desc-chevron { transition: transform .25s; flex-shrink: 0; }
.cc .prod-desc-toggle.open .prod-desc-chevron { transform: rotate(180deg); }
.cc .prod-desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  padding-top: 0;
}
.cc .prod-desc.open {
  max-height: 3000px;
  padding-top: 12px;
}
/* 3 secções SAFRA / VINHO / PRODUTOR */
.cc .prod-desc-safra    { color: var(--txt); font-size: 18px; line-height: 1.65; }
.cc .prod-desc-geral    { color: var(--txt); font-size: 18px; line-height: 1.65; }
.cc .prod-desc-produtor { color: var(--txt); font-size: 18px; line-height: 1.65; }
/* Preview do 1º parágrafo da safra — Cormorant itálico, sempre visível */
.cc .prod-desc-preview {
  font-family: var(--fc);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245,241,232,.85);
  padding-top: 10px;
  padding-bottom: 4px;
}
body.cc-light .cc .prod-desc-preview { color: #3A352B; }
.cc .prod-desc-preview p:first-child { margin-top: 0; }
.cc .prod-desc-preview p:last-child  { margin-bottom: 0; }
/* Teaser do Vinho — 1ª linha clampada com … (v2.25.0) */
.cc .prod-desc-teaser {
  font-family: var(--ff);
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245,241,232,.85);
  padding-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color .15s;
}
.cc .prod-desc-teaser:hover { color: var(--or); }
body.cc-light .cc .prod-desc-teaser { color: #3A352B; }
.cc .prod-desc-teaser.hide { display: none; }
/* Desktop ≥641px: gatilhos numa linha horizontal; preview e painéis em linhas próprias */
@media (min-width: 641px) {
  .cc .prod-desc-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 0 22px;
    align-items: center;
  }
  .cc .prod-desc-zone .prod-desc-accordion { display: contents; }
  .cc .prod-desc-zone .prod-desc-toggle {
    order: 1;
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 7px;
  }
  .cc .prod-desc-zone .prod-desc-preview { order: 2; flex: 1 1 100%; }
  .cc .prod-desc-zone .prod-desc-teaser  { order: 2; flex: 1 1 100%; min-width: 0; }
  .cc .prod-desc-zone .prod-desc        { order: 3; flex: 1 1 100%; }
}
/* Mobile ≤640px: gatilhos numa LINHA (v2.45.0 — poupam altura no card compacto);
   os painéis abertos ocupam a largura toda */
@media (max-width: 640px) {
  .cc .prod-desc-zone {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
  }
  /* mesmo truque do desktop: o wrapper do acordeão dissolve-se na zona (display:contents)
     para o gatilho ficar em linha e o painel aberto ocupar a largura toda */
  .cc .prod-desc-zone .prod-desc-accordion { display: contents; }
  .cc .prod-desc-zone .prod-desc-toggle { order: 1; width: auto; flex: 0 0 auto; justify-content: flex-start; gap: 7px; }
  .cc .prod-desc-zone .prod-desc { order: 3; flex: 1 1 100%; }
}

/* Zona de compra — tabela à esquerda + painel à direita (v2.23.0) */
.cc .prod-price-box {
  display: flex;
  gap: 10px;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}
.cc .ppb-table {
  flex: 1 1 auto;          /* sem painel (sob consulta / PE) ocupa toda a largura */
  min-width: 0;
  border: 1px solid var(--bord2);
  border-radius: 3px;
  overflow: hidden;
  background: var(--noir-2);
}
.cc .ppb-action {
  flex: 0 0 150px;
  border: 1px solid var(--bord2);
  border-radius: 3px;
  background: var(--noir-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  gap: 10px;
}
.cc .ppb-action-label {
  font-family: var(--ff);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--or);
  text-align: center;
}
.cc .ppb-action .qty-stepper { align-self: center; }
.cc .ppb-action .btn-add { flex: 0 0 auto; width: 100%; }
/* v2.35.0: "Pedir este vinho" (módulo procura — esgotado de pré-venda) */
.cc .ppb-pedir { flex: 0 0 170px; }
.cc .ppb-pedir .pp-note {
  font-family: var(--ff);
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--or);
  opacity: .8;
  text-align: center;
}
.cc .ppb-pedir .pp-ok {
  font-family: var(--ff);
  font-size: 12px;
  line-height: 1.35;
  color: var(--ok, #7FBF9A);
  text-align: center;
  font-weight: 500;
}
/* v2.31.0: aviso de estoque limitado */
.cc .prod-stock-note {
  margin-top: 8px;
  font-family: var(--ff);
  font-size: 12.5px;
  font-weight: 500;
  color: #C9892F;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cc .ppb-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--noir-3);          /* banda de superfície */
  border-bottom: 1px solid var(--bord);
}
.cc .ppb-col-hd {
  padding: 8px 12px;
  font-family: var(--ff);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt3);
  font-weight: 400;
  text-align: center;
  border-right: 1px solid var(--bord);
}
.cc .ppb-col-hd:last-child { border-right: none; }
.cc .ppb-col-hd.gold { color: var(--or); }

.cc .ppb-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--bord);
}
.cc .ppb-row:last-child { border-bottom: none; }

.cc .ppb-cell {
  padding: 10px 12px;
  text-align: center;
  border-right: 1px solid var(--bord);
  transition: background .15s;
}
.cc .ppb-cell:last-child { border-right: none; }

.cc .ppb-row-label {
  padding: 10px 12px;
  font-family: var(--ff);
  font-size: 16.8px;
  color: var(--txt2);
  font-weight: 400;
  border-right: 1px solid var(--bord);
  display: flex;
  align-items: center;
  text-align: left;
}
.cc .ppb-row-label.membre { color: var(--ok); font-weight: 500; }

.cc .ppb-price {
  font-family: var(--ff);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--txt);
  line-height: 1;
}
/* linha Membre: valores em verde weight 500; membro+fechada em gold/bronze */
.cc .ppb-price.member { color: var(--ok); font-weight: 500; }
.cc .ppb-price.member-fech { color: var(--or); }
.cc .curr {
  font-size: .55em;
  font-weight: 400;
  opacity: .7;
  vertical-align: middle;
  margin-right: 1px;
}

/* ── Preço-herói: riscado + membro grande + caption, MESMA LINHA (v2.23.0) ── */
.cc .prod-price-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: nowrap;          /* wrap só permitido <360px (media query abaixo) */
  min-width: 0;
  margin-bottom: 10px;
}
.cc .prod-price-was {
  font-family: var(--ff);
  font-size: 1rem;
  font-weight: 400;
  color: var(--txt3);
  text-decoration: line-through;
  text-decoration-color: rgba(245,241,232,.45);
  flex-shrink: 0;
}
.cc .prod-price-was .curr { font-size: .6em; }
.cc .prod-price-now {
  font-family: var(--ff);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--or);
  line-height: 1;
  flex-shrink: 0;
}
.cc .prod-price-now .curr { font-size: .55em; opacity: .9; margin-right: 2px; }
.cc .prod-price-tag {
  font-family: var(--ff);
  font-size: 13.2px;
  font-weight: 400;
  color: var(--txt2);
  letter-spacing: .04em;
  white-space: nowrap;        /* nunca quebra; reduz para 11px antes (≤480px) */
}
@media (max-width: 480px) {
  .cc .prod-price-tag { font-size: 11px; }
}
@media (max-width: 359px) {
  .cc .prod-price-hero { flex-wrap: wrap; }   /* wrap só em mobile muito estreito */
}

/* Área de adicionar */
.cc .prod-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stepper */
.cc .qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--bord);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.cc .qty-btn {
  width: 38px;
  height: 43px;
  background: var(--noir-4);
  border: none;
  color: var(--txt2);
  cursor: pointer;
  font-size: 24px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .14s;
  font-family: var(--ff);
}
.cc .qty-btn:hover { background: var(--or-dim); color: var(--or); }
.cc .qty-val {
  width: 43px;
  height: 43px;
  text-align: center;
  font-family: var(--ff);
  font-size: 20.4px;
  font-weight: 400;
  color: var(--txt);
  background: var(--noir-4);
  border: none;
  border-left: 1px solid var(--bord);
  border-right: 1px solid var(--bord);
  outline: none;
  -moz-appearance: textfield;
  padding: 0;
}
.cc .qty-val::-webkit-inner-spin-button,
.cc .qty-val::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Botão adicionar */
.cc .btn-add {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border-radius: 4px;
  font-family: var(--ff);
  font-size: 15.6px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  background: var(--or);
  color: #1A1507;
  border: none;
  transition: all .17s;
}
.cc .btn-add:hover { background: var(--or-l); }
.cc .btn-add.in {
  background: var(--or-dim);
  color: var(--or);
  border: 1px solid var(--or-b);
}
.cc .btn-add.in:hover { background: rgba(212,178,122,.2); }
/* v2.0.2 — sem stock */
.cc .btn-add.btn-sob-consulta,
.cc .btn-add.btn-sob-consulta:hover {
  background: #1e1e28;
  color: #888;
  border: 1px solid #333;
  cursor: not-allowed;
  opacity: .75;
}
.cc .prod-badge-stock-out {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #A32D2D;
  color: #fff;
  font-family: var(--ff);
  font-size: 13.2px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 2px;
}

/* ── PAINEL FILTROS (sidebar direita) ───────────────────────────── */
.cc .cc-filter-panel::-webkit-scrollbar { width: 3px; }
.cc .cc-filter-panel::-webkit-scrollbar-track { background: transparent; }
.cc .cc-filter-panel::-webkit-scrollbar-thumb { background: rgba(212,178,122,.3); border-radius: 2px; }
.cc .cc-filter-panel::-webkit-scrollbar-thumb:hover { background: #D4B27A; }

.cc .cc-filter-panel {
  width: 320px;
  flex-shrink: 0;
  background: var(--noir-2);
  border-left: 1px solid var(--bord);
  scrollbar-width: thin;
  scrollbar-color: rgba(212,178,122,.3) transparent;
  padding: 24px 22px;
  overflow-y: auto;
  transition: width .3s, padding .3s, opacity .3s;
  position: sticky;
  top: 162px; /* topbar height: row1 96px + row2 ~66px */
  max-height: calc(100vh - 162px);
}
body.admin-bar .cc .cc-filter-panel { top: calc(162px + 32px); max-height: calc(100vh - 162px - 32px); }
@media (max-width: 782px) { body.admin-bar .cc .cc-filter-panel { top: calc(162px + 46px); } }

.cc .cc-filter-panel.closed {
  width: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  .cc .cc-filter-panel {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 86%; max-width: 360px;
    height: 100%; max-height: 100%;
    padding: 24px 22px;
    z-index: 400;
    border-left: 1px solid var(--or-b);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -12px 0 60px rgba(0,0,0,.55);
    opacity: 1;
  }
  body.admin-bar .cc .cc-filter-panel { top: 0; max-height: 100%; }
  .cc .cc-filter-panel.closed {
    width: 86%; max-width: 360px; padding: 24px 22px; opacity: 1;
    pointer-events: none; transform: translateX(100%);
  }
  .cc .cc-filter-panel:not(.closed) { transform: translateX(0); pointer-events: auto; }
  .cc .cc-fp-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.6); z-index: 399;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  }
  .cc .cc-fp-overlay.on { display: block; }
}

/* Secções do painel */
.cc .fp-section { margin-bottom: 26px; }
.cc .fp-title {
  font-family: var(--ff);
  font-size: 15.6px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 400;
  margin-bottom: 12px;
}
.cc .fp-sort-label {
  font-family: var(--ff);
  font-size: 15.6px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 400;
  margin-bottom: 12px;
}
.cc .fp-options { display: flex; flex-direction: column; gap: 6px; }

.cc .fp-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--ff);
  font-size: 18px;
  font-weight: 400;
  color: var(--txt2);
  transition: all .13s;
  border: 1px solid transparent;
}
.cc .fp-option:hover { color: var(--txt); background: rgba(255,255,255,.03); }
.cc .fp-option.sel { color: var(--or); background: var(--or-dim); border-color: var(--or-b); }
.cc .fp-option input[type="checkbox"] {
  accent-color: var(--or);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Sort (radio estilo dot) */
.cc .fp-sort-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.cc .fp-sort-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--ff);
  font-size: 18px;
  font-weight: 400;
  color: var(--txt2);
  transition: all .13s;
  border: 1px solid transparent;
}
.cc .fp-sort-opt:hover { color: var(--txt); background: rgba(255,255,255,.03); }
.cc .fp-sort-opt.sel { color: var(--or); background: var(--or-dim); border-color: var(--or-b); }
.cc .fp-sort-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--bord2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.cc .fp-sort-opt.sel .fp-sort-dot { background: var(--or); border-color: var(--or); }
.cc .fp-sort-opt.sel .fp-sort-dot::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0C0D0F;
}

/* Range preço */
.cc .fp-range-wrap { margin-top: 6px; }
.cc .fp-range {
  width: 100%;
  accent-color: var(--or);
  cursor: pointer;
}
.cc .fp-range-val {
  font-family: var(--ff);
  font-size: 18px;
  font-weight: 500;
  color: var(--txt2);
  margin-top: 7px;
}

.cc .fp-sep { height: 1px; background: var(--bord); margin: 22px 0; }

/* ── Régua DUPLA (Safra de/até — poupa espaço, como o preço) ──────── */
/* Dica/exemplo por secção do filtro (a Ieda pediu exemplos — "o que é nota?") */
.cc .fp-hint { font-family: var(--ff); font-size: 12px; color: var(--txt2); line-height: 1.5; margin: -2px 0 8px; }

/* Região / AOP agrupado — região clicável + ▸ abre as AOPs dela */
.cc .fp-reg-blk { margin-bottom: 2px; }
.cc .fp-reg-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cc .fp-reg-row .fp-reg-lbl { flex: 1; min-width: 0; }
.cc .fp-reg-tgl { flex-shrink: 0; background: none; border: 0; color: var(--txt3); cursor: pointer; font-size: 13px; line-height: 1; padding: 4px 8px; transition: transform .15s, color .15s; }
.cc .fp-reg-tgl.open { transform: rotate(90deg); color: var(--or); }
.cc .fp-aop-group { margin: 2px 0 8px 10px; padding-left: 10px; border-left: 1px solid var(--bord); }

/* Acordeão "mais regiões" (v2.51.0) — 3 visíveis, resto escondido; botão claro em dourado */
.cc .fp-reg-more[hidden] { display: none; }
.cc .fp-reg-more-tgl {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
  color: var(--or); font-family: var(--ff); font-size: 15px; font-weight: 500;
  letter-spacing: .02em; padding: 10px 11px 4px; margin-top: 2px;
}
.cc .fp-reg-more-tgl:hover { color: var(--or-l); text-decoration: underline; }
.cc .fp-reg-more-tgl .chev { font-size: 12px; line-height: 1; }

.cc .fp-dual { position: relative; height: 30px; margin: 8px 0 2px; }
.cc .fp-dual-rail { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 3px; background: var(--noir-4); }
.cc .fp-dual-fill { position: absolute; top: 13px; height: 4px; border-radius: 3px; background: var(--or); }
.cc .fp-dual input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 30px; margin: 0; background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none; }
.cc .fp-dual input[type=range]::-webkit-slider-runnable-track { background: transparent; border: 0; }
.cc .fp-dual input[type=range]::-moz-range-track { background: transparent; border: 0; }
.cc .fp-dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 17px; height: 17px; margin-top: 6px; border-radius: 50%; background: var(--or); border: 2px solid var(--noir-2); cursor: pointer; }
.cc .fp-dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 17px; height: 17px; border-radius: 50%; background: var(--or); border: 2px solid var(--noir-2); cursor: pointer; }

/* v2.45.10 — filtros Safra/Notas em TAGS (multi-selecção) */
.cc .fp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.cc .fp-tag {
  font-family: var(--ff); font-size: 13px; padding: 6px 12px; border-radius: 16px;
  border: 1px solid var(--bord2); background: var(--noir-3); color: var(--txt2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.cc .fp-tag:hover { border-color: var(--or-b); color: var(--or); }
.cc .fp-tag.sel { background: var(--or); border-color: var(--or); color: #1A1507; font-weight: 500; }
body.cc-light .cc .fp-tag.sel { color: #EFE6D2; }

.cc .fp-clear {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  background: none;
  border: 1px solid var(--bord);
  color: var(--txt3);
  font-family: var(--ff);
  font-size: 15.6px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: all .15s;
  margin-top: 10px;
}
.cc .fp-clear:hover { border-color: var(--or-b); color: var(--or); }

/* ── PAGINAÇÃO + SELECTOR POR PÁGINA ───────────────────────────── */
.cc .cc-pag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 0 48px;
}
.cc .cc-pag-row {
  display: flex;
  gap: 7px;
  justify-content: center;
  flex-wrap: wrap;
}
.cc .cc-pp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0 0;
}
.cc .cc-pp-label {
  font-family: var(--ff);
  font-size: 14.4px;
  font-weight: 400;
  color: var(--txt3);
  letter-spacing: .07em;
  margin-right: 4px;
}
.cc .cc-pp-btn {
  min-width: 40px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--bord);
  background: var(--noir-2);
  color: var(--txt3);
  font-family: var(--ff);
  font-size: 14.4px;
  font-weight: 400;
  cursor: pointer;
  transition: all .15s;
  padding: 0 10px;
}
.cc .cc-pp-btn:hover { border-color: var(--or-b); color: var(--or); }
.cc .cc-pp-btn.on { background: var(--or-dim); border-color: var(--or-b); color: var(--or); font-weight: 400; }
.cc .cc-pg {
  min-width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid var(--bord);
  background: var(--noir-2);
  color: var(--txt3);
  font-family: var(--ff);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
}
.cc .cc-pg:hover { border-color: var(--or-b); color: var(--or); background: var(--or-dim); }
.cc .cc-pg.on { background: var(--or); border-color: var(--or); color: #1A1507; }
.cc .cc-pg:disabled { opacity: .18; cursor: not-allowed; }

/* ── WISHLIST PANEL ─────────────────────────────────────────────── */
.cc .cc-wl-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 300;
  backdrop-filter: blur(3px);
}
.cc .cc-wl-overlay.on { display: block; }

.cc .cc-wl-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 42%;
  max-width: 580px;
  background: var(--noir-2);
  z-index: 400;
  border-left: 1px solid var(--or-b);
  display: flex;
  flex-direction: column;
  overflow: hidden;            /* impede filhos de escapar do painel */
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -12px 0 60px rgba(0,0,0,.6);
}
@media (max-width: 768px) {
  .cc .cc-wl-panel { width: 100%; max-width: 100%; }
}
.cc .cc-wl-panel.open { transform: translateX(0); }

.cc .cc-wl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bord);
  background: var(--noir);
  flex-shrink: 0;
}
.cc .cc-wl-title {
  font-family: var(--ff);
  font-size: 1.38rem;
  font-weight: 400;
  color: var(--txt);
}
.cc .cc-wl-close {
  background: none;
  border: none;
  color: var(--txt3);
  cursor: pointer;
  transition: color .15s;
  padding: 4px;
  display: flex;
  align-items: center;
}
.cc .cc-wl-close:hover { color: var(--txt); }

/* Steps */
.cc .cc-wl-steps {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--bord);
  gap: 0;
  flex-shrink: 0;
}
.cc .cc-wl-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff);
  font-size: 13.2px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--txt3);
  font-weight: 400;
  flex: 1;
}
.cc .cc-wl-step.active { color: var(--or); }
.cc .cc-wl-step.done { color: var(--txt2); }
.cc .cc-wl-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 400;
  border: 1px solid var(--bord);
  color: var(--txt3);
  flex-shrink: 0;
  transition: all .2s;
}
.cc .cc-wl-step.active .cc-wl-step-num { background: var(--or); color: #1A1507; border-color: var(--or); }
.cc .cc-wl-step.done .cc-wl-step-num { background: var(--or-dim); color: var(--or); border-color: var(--or-b); }
.cc .cc-wl-step-sep { width: 20px; height: 1px; background: var(--bord); margin: 0 4px; flex-shrink: 0; }

/* ── Botão de avanço no top bar (ao lado de "Wishlist") ── */
.cc .cc-wl-top-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc .cc-wl-top-cta:empty { display: none; }

/* Mesmo estilo exacto do botão WISHLIST da topbar */
.cc .wl-top-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: 6px;
  font-family: var(--ff);
  font-size: 15.6px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  border: 1px solid var(--or);
  background: var(--or);
  color: #1A1507;
  transition: all .15s;
  white-space: nowrap;
}
.cc .wl-top-btn:hover:not([disabled]) { background: var(--or-l); border-color: var(--or-l); }
.cc .wl-top-btn[disabled] {
  background: transparent;
  border-color: var(--bord);
  color: var(--txt3);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ── Barra CTA — entre steps e body (mensagem step1 / botão step2) ── */
.cc .cc-wl-cta { flex-shrink: 0; border-bottom: 1px solid var(--bord); }
.cc .cc-wl-cta:empty { display: none; border: none; }
.cc .cc-wl-cta-inner {
  padding: 9px 18px;
  background: rgba(212,178,122,.06);
  display: flex;
  align-items: center;
  gap: 7px;
}
.cc .wl-cta-msg {
  font-family: var(--ff);
  font-size: 14.4px;
  font-weight: 400;
  color: var(--or);
  line-height: 1.4;
  margin: 0;
  opacity: 0.85;
}
.cc .wl-cta-msg strong { font-weight: 400; }

/* Botão Finalizar Wishlist — ocupa toda a largura do painel, grande e dourado */
.cc .wl-fin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  background: #D4B27A;
  color: #1A1507;
  border: none;
  border-radius: 0;
  font-family: var(--ff);
  font-size: 16.8px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cc .wl-fin-btn:hover { background: #E2C99A; }
.cc .wl-fin-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Aviso */
.cc .cc-wl-warn {
  margin: 0;
  padding: 11px 22px;
  background: var(--noir-3);
  border-bottom: 1px solid var(--bord);
  font-family: var(--ff);
  font-size: 16.8px;
  font-weight: 400;
  color: var(--txt3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Body — ocupa espaço restante e rola; footer fica sempre colado ao fundo */
.cc .cc-wl-body {
  flex: 1 1 0%;       /* basis 0% força o flex a não ter mínimo automático */
  min-height: 0;      /* necessário para flex child poder encolher */
  overflow-y: auto;
  overflow-x: hidden;
  padding: 17px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc .cc-wl-body::-webkit-scrollbar { width: 3px; }
.cc .cc-wl-body::-webkit-scrollbar-thumb { background: var(--bord); border-radius: 2px; }

.cc .cc-wl-empty {
  text-align: center;
  color: var(--txt3);
  font-family: var(--fc);
  font-style: italic;
  font-size: 20.4px;
  padding: 48px 0;
}

/* Item wishlist */
.cc .wl-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  background: var(--noir-3);
  border: 1px solid var(--bord);
  border-radius: 3px;
}
.cc .wl-thumb {
  width: 62px;
  height: 74px;
  background: var(--noir-4);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.cc .wl-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc .wl-item-name {
  font-family: var(--ff);
  font-size: 18px;
  font-weight: 400;
  color: var(--txt);
  line-height: 1.35;
}
.cc .wl-item-sub {
  font-family: var(--ff);
  font-size: 15.6px;
  font-weight: 400;
  color: var(--txt3);
  margin-top: 4px;
}
.cc .wl-item-price {
  font-family: var(--fc);
  font-size: 1.26rem;
  color: var(--or);
  white-space: nowrap;
}
.cc .wl-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cc .wl-qty {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cc .wl-qty-btn {
  width: 29px;
  height: 29px;
  border-radius: 3px;
  background: none;
  border: 1px solid var(--bord);
  color: var(--txt2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: var(--ff);
  font-weight: 400;
  transition: all .13s;
}
.cc .wl-qty-btn:hover { border-color: var(--or-b); color: var(--or); }
.cc .wl-qty-val {
  font-family: var(--ff);
  font-size: 18px;
  font-weight: 400;
  color: var(--txt);
  min-width: 24px;
  text-align: center;
}
.cc .wl-remove {
  background: none;
  border: none;
  color: var(--txt3);
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color .13s;
}
.cc .wl-remove:hover { color: #d46b5a; }

/* Aviso regra múltiplo de 6 */
.cc .wl-rule-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(212,178,122,.08);
  border: 1px solid rgba(212,178,122,.25);
  border-radius: 3px;
  font-family: var(--ff);
  font-size: 15.6px;
  font-weight: 400;
  color: var(--or);
  line-height: 1.5;
  flex-shrink: 0;
}
.cc .wl-rule-warn svg { flex-shrink: 0; margin-top: 1px; }
.cc .wl-rule-warn strong { font-weight: 400; }

/* Textarea observações */
.cc .wl-obs-wrap { display: flex; flex-direction: column; gap: 6px; }
.cc .wl-obs-label {
  font-family: var(--ff);
  font-size: 13.2px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 400;
}
.cc .wl-obs {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bord);
  border-radius: 3px;
  background: var(--noir-3);
  color: var(--txt);
  font-family: var(--ff);
  font-size: 15.6px;
  font-weight: 400;
  resize: none;
  outline: none;
  transition: border-color .2s;
  caret-color: var(--or);
}
.cc .wl-obs:focus { border-color: var(--or-b); }
.cc .wl-obs::placeholder { color: var(--txt3); }

/* Footer wishlist */
.cc .cc-wl-foot {
  padding: 14px 18px;
  /* safe-area para iOS (notch/home-indicator não tapar o botão) */
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--bord);
  background: var(--noir);
  flex: 0 0 auto;     /* nunca cresce, nunca encolhe, altura = conteúdo */
}
.cc .cc-wl-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.cc .cc-wl-total-lbl {
  font-family: var(--ff);
  font-size: 13.2px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--txt3);
  font-weight: 400;
}
.cc .cc-wl-total-val {
  font-family: var(--fc);
  font-size: 1.92rem;
  color: var(--or);
  font-weight: 400;
}
.cc .cc-wl-foot-btn {
  width: 100%;
  padding: 13px;
  background: var(--or);
  color: #1A1507;
  border: none;
  font-family: var(--ff);
  font-size: 14.4px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
  border-radius: 3px;
  transition: background .2s;
}
.cc .cc-wl-foot-btn:hover { background: var(--or-l); }
.cc .cc-wl-foot-btn:disabled { opacity: .5; cursor: not-allowed; }

/* Botão Voltar CTA (step 2 → step 1) — sempre visível na área fixa */
.cc .cc-wl-back-btn {
  display: block;
  margin: 8px 16px 4px;
  background: none;
  border: 1px solid var(--bord2);
  color: var(--txt2);
  font-family: var(--ff);
  font-size: 13.2px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .06em;
}
.cc .cc-wl-back-btn:hover {
  border-color: var(--or-b);
  color: var(--or);
  background: var(--or-dim);
}

/* Botão Voltar legado (step 2 → step 1) */
.cc .wl-back-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--txt3);
  font-family: var(--ff);
  font-size: 14.4px;
  font-weight: 400;
  letter-spacing: .06em;
  cursor: pointer;
  padding: 0 0 10px;
  text-align: center;
  transition: color .15s;
}
.cc .wl-back-btn:hover { color: var(--txt2); }

/* ── DADOS DO CLIENTE (step 2) ──────────────────────────────────── */
.cc .cc-wl-cliente {
  margin: -17px -22px 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bord);
  background: var(--noir-3);
}
.cc .cc-wlc-label {
  font-size: 10.8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 600;
  margin-bottom: 10px;
}
.cc .cc-wlc-fields { display: flex; flex-direction: column; }
.cc .cc-wlc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--bord);
}
.cc .cc-wlc-row:last-child { border-bottom: none; }
.cc .cc-wlc-key {
  font-size: 12px;
  color: var(--txt3);
  width: 68px;
  flex-shrink: 0;
}
.cc .cc-wlc-val {
  flex: 1;
  background: none;
  border: none;
  color: var(--txt);
  font-size: 14.4px;
  font-family: var(--ff);
  padding: 2px 4px;
  border-radius: 3px;
  outline: none;
  transition: background .15s;
}
.cc .cc-wlc-val:focus { background: var(--or-dim); }

/* ── ENDEREÇO DE ENTREGA (step 2) ───────────────────────────────── */
.cc .cc-wl-endereco {
  margin: 0 -22px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--bord);
}
.cc .cc-wle-label {
  font-size: 10.8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt3);
  font-weight: 600;
  margin-bottom: 10px;
}
.cc .cc-wle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--bord);
}
.cc .cc-wle-row:last-child { border-bottom: none; }
.cc .cc-wle-key {
  font-size: 12px;
  color: var(--txt3);
  width: 68px;
  flex-shrink: 0;
}
.cc .cc-wle-val {
  flex: 1;
  background: none;
  border: none;
  color: var(--txt);
  font-size: 14.4px;
  font-family: var(--ff);
  padding: 2px 4px;
  border-radius: 3px;
  outline: none;
  transition: background .15s;
}
.cc .cc-wle-val:focus { background: var(--or-dim); }
.cc .cc-wle-val[readonly] { color: var(--txt3); cursor: default; }
.cc .cc-wle-status {
  font-size: 13.2px;
  color: var(--ok);
  flex-shrink: 0;
  min-width: 16px;
  text-align: center;
}
body.cc-light .cc .cc-wle-val { color: var(--txt); }
body.cc-light .cc .cc-wle-val[readonly] { color: rgba(17,14,8,.35); }

/* ── WISHLIST STEP 2 — Checkout ─────────────────────────────────── */

/* Container lista compacta */
.cc .wl-checkout-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

/* Item compacto (passo 2) — herda wl-item, reduz tamanho */
.cc .wl-item.wl-item-sm {
  padding: 9px 12px;
  gap: 10px;
}

/* Thumb pequeno */
.cc .wl-thumb.wl-thumb-sm {
  width: 42px;
  height: 52px;
}

/* Bloco de checkout (endereço, etc.) */
.cc .wl-checkout-block {
  padding: 14px 16px;
  background: var(--noir-3);
  border: 1px solid var(--bord);
  border-radius: 3px;
  margin-bottom: 14px;
}

/* Label de secção (com ícone) */
.cc .wl-checkout-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--or);
  font-weight: 400;
  margin-bottom: 10px;
}

/* Endereço completo */
.cc .wl-checkout-addr {
  font-family: var(--ff);
  font-size: 15.6px;
  font-weight: 400;
  color: var(--txt2);
  line-height: 1.65;
}
.cc .wl-checkout-addr strong {
  color: var(--txt);
  font-weight: 400;
}

/* Sem endereço configurado */
.cc .wl-checkout-no-addr {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: var(--ff);
  font-size: 15.6px;
  font-weight: 400;
  color: var(--txt3);
  line-height: 1.55;
  font-style: italic;
}

/* ── WISHLIST STEP 3 — Sucesso ───────────────────────────────────── */
.cc .wl-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 30px 40px;
  gap: 16px;
  min-height: 280px;
}

.cc .wl-success-icon {
  font-size: 3.6rem;
  color: var(--or);
  line-height: 1;
  opacity: .85;
  animation: wl-pop .5s cubic-bezier(.34,1.56,.64,1) forwards;
}

@keyframes wl-pop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1);  opacity: .85; }
}

.cc .wl-success-title {
  font-family: var(--ff);
  font-size: 1.62rem;
  font-weight: 400;
  color: var(--txt);
  letter-spacing: .03em;
}

.cc .wl-success-msg {
  font-family: var(--fc);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--txt2);
  line-height: 1.6;
  max-width: 340px;
}

/* ── SELECTOR DE SERVIÇO (step 2) ───────────────────────────────── */
.cc .wl-servico-opts {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cc .wl-servico-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 3px;
  border: 1px solid var(--bord);
  cursor: pointer;
  font-family: var(--ff);
  font-size: 16.8px;
  font-weight: 400;
  color: var(--txt2);
  transition: all .13s;
}
.cc .wl-servico-opt:hover { border-color: var(--or-b); color: var(--txt); }
.cc .wl-servico-opt.sel   { border-color: var(--or-b); background: var(--or-dim); color: var(--or); }
.cc .wl-servico-opt input[type="radio"] {
  accent-color: var(--or);
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.cc .wl-servico-fee {
  margin-left: auto;
  font-size: 14.4px;
  letter-spacing: .06em;
  color: var(--txt3);
}
.cc .wl-servico-opt.sel .wl-servico-fee { color: var(--or); }

/* ── TOAST ──────────────────────────────────────────────────────── */
.cc .cc-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--noir-3);
  color: var(--txt);
  padding: 9px 22px;
  border-radius: 24px;
  font-family: var(--ff);
  font-size: 14.4px;
  font-weight: 400;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: all .28s ease;
  white-space: nowrap;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  border: 1px solid var(--bord2);
  letter-spacing: .04em;
}

/* ─── Scrollbar light ─── */
body.cc-light html:has(#cc-app) {
  scrollbar-color: rgba(138,106,47,.35) #EFE9DC;
}
body.cc-light html:has(#cc-app)::-webkit-scrollbar-track { background: #EFE9DC; }
body.cc-light html:has(#cc-app)::-webkit-scrollbar-thumb { background: rgba(138,106,47,.35); }
body.cc-light html:has(#cc-app)::-webkit-scrollbar-thumb:hover { background: #8A6A2F; }

/* ─── VARIÁVEIS tema claro v2.23.0 — branco sobre marfim (não beges empilhados) ─── */
body.cc-light .cc {
  --noir:    #F7F2E9;                  /* fundo página marfim */
  --noir-2:  #FFFFFF;                  /* card branco */
  --noir-3:  #FAF7F0;                  /* superfície / headers */
  --noir-4:  #F2EDE3;                  /* plinth imagem / stepper */
  --or:      #8A6A2F;                  /* accent bronze */
  --or-l:    #A58544;
  --or-dim:  rgba(138,106,47,.10);
  --or-b:    rgba(138,106,47,.30);
  --txt:     #17130C;
  --txt2:    #5C5648;
  --txt3:    #7A7263;
  --bord:    rgba(26,21,10,.08);       /* linhas internas */
  --bord2:   rgba(26,21,10,.10);       /* bordas cards/tabelas */
  --ok:      #1E6040;                  /* verde membro */
  background: var(--noir);
  color:      var(--txt);
}

/* ─── Overrides hardcoded no CSS base ─── */
body.cc-light .cc .btn-add                   { color: #EFE6D2; }
body.cc-light .cc .btn-add.in                { color: var(--or); }
body.cc-light .cc .cc-tb-btn-gold            { color: #EFE6D2; }
body.cc-light .cc .prod-badge                { color: #EFE6D2; }
body.cc-light .cc .btn-add.btn-sob-consulta,
body.cc-light .cc .btn-add.btn-sob-consulta:hover {
  background: #EDE6D8;
  color: rgba(26,21,10,.42);
  border-color: rgba(26,21,10,.12);
}
body.cc-light .cc .cc-wl-cliente { background: var(--noir-3); }
body.cc-light .cc .cc-wlc-val { color: var(--txt); }
body.cc-light .cc .qty-val { color: var(--txt); background: var(--noir-4); }
/* plinth da imagem em light: #F2EDE3 (carousel usa --noir-3 no dark) */
body.cc-light .cc .prod-carousel,
body.cc-light .cc .carousel-slide,
body.cc-light .cc .carousel-dots { background: #F2EDE3; }

/* ─── Botão toggle ─── */
.cc .cc-theme-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--bord2);
  color: var(--txt3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
  flex-shrink: 0;
  padding: 0;
}
.cc .cc-theme-btn:hover {
  border-color: var(--or-b);
  color: var(--or);
  background: var(--or-dim);
}
.cc .cc-theme-btn svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.cc .cc-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Nome do cliente logado — topbar direita (v2.8.2) ── */
.cc-client-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--odim, rgba(212,178,122,.12));
  border: 1px solid var(--bord2, rgba(212,178,122,.28));
  border-radius: 20px;
  white-space: nowrap;
  max-width: 220px;
}
.cc-client-tag-icon {
  color: var(--or, #D4B27A);
  font-size: 15.6px;
  flex-shrink: 0;
  opacity: .7;
}
.cc-client-tag-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15.6px;
  font-weight: 500;
  color: var(--or, #D4B27A);
  letter-spacing: .03em;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Light mode */
body.cc-light .cc-client-tag {
  background: rgba(138,106,47,.10);
  border-color: rgba(138,106,47,.25);
}
body.cc-light .cc-client-tag-name,
body.cc-light .cc-client-tag-icon {
  color: var(--or, #8A6A2F);
}
/* Mobile: oculto em ecrãs muito pequenos */
@media (max-width: 480px) {
  .cc-client-tag { display: none; }
}

/* ── Linha de preço hero em telemóvel ───────────────────────────── */
@media (max-width: 480px) {
  .cc .prod-info { min-width: 0; }
  .cc .prod-price-hero { flex-wrap: nowrap; gap: 5px; align-items: baseline; }
  .cc .prod-price-was { font-size: .8rem; flex-shrink: 0; }
  .cc .prod-price-now { font-size: 1.3rem; flex-shrink: 0; }
  .cc .prod-price-tag { white-space: nowrap; font-size: 11px; }
  /* headers da tabela abreviam: "Mista" / "Fechada" */
  .cc .ppb-header .ppb-col-hd:nth-child(2),
  .cc .ppb-header .ppb-col-hd:nth-child(3) { font-size: 0; letter-spacing: 0; }
  .cc .ppb-header .ppb-col-hd:nth-child(2)::after { content: 'Mixte'; font-size: 10px; letter-spacing: .14em; }
  .cc .ppb-header .ppb-col-hd:nth-child(3)::after { content: 'Complète'; font-size: 10px; letter-spacing: .14em; }
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT PAGE  (cc-checkout-page / #cc-checkout-app)
   ═══════════════════════════════════════════════════════════════ */

/* Scrollbar */
html:has(#cc-checkout-app) { scrollbar-width: thin; scrollbar-color: rgba(212,178,122,.35) #15161B; }
html:has(#cc-checkout-app)::-webkit-scrollbar { width: 5px; }
html:has(#cc-checkout-app)::-webkit-scrollbar-track { background: #15161B; }
html:has(#cc-checkout-app)::-webkit-scrollbar-thumb { background: rgba(212,178,122,.35); border-radius: 3px; }

/* Topbar título (row 2 no checkout: só label, sem chips) */
.cc .cc-tb-checkout-title {
  font-size: 13.2px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--txt3);
}

/* Topbar visível no checkout — override explícito contra CSS do tema WP */
.cc-checkout-page .cc-topbar,
.cc-checkout-page .cc-tb-row1,
.cc-checkout-page .cc-tb-right {
  display: flex !important;
}

/* Botão Compartilhar no checkout */
.cc-checkout-page .cc-share-btn {
  display: inline-flex !important;
}

/* Layout */
.cc-checkout-page .cc-checkout-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Spinner */
.cc-checkout-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}
.cc-spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--bord);
  border-top-color: var(--or);
  border-radius: 50%;
  animation: cc-spin .7s linear infinite;
}
@keyframes cc-spin { to { transform: rotate(360deg); } }

/* Secções */
.co-section {
  border-top: 1px solid var(--bord);
  padding: 24px 0 8px;
}
.co-section:first-child { border-top: none; }
.co-section-title {
  font-family: var(--ff);
  font-size: 12px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--txt3);
  margin-bottom: 14px;
  display: block;
}

/* Campos cliente + endereço */
.co-fields { display: flex; flex-direction: column; gap: 10px; }
.co-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.co-key {
  font-family: var(--ff);
  font-size: 14.4px;
  color: var(--txt3);
  min-width: 80px;
  flex-shrink: 0;
}
.co-val {
  flex: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--bord);
  border-radius: 4px;
  color: var(--txt);
  font-family: var(--ff);
  font-size: 15.6px;
  padding: 7px 10px;
  transition: border-color .15s;
}
.co-val:focus { outline: none; border-color: var(--or); }
.co-val[readonly] { opacity: .55; cursor: default; }
/* Valor read-only sem chrome de input — dados do cliente (v2.9.11) */
.co-cli-ro {
  flex: 1;
  color: var(--txt2);
  font-family: var(--ff);
  font-size: 15.6px;
  font-weight: 400;
  padding: 7px 0;
  line-height: 1.4;
}
.co-cep-status {
  font-size: 16.8px;
  width: 18px;
  text-align: center;
  color: var(--or);
}

/* Observações */
.co-obs {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--bord);
  border-radius: 4px;
  color: var(--txt);
  font-family: var(--ff);
  font-size: 15.6px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 72px;
  box-sizing: border-box;
}
.co-obs:focus { outline: none; border-color: var(--or); }

/* ─── Items do pedido ─────────────────────────────────────────── */
.co-items { display: flex; flex-direction: column; }

.co-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.co-item:last-child { border-bottom: none; }

.co-thumb {
  width: 64px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--bord);
  background: rgba(255,255,255,.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.co-item-info { flex: 1; min-width: 0; }
.co-item-chave {
  font-family: var(--ff);
  font-size: 16.8px;
  font-weight: 600;
  color: var(--or);
  line-height: 1.3;
  margin-bottom: 4px;
}
.co-item-sub {
  font-size: 13.2px;
  color: var(--txt3);
  margin-bottom: 4px;
}
.co-item-detalhe {
  font-size: 13.2px;
  color: var(--txt3);
  font-style: italic;
}

.co-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.co-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}
.co-qty-btn {
  width: 26px; height: 26px;
  border: 1px solid var(--bord);
  background: transparent;
  color: var(--txt);
  border-radius: 3px;
  font-size: 16.8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, color .15s;
}
.co-qty-btn:hover { border-color: var(--or); color: var(--or); }
.co-qty-val {
  font-family: var(--ff);
  font-size: 15.6px;
  min-width: 24px;
  text-align: center;
  color: var(--txt);
}
.co-item-subtotal {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19.2px;
  color: var(--txt);
  font-weight: 400;
}
.co-item-subtotal .curr { font-size: 13.2px; color: var(--txt3); }
.co-remove {
  background: none;
  border: none;
  color: var(--txt3);
  cursor: pointer;
  padding: 2px;
  opacity: .6;
  transition: opacity .15s, color .15s;
}
.co-remove:hover { opacity: 1; color: #c0392b; }

/* ─── Warning múltiplo de 6 ──────────────────────────────────── */
.co-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,178,122,.08);
  border: 1px solid rgba(212,178,122,.25);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14.4px;
  color: var(--or);
  margin-bottom: 16px;
}
.co-warning strong { font-weight: 600; }

/* ─── Footer: total + botão ──────────────────────────────────── */
.co-footer {
  position: sticky;
  bottom: 0;
  background: var(--noir);
  border-top: 1px solid var(--bord);
  padding: 20px 0 28px;
  margin-top: 8px;
}
.co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

/* ─── Frete + campos obrigatórios (v2.26.0) ──────────────────── */
.co-frete-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.co-frete-label {
  font-family: var(--ff);
  font-size: 13.2px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt3);
}
.co-frete-val {
  font-family: var(--ff);
  font-size: 16px;
  color: var(--txt);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.co-frete-val .curr { font-size: 12px; color: var(--txt3); }
.co-frete-hint   { font-size: 12.5px; color: var(--txt3); }
.co-frete-gratis { color: var(--ok, #7FBF9A); letter-spacing: .08em; text-transform: uppercase; font-size: 13.5px; }
.co-req-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--or);
  margin-bottom: 12px;
}
.co-total-label {
  font-family: var(--ff);
  font-size: 13.2px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--txt3);
}
.co-total-val {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28.8px;
  font-weight: 400;
  color: var(--txt);
}
.co-total-val .curr { font-size: 15.6px; color: var(--txt3); }

.co-fin-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--or);
  color: #1A1507;
  border: none;
  border-radius: 4px;
  font-family: var(--ff);
  font-size: 14.4px;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s;
  box-sizing: border-box;
}
.co-fin-btn:hover:not(:disabled) { opacity: .88; }
.co-fin-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ─── Sucesso ────────────────────────────────────────────────── */
.co-success {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.co-success-icon {
  font-size: 62.4px;
  color: var(--or);
  font-family: 'Cormorant Garamond', Georgia, serif;
  animation: wl-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.co-success-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 33.6px;
  color: var(--txt);
  font-weight: 400;
}
.co-success-msg {
  font-size: 16.8px;
  color: var(--txt2);
  max-width: 360px;
  line-height: 1.7;
}

/* ─── Vazio ──────────────────────────────────────────────────── */
.co-empty {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.co-empty-icon { font-size: 48px; }
.co-empty-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26.4px;
  color: var(--txt);
}
.co-empty-msg { font-size: 15.6px; color: var(--txt3); }

/* ─── Footer com dois botões ─────────────────────────────────── */
.co-footer-btns {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.co-share-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 18px;
  background: transparent;
  border: 1px solid var(--bord);
  border-radius: 4px;
  color: var(--txt2);
  font-family: var(--ff);
  font-size: 14.4px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s;
}
.co-share-btn:hover { border-color: var(--or); color: var(--or); }
.co-footer-btns .co-fin-btn { flex: 1; }

/* ─── Layout v2.27.0: cards + 2 colunas desktop ──────────────── */
.co-cols {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 8px;
}
.co-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.co-card {
  background: var(--noir-2);
  border: 1px solid var(--bord2);
  border-radius: 4px;
  padding: 20px 22px;
}
.co-card .co-items .co-item:first-child { padding-top: 0; }
.co-card .co-items .co-item:last-child  { padding-bottom: 4px; }
.co-card .co-obs { margin-bottom: 0; }

/* Preços unitários no item (v2.27.0: substituem região/safra/detalhe) */
.co-item-precos {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.co-item-was {
  font-family: var(--ff);
  font-size: 13.5px;
  color: var(--txt3);
  text-decoration: line-through;
}
.co-item-was .curr { font-size: 11px; }
.co-item-now {
  font-family: var(--ff);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--txt);
}
.co-item-now .curr { font-size: 12px; color: var(--txt3); }
.co-item-gar { font-size: 12px; color: var(--txt3); }
.co-item-qtd { font-size: 12.5px; color: var(--txt3); }

/* Desktop ≥900px: cliente à esquerda, pedido à direita */
@media (min-width: 900px) {
  .cc-checkout-page .cc-checkout-wrap { max-width: 1120px; }
  .co-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }
  .co-col-cliente { grid-column: 1; grid-row: 1; }
  .co-col-pedido  { grid-column: 2; grid-row: 1; }
}

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cc-checkout-page .cc-checkout-wrap { padding: 20px 16px 80px; }
  .co-thumb { width: 52px; height: 66px; }
  .co-item-chave { font-size: 15.6px; }
  .co-total-val { font-size: 24px; }
  .co-footer-btns { flex-direction: column-reverse; }
  .co-share-btn   { justify-content: center; }
  .co-card { padding: 16px; }
}

/* Light theme overrides para checkout */
body.cc-light .co-val { background: rgba(0,0,0,.04); }
body.cc-light .co-obs { background: rgba(0,0,0,.04); }
body.cc-light .co-footer { background: var(--noir); }

/* ── Botão partilhar selecção ───────────────────────────────────── */
.cc-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--bord);
  background: transparent;
  color: var(--txt2);
  border-radius: 4px;
  font-family: var(--ff);
  font-size: 13.2px;
  letter-spacing: .10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.cc-share-btn:hover {
  border-color: var(--or);
  color: var(--or);
}
@media (max-width: 480px) {
  .cc-share-btn { padding: 7px 8px; }
  .cc-share-btn svg + * { display: none; }
}

/* Light: fundos de marca em bronze (v2.23.0) */
body.cc-light .cc .cc-tb-btn-gold,
body.cc-light .cc .prod-badge,
body.cc-light .cc .cc-pg.on,
body.cc-light .cc .wl-top-btn,
body.cc-light .cc .cc-wl-step.active .cc-wl-step-num,
body.cc-light .cc .cc-wl-foot-btn,
body.cc-light .cc .carousel-prev:hover,
body.cc-light .cc .carousel-next:hover {
  background: #8A6A2F;
  border-color: #8A6A2F;
}
/* Light: CTA (Adicionar / Finalizar) — fundo quase-preto, texto marfim */
body.cc-light .cc .btn-add,
body.cc-light .cc .co-fin-btn {
  background: #17130C;
  border-color: #17130C;
  color: #EFE6D2;
}
body.cc-light .cc .btn-add:hover { background: #2B2517; }
body.cc-light .cc .btn-add.in {
  background: var(--or-dim);
  border-color: var(--or-b);
  color: var(--or);
}
body.cc-light .cc .btn-add.btn-sob-consulta,
body.cc-light .cc .btn-add.btn-sob-consulta:hover {
  background: #EDE6D8;
  color: rgba(26,21,10,.42);
  border-color: rgba(26,21,10,.12);
}
/* Light: riscado do preço antigo legível sobre branco */
body.cc-light .cc .prod-price-was { text-decoration-color: rgba(26,21,10,.40); }

/* ── Cabeçalho mobile v2.49.0 — 2 linhas c/ seletor de modo ──
   Linha 1: logo (encolhe) + busca larga + Rastreamento (ícone).
   Linha 2: os 3 modos ocupam a largura (segmentos iguais, rótulo curto) +
            Lista rápida (ícone) + Filtros (ícone + contador).
   Wishlist vira botão FLUTUANTE (canto inf. direito). Tema vive no painel.
   Desktop (>768px) NÃO é tocado. */
@media (max-width: 768px) {
  .cc .cc-tb-row1 { flex-wrap: nowrap; height: auto; padding: 10px 12px; gap: 8px; }
  .cc .cc-tb-sep { display: none; }
  .cc .cc-tb-logo { flex: 0 0 auto; min-width: 0; }
  .cc .cc-tb-logo img { height: 34px; max-width: 84px; width: auto; object-fit: contain; object-position: left center; }
  .cc .cc-client-tag { display: none; }
  .cc .cc-tb-search { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; max-width: none; }
  .cc .cc-tb-search input { font-size: 15px; }
  .cc .cc-tb-right { gap: 6px; margin-left: 0; padding-left: 0; flex-shrink: 0; }
  /* tema sai do cabeçalho (vive no painel de filtros); no checkout mantém-se */
  body:not(.cc-checkout-page) .cc .cc-theme-btn { display: none; }
  /* Rastreamento → só ícone */
  .cc .cc-nav-rast { padding: 0; width: 44px; height: 44px; justify-content: center; border-radius: 12px; flex-shrink: 0; }
  .cc .cc-nav-rast .cc-tb-lbl { display: none; }
  .cc .cc-nav-rast svg { width: 18px; height: 18px; }
  /* Wishlist → botão flutuante com o contador */
  .cc #ccWLBtn { position: fixed; bottom: 22px; right: 18px; z-index: 290;
    width: 58px; height: 58px; border-radius: 50%; padding: 0; font-size: 0; gap: 0;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.45); }
  .cc #ccWLBtn svg { width: 23px; height: 23px; }
  .cc #ccWLBtn .cc-wl-badge { position: absolute; top: 0; right: 0; }

  /* LINHA 2: modos a toda a largura + Lista/Filtros só-ícone */
  .cc .cc-tb-row2 { padding: 8px 12px; gap: 8px; }
  .cc .cc-modes { flex: 1 1 auto; display: flex; padding: 3px; border-radius: 22px; }
  .cc .cc-mode { flex: 1; justify-content: center; height: 40px; padding: 0 6px; gap: 4px; font-size: 12.5px; letter-spacing: .01em; }
  .cc .cc-mode svg { display: none; }               /* no mobile o rótulo curto basta */
  .cc .cc-mode .cc-mode-full { display: none; }
  .cc .cc-mode .cc-mode-short { display: inline; }
  .cc .cc-tb-row2-right { flex-shrink: 0; gap: 6px; }
  .cc .cc-nav-lista { padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 12px; }
  .cc .cc-nav-lista .cc-nav-full, .cc .cc-nav-lista .cc-nav-short { display: none; }
  .cc .cc-nav-lista svg { width: 16px; height: 16px; }
  .cc #ccFToggle { height: 40px; padding: 0 11px; font-size: 0; gap: 4px;
    color: var(--or); border-color: var(--or-b); background: var(--or-dim); border-radius: 10px; }
  .cc #ccFToggle .cc-tb-lbl { display: none; }
  .cc #ccFToggle svg { width: 16px; height: 16px; }

  /* ao descer (.cc-scrolled via JS): esconde a linha 2 p/ encurtar o cabeçalho */
  .cc .cc-topbar.cc-scrolled .cc-tb-row2 { display: none; }
}

/* Contador de filtros activos no botão Filtros (JS actualiza; visível só no mobile) */
.cc .cc-f-badge { display: none; }
@media (max-width: 768px) {
  .cc .cc-f-badge { display: inline-block; background: var(--or); color: #1A1507;
    font-size: 11px; font-weight: 700; line-height: 1; border-radius: 10px; padding: 3px 7px; }
  .cc .cc-f-badge[data-n="0"] { display: none; }
  body.cc-light .cc .cc-f-badge { color: #fff; }
}

/* Secção "Tema" dentro do painel de filtros — só aparece no mobile */
.cc .fp-theme-sec { display: none; }
@media (max-width: 768px) {
  .cc .fp-theme-sec { display: block; margin-bottom: 14px; }
  .cc .fp-theme-sw { display: flex; border: 1px solid var(--bord2); border-radius: 8px; overflow: hidden; margin-top: 8px; }
  .cc .fp-theme-b { flex: 1; padding: 10px; background: none; border: none; color: var(--txt2);
    font-size: 13.5px; cursor: pointer; font-family: var(--ff); }
  .cc .fp-theme-b.sel { background: var(--or-dim); color: var(--or); font-weight: 600; }
}

/* ── Garimpo em construção — botão bloqueado + tag amarelo "meio em cima" (v2.43.0) ── */
.cc .cc-garimpo-constr-btn {
  position: relative;
  overflow: visible;
  opacity: .62;
  cursor: not-allowed;
  pointer-events: none;
}
.cc .cc-garimpo-constr {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: #F2C230;
  color: #3A2E05;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  pointer-events: none;
  z-index: 5;
}

/* ══ CARD COMPACTO MOBILE v2.45.1 — TEM de viver no FIM do ficheiro ══
   As regras base (.prod-info { display:flex } etc.) vêm acima e têm a mesma
   especificidade: se este bloco estiver antes delas, perdem-lhe a cascata e o
   card fica espremido numa coluna ao lado da foto (bug reportado pela Ieda).
   Foto pequena à esquerda (float) + nome/preço ao lado + tabela na largura toda. */
@media (max-width: 760px) {
  .cc .prod-card { display: block; }
  /* Foto pequena flutuante à esquerda — caixa QUASE QUADRADA fixa 104×112 (v2.45.5,
     escolha da Ieda): a foto aparece INTEIRA dentro (object-fit: contain) e a caixa
     é igual para todos os cards. A altura adaptativa da v2.45.4 estourava a coluna
     (conflito com a mecânica de alturas do carrossel — slides height:100%). */
  .cc .prod-carousel { float: left; width: 104px; height: 112px; min-height: 0;
    margin: 12px 12px 6px 14px; border-radius: 4px; }
  /* ⚠️ CAUSA-RAIZ da "caixa vazia" (v2.45.6): o base tem .carousel-track{min-height:350px}
     — dentro da caixa de 112px a fita ficava com 350px e a imagem (centrada na fita)
     caía FORA da janela visível. Na caixa pequena a fita = caixa. */
  .cc .prod-carousel .carousel-track { min-height: 0; height: 100%; }
  .cc .prod-carousel .carousel-slide img,
  .cc .prod-carousel .carousel-slide video { object-fit: contain; padding: 3px; box-sizing: border-box; }
  .cc .carousel-prev, .cc .carousel-next, .cc .carousel-dots { display: none; }
  /* badge da região SAI da foto no mobile (a foto é pequena — não tapar; pedido da Ieda) */
  .cc .prod-badge { display: none; }
  .cc .prod-badge-stock-out { top: auto; bottom: 6px; left: 6px; right: 6px;
    font-size: 8.5px; padding: 2px 4px; text-align: center; }
  /* info em fluxo normal (sem flex) para o texto fluir ao lado do float */
  .cc .prod-info { display: block; padding: 12px 14px 14px; min-width: 0; }
  .cc .prod-info-bottom { display: block; width: 100%; margin: 0; }
  .cc .prod-info-bottom > * + * { margin-top: 9px; }
  .cc .prod-name { font-size: 15.5px; line-height: 1.35; }
  .cc .prod-sku { font-size: 10.5px; }
  /* preço-herói pode QUEBRAR linha — com nowrap o "/ garrafa · membro · cx fechada"
     saía da tela cortado ao lado da foto (v2.45.2) */
  .cc .prod-price-hero { flex-wrap: wrap; row-gap: 2px; }
  .cc .prod-price-now { font-size: 1.35rem; }
  .cc .prod-price-was { font-size: .85rem; }
  .cc .prod-price-tag { font-size: 9px; }
  /* tabela + comprar LIMPAM o float → largura toda por baixo da foto */
  .cc .prod-price-box { flex-direction: column; clear: both; padding-top: 2px; }
  .cc .ppb-cell { padding: 7px 6px; }
  .cc .ppb-price { font-size: 1.02rem; }
  /* painel de compra = BARRA horizontal abaixo da tabela */
  .cc .ppb-action {
    flex: 0 0 auto;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 10px;
    gap: 10px;
  }
  .cc .ppb-action-label { display: none; }
  .cc .ppb-action .qty-stepper { flex: 0 0 auto; }
  .cc .ppb-action .qty-btn { width: 34px; height: 38px; }
  .cc .ppb-action .qty-val { width: 38px; height: 38px; }
  .cc .ppb-action .btn-add { flex: 1; width: auto; height: 38px; padding: 0 14px; }
  /* notas + gatilhos Safra·Vinho·Produtor numa linha (poupam altura) */
  .cc .prod-nota { flex-wrap: wrap; }
  .cc .prod-desc-zone { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .cc .prod-desc-zone .prod-desc-accordion { display: contents; }
  .cc .prod-desc-zone .prod-desc-toggle { order: 1; width: auto; flex: 0 0 auto; justify-content: flex-start; gap: 7px; }
  .cc .prod-desc-zone .prod-desc { order: 3; flex: 1 1 100%; }
  /* preview/teaser da safra escondidos no mobile (o acordeão abre na mesma) */
  .cc .prod-desc-preview, .cc .prod-desc-teaser { display: none; }
}
