/* ============================================================
   TechVarzim — Loja de tecnologia fictícia (Póvoa de Varzim)
   Site de portfólio · HTML + CSS + JS vanilla
   ============================================================ */

:root {
  --azul-escuro: #0f1c2e;
  --azul-2: #16263c;
  --azul-3: #1e3450;
  --laranja: #f97316;
  --laranja-2: #ea580c;
  --laranja-claro: #ffedd5;
  --ciano: #38bdf8;
  --cinza-bg: #f4f6f9;
  --cinza-cartao: #ffffff;
  --cinza-borda: #e2e7ee;
  --cinza-texto: #5b6b80;
  --verde: #16a34a;
  --vermelho: #dc2626;
  --sombra: 0 2px 10px rgba(15, 28, 46, 0.08);
  --sombra-hover: 0 10px 28px rgba(15, 28, 46, 0.14);
  --raio: 14px;
  --max: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--cinza-bg);
  color: var(--azul-escuro);
  line-height: 1.55;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* ============ Barra de anúncio ============ */
.topbar {
  background: linear-gradient(90deg, var(--azul-escuro), var(--azul-3));
  color: #fff; font-size: 0.82rem; text-align: center;
  padding: 8px 16px;
}
.topbar strong { color: var(--laranja); }

/* ============ Cabeçalho ============ */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: var(--azul-escuro);
  box-shadow: 0 2px 14px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.brand img { height: 44px; display: block; }

.search-box {
  flex: 1; min-width: 260px;
  display: flex; align-items: center;
  background: #fff; border-radius: 999px; overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--laranja); }
.search-box input {
  flex: 1; border: none; outline: none; padding: 11px 18px;
  font-size: 0.95rem; background: transparent; color: var(--azul-escuro);
}
.search-box button {
  background: var(--laranja); color: #fff; padding: 11px 20px;
  font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.search-box button:hover { background: var(--laranja-2); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-cart {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--laranja); color: #fff; font-weight: 700;
  padding: 11px 18px; border-radius: 999px;
  transition: background 0.2s, transform 0.1s;
}
.btn-cart:hover { background: var(--laranja-2); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--ciano); color: var(--azul-escuro);
  font-size: 0.72rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; border: 2px solid var(--azul-escuro);
}
.cart-count.hidden { display: none; }

/* Nav de categorias */
nav.cats { background: var(--azul-2); }
nav.cats ul {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 0; overflow-x: auto;
}
nav.cats a {
  display: block; padding: 10px 16px;
  color: #cbd5e1; font-size: 0.9rem; font-weight: 600;
  white-space: nowrap; border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.cats a:hover, nav.cats a.active {
  color: #fff; border-bottom-color: var(--laranja);
}

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(249, 115, 22, 0.22), transparent 55%),
    linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-3) 100%);
  color: #fff; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center; padding: 64px 0 72px;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 16px; }
.hero h1 span { color: var(--laranja); }
.hero p { color: #b9c5d4; font-size: 1.05rem; max-width: 52ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  transition: transform 0.12s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--laranja); color: #fff; box-shadow: 0 6px 18px rgba(249,115,22,0.35); }
.btn-primary:hover { background: var(--laranja-2); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.hero-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges div { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #d7dfe9; }

.hero-art { position: relative; text-align: center; }
.hero-art img {
  max-height: 340px; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-price-tag {
  position: absolute; top: 8%; left: 4%; z-index: 5;
  background: #fff; color: var(--azul-escuro);
  padding: 12px 18px; border-radius: var(--raio);
  box-shadow: var(--sombra-hover); font-weight: 700;
  transform: rotate(-4deg);
}
.hero-price-tag small { display: block; color: var(--cinza-texto); font-weight: 600; font-size: 0.72rem; }
.hero-price-tag .preco { color: var(--laranja-2); font-size: 1.25rem; }

/* ============ Barra de portes grátis ============ */
.free-shipping-bar { padding: 14px 0; }
.free-shipping-bar .track {
  background: var(--cinza-borda); border-radius: 999px; height: 10px;
  overflow: hidden; margin-bottom: 6px;
}
.free-shipping-progress {
  background: linear-gradient(90deg, var(--laranja), var(--ciano));
  height: 100%; width: 0; border-radius: 999px;
  transition: width 0.4s ease;
}
.free-shipping-label { font-size: 0.85rem; color: var(--cinza-texto); }

/* ============ Secções ============ */
section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.section-head .sub { color: var(--cinza-texto); margin-top: 4px; }
.section-head a.ver-mais { color: var(--laranja-2); font-weight: 700; font-size: 0.92rem; }
.section-head a.ver-mais:hover { text-decoration: underline; }

/* ============ Grelha de categorias ============ */
.cats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.cat-card {
  background: var(--cinza-cartao); border: 1px solid var(--cinza-borda);
  border-radius: var(--raio); padding: 26px 20px; text-align: center;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: var(--laranja); }
.cat-card img { height: 84px; object-fit: contain; margin-bottom: 12px; transition: transform 0.2s; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card h3 { font-size: 1rem; margin-bottom: 4px; }
.cat-card p { font-size: 0.8rem; color: var(--cinza-texto); }

/* ============ Cartões de produto ============ */
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.product-card {
  background: var(--cinza-cartao); border: 1px solid var(--cinza-borda);
  border-radius: var(--raio); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.2s;
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); }
.product-thumb {
  background:
    radial-gradient(60% 60% at 50% 35%, #eef2f7, #dfe6ee);
  padding: 26px 18px; text-align: center; cursor: pointer;
  min-height: 180px; display: flex; align-items: center; justify-content: center;
}
.product-thumb img { max-height: 140px; max-width: 100%; object-fit: contain; transition: transform 0.25s; }
.product-card:hover .product-thumb img { transform: scale(1.06) translateY(-2px); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.badge {
  font-size: 0.7rem; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; color: #fff; letter-spacing: 0.3px;
}
.badge.desconto { background: var(--vermelho); }
.badge.novo { background: var(--laranja); }
.product-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-cat { font-size: 0.72rem; font-weight: 700; color: var(--laranja-2); text-transform: uppercase; letter-spacing: 0.6px; }
.product-name { font-size: 0.92rem; font-weight: 600; line-height: 1.35; cursor: pointer; }
.product-name:hover { color: var(--laranja-2); }
.rating { color: #f5b301; font-size: 0.8rem; letter-spacing: 2px; }
.rating span { color: var(--cinza-texto); letter-spacing: 0; margin-left: 6px; font-size: 0.78rem; }
.stock-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--verde); font-weight: 600; }
.stock-dot::before { content: ""; width: 8px; height: 8px; background: var(--verde); border-radius: 50%; }
.price-row { margin-top: auto; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.preco { font-size: 1.3rem; font-weight: 800; }
.preco-anterior { color: var(--cinza-texto); text-decoration: line-through; font-size: 0.85rem; }
.btn-add {
  margin-top: 10px; width: 100%;
  background: var(--laranja); color: #fff; font-weight: 700;
  padding: 11px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
}
.btn-add:hover { background: var(--laranja-2); }
.btn-add.added { background: var(--verde); }

/* ============ Vantagens ============ */
.features { background: #fff; border-top: 1px solid var(--cinza-borda); border-bottom: 1px solid var(--cinza-borda); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { text-align: center; padding: 10px; }
.feature .ico {
  width: 58px; height: 58px; margin: 0 auto 12px;
  background: var(--laranja-claro); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}
.feature .ico svg { width: 30px; height: 30px; color: var(--laranja-2); }
.feature h3 { font-size: 1rem; margin-bottom: 4px; }
.feature p { font-size: 0.84rem; color: var(--cinza-texto); }

/* ============ Localização / Google Maps ============ */
.location-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; align-items: stretch;
}
.map-frame {
  border-radius: var(--raio); overflow: hidden;
  box-shadow: var(--sombra); border: 1px solid var(--cinza-borda);
  min-height: 420px; background: #dfe6ee;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.store-info {
  background: var(--azul-escuro); color: #fff;
  border-radius: var(--raio); padding: 34px 32px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--sombra);
}
.store-info h3 { font-size: 1.35rem; color: #fff; }
.store-info .tag {
  display: inline-block; background: rgba(56,189,248,0.15); color: var(--ciano);
  padding: 3px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; width: fit-content;
}
.info-line { display: flex; gap: 14px; align-items: flex-start; font-size: 0.93rem; color: #c6d0dd; }
.info-line .ico { font-size: 1.15rem; margin-top: 2px; }
.info-line b { color: #fff; display: block; font-size: 0.86rem; margin-bottom: 2px; }
.store-hours { width: 100%; border-collapse: collapse; font-size: 0.88rem; color: #c6d0dd; }
.store-hours td { padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,0.12); }
.store-hours tr:last-child td { border-bottom: none; }
.store-hours td:last-child { text-align: right; color: #fff; font-weight: 600; }
.store-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.btn-outline { border: 2px solid rgba(255,255,255,0.4); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: 0.88rem; }
.btn-outline:hover { border-color: var(--laranja); color: var(--laranja); }

/* ============ Newsletter ============ */
.newsletter { background: linear-gradient(135deg, var(--laranja), #fb923c); color: #fff; }
.newsletter .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.newsletter h2 { font-size: 1.5rem; margin-bottom: 4px; }
.newsletter p { color: #fff3e8; font-size: 0.95rem; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input {
  padding: 13px 20px; border-radius: 999px; border: none; outline: none;
  min-width: 280px; font-size: 0.95rem;
}
.newsletter button { background: var(--azul-escuro); color: #fff; padding: 13px 26px; border-radius: 999px; font-weight: 700; }
.newsletter button:hover { background: var(--azul-3); }

/* ============ Rodapé ============ */
footer.site { background: var(--azul-escuro); color: #9fb0c3; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
footer.site h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 0.5px; }
footer.site ul li { margin-bottom: 9px; font-size: 0.88rem; }
footer.site ul a:hover { color: var(--laranja); }
.footer-brand img { height: 46px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.86rem; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--azul-3); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.socials a:hover { background: var(--laranja); transform: translateY(-3px); }
.socials a svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0; display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.8rem; flex-wrap: wrap;
}
.disclaimer { font-size: 0.75rem; opacity: 0.65; margin-top: 6px; }

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

/* ---------- Ícones SVG (sprite <symbol>) ---------- */
.ic {
  width: 1.1em; height: 1.1em; vertical-align: -0.18em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

/* ============ Página de produtos ============ */
.page-head {
  background: linear-gradient(135deg, var(--azul-escuro), var(--azul-3));
  color: #fff; padding: 40px 0 30px;
}
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.page-head .breadcrumb { font-size: 0.82rem; color: #9fb0c3; margin-bottom: 8px; }
.page-head .breadcrumb a:hover { color: var(--laranja); }

.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; padding: 36px 0 60px; }
.filters { background: #fff; border: 1px solid var(--cinza-borda); border-radius: var(--raio); padding: 22px; position: sticky; top: 130px; }
.filters h3 { font-size: 1rem; margin-bottom: 14px; }
.filters label { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.9rem; cursor: pointer; color: #33415a; }
.filters label:hover { color: var(--laranja-2); }
.filters input[type="checkbox"] { accent-color: var(--laranja); width: 17px; height: 17px; cursor: pointer; }
.filters .count { color: var(--cinza-texto); font-size: 0.78rem; margin-left: auto; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-toolbar .result-count { font-size: 0.9rem; color: var(--cinza-texto); }
.shop-toolbar select { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--cinza-borda); background: #fff; font-size: 0.9rem; }

/* ============ Modal de produto ============ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 18, 30, 0.62);
  display: none; align-items: center; justify-content: center; z-index: 200;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px; max-width: 880px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  display: grid; grid-template-columns: 1fr 1.1fr;
  animation: pop 0.25s ease;
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cinza-bg); font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; color: var(--cinza-texto);
}
.modal-close:hover { background: var(--cinza-borda); color: var(--azul-escuro); }
.modal-thumb { background: radial-gradient(70% 60% at 50% 40%, #eef2f7, #dde4ec); display: flex; align-items: center; justify-content: center; padding: 50px 30px; min-height: 360px; }
.modal-thumb img { max-height: 260px; max-width: 85%; object-fit: contain; }
.modal-info { padding: 36px 34px; }
.modal-info .product-cat { margin-bottom: 6px; }
.modal-info h2 { font-size: 1.35rem; margin-bottom: 10px; line-height: 1.3; }
.modal-specs { margin: 18px 0; }
.modal-specs li { display: flex; gap: 10px; padding: 7px 0; font-size: 0.9rem; color: #33415a; border-bottom: 1px dashed var(--cinza-borda); }
.modal-specs li::before { content: "✓"; color: var(--verde); font-weight: 800; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--cinza-borda); border-radius: 10px; overflow: hidden; }
.qty-control button { width: 40px; height: 42px; font-size: 1.15rem; font-weight: 700; color: var(--azul-escuro); }
.qty-control button:hover { background: var(--laranja-claro); }
.qty-control input { width: 46px; height: 42px; text-align: center; border: none; outline: none; font-weight: 700; font-size: 0.95rem; }

/* ============ Página do carrinho ============ */
.cart-layout { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 26px; align-items: start; padding: 36px 0 70px; }
.cart-items { background: #fff; border: 1px solid var(--cinza-borda); border-radius: var(--raio); overflow: hidden; }
.cart-items.empty { display: block; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--cinza-borda); }
.cart-line:last-child { border-bottom: none; }
.cart-line .thumb { background: radial-gradient(60% 60% at 50% 40%, #eef2f7, #dde4ec); border-radius: 12px; padding: 12px; display: flex; align-items: center; justify-content: center; }
.cart-line .thumb img { max-height: 76px; max-width: 100%; object-fit: contain; }
.cart-line .nome { font-weight: 600; font-size: 0.94rem; margin-bottom: 2px; }
.cart-line .cat { font-size: 0.75rem; color: var(--laranja-2); font-weight: 700; text-transform: uppercase; }
.cart-line .unit { font-size: 0.8rem; color: var(--cinza-texto); margin-top: 4px; }
.cart-line .linha-total { font-weight: 800; font-size: 1.05rem; text-align: right; min-width: 90px; }
.btn-remove { color: var(--vermelho); font-size: 0.8rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.btn-remove:hover { background: #fee2e2; }
.cart-empty { padding: 70px 30px; text-align: center; }
.cart-empty .ico svg { width: 64px; height: 64px; margin-bottom: 12px; color: var(--cinza-texto); }
.cart-empty h2 { margin-bottom: 8px; }
.cart-empty p { color: var(--cinza-texto); margin-bottom: 22px; }

.cart-summary { background: #fff; border: 1px solid var(--cinza-borda); border-radius: var(--raio); padding: 26px; position: sticky; top: 130px; }
.cart-summary h3 { font-size: 1.15rem; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; font-size: 0.93rem; color: #33415a; padding: 8px 0; }
.sum-row.gratis { color: var(--verde); font-weight: 700; }
.sum-row.total { border-top: 2px solid var(--azul-escuro); margin-top: 10px; padding-top: 14px; font-size: 1.15rem; font-weight: 800; color: var(--azul-escuro); }
.iva-note { font-size: 0.75rem; color: var(--cinza-texto); margin-bottom: 16px; }
.coupon-row { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-row input { flex: 1; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--cinza-borda); outline: none; font-size: 0.88rem; text-transform: uppercase; }
.coupon-row input:focus { border-color: var(--laranja); }
.coupon-ok { color: var(--verde); font-weight: 700; font-size: 0.82rem; margin-bottom: 12px; }

/* ============ Checkout simulado ============ */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 26px 0 6px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--cinza-texto); }
.step .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--cinza-borda); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.step.active { color: var(--azul-escuro); }
.step.active .dot { background: var(--laranja); color: #fff; }
.step-arrow { color: var(--cinza-borda); font-weight: 400; }
.checkout-box { background: #fff; border: 1px solid var(--cinza-borda); border-radius: var(--raio); padding: 30px; margin: 20px 0 70px; }
.checkout-box h2 { font-size: 1.2rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; font-weight: 700; color: #33415a; }
.form-grid input, .form-grid select {
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--cinza-borda);
  outline: none; font-size: 0.92rem; background: #fff;
}
.form-grid input:focus, .form-grid select:focus { border-color: var(--laranja); }
.form-grid .erro-msg { color: var(--vermelho); font-size: 0.75rem; font-weight: 600; display: none; }
.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 26px; }
.pay-option { border: 2px solid var(--cinza-borda); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; font-size: 0.88rem; font-weight: 700; color: #33415a; }
.pay-option .ico { display: block; margin-bottom: 6px; }
.pay-option .ico svg { width: 26px; height: 26px; }
.pay-option.sel { border-color: var(--laranja); background: var(--laranja-claro); }
.order-success { text-align: center; padding: 40px 20px; }
.order-success .ico svg { width: 74px; height: 74px; margin-bottom: 14px; color: var(--verde); }
.order-success h2 { margin-bottom: 8px; }
.order-success p { color: var(--cinza-texto); max-width: 52ch; margin: 0 auto 8px; }
.order-num { display: inline-block; background: var(--laranja-claro); color: var(--laranja-2); font-weight: 800; padding: 8px 18px; border-radius: 999px; margin: 12px 0 22px; letter-spacing: 1px; }

/* ============ Toast ============ */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--azul-escuro); color: #fff; font-weight: 600; font-size: 0.9rem;
  padding: 13px 24px; border-radius: 999px; box-shadow: var(--sombra-hover);
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  z-index: 300; max-width: 90vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ Responsivo ============ */
@media (max-width: 1024px) {
  .cats-grid, .products-grid, .features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 44px 0 54px; }
  .hero-art { order: -1; }
  .hero-art img { max-height: 240px; }
  .location-grid { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

@media (max-width: 680px) {
  .cats-grid, .products-grid, .features-grid, .form-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { grid-template-columns: 1fr; }
  .modal-thumb { min-height: 220px; padding: 30px; }
  .modal-thumb img { max-height: 180px; }
  .cart-line { grid-template-columns: 80px 1fr; }
  .cart-line .qty-col, .cart-line .linha-total { grid-column: 2; }
  .cart-line .linha-total { text-align: left; }
  .pay-options { grid-template-columns: 1fr; }
  .hero-price-tag { display: none; }
  .header-inner { gap: 12px; }
  .search-box { order: 3; min-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  section { padding: 40px 0; }
}
