@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500&family=Sora:wght@300;400;600;700&display=swap');

/* =========================================================================
   PALETA SERIGRAFIA / RISOGRAFIA (Tinta chapada sobre papel)
   Site: Rei do Copo (reidocopo.gestaoestronda.com.br)
   ========================================================================= */

:root {
  color-scheme: light;

  /* Papel / Superfícies */
  --paper: #FBF6EE;       /* Fundo geral da página */
  --paper-2: #F4ECE0;     /* Seções alternadas, rodapé, gaveta */
  --card: #FFFDF9;        /* Cartões de produtos, controles */

  /* Tintas */
  --ink: #2A2833;         /* Texto principal, contornos firmes de 2px */
  --ink-soft: #5E5A68;    /* Texto secundário (contraste 6,2:1) */
  --line: rgba(42, 40, 51, 0.14);
  --accent: #B84A36;      /* Terracota para destaques, links e ênfase */

  /* Pastéis Chapados por Categoria */
  --pink: #F4B6C2;        /* Taças */
  --mint: #BFE3D0;        /* Squeezes */
  --blue: #BCD6EE;        /* Copos */
  --butter: #F8E3A3;      /* Canecas */
  --lilac: #D9CCF0;       /* Outros / Geral */
  --peach: #FFFFFF;       /* Filtro "Todos", destaques, sacola e botões em branco puro */

  /* Palcos Escuros & Ações */
  --stage: #17151C;       /* Palco profundo emoldurado para vídeo e vitrine 360° */
  --wa: #25D366;          /* Verde oficial WhatsApp */

  /* Sombras Deslocadas de Serigrafia (Offset / Fora de registro) */
  --print-shadow: 4px 4px 0 var(--ink);
  --print-shadow-sm: 3px 3px 0 var(--ink);
  --print-shadow-lg: 8px 8px 0 var(--ink);

  /* Tipografia & Formas */
  --font-title: 'Fraunces', Georgia, serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --radius-card: 20px;
  --radius-btn: 999px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Compatibilidade com Ficha de Modelos */
  --bg: var(--paper);
  --ln: var(--line);
  --tx: var(--ink);
  --mut: var(--ink-soft);
  --ac: var(--accent);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--paper);
  color: var(--ink);
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Fundo com a foto oficial Rei do Copo: mais visível, com leve desfoque e sem pontilhados */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-grid::before {
  content: "";
  position: absolute;
  inset: -25px;
  background-image: url("img/bg-reidocopo.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(5px);
  transform: scale(1.02);
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(251, 246, 238, 0.74) 0%, rgba(244, 236, 224, 0.78) 100%);
  pointer-events: none;
}

/* Acessibilidade: foco de teclado visível */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  transition: all var(--transition-fast);
}

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

/* =========================================
   1. MENU FIXO (NAVBAR)
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right));
  background: rgba(251, 246, 238, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--ink);
  z-index: 100;
  transition: background var(--transition-fast);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-brand-logo {
  height: 44px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.nav-brand:hover .nav-brand-logo {
  transform: scale(1.04);
}

.nav-brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 6px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* =========================================
   2. TOPO (HERO) & VÍDEO EM LOOP EMOLDURADO
   ========================================= */
.hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  align-items: center;
  padding: 100px max(24px, env(safe-area-inset-right)) 60px max(24px, env(safe-area-inset-left));
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-text-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: var(--radius-btn);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 2px 2px 0 var(--ink);
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* Botões com Estética Serigráfica (Tinta Chapada e Sombra Fora de Registro) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-btn);
  box-shadow: 3px 3px 0 var(--pink);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--pink);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-secondary:hover {
  background: #F4ECE0;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent;
}

/* Indicador Discreto de Rolagem no Hero */
.hero-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  margin-top: 4px;
  opacity: 0.85;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hero-scroll-hint:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateY(2px);
}

.scroll-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: scrollBounce 2s infinite ease-in-out;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Vídeo do Topo: Palco Escuro Emoldurado (como pôster de serigrafia) */
.hero .hc,
.hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero .hv {
  position: absolute;
  right: 2vw;
  top: 50%;
  height: min(108svh, 920px);
  aspect-ratio: 9/16;
  margin-top: calc(min(108svh, 920px) / -2);
  object-fit: cover;
  pointer-events: none;
  z-index: 1;
  background: var(--stage);
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--butter);
  overflow: hidden;
  -webkit-mask: none;
  mask: none;
}

/* =========================================
   3. VITRINE 360° (#reel - PALCO ESCURO EMOLDURADO)
   ========================================= */
#reel {
  position: relative;
  width: calc(100% - 48px);
  max-width: 1250px;
  margin: 24px auto;
  height: calc(100svh - 48px);
  background: var(--stage) !important;
  color: var(--paper) !important;
  border: 2px solid var(--ink);
  border-radius: 32px;
  box-shadow: 8px 8px 0 var(--pink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Canvas 576x1024 com máscara suave para o palco */
#cv {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 130vh;
  height: 130svh;
  width: auto;
  aspect-ratio: 9 / 16;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 50% 56% at 50% 48%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 56% at 50% 48%, #000 58%, transparent 100%);
}

.reel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(40px, env(safe-area-inset-right)) 0 max(40px, env(safe-area-inset-left));
  pointer-events: none;
  z-index: 5;
}

.reel-left {
  max-width: 440px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.38s ease, transform 0.38s ease;
  z-index: 6;
}

.reel-left.fade-out {
  opacity: 0;
  transform: translateY(14px);
}

.reel-counter {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #E2C27D;
  text-transform: uppercase;
}

.reel-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.15;
  color: var(--paper);
}

.reel-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(251, 246, 238, 0.72);
}

.reel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  width: fit-content;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.reel-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.reel-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent;
}

.reel-btn.added {
  background: var(--wa);
  color: var(--ink);
  border-color: var(--wa);
  box-shadow: 3px 3px 0 var(--ink);
}

/* Pontos Verticais (11) */
.reel-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  z-index: 6;
}

.reel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(251, 246, 238, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-dot.active {
  height: 26px;
  border-radius: 999px;
  background: #E2C27D;
  box-shadow: 0 0 10px rgba(226, 194, 125, 0.6);
}

/* Dica de rolagem */
.reel-hint {
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: rgba(251, 246, 238, 0.8);
  pointer-events: none;
  z-index: 6;
  text-transform: uppercase;
}

.reel-hint svg {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(2px); }
}

/* =========================================
   4. CATÁLOGO SECTION
   ========================================= */
.catalog-section {
  position: relative;
  padding: 90px max(24px, env(safe-area-inset-right)) 100px max(24px, env(safe-area-inset-left));
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.section-tag {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Filter Chips */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* Categorias ativas com tintas pastéis chapadas */
.filter-btn.active.chip-todos,
.filter-btn.active:not([class*="chip-"]) {
  background: #FFFFFF;
}
.filter-btn.active.chip-tacas {
  background: var(--pink);
}
.filter-btn.active.chip-squeezes {
  background: var(--mint);
}
.filter-btn.active.chip-copos {
  background: var(--blue);
}
.filter-btn.active.chip-canecas {
  background: var(--butter);
}
.filter-btn.active.chip-outros {
  background: var(--lilac);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* Product Card */
.product-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--print-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

/* Área da foto com fundo chapado pastel por categoria */
.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--lilac); /* Fallback */
}

/* Mapeamento pastel chapado (sem degradê) */
.thumb-cat-tacas,
.cat-tacas .product-thumb-wrap {
  background: var(--pink);
}
.thumb-cat-squeezes,
.cat-squeezes .product-thumb-wrap {
  background: var(--mint);
}
.thumb-cat-copos,
.cat-copos .product-thumb-wrap {
  background: var(--blue);
}
.thumb-cat-canecas,
.cat-canecas .product-thumb-wrap {
  background: var(--butter);
}
.thumb-cat-outros,
.cat-outros .product-thumb-wrap {
  background: var(--lilac);
}

.product-glow {
  display: none;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.04);
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--ink);
}

.product-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Quantidade e Adicionar */
.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius-btn);
  padding: 2px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--paper-2);
}

.qty-input {
  width: 44px;
  text-align: center;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  -moz-appearance: textfield;
}

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

.btn-add {
  flex-grow: 1;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 2px 2px 0 var(--pink);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-add:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--pink);
}

.btn-add:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 transparent;
}

.btn-add.added {
  background: var(--wa);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* =========================================
   5. RODAPÉ
   ========================================= */
.footer {
  margin-top: auto;
  border-top: 2px solid var(--ink);
  padding: 40px max(24px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: var(--paper-2);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-logo {
  height: 54px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

/* =========================================
   6. BOTÃO FLUTUANTE DA SACOLA & GAVETA DE PEDIDO
   ========================================= */
.btn-floating-cart {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  right: max(20px, env(safe-area-inset-right));
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 0;
  box-shadow: var(--print-shadow);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-floating-cart:hover {
  transform: translate(-2px, -2px) scale(1.04);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-floating-cart:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent;
}

.btn-floating-cart svg {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gaveta do Pedido (Drawer) */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 40, 51, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) 24px;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.drawer-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}

.btn-close-drawer {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-close-drawer:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.drawer-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-empty {
  text-align: center;
  color: var(--ink-soft);
  margin: auto 0;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 2px 2px 0 var(--ink);
}

.cart-item-img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 1.5px solid var(--ink);
  background: var(--stage);
}

.cart-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.cart-item-code {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-qty span {
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
  color: var(--ink);
}

.btn-remove-item {
  color: var(--ink-soft);
  padding: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-remove-item:hover {
  color: var(--accent);
}

.drawer-footer {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Opções de Urgência no Envio do Pedido */
.urgency-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 2px;
}

.urgency-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
}

.urgency-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.urgency-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
}

.urgency-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

.urgency-card.active {
  box-shadow: 3px 3px 0 var(--ink);
}

#card-urgency-fast.active {
  border-color: var(--accent);
  background: #FFF9F6;
  box-shadow: 3px 3px 0 var(--accent);
}

.urgency-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.urgency-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #FFFFFF;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.urgency-card.active .urgency-radio-dot {
  background: var(--ink);
}

.urgency-card.active .urgency-radio-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

#card-urgency-fast.active .urgency-radio-dot {
  background: var(--accent);
  border-color: var(--accent);
}

.urgency-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.urgency-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

#card-urgency-fast.active .urgency-title {
  color: var(--accent);
}

.urgency-desc {
  font-size: 0.74rem;
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.2;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-whatsapp:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-whatsapp:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent;
}

.btn-whatsapp:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-continue {
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-btn);
  background: #FFFFFF;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-continue:hover {
  background: var(--paper-2);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* =========================================
   7. RESPONSIVIDADE PARA CELULAR / TABLET
   ========================================= */
@media (max-width: 860px) {
  .navbar {
    height: 48px;
    padding: 0 14px;
    border-bottom: 2px solid var(--ink);
  }

  .nav-brand {
    white-space: nowrap;
    gap: 6px;
  }

  .nav-brand-logo {
    height: 36px;
    max-width: 110px;
  }

  .nav-brand-dot {
    width: 6px;
    height: 6px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  .hero {
    min-height: 100svh;
    padding: 54px 16px 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: calc(100svh - 68px);
    gap: 0;
    text-align: center;
  }

  .hero-content,
  .hero .hc {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100svh - 68px);
    align-items: center;
    gap: 0;
  }

  .hero-text-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-top: 2px;
    z-index: 2;
  }

  .hero-tag {
    font-size: 0.68rem;
    padding: 3px 10px;
    letter-spacing: 0.04em;
  }

  .hero-title {
    font-size: 1.55rem;
    line-height: 1.1;
    margin: 0;
    color: var(--ink);
  }

  .hero-desc {
    color: var(--ink) !important;
    font-size: 0.78rem;
    line-height: 1.28;
    margin: 0 auto;
    max-width: 325px;
    width: 100%;
    font-weight: 500;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: 100%;
    max-width: 300px;
    margin-top: auto;
    padding-bottom: 6px;
    z-index: 2;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.88rem;
    border-radius: 12px;
  }

  .hero-scroll-hint {
    margin-top: 2px;
    font-size: 0.72rem;
  }
}

@media (max-width: 760px) {
  .hero .hv {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 55%;
    height: 43svh;
    max-height: 330px;
    margin-top: calc(43svh / -2);
    border-radius: 20px;
    border: 2px solid var(--ink);
    box-shadow: 5px 5px 0 var(--butter);
    -webkit-mask: none;
    mask: none;
  }

  #reel {
    width: calc(100% - 32px);
    margin: 16px auto;
    height: calc(100svh - 32px);
    border-radius: 24px;
    box-shadow: 6px 6px 0 var(--pink);
  }

  #cv {
    height: 105vh;
    height: 105svh;
    top: 38%;
  }

  .reel-overlay {
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 16px max(18px, env(safe-area-inset-bottom)) 16px;
    background: linear-gradient(to top, rgba(23, 21, 28, 0.95) 0%, rgba(23, 21, 28, 0.45) 24%, transparent 45%);
    pointer-events: none;
  }

  .reel-left {
    max-width: calc(100% - 74px);
    margin-bottom: 0;
    gap: 6px;
    pointer-events: auto;
  }

  .reel-counter {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: #E2C27D;
  }

  .reel-title {
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--paper);
  }

  .reel-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(251, 246, 238, 0.75);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .reel-btn {
    font-size: 0.85rem;
    padding: 9px 18px;
    margin-top: 4px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .reel-dots {
    display: none;
  }

  .reel-hint {
    display: inline-flex;
    top: 72px;
    bottom: auto;
    font-size: 0.72rem;
    padding: 5px 12px;
    background: rgba(23, 21, 28, 0.85);
    border: 1.5px solid rgba(251, 246, 238, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--paper);
    letter-spacing: 0.04em;
    text-transform: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  }

  .btn-floating-cart {
    width: 52px;
    height: 52px;
    bottom: max(16px, env(safe-area-inset-bottom));
    right: 14px;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .btn-floating-cart svg {
    width: 22px;
    height: 22px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Linha completa + Ficha do modelo 2026 ===== */
#modelos {
  padding-top: 60px;
  margin-top: 40px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.chip {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.chip.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.mc {
  cursor: pointer;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mc:hover {
  transform: translateY(-4px);
  box-shadow: 4px 4px 0 var(--ink);
  border-color: var(--ink);
}

.mc .im {
  aspect-ratio: 1;
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 12px;
  border-bottom: 1.5px solid var(--line);
}

.mc img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mc .mc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mc h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.mc .meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.mc .ver {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Botões para abrir a ficha no Reel e no Card */
.reel-lnk-medidas,
.btn-ver-modelo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--warm-cream);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}

.reel-lnk-medidas:hover,
.btn-ver-modelo:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
  background: #fff;
}

/* Ficha Fullscreen Modal */
html.fh-on,
html.fh-on body {
  overflow: hidden;
}

.fh {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--paper);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fh-in {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 40px) calc(40px + env(safe-area-inset-bottom, 0px));
}

.fh-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 22px;
  position: sticky;
  top: 0;
  background: var(--paper);
  padding: 12px 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.fh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.fh-img {
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  padding: 20px;
  position: sticky;
  top: 80px;
  box-shadow: 4px 4px 0 var(--ink);
}

.fh-img img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.fh h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}

.fh h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 24px 0 10px;
}

.fh .sub {
  margin: 12px 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sws {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sw {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sw:hover {
  border-color: var(--ink);
}

.sw i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(0, 0, 0, 0.2);
  flex: none;
}

.sw.tr i {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 55%), var(--c);
}

.sw.cr i {
  background: linear-gradient(135deg, #fff, #cfd9e2);
}

.sw.on {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--warm-cream);
}

.fpal {
  width: 100%;
  border-radius: 14px;
  margin: 14px 0;
  background: #fff;
  border: 1.5px solid var(--line);
}

.meds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin: 0;
}

.meds div {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.meds dt {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.meds dd {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--ink);
}

.fh input[type="text"] {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}

.fh-buy {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.fh-buy .qty {
  display: inline-flex;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.fh-buy .qty button {
  background: none;
  border: none;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--ink);
}

.fh-buy .qty button:hover {
  background: var(--warm-cream);
}

.fh-buy .qty input {
  width: 52px;
  text-align: center;
  background: none;
  border: none;
  font-weight: 700;
  color: var(--ink);
  -moz-appearance: textfield;
}

.fh-buy .qty input::-webkit-inner-spin-button {
  display: none;
}

.fh-buy .btn {
  flex: 1;
  min-width: 180px;
}

.btn.ghost {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn.ghost:hover {
  background: var(--warm-cream);
}

.fpg {
  margin-top: 34px;
  border-top: 1.5px solid var(--line);
  padding-top: 18px;
}

.fpg summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.fpg img {
  width: 100%;
  max-width: 760px;
  display: block;
  margin: 14px auto 0;
  border-radius: 16px;
  border: 1.5px solid var(--line);
}

.fh-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .fh-grid {
    grid-template-columns: 1fr;
  }
  .fh-img {
    position: static;
  }
  .fh-img img {
    max-height: 42vh;
  }
  .meds {
    grid-template-columns: 1fr 1fr;
  }
}

