/* Reset e tokens — tema leve e moderno */
:root {
  --bg: #40e0d0; /* fundo turquesa da logo */
  --panel: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #64748b; /* slate-500 */
  --primary: #14b8a6; /* teal-500 */
  --primary-600: #0d9488; /* teal-600 */
  --accent: #2dd4bf; /* teal-400 */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #e2e8f0;
  --radius: 12px;
  --gap: 16px;
  --shadow: 0 8px 30px rgba(2,6,23,.08);
  --header-h: 72px;
}

* { box-sizing: border-box; }
html, body { height: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.muted { color: var(--muted); }

/* Header translúcido com blur */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(15,23,42,.06); box-shadow: 0 6px 18px rgba(2,6,23,.08); min-height: var(--header-h); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; color: #0b1220; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 999px; }
.brand-name { display: inline-block; }
@media (max-width: 900px) { .brand-logo { width: 40px; height: 40px; } }
@media (max-width: 520px) { .brand-logo { width: 34px; height: 34px; } }
.nav { display: flex; align-items: center; gap: 10px; }
.nav a { padding: 10px 14px; border-radius: 999px; color: #334155; }
.nav a:hover { background: #ccfbf1; color: #0b1220; }
.nav a.cart-link { position: relative; padding-right: 18px; }
.badge { background: var(--primary); color: #fff; padding: 2px 7px; border-radius: 999px; font-size: 12px; margin-left: 4px; box-shadow: 0 2px 8px rgba(99,102,241,.35); }
.btn-ghost { background: transparent; color: #475569; border: 1px solid var(--border); padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.btn-ghost:hover { color: #0f172a; background: #ccfbf1; }
.menu-toggle { display: none; background: #ffffff; border: 1px solid var(--border); color: #0b1220; width: 44px; height: 44px; border-radius: 10px; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(2,6,23,.06); touch-action: manipulation; position: relative; z-index: 1; }
.menu-toggle:hover { background: #f8fafc; }
.menu-toggle:active { background: #e6fffb; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: 110%; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); display: none; min-width: 190px; overflow: hidden; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 12px; color: #475569; }
.dropdown-menu a:hover { background: #ccfbf1; color: #0b1220; }

/* Menu móvel */
.mobile-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); z-index: 49; opacity: 0; visibility: hidden; transition: .3s ease; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 85vw); background: #f8fafc; z-index: 50; transform: translateX(100%); transition: .3s ease; display: flex; flex-direction: column; }
body.drawer-open .mobile-overlay { opacity: 1; visibility: visible; }
body.drawer-open .mobile-drawer { transform: translateX(0); }
body.drawer-open { overflow: hidden; }

/* Navegação responsiva */
@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Navegação responsiva mínima (sem drawer) */
@media (max-width: 1024px) {
  .header-inner { gap: 10px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0; color: #6b7280; background: #fff; }

/* Cards e grids modernos */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: clip; position: relative; }
.card-body { padding: 14px; }
.card-title { font-weight: 700; margin: 0 0 8px; }
.card-price { color: var(--primary); font-weight: 700; }
.grid { display: grid; gap: var(--gap); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

/* Utilidades */
.actions { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-weight: 600; transition: .15s ease; }
.btn:active { transform: translateY(0.5px); }
.btn.primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; box-shadow: 0 10px 22px rgba(20,184,166,.25); }
.btn.primary:hover { filter: brightness(0.98); }
.btn.outline { background: #fff; color: #0f172a; border-color: var(--border); }
.btn.outline:hover { background: #f8fafc; }
.input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text); }
.input::placeholder { color: #94a3b8; }
.row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .cart-item { grid-template-columns: 56px 1fr auto; }
  .cart-item .qty { margin-left: 56px; grid-column: 1 / -1; }
  .summary { position: sticky; bottom: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(2,6,23,.12); }
}

/* Badge de destaque nos cards */
.badge.feature { background: linear-gradient(135deg, var(--warning), #f97316); color: #fff; box-shadow: 0 4px 12px rgba(245, 158, 11, .35); }

/* Páginas */
.hero { display: grid; gap: 20px; grid-template-columns: 1.5fr 1fr; align-items: center; padding: 24px 0 8px; }
.hero .title { font-size: clamp(28px, 5vw, 44px); margin: 0; }
.hero p { color: var(--muted); }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; }
}

/* Títulos com sublinhado sutil */
h2 { font-size: clamp(22px, 4vw, 36px); margin: 24px 0 12px; color: #0b1220; text-align: center; }
h2::after { content: ""; display: block; width: 80px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); margin: 8px auto 0; border-radius: 999px; }

.products-grid .card img { aspect-ratio: 1 / 1; object-fit: cover; }

/* Carrinho */
.cart-item { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cart-item .qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cart-item .qty button { width: 28px; height: 28px; border: 0; background: #f1f5f9; color: #0b1220; cursor: pointer; }
.cart-item .qty input { width: 42px; text-align: center; background: #fff; color: #0b1220; border: 0; }
.summary { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.summary .rowline { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); }
.summary .rowline.total { color: #0b1220; font-weight: 800; font-size: 18px; }

/* Toast */
.toast { position: fixed; right: 16px; bottom: 16px; background: #0b1220; color: #fff; border: 1px solid rgba(255,255,255,.12); padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Layout para footer colado ao fim da página */
#app { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h)); }

/* Overlay de redirecionamento */
.redirect-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.redirect-card { background: #ffffff; color: #0f172a; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 12px; }
.redirect-card strong { display: block; }
.spinner { width: 20px; height: 20px; border-radius: 999px; border: 3px solid #e2e8f0; border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer global (reutiliza o footer escuro da Home) */
.home-footer { width: 100vw; margin-left: calc(50% - 50vw); margin-top: auto; background: #e6fffb; color: var(--text); border-top: 2px solid var(--primary); }
.home-footer .container { padding: 28px 0 0; }
.home-footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; align-items: flex-start; }
.home-footer h3 { margin: 0 0 10px; font-size: 20px; color: var(--primary); }
.home-footer p { margin: 0; color: var(--muted); line-height: 1.7; }
.home-footer ul { list-style: none; padding: 0; margin: 0; }
.home-footer li { margin: 10px 0; color: var(--text); }
.home-footer a { color: #0b1220; }
.home-footer a:hover { color: var(--primary); }
.home-footer .brand { display: flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 800; font-size: 20px; }
.home-footer .brand svg { color: var(--primary); }
.home-footer .contact-item { display: flex; align-items: center; gap: 10px; }
.home-footer .icons { display: flex; gap: 10px; margin-top: 10px; }
.home-footer .icons a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; color: var(--primary); border: 1px solid var(--border); background: #fff; box-shadow: 0 2px 8px rgba(2,6,23,.04); }
.home-footer .icons a:hover { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 4px 10px rgba(20,184,166,.25); }
.home-footer .copyright-bar { border-top: 1px solid var(--border); margin-top: 24px; padding: 16px 0 20px; text-align: center; color: var(--muted); }
@media (max-width: 900px) { .home-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .home-footer .footer-grid { grid-template-columns: 1fr; } }

/* Banner de cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); background: #0b1220; color: #e5e7eb; border: 1px solid rgba(255,255,255,.12); padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow); display: none; z-index: 1100; }
.cookie-banner .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.cookie-banner .btn { background: #10b981; color: #fff; border: 0; }
.cookie-banner .btn:hover { filter: brightness(.95); }

/* (drawer removido) */
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--border); }
.drawer-header .brand.mini { font-weight: 800; color: #0b1220; }
.drawer-close { background: transparent; border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #0f172a; }
.drawer-close:hover { background: #f8fafc; }
.drawer-nav { display: flex; flex-direction: column; padding: 10px; gap: 8px; }
.drawer-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border: 1px solid var(--border); border-radius: 12px; color: #0b1220; background: #fff; }
.drawer-nav a:hover { background: #e6fffb; border-color: var(--primary); }
.drawer-nav i { color: var(--primary); }

/* Bloqueio de rolagem quando drawer aberto */
body.no-scroll { overflow: hidden; }

/* (scroll lock do drawer removido) */
