/* ==========================================================================
   Bazar do Povo — design system (Bootstrap 5.3 + personalização)
   Cores da bandeira de Moçambique: verde, amarelo, vermelho, preto e branco.
   (Os nomes --m-* ficaram da base original; "teal" é agora o verde da bandeira.)
   ========================================================================== */
:root {
  --m-night: #0d2420;
  --m-night-2: #173a34;
  --m-navy: #005a52;
  --m-yellow: #fce100;
  --m-yellow-600: #e3ca00;
  --m-teal: #007168;
  --m-teal-700: #005c54;
  --m-surface: #f6f7f4;
  --m-card: #ffffff;
  --m-border: #e3e8e5;
  --m-text: #172220;
  --m-muted: #5c6a66;
  --m-danger: #d21034;
  --m-radius: 16px;
  --m-radius-sm: 10px;
  --m-shadow: 0 1px 2px rgba(13, 36, 32, .06), 0 8px 24px rgba(13, 36, 32, .06);
  --m-shadow-lg: 0 18px 48px rgba(13, 36, 32, .16);
  --m-bottom-nav: 64px;
  --m-red: #d21034;
  /* Faixa com as cores da bandeira (verde, branco, preto, amarelo, vermelho) */
  --m-capulana: repeating-linear-gradient(90deg,
      var(--m-teal) 0 18px, #fff 18px 21px, var(--m-night) 21px 29px, #fff 29px 32px,
      var(--m-yellow) 32px 50px, var(--m-red) 50px 64px);

  --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-bg: var(--m-surface);
  --bs-body-color: var(--m-text);
  --bs-primary: var(--m-night);
  --bs-primary-rgb: 13, 36, 32;
  --bs-link-color: var(--m-teal-700);
  --bs-link-color-rgb: 0, 92, 84;
  --bs-link-hover-color: var(--m-night);
  --bs-border-radius: var(--m-radius-sm);
  --bs-border-color: var(--m-border);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; }
.text-muted { color: var(--m-muted) !important; }
h1, h2, h3, .h1, .h2, .h3 { font-weight: 700; letter-spacing: -.02em; }
.fw-800 { font-weight: 800; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Botões ---------- */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.4rem; }
.btn-sm { padding: .4rem .9rem; }
.btn-lg { padding: .85rem 1.8rem; }
.btn-brand { background: var(--m-yellow); color: var(--m-night); border: 0; }
.btn-brand:hover, .btn-brand:focus { background: var(--m-yellow-600); color: var(--m-night); }
.btn-night { background: var(--m-night); color: #fff; border: 0; }
.btn-night:hover, .btn-night:focus { background: var(--m-night-2); color: #fff; }
.btn-teal { background: var(--m-teal); color: #fff; border: 0; }
.btn-teal:hover { background: var(--m-teal-700); color: #fff; }
.btn-ghost { background: transparent; border: 1.5px solid var(--m-border); color: var(--m-text); }
.btn-ghost:hover { border-color: var(--m-night); color: var(--m-night); }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.btn:focus-visible, .form-control:focus, .form-select:focus { box-shadow: 0 0 0 .25rem rgba(0, 113, 104, .3); border-color: var(--m-teal); }

/* ---------- Formulários ---------- */
.form-control, .form-select { border-radius: var(--m-radius-sm); padding: .7rem .95rem; border-color: var(--m-border); background-color: #fff; }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-text { color: var(--m-muted); }
.errorlist { list-style: none; padding: 0; margin: .25rem 0 0; color: var(--m-danger); font-size: .85rem; }

/* ---------- Cabeçalho ---------- */
.announcement { background: var(--m-yellow); color: var(--m-night); font-size: .85rem; font-weight: 600; text-align: center; padding: .4rem 1rem; }
.site-header { background: var(--m-night); color: #fff; position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 16px rgba(0,0,0,.18); }
.site-header .brand img { height: 46px; width: auto; }
.site-header .nav-link { color: rgba(255,255,255,.82); font-weight: 500; padding: .5rem .9rem !important; border-radius: 999px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--m-night); background: var(--m-yellow); }
.site-header .dropdown-menu { border: 0; border-radius: var(--m-radius); box-shadow: var(--m-shadow-lg); padding: .5rem; }
.site-header .dropdown-item { border-radius: 8px; padding: .5rem .8rem; }
.header-search { position: relative; flex: 1; max-width: 520px; }
.header-search input { border-radius: 999px; padding-left: 2.8rem; border: 0; height: 44px; }
.header-search .bi-search { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--m-muted); }
.header-action { color: #fff; position: relative; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; padding: .45rem .7rem; border-radius: 999px; }
.header-action:hover { background: rgba(255,255,255,.08); color: var(--m-yellow); }
.header-action .bi { font-size: 1.35rem; }
.cart-badge { position: absolute; top: -2px; right: -4px; background: var(--m-yellow); color: var(--m-night); font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--m-teal); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; object-fit: cover; }

/* ---------- Barra inferior (mobile) ---------- */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040; height: calc(var(--m-bottom-nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--m-border); display: flex; box-shadow: 0 -6px 20px rgba(13,36,32,.06); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .7rem; font-weight: 500; color: var(--m-muted); text-decoration: none; position: relative; }
.bottom-nav a .bi { font-size: 1.35rem; }
.bottom-nav a.active { color: var(--m-night); }
.bottom-nav a.active .bi { color: var(--m-night); }
.bottom-nav a.active::before { content: ''; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 4px 4px; background: var(--m-yellow); }
.bottom-nav .cart-badge { top: 6px; right: calc(50% - 22px); }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(var(--m-bottom-nav) + env(safe-area-inset-bottom)); }
  .site-header .brand img { height: 38px; }
}

/* ---------- Secções ---------- */
.section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin: 0; }
.section-title a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.page-header { background: var(--m-night); color: #fff; padding: 2rem 0 1.6rem; }
.page-header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); --bs-breadcrumb-item-active-color: var(--m-yellow); margin-bottom: .4rem; font-size: .85rem; }
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.surface { background: var(--m-card); border-radius: var(--m-radius); box-shadow: var(--m-shadow); }
.surface-pad { padding: 1.5rem; }
@media (min-width: 768px) { .surface-pad { padding: 2rem; } }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(31,193,195,.35), transparent 60%), linear-gradient(135deg, var(--m-night), var(--m-navy)); color: #fff; border-radius: 0 0 28px 28px; overflow: hidden; }
.hero .carousel-item { min-height: 340px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.1; }
.hero h1 mark { background: none; color: var(--m-yellow); padding: 0; }
.hero p { color: rgba(255,255,255,.8); font-size: 1.05rem; }
.hero .mascot { max-height: 300px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); animation: float 5s ease-in-out infinite; }
.hero-banner-frame { aspect-ratio: 16 / 10; max-height: 360px; width: 100%; border-radius: var(--m-radius); overflow: hidden; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.hero-banner-img { width: 100%; height: 100%; object-fit: contain; }  /* foto sempre completa, o quadro mantém o tamanho */
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero .mascot { animation: none; } html { scroll-behavior: auto; } }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; align-items: center; gap: .75rem; background: #fff; border-radius: var(--m-radius); padding: .9rem 1rem; box-shadow: var(--m-shadow); font-size: .85rem; }
.trust-item .bi { font-size: 1.5rem; color: var(--m-teal-700); }
.trust-item strong { display: block; font-size: .9rem; }

/* ---------- Categorias (chips) ---------- */
.chip-row { display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: none; padding: .25rem .1rem .75rem; scroll-snap-type: x mandatory; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem .5rem .5rem; border-radius: 999px; background: #fff; border: 1px solid var(--m-border); color: var(--m-text); text-decoration: none; font-weight: 500; font-size: .9rem; transition: .15s; }
.chip img, .chip .chip-icon { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; padding: 2px; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.chip:hover, .chip.active { background: var(--m-night); color: #fff; border-color: var(--m-night); }

/* ---------- Cartão de produto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 576px) { .product-grid { gap: 1rem; } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { background: #fff; border-radius: var(--m-radius); box-shadow: var(--m-shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: transform .18s, box-shadow .18s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--m-shadow-lg); }
.product-card .thumb { aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 40%, #fff 55%, var(--m-surface)); overflow: hidden; display: block; }
/* A foto aparece sempre completa (contain): o quadro mantém o tamanho e a imagem ajusta-se a ele */
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .35s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .badges { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; z-index: 2; }
.badge-pill { font-size: .7rem; font-weight: 700; padding: .25rem .55rem; border-radius: 999px; }
.badge-sale { background: var(--m-danger); color: #fff; }
.badge-new { background: var(--m-teal); color: #fff; }
.badge-out { background: var(--m-night); color: #fff; }
.product-card .body { padding: .75rem .85rem 1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.product-card .cat { font-size: .72rem; color: var(--m-muted); text-transform: uppercase; letter-spacing: .04em; }
.product-card .name { font-weight: 600; font-size: .95rem; color: var(--m-text); text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product-card .name::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.price { font-weight: 700; font-size: 1.05rem; color: var(--m-night); white-space: nowrap; }
.price-old { color: var(--m-muted); text-decoration: line-through; font-size: .8rem; font-weight: 400; }
.product-card .add-btn { position: relative; z-index: 3; flex-shrink: 0; }
.stars { color: #f5a524; font-size: .8rem; letter-spacing: 1px; }
.stars.lg { font-size: 1.1rem; }
/* Escolher estrelas (inputs em ordem 5→1, mostrados ao contrário) */
.star-pick { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { cursor: pointer; color: #cfd6d3; font-size: 1.15rem; line-height: 1; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f5a524; }
.star-pick input:focus-visible + label { outline: 2px solid var(--m-teal); border-radius: 4px; }
@media (max-width: 575.98px) {
  .product-card .body { padding: .6rem .65rem .75rem; }
  .product-card .name { font-size: .85rem; }
  .price { font-size: .95rem; }
  .product-card .add-btn { width: 36px; height: 36px; }
}

/* ---------- Loja ---------- */
.filters-card { position: sticky; top: 96px; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.pagination { --bs-pagination-border-radius: 999px; --bs-pagination-active-bg: var(--m-night); --bs-pagination-active-border-color: var(--m-night); --bs-pagination-color: var(--m-night); gap: .3rem; }
.pagination .page-link { border-radius: 999px !important; min-width: 40px; text-align: center; }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .bi { font-size: 3rem; color: var(--m-teal); }

/* ---------- Produto ---------- */
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--m-radius); overflow: hidden; background: #fff; box-shadow: var(--m-shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; width: 72px; height: 72px; flex: 0 0 auto; background: #fff; }
.gallery-thumbs button.active { border-color: var(--m-yellow); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--m-border); border-radius: 999px; background: #fff; }
.qty button { border: 0; background: transparent; width: 40px; height: 42px; font-size: 1.1rem; }
.qty input { width: 46px; border: 0; text-align: center; font-weight: 600; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: calc(var(--m-bottom-nav) + env(safe-area-inset-bottom)); z-index: 1035; background: #fff; border-top: 1px solid var(--m-border); padding: .6rem 1rem; display: flex; align-items: center; gap: .75rem; box-shadow: 0 -8px 20px rgba(13,36,32,.08); }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.8rem; color: #d8d5e3; cursor: pointer; line-height: 1; }
.rating-input label::before { content: '\2605'; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f5a524; }

/* ---------- Carrinho / checkout ---------- */
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: .9rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--m-border); }
.cart-line:last-child { border-bottom: 0; }
.mini-thumb { display: inline-flex; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--m-border); flex: 0 0 auto; }
.mini-thumb img { width: 100%; height: 100%; object-fit: contain; }
.mini-thumb.lg { width: 80px; height: 80px; }
.summary-row { display: flex; justify-content: space-between; padding: .35rem 0; }
.summary-total { font-size: 1.2rem; font-weight: 700; border-top: 1px dashed var(--m-border); margin-top: .5rem; padding-top: .75rem; }
.progress-free { height: 8px; border-radius: 99px; background: var(--m-surface); }
.progress-free .progress-bar { background: var(--m-teal); border-radius: 99px; }
.steps { display: flex; gap: .5rem; align-items: center; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.6); flex-wrap: wrap; }
.steps .done, .steps .current { color: var(--m-yellow); }
.pay-option { display: block; position: relative; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option .box { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 2px solid var(--m-border); border-radius: var(--m-radius-sm); background: #fff; transition: .15s; }
.pay-option .box img { width: 52px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; }
.pay-option .box .bi { font-size: 1.6rem; width: 52px; text-align: center; color: var(--m-teal-700); }
.pay-option input:checked + .box { border-color: var(--m-night); box-shadow: 0 0 0 3px rgba(255,208,0,.55); }
.pay-option input:focus-visible + .box { outline: 3px solid var(--m-teal); }
.order-timeline { display: flex; justify-content: space-between; position: relative; margin: 1.5rem 0; }
.order-timeline::before { content: ''; position: absolute; top: 18px; left: 8%; right: 8%; height: 3px; background: var(--m-border); }
.order-timeline .step { position: relative; z-index: 1; text-align: center; flex: 1; font-size: .78rem; color: var(--m-muted); }
.order-timeline .dot { width: 38px; height: 38px; margin: 0 auto .35rem; border-radius: 50%; background: #fff; border: 3px solid var(--m-border); display: flex; align-items: center; justify-content: center; }
.order-timeline .step.done .dot { background: var(--m-teal); border-color: var(--m-teal); color: #fff; }
.order-timeline .step.done { color: var(--m-text); font-weight: 600; }
.status-badge { font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
.status-New { background: #e7f0ff; color: #1f4fbf; }
.status-Accepted { background: #fff5cc; color: #7a5c00; }
.status-Shipped { background: #dff7f7; color: #0e6f71; }
.status-Completed { background: #e3f8e8; color: #1a7a35; }
.status-Cancelled { background: #fde8e8; color: #b42318; }

/* ---------- Conta ---------- */
.account-nav .list-group-item { border: 0; border-radius: var(--m-radius-sm) !important; margin-bottom: .25rem; font-weight: 500; display: flex; align-items: center; gap: .6rem; }
.account-nav .list-group-item.active { background: var(--m-night); color: #fff; }
.auth-wrap { max-width: 460px; margin: 2rem auto; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--m-night); color: rgba(255,255,255,.75); margin-top: 3rem; padding: 3rem 0 1.5rem; font-size: .9rem; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--m-yellow); }
.site-footer .pay-logos img { height: 28px; background: #fff; border-radius: 6px; padding: 2px 6px; margin: 0 .3rem .3rem 0; }

/* ---------- Toasts e diversos ---------- */
.toast-container { z-index: 1090; }
.toast { border: 0; border-radius: var(--m-radius-sm); box-shadow: var(--m-shadow-lg); }
.whatsapp-fab { position: fixed; right: 16px; bottom: 20px; z-index: 1036; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 10px 24px rgba(37,211,102,.4); text-decoration: none; }
.whatsapp-fab:hover { color: #fff; transform: scale(1.05); }
@media (max-width: 991.98px) { .whatsapp-fab { bottom: calc(var(--m-bottom-nav) + 16px + env(safe-area-inset-bottom)); width: 50px; height: 50px; font-size: 1.5rem; } .has-sticky-buy .whatsapp-fab { display: none; } }
.install-banner { position: fixed; left: 12px; right: 12px; bottom: calc(var(--m-bottom-nav) + 12px + env(safe-area-inset-bottom)); z-index: 1045; background: var(--m-night); color: #fff; border-radius: var(--m-radius); padding: .9rem 1rem; display: flex; align-items: center; gap: .8rem; box-shadow: var(--m-shadow-lg); }
.install-banner img { width: 44px; height: 44px; border-radius: 10px; }
@media (min-width: 992px) { .install-banner { left: auto; right: 24px; bottom: 24px; max-width: 380px; } }
.spinner-overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(13,36,32,.75); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; gap: 1rem; }
.prose p { line-height: 1.75; }
@media (max-width: 575.98px) {
  .trust-item { padding: .65rem .75rem; gap: .5rem; font-size: .72rem; }
  .trust-item strong { font-size: .8rem; }
  .trust-item .bi { font-size: 1.2rem; }
  .hero .btn-lg { padding: .7rem 1.3rem; font-size: 1rem; }
}

/* ---------- Identidade: capulana, Gaza ---------- */
.site-header::after, .capulana-edge::after, .site-footer::before { content: ''; display: block; height: 6px; background: var(--m-capulana); }
.site-header::after { position: absolute; left: 0; right: 0; bottom: -6px; }
.capulana-edge { position: relative; }
.capulana-edge::after { position: absolute; left: 0; right: 0; bottom: 0; }
.site-footer { position: relative; padding-top: 0; }
.site-footer::before { margin-bottom: 3rem; }
.hero { position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, var(--m-yellow) 0 2px, transparent 2px 22px),
                    repeating-linear-gradient(-45deg, var(--m-teal) 0 2px, transparent 2px 22px); }
.hero > * { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--m-teal-700); }
.kicker::before { content: ''; width: 22px; height: 4px; border-radius: 2px; background: var(--m-capulana); }
.local-word { font-style: italic; color: var(--m-teal-700); }

/* ---------- Checkout: zonas e mapa ---------- */
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--m-yellow); color: var(--m-night); font-size: .85rem; font-weight: 800; margin-right: .55rem; }
.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .5rem; }
.zone-option { display: block; cursor: pointer; position: relative; min-width: 0; }  /* deixa o texto encurtar no telemóvel */
.zone-option input { position: absolute; opacity: 0; }
.zone-option .box { display: flex; align-items: center; gap: .7rem; padding: .75rem .85rem; border: 2px solid var(--m-border); border-radius: 14px; background: #fff; transition: .15s; }
.zone-option .box > .bi { font-size: 1.3rem; color: var(--m-teal-700); }
.zone-option .fee { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.zone-option input:checked + .box { border-color: var(--m-night); box-shadow: 0 0 0 3px rgba(255,208,0,.55); }
.zone-option input:focus-visible + .box { outline: 3px solid var(--m-teal); }
.map-card { background: var(--m-surface); border-radius: 16px; padding: .9rem; }
.map-box { height: 300px; border-radius: 14px; overflow: hidden; z-index: 0; background: #e8e6ef; }
.map-tall { height: min(62vh, 520px); }
.pay-option .check { opacity: 0; }
.pay-option input:checked + .box .check { opacity: 1; }
.collect-box { background: var(--m-yellow); color: var(--m-night); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.collect-box strong { font-size: 1.6rem; line-height: 1.2; }
.collect-box span, .collect-box small { font-size: .82rem; font-weight: 600; }

/* ---------- Páginas de conteúdo ---------- */
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border-radius: var(--m-radius); padding: 1rem; box-shadow: var(--m-shadow); }
.stat strong { display: block; font-size: 1.6rem; color: var(--m-night); }
.stat span { color: var(--m-muted); font-size: .85rem; }
.value-card { background: #fff; border-radius: var(--m-radius); padding: 1.25rem; box-shadow: var(--m-shadow); height: 100%; border-top: 4px solid var(--m-yellow); }
.value-card:nth-child(2n) { border-top-color: var(--m-teal); }
.value-card:nth-child(3n) { border-top-color: var(--m-red); }
.value-card .bi { font-size: 1.6rem; color: var(--m-teal-700); }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.15rem; margin-top: 2rem; }
.legal p, .legal li { line-height: 1.75; color: #3b3650; }
.legal .toc { background: var(--m-surface); border-radius: 14px; padding: 1rem 1.25rem; }
.faq .accordion-button:not(.collapsed) { background: #fff8d6; color: var(--m-night); box-shadow: none; }
.faq .accordion-item { border: 0; border-radius: 14px !important; margin-bottom: .5rem; overflow: hidden; box-shadow: var(--m-shadow); }
.dev-credit a { color: var(--m-yellow) !important; font-weight: 600; }
.cookie-note { position: fixed; left: 12px; right: 12px; bottom: calc(var(--m-bottom-nav) + 12px + env(safe-area-inset-bottom)); z-index: 1044; background: #fff; border-radius: 14px; box-shadow: var(--m-shadow-lg); padding: .8rem 1rem; display: flex; gap: .75rem; align-items: center; font-size: .85rem; }
@media (min-width: 992px) { .cookie-note { left: 24px; right: auto; bottom: 24px; max-width: 460px; } }

/* Pino do mapa */
.m-pin-wrap { background: none; border: 0; }
.m-pin { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--m-yellow); color: var(--m-night);
  border: 3px solid var(--m-night); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.m-pin .bi { transform: rotate(45deg); font-size: 1.05rem; }
.m-pin.store { background: var(--m-teal); }

/* Botão PayPal (redireccionamento na mesma janela) */
.btn-paypal { background: #ffc439; color: #111; font-weight: 700; border: 0; }
.btn-paypal:hover, .btn-paypal:focus { background: #f2b51f; color: #111; }

/* Assinatura do autor — Stélvio “CyberGorilla” Chibuco */
.cg-signature { align-self: flex-start; max-width: 100%; display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .8rem .35rem .4rem; border-radius: 999px; border: 1px solid rgba(31,193,195,.45); background: rgba(31,193,195,.08); color: inherit; text-decoration: none; line-height: 1.1; transition: background .2s, transform .2s; }
.cg-signature:hover { background: rgba(31,193,195,.18); transform: translateY(-1px); color: inherit; }
.cg-signature img { flex: none; }
.cg-signature small { display: block; font-size: .68rem; opacity: .75; letter-spacing: .02em; }
.cg-signature strong { display: block; font-size: .82rem; font-weight: 600; color: var(--m-yellow, #ffd400); }
.cg-signature.dark strong { color: var(--m-teal-700, #0e7f81); }

/* Utilitário: deixa um elemento flex encolher (o texto longo é cortado com «…» em vez de alargar a página) */
.min-w-0 { min-width: 0 !important; }
html, body { overflow-x: clip; }

/* ---------- Logótipo (ícone + nome em texto, para usar a Poppins) ---------- */
.brand-logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; line-height: 1; text-decoration: none; }
.brand-logo img { width: 40px; height: 40px; flex: none; }
.brand-word { display: flex; flex-direction: column; }
.brand-word strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.brand-word small { font-size: .78rem; font-weight: 600; color: var(--m-yellow); letter-spacing: .02em; margin-top: .1rem; }
.brand-logo-lg img { width: 52px; height: 52px; }
.brand-logo-lg .brand-word strong { font-size: 1.6rem; }
.brand-logo-lg .brand-word small { font-size: .9rem; }
a:has(> .brand-logo) { text-decoration: none; }
@media (max-width: 575.98px) { .site-header .brand-logo img { width: 34px; height: 34px; } .site-header .brand-word strong { font-size: 1.1rem; } }

/* Chat cliente ↔ loja */
.chat-box { max-height: 60vh; min-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; padding: .5rem 0 1rem; }
.chat-msg { max-width: 80%; align-self: flex-start; background: #eef2f0; border-radius: 14px 14px 14px 4px; padding: .5rem .75rem; }
.chat-msg.mine { align-self: flex-end; background: var(--m-teal); color: #fff; border-radius: 14px 14px 4px 14px; }
.chat-msg small { display: block; opacity: .7; font-size: .7rem; margin-top: .15rem; }
.chat-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-ref { font-size: .75rem; opacity: .85; }
.chat-form textarea { resize: none; }
