/* ============================================================
   NOVA MARCA — Catálogo de Brindes
   Identidade oficial da marca:
   Amarelo #FFD200 + Preto #0A0A0A + Branco
   Tipografia: League Spartan (display, igual a logo) +
               Montserrat (corpo — alternativa livre à Gotham,
               que é uma fonte paga e não pode ser usada aqui)
   ============================================================ */

:root {
  --yellow: #ffd200;
  --black: #0a0a0a;
  --black-soft: #1a1a1a;
  --white: #ffffff;
  --gray-line: #e0e0e0;
  --gray-text: #5c5c5c;
  --green-ok: #1f7a3d;
  --green-ok-bg: #e6f4ea;
  --red-out: #b3261e;
  --red-out-bg: #fbe9e7;

  --font-display: 'League Spartan', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-mono: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--yellow);
  border-bottom: 3px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin: 0 auto;
}
.brand-logo {
  height: 38px;
  display: block;
}

/* Menu hambúrguer (3 risquinhos) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-nav {
  flex-shrink: 0;
}
.produtos-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  background: transparent;
  border: 2px solid var(--black);
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.produtos-link:hover,
.produtos-link[aria-expanded="true"] {
  background: var(--black);
  color: var(--yellow);
}

/* ---------- Painel de categorias ---------- */
.category-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 60;
}
.category-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: var(--white);
  z-index: 61;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  overflow-y: auto;
  box-shadow: 6px 0 0 var(--black);
}
.category-panel.open {
  transform: translateX(0);
}
.category-panel-inner {
  padding: 20px;
}
.category-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: lowercase;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--yellow);
}
.category-panel-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
  padding: 0 4px;
}
.category-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-panel-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-line);
  padding: 13px 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--black);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.category-panel-item:hover {
  color: var(--black);
  background: #fafafa;
}
.category-panel-item.active {
  color: var(--black);
  background: var(--yellow);
  font-weight: 800;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  padding: 48px 24px 64px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--yellow);
  margin: 0 0 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 48px);
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero-title .hl {
  color: var(--yellow);
}
.hero-sub {
  font-size: 16px;
  font-weight: 500;
  color: #c9c9c9;
  max-width: 480px;
  margin: 0;
}

/* ---------- Toolbar (busca) ---------- */
.catalog-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  margin-top: -28px;
}
.search-wrap {
  position: relative;
  flex: 1 1 100%;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--gray-text);
  pointer-events: none;
}
.search-input {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  padding: 13px 16px 13px 44px;
  border: 2px solid var(--black);
  border-radius: 100px;
  background: white;
  color: var(--black);
}
.search-input:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--yellow);
}

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

.card {
  background: white;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.08);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(10, 10, 10, 0.16);
}
.card:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  overflow: hidden;
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-image-wrap .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  font-size: 12px;
  font-family: var(--font-mono);
}

/* Selo de disponibilidade - estilo "carimbo de etiqueta" */
.stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  transform: rotate(0deg);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.18);
}
.stamp.ok {
  background: var(--yellow);
  color: var(--black);
}
.stamp.out {
  background: var(--black);
  color: var(--white);
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-text);
}
.card-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
}
.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.card-color-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--black);
  font-family: var(--font-mono);
}
.card-footer-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
}
.card-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--black);
}
.stock-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 100px;
  text-align: right;
  white-space: nowrap;
}
.stock-pill.ok { background: var(--green-ok-bg); color: var(--green-ok); }
.stock-pill.out { background: var(--red-out-bg); color: var(--red-out); }

.empty-state {
  text-align: center;
  color: var(--gray-text);
  padding: 60px 0;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Página de produto ---------- */
.product-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  min-height: 50vh;
}
.loading-msg, .error-msg {
  color: var(--gray-text);
  font-size: 15px;
  font-weight: 500;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f4f4f4;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 18px rgba(10, 10, 10, 0.10);
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-wrap .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-text);
  font-family: var(--font-mono);
  font-size: 13px;
}
.product-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 8px;
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.2vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 14px;
  line-height: 1.1;
}
.product-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.status-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: 100px;
}
.status-badge.ok { background: var(--green-ok-bg); color: var(--green-ok); border: 1px solid var(--green-ok); }
.status-badge.out { background: var(--red-out-bg); color: var(--red-out); border: 1px solid var(--red-out); }
.product-stock-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-text);
}
.product-price {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 22px;
}
.product-category-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--black);
  background: var(--yellow);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.product-description {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  color: #2a2a2a;
  white-space: pre-line;
}
.contact-cta {
  margin-top: 28px;
  display: inline-block;
  background: var(--black);
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border-radius: 100px;
  border: 2px solid var(--black);
  transition: background 0.15s ease, color 0.15s ease;
}
.contact-cta:hover { background: var(--yellow); color: var(--black); }

/* ---------- Seletor de cores (variações) ---------- */
.color-picker {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 2px solid var(--black);
}
.color-picker-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-text);
  margin-bottom: 10px;
}
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.color-swatch {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 2px solid var(--gray-line);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #f4f4f4;
  transition: border-color 0.15s ease;
}
.color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.color-swatch:hover {
  border-color: var(--black);
}
.color-swatch.active {
  border-color: var(--black);
  border-width: 3px;
  box-shadow: 3px 3px 0 var(--yellow);
}
.color-swatch.swatch-esgotada {
  opacity: 0.4;
}
.color-swatch:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}
.color-picker-current {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-text);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 4px solid var(--yellow);
  background: var(--black);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #c9c9c9;
}

/* ---------- Responsivo (mobile) ---------- */
@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; gap: 28px; }

  .topbar-inner { padding: 10px 16px; }
  .brand-logo { height: 30px; }
  .produtos-link { font-size: 12px; padding: 7px 12px; }

  .hero { padding: 32px 16px 44px; }
  .hero-title { font-size: clamp(24px, 7vw, 32px); }
  .hero-sub { font-size: 14px; }

  .catalog-wrap { padding: 28px 16px 56px; }
  .catalog-toolbar { margin-top: -20px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card-name { font-size: 14px; }
  .card-price { font-size: 14px; }
  .card-body { padding: 10px 12px 12px; gap: 4px; }
  .stamp { font-size: 9px; padding: 5px 10px; top: 10px; right: 10px; }
  .card-footer-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stock-pill { font-size: 9px; padding: 3px 7px; white-space: normal; text-align: left; }

  .category-panel { width: 84vw; }

  .product-wrap { padding: 28px 16px 56px; }
  .product-title { font-size: clamp(22px, 6vw, 28px); }
  .product-price { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

/* ============================================================
   Carrinho de orçamento (lista para WhatsApp)
   ============================================================ */

/* Botão "+" de adicionar rápido no card do catálogo */
.card-quick-add {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.card-quick-add:hover {
  background: var(--yellow);
  color: var(--black);
  transform: scale(1.08);
}

/* Botão flutuante (FAB) do carrinho */
.cart-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.35);
  z-index: 55;
}
.cart-fab svg {
  width: 26px;
  height: 26px;
}
.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--yellow);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Painel lateral do carrinho */
.cart-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 70;
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(90vw, 380px);
  background: var(--white);
  z-index: 71;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 0 var(--black);
}
.cart-panel.open {
  transform: translateX(0);
}
.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  padding: 20px;
  border-bottom: 3px solid var(--yellow);
  flex-shrink: 0;
}
.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}
.cart-empty-msg {
  color: var(--gray-text);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-top: 40px;
}
.cart-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-line);
}
.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4f4;
  flex-shrink: 0;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-noimg {
  width: 100%;
  height: 100%;
  background: #f4f4f4;
}
.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cart-item-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cart-item-code {
  font-size: 10px;
  color: var(--gray-text);
  font-weight: 600;
}
.cart-item-price {
  font-size: 11px;
  color: var(--gray-text);
  font-weight: 600;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  background: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cart-qty-value {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
.cart-item-remove {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--gray-text);
  cursor: pointer;
  padding: 0 0 0 4px;
  line-height: 1;
}
.cart-item-remove:hover {
  color: var(--red-out);
}

.cart-totals-bar {
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 3px solid var(--black);
}
.cart-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-text);
  margin-bottom: 4px;
}
.cart-totals-row-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  font-family: var(--font-display);
  margin-bottom: 14px;
}
.cart-send-btn {
  display: block;
  width: 100%;
  background: #25d366;
  color: var(--black);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 2px solid var(--black);
  border-radius: 100px;
  padding: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}
.cart-send-btn:hover {
  background: #1ebd5a;
}
.cart-clear-btn {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--gray-text);
  font-weight: 600;
  font-size: 12px;
  border: none;
  padding: 6px;
  cursor: pointer;
  text-decoration: underline;
}

/* Seletor de quantidade + adicionar (página de produto) */
.add-to-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 2px solid var(--black);
  border-radius: 100px;
  overflow: hidden;
  flex-shrink: 0;
}
.qty-stepper-btn {
  width: 38px;
  height: 44px;
  background: white;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.qty-stepper-btn:hover {
  background: #f4f4f4;
}
.qty-stepper-input {
  width: 44px;
  height: 44px;
  border: none;
  border-left: 2px solid var(--black);
  border-right: 2px solid var(--black);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  -moz-appearance: textfield;
}
.qty-stepper-input::-webkit-outer-spin-button,
.qty-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.add-to-cart-btn {
  flex: 1;
  background: var(--black);
  color: var(--yellow);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: 2px solid var(--black);
  border-radius: 100px;
  padding: 0 20px;
  height: 44px;
  cursor: pointer;
}
.add-to-cart-btn:hover {
  background: var(--yellow);
  color: var(--black);
}
.add-to-cart-feedback {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-ok);
}

@media (max-width: 760px) {
  .cart-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
  .cart-panel { width: 100vw; }
  .add-to-cart-row { flex-wrap: wrap; }
  .add-to-cart-btn { width: 100%; }
}
