/* ==========================================================================
   Bazar do Povo — estrutura de marketplace (cabeçalho, cartões, início, carrinho lateral)
   Carregado depois de motice.css: reaproveita as variáveis --m-* e sobrepõe o que muda.
   ========================================================================== */

/* ---------- Cabeçalho ---------- */
.site-header { box-shadow: 0 2px 18px rgba(0, 0, 0, .2); }
.header-top { padding: .6rem 0; }
.header-row { display: flex; align-items: center; gap: .75rem; }
.header-row .brand { flex: none; }
.deliver-to { flex: none; align-items: center; gap: .45rem; background: transparent; border: 1px solid transparent; color: #fff; border-radius: 12px; padding: .3rem .6rem; text-align: left; line-height: 1.15; }
.deliver-to:hover { border-color: rgba(255, 255, 255, .25); }
.deliver-to .bi { font-size: 1.2rem; color: var(--m-yellow); }
.deliver-to small { display: block; font-size: .7rem; color: rgba(255, 255, 255, .65); }
.deliver-to strong { display: block; font-size: .85rem; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-search { position: relative; flex: 1; max-width: none; }
.header-search input { height: 46px; border-radius: 999px; padding: 0 3.4rem 0 2.8rem; border: 2px solid transparent; font-size: .95rem; }
.header-search input:focus { border-color: var(--m-yellow); box-shadow: 0 0 0 4px rgba(252, 225, 0, .25); }
.header-search input::-webkit-search-cancel-button { display: none; }
.header-search .search-go { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }

.header-actions { display: flex; align-items: center; gap: .15rem; flex: none; }
.header-action .action-label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.header-action .action-label small { font-size: .7rem; color: rgba(255, 255, 255, .65); }
.header-action .action-label strong { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.header-action:hover .action-label small { color: inherit; }
.cart-badge.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }

@media (max-width: 991.98px) {
  .header-row { flex-wrap: wrap; row-gap: .55rem; }
  .header-actions { margin-left: auto; }
  .header-search { order: 10; flex-basis: 100%; }
  .header-search input { height: 42px; }
  .header-search .search-go { width: 34px; height: 34px; }
}

/* Sugestões da pesquisa */
.suggest-box { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 1060; background: #fff; color: var(--m-text); border-radius: var(--m-radius); box-shadow: var(--m-shadow-lg); padding: .5rem; max-height: min(70vh, 520px); overflow-y: auto; }
.suggest-box h6 { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--m-muted); margin: .5rem .6rem .3rem; }
.suggest-item { display: flex; align-items: center; gap: .7rem; padding: .45rem .6rem; border-radius: 10px; color: var(--m-text); text-decoration: none; }
.suggest-item:hover, .suggest-item.active { background: var(--m-surface); color: var(--m-text); }
.suggest-item img, .suggest-item .s-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--m-surface); flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--m-teal-700); }
.suggest-item .s-main { min-width: 0; flex: 1; }
.suggest-item .s-main strong { display: block; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-item .s-main small { color: var(--m-muted); font-size: .75rem; }
.suggest-item mark { background: rgba(252, 225, 0, .55); padding: 0 1px; border-radius: 3px; }
.suggest-item .s-price { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.suggest-all { display: block; text-align: center; padding: .6rem; margin-top: .25rem; border-top: 1px solid var(--m-border); font-weight: 600; text-decoration: none; }
.suggest-empty { padding: 1rem; text-align: center; color: var(--m-muted); font-size: .9rem; }

/* Faixa de categorias */
.header-cats { background: var(--m-night-2); border-top: 1px solid rgba(255, 255, 255, .06); }
.header-cats .container-xl { height: 46px; }
.cat-links { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.cat-links::-webkit-scrollbar { display: none; }
.cat-links a, .cat-sell, .mega-toggle { color: rgba(255, 255, 255, .85); text-decoration: none; font-size: .88rem; font-weight: 500; padding: .4rem .75rem; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.cat-links a:hover, .cat-links a.active { background: rgba(255, 255, 255, .1); color: #fff; }
.cat-links .cat-hot { color: var(--m-yellow); font-weight: 600; }
.cat-sell { color: var(--m-yellow); font-weight: 600; }
.cat-sell:hover { background: var(--m-yellow); color: var(--m-night); }
.mega { position: relative; flex: none; }
.mega-toggle { background: var(--m-yellow); color: var(--m-night); border: 0; font-weight: 600; margin-right: .5rem; }
.mega-toggle:hover, .mega-toggle[aria-expanded="true"] { background: var(--m-yellow-600); color: var(--m-night); }
.mega-toggle .bi-chevron-down { transition: transform .2s; }
.mega-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.mega-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 1060; width: min(760px, 90vw); background: #fff; color: var(--m-text); border-radius: var(--m-radius); box-shadow: var(--m-shadow-lg); padding: 1rem; animation: pop .16s ease-out; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; }
.mega-item { display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border-radius: 12px; color: var(--m-text); text-decoration: none; font-weight: 500; font-size: .92rem; }
.mega-item:hover { background: var(--m-surface); color: var(--m-night); }
.mega-icon { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 113, 104, .1); color: var(--m-teal-700); font-size: 1.1rem; flex: none; }
.mega-item:hover .mega-icon { background: var(--m-yellow); color: var(--m-night); }
.mega-foot { border-top: 1px solid var(--m-border); margin-top: .75rem; padding-top: .75rem; }
.mega-foot a { font-weight: 600; text-decoration: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Cartão de produto ---------- */
@media (min-width: 1200px) { .product-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 992px) and (max-width: 1199.98px) { .product-grid.cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { border: 1px solid transparent; }
.product-card:hover { border-color: rgba(252, 225, 0, .8); }
.product-card .thumb { position: relative; background: #fff; }
.product-card .thumb img { position: absolute; inset: 0; transition: opacity .3s, transform .35s; }
.product-card .thumb-alt { opacity: 0; }
.product-card:hover .thumb-alt { opacity: 1; }
.product-card:hover .thumb:has(.thumb-alt) img:first-child { opacity: 0; }
.product-card.is-out .thumb img { filter: grayscale(.7); opacity: .7; }
.fav-form { position: absolute; top: .5rem; right: .5rem; z-index: 4; margin: 0; }
.fav-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--m-muted); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(13, 36, 32, .12); transition: transform .15s, color .15s; font-size: 1rem; }
.fav-btn:hover { color: var(--m-red); transform: scale(1.08); }
.fav-btn.is-on { color: var(--m-red); }
.fav-btn.pulse { animation: bump .45s ease; }
.product-card .body { gap: .3rem; }
.product-card .seller { position: relative; z-index: 3; display: flex; align-items: center; gap: .3rem; font-size: .74rem; color: var(--m-teal-700); text-decoration: none; min-width: 0; font-weight: 500; }
.product-card .seller:hover { text-decoration: underline; }
.product-card .seller .bi { flex: none; }
.product-card .seller-place { color: var(--m-muted); white-space: nowrap; font-weight: 400; }
.product-card .rating-line { display: flex; align-items: center; gap: .25rem; }
.product-card .rating-line small { color: var(--m-muted); font-size: .72rem; }
.product-card .price-row { justify-content: flex-start; align-items: baseline; flex-wrap: wrap; column-gap: .45rem; row-gap: 0; padding-top: .2rem; }
.product-card .price { font-size: 1.1rem; }
.product-card .price-unit { color: var(--m-muted); font-size: .78rem; }
.stock-low { font-size: .72rem; color: var(--m-red); font-weight: 600; }
.btn-add { position: relative; z-index: 3; width: 100%; margin-top: .5rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem .75rem; font-size: .88rem; background: #fff; color: var(--m-night); border: 1.5px solid var(--m-yellow); transition: background .15s, transform .1s; }
.btn-add:hover, .btn-add:focus-visible { background: var(--m-yellow); color: var(--m-night); border-color: var(--m-yellow); }
.btn-add:active { transform: scale(.97); }
.btn-add.is-done { background: var(--m-teal); border-color: var(--m-teal); color: #fff; }
.btn-add.is-disabled { border-color: var(--m-border); color: var(--m-muted); cursor: default; background: var(--m-surface); }
.product-card form[data-ajax-cart] { margin: 0; }
@media (max-width: 575.98px) {
  .btn-add { padding: .45rem .5rem; font-size: .8rem; }
  .fav-btn { width: 32px; height: 32px; font-size: .9rem; }
  .product-card .seller-place { display: none; }
}

/* ---------- Fileiras deslizantes ---------- */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1.5rem) / 2.15); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .25rem .1rem 1rem; overscroll-behavior-x: contain; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; min-width: 0; }
.rail-cell { display: flex; }
.rail-cell > .product-card { flex: 1; }
@media (min-width: 768px) { .rail-track { grid-auto-columns: calc((100% - 3rem) / 3.3); gap: 1rem; } }
@media (min-width: 992px) { .rail-track { grid-auto-columns: calc((100% - 4rem) / 4); } }
@media (min-width: 1200px) { .rail-track { grid-auto-columns: calc((100% - 4rem) / 5); } }
.rail-btn { position: absolute; top: 40%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--m-night); box-shadow: var(--m-shadow-lg); display: none; align-items: center; justify-content: center; font-size: 1.1rem; transition: opacity .2s, transform .15s; }
.rail-btn:hover { transform: scale(1.06); background: var(--m-yellow); }
.rail-btn.prev { left: -18px; }
.rail-btn.next { right: -18px; }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
@media (min-width: 992px) { .rail-btn { display: inline-flex; } }

/* ---------- Início ---------- */
.page-home main { background: linear-gradient(180deg, #fff 0, var(--m-surface) 520px); }
.home-top { padding: 1.1rem 0 .5rem; }
.home-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 992px) { .home-grid { grid-template-columns: 230px minmax(0, 1fr); min-height: 380px; } }
@media (min-width: 1200px) { .home-grid { grid-template-columns: 240px minmax(0, 1fr) 250px; } }
.home-cats { flex-direction: column; background: #fff; border-radius: var(--m-radius); box-shadow: var(--m-shadow); padding: .5rem; overflow: hidden; }
.home-cats a { display: flex; align-items: center; gap: .65rem; padding: .5rem .65rem; border-radius: 10px; color: var(--m-text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.home-cats a > .bi:first-child { color: var(--m-teal-700); font-size: 1.05rem; width: 20px; text-align: center; }
.home-cats a .bi-chevron-right { font-size: .7rem; color: var(--m-muted); opacity: 0; transition: opacity .15s, transform .15s; }
.home-cats a:hover { background: var(--m-surface); color: var(--m-night); }
.home-cats a:hover .bi-chevron-right { opacity: 1; transform: translateX(2px); }
.home-cats a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-cats-all { margin-top: auto; font-weight: 600 !important; color: var(--m-teal-700) !important; }

.hero-slider { border-radius: var(--m-radius); overflow: hidden; box-shadow: var(--m-shadow); min-height: 280px; }
.hero-slider .carousel-inner, .hero-slider .carousel-item { height: 100%; }
.hero-slide { position: relative; height: 100%; min-height: 280px; display: grid; grid-template-columns: 1fr; align-items: center; padding: 2rem 1.5rem 2.75rem; color: #fff; overflow: hidden; }
@media (min-width: 768px) { .hero-slide { grid-template-columns: 1.3fr 1fr; padding: 2.25rem 3rem 2.75rem; gap: 1rem; } }
.hero-slide::before { content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none; background-image: repeating-linear-gradient(45deg, #fff 0 2px, transparent 2px 22px); }
.hero-slide > * { position: relative; }
.slide-night { background: radial-gradient(600px 300px at 90% 10%, rgba(0, 113, 104, .7), transparent 70%), linear-gradient(135deg, var(--m-night), var(--m-navy)); }
.slide-red { background: radial-gradient(500px 260px at 85% 20%, rgba(252, 225, 0, .35), transparent 70%), linear-gradient(135deg, #b30d2c, #d21034); }
.slide-green { background: radial-gradient(500px 260px at 85% 20%, rgba(252, 225, 0, .25), transparent 70%), linear-gradient(135deg, var(--m-teal-700), #00897e); }
.hero-slide h1, .hero-slide .h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.08; margin: .4rem 0 .6rem; }
.hero-slide h1 mark { background: none; color: var(--m-yellow); padding: 0; }
.hero-slide p { color: rgba(255, 255, 255, .85); max-width: 460px; margin-bottom: 1.2rem; }
.slide-kicker { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .14); padding: .3rem .7rem; border-radius: 999px; }
.slide-media { display: none; justify-content: center; align-items: center; }
@media (min-width: 768px) { .slide-media { display: flex; } }
.slide-media img { max-height: 280px; max-width: 100%; object-fit: contain; }
.slide-media .mascot { max-height: 250px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); animation: float 5s ease-in-out infinite; }
.slide-big-icon { width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; font-size: 6rem; color: var(--m-yellow); animation: float 5s ease-in-out infinite; }
.hero-slider .carousel-indicators { margin-bottom: .9rem; }
.hero-slider .carousel-indicators [data-bs-target] { width: 8px; height: 8px; border-radius: 99px; border: 0; transition: width .3s; }
.hero-slider .carousel-indicators .active { width: 26px; background: var(--m-yellow); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 52px; opacity: 0; transition: opacity .2s; }
.hero-slider:hover .carousel-control-prev, .hero-slider:hover .carousel-control-next { opacity: .85; }

.home-side { flex-direction: column; gap: .75rem; }
.side-card { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .15rem; background: #fff; border-radius: var(--m-radius); box-shadow: var(--m-shadow); padding: .9rem 1rem; border: 0; text-align: left; color: var(--m-text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.side-card:hover, button.side-card:hover { transform: translateY(-2px); box-shadow: var(--m-shadow-lg); color: var(--m-text); }
.side-card > .bi { font-size: 1.4rem; color: var(--m-teal-700); }
.side-card strong { font-size: .95rem; }
.side-card small { color: var(--m-muted); font-size: .78rem; line-height: 1.3; }
.side-welcome { flex: 1.3; }
.side-welcome .avatar { margin-bottom: .25rem; }
.side-links { display: flex; gap: .5rem; margin-top: .4rem; }
.side-links a { flex: 1; text-align: center; font-size: .78rem; font-weight: 600; background: var(--m-surface); border-radius: 10px; padding: .4rem; text-decoration: none; color: var(--m-text); }
.side-links a .bi { display: block; font-size: 1.05rem; color: var(--m-teal-700); }
.side-sell { background: linear-gradient(135deg, var(--m-yellow), #ffd84d); }
.side-sell > .bi { color: var(--m-night); }
.side-sell small { color: rgba(13, 36, 32, .7); }

.home-top .trust { margin-top: 1rem; }
.trust-item { box-shadow: none; border: 1px solid var(--m-border); }

.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem .5rem; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; font-size: .75rem; font-weight: 500; color: var(--m-text); text-decoration: none; line-height: 1.2; }
.cat-tile span { width: 58px; height: 58px; border-radius: 18px; background: #fff; box-shadow: var(--m-shadow); display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem; color: var(--m-teal-700); transition: transform .15s; }
.cat-tile:nth-child(3n+2) span { color: var(--m-red); }
.cat-tile:nth-child(3n) span { color: #b78f00; }
.cat-tile:active span { transform: scale(.94); }

/* Ofertas do dia */
.deals-band { background: radial-gradient(600px 240px at 95% 0, rgba(252, 225, 0, .3), transparent 70%), linear-gradient(135deg, #b30d2c, #d21034); border-radius: calc(var(--m-radius) + 6px); padding: 1.1rem 1rem .25rem; }
@media (min-width: 768px) { .deals-band { padding: 1.4rem 1.5rem .5rem; } }
.deals-band .section-title h2 { color: #fff; }
.deals-band .section-title h2 .bi { color: var(--m-yellow); }
.deals-band .section-title > a { color: #fff; }
.deals-band .rail-btn.prev { left: -10px; }
.deals-band .rail-btn.next { right: -10px; }

/* Perto de si */
.province-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.province-pick > .bi { font-size: 2rem; color: var(--m-red); }
.province-quick { display: flex; flex-wrap: wrap; gap: .4rem; }
.province-option { border: 1.5px solid var(--m-border); background: #fff; border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; font-weight: 500; color: var(--m-text); transition: .15s; }
.province-option:hover { border-color: var(--m-night); }
.province-option.active { background: var(--m-night); border-color: var(--m-night); color: #fff; }
.province-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.province-grid .province-option { border-radius: 12px; text-align: left; }

/* Lojas */
.store-card { display: flex; flex-direction: column; gap: .2rem; background: #fff; border-radius: var(--m-radius); box-shadow: var(--m-shadow); padding: 1.1rem; color: var(--m-text); text-decoration: none; min-width: 0; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, border-color .15s; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--m-shadow-lg); border-color: rgba(252, 225, 0, .8); color: var(--m-text); }
.store-logo { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--m-teal), var(--m-night)); color: var(--m-yellow); font-size: 1.5rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: .45rem; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--m-border); }
.store-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.store-card small { font-size: .78rem; }
.store-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .78rem; margin-top: .4rem; padding-top: .5rem; border-top: 1px dashed var(--m-border); }
.store-go { font-weight: 600; font-size: .82rem; color: var(--m-teal-700); margin-top: .4rem; }

/* Vender */
.sell-band { display: grid; gap: 1.5rem; align-items: center; background: radial-gradient(700px 300px at 100% 0, rgba(0, 113, 104, .55), transparent 70%), linear-gradient(135deg, var(--m-night), var(--m-night-2)); color: #fff; border-radius: calc(var(--m-radius) + 6px); padding: 1.75rem 1.5rem; }
@media (min-width: 992px) { .sell-band { grid-template-columns: 1.2fr 1fr; padding: 2.5rem 3rem; } }
.sell-band h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; margin: .6rem 0; }
.sell-band p { color: rgba(255, 255, 255, .8); }
.sell-steps { display: grid; gap: .75rem; margin: 0; }
.sell-steps li { display: flex; gap: .85rem; align-items: center; background: rgba(255, 255, 255, .07); border-radius: 14px; padding: .8rem 1rem; font-size: .85rem; color: rgba(255, 255, 255, .75); }
.sell-steps li strong { display: block; color: #fff; font-size: .95rem; }
.sell-steps span { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--m-yellow); color: var(--m-night); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Carrinho lateral ---------- */
.cart-drawer { --bs-offcanvas-width: 420px; }
.cart-drawer .offcanvas-header { border-bottom: 1px solid var(--m-border); }
.drawer-body { flex: 1; overflow-y: auto; padding: .5rem 1.25rem; }
.drawer-item { display: flex; gap: .85rem; padding: .9rem 0; border-bottom: 1px solid var(--m-border); }
.drawer-item:last-child { border-bottom: 0; }
.drawer-item.is-busy { opacity: .5; pointer-events: none; }
.drawer-foot { border-top: 1px solid var(--m-border); padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 20px rgba(13, 36, 32, .05); }
.qty.qty-sm button { width: 32px; height: 32px; font-size: .95rem; }
.qty.qty-sm button[disabled] { opacity: .35; }
.qty-value { min-width: 26px; text-align: center; font-weight: 600; font-size: .9rem; }
.skeleton-line { height: 72px; border-radius: 12px; margin: 1rem 0; background: linear-gradient(90deg, var(--m-surface) 25%, #eceeea 50%, var(--m-surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .slide-media .mascot, .slide-big-icon, .skeleton-line { animation: none; }
  .mega-panel { animation: none; }
}
.hero-slide .btn { white-space: nowrap; }
.side-welcome small, .side-welcome strong { display: block; }
@media (max-width: 575.98px) {
  .home-top .trust { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; gap: .5rem; margin-left: -12px; margin-right: -12px; padding: 0 12px; }
  .home-top .trust::-webkit-scrollbar { display: none; }
  .home-top .trust-item { flex: 0 0 72%; scroll-snap-align: start; }
}
.rail-stores .rail-track { grid-auto-columns: 68%; }
@media (min-width: 576px) { .rail-stores .rail-track { grid-auto-columns: calc((100% - 2rem) / 2.6); } }
@media (min-width: 768px) { .rail-stores .rail-track { grid-auto-columns: calc((100% - 3rem) / 3.5); } }
@media (min-width: 992px) { .rail-stores .rail-track { grid-auto-columns: calc((100% - 4rem) / 5); } }

/* ---------- Catálogo e pesquisa ---------- */
.cat-hero { background: linear-gradient(120deg, var(--m-night) 0%, var(--m-navy) 100%); color: #fff; padding: 1.1rem 0 1.4rem; position: relative; overflow: hidden; }
.cat-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 225, 0, .18), transparent 70%); }
.cat-hero .breadcrumb { margin-bottom: .6rem; font-size: .82rem; }
.cat-hero .breadcrumb a, .cat-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .65); }
.cat-hero .breadcrumb-item.active { color: #fff; }
.cat-hero-row { display: flex; align-items: center; gap: 1rem; position: relative; z-index: 1; }
.cat-hero-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--m-yellow); color: var(--m-night); display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.cat-hero h1 { font-size: clamp(1.35rem, 2.6vw, 2rem); margin: 0; }
.cat-hero p { margin: .2rem 0 0; color: rgba(255, 255, 255, .72); font-size: .92rem; }
.cat-chips { margin-bottom: .5rem; }
.cat-chips .chip-icon { font-size: 1rem; color: var(--m-teal); }
.cat-chips .chip.active .chip-icon { color: var(--m-night); }

.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 992px) { .catalog-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.catalog-main { min-width: 0; transition: opacity .2s; }
.catalog.is-loading .catalog-main { opacity: .45; pointer-events: none; }
.catalog.is-loading .catalog-main::before { content: ""; display: block; height: 3px; margin-bottom: -3px; background: linear-gradient(90deg, var(--m-teal), var(--m-yellow), var(--m-red)); background-size: 200% 100%; animation: loading-bar 1s linear infinite; border-radius: 3px; }
@keyframes loading-bar { to { background-position: -200% 0; } }

.catalog-side { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; scrollbar-width: thin; background: var(--m-card); border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: .4rem 1.1rem; }
.filters .f-group { border-bottom: 1px solid var(--m-border); padding: .85rem 0; }
.filters .f-group:last-of-type { border-bottom: 0; }
.filters summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; margin-bottom: .1rem; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "\F282"; font-family: bootstrap-icons; font-size: .8rem; color: var(--m-muted); transition: transform .2s; }
.filters details[open] > summary { margin-bottom: .65rem; }
.filters details[open] > summary::after { transform: rotate(180deg); }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list a { display: flex; align-items: center; gap: .6rem; padding: .38rem .5rem; margin: 0 -.5rem; border-radius: 8px; color: var(--m-text); text-decoration: none; font-size: .9rem; }
.f-list a .bi { color: var(--m-teal); width: 1.1rem; text-align: center; }
.f-list a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-list a:hover { background: var(--m-surface); }
.f-list a.active { background: rgba(0, 113, 104, .1); color: var(--m-navy); font-weight: 600; }
.filters em { font-style: normal; font-size: .75rem; color: var(--m-muted); background: var(--m-surface); border-radius: 999px; padding: .05rem .5rem; }
.f-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .65rem; }
.f-pill { font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--m-border); color: var(--m-text); text-decoration: none; background: #fff; }
.f-pill:hover { border-color: var(--m-teal); color: var(--m-teal); }
.f-pill.active { background: var(--m-night); border-color: var(--m-night); color: #fff; }
.f-price { display: flex; align-items: center; gap: .35rem; }
.f-price span { color: var(--m-muted); }
.f-price .btn { flex: none; width: 34px; padding-left: 0; padding-right: 0; }
.f-options { display: grid; gap: .1rem; }
.f-option { display: flex; align-items: center; gap: .55rem; padding: .32rem .5rem; margin: 0 -.5rem; border-radius: 8px; cursor: pointer; font-size: .9rem; }
.f-option:hover { background: var(--m-surface); }
.f-option input { accent-color: var(--m-teal); width: 1rem; height: 1rem; flex: none; }
.f-option span:not(.text-warning) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-option .text-warning { font-size: .8rem; flex: none; }
.f-option:has(input:checked) { font-weight: 600; color: var(--m-navy); }
.filters .form-switch { margin-bottom: .4rem; }
.filters .form-check-input:checked { background-color: var(--m-teal); border-color: var(--m-teal); }
.f-submit { display: grid; gap: .5rem; padding: .9rem 0 .5rem; }
form[data-live-filters] .f-submit .btn-night { display: none; }

.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.catalog-count { color: var(--m-muted); }
.catalog-count strong { color: var(--m-text); font-size: 1.05rem; }
.catalog-actions { display: flex; align-items: center; gap: .5rem; }
.sort-form { display: flex; align-items: center; gap: .45rem; }
.sort-label { font-size: .85rem; color: var(--m-muted); white-space: nowrap; }
.sort-form .form-select { border-radius: 999px; min-width: 190px; font-weight: 500; }
.filters-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2rem; height: 1.2rem; border-radius: 999px; background: var(--m-yellow); color: var(--m-night); font-size: .72rem; font-weight: 700; margin-left: .2rem; }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .45rem .3rem .8rem; border-radius: 999px; background: rgba(0, 113, 104, .1); color: var(--m-navy); font-size: .83rem; font-weight: 600; text-decoration: none; transition: .15s; }
.filter-chip .bi { width: 1.2rem; height: 1.2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 113, 104, .15); }
.filter-chip:hover { background: var(--m-danger); color: #fff; }
.filter-chip:hover .bi { background: rgba(255, 255, 255, .25); }
.filter-clear { font-size: .83rem; color: var(--m-muted); margin-left: .3rem; }

.province-hint { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; margin-bottom: 1rem; border-radius: var(--m-radius-sm); background: rgba(252, 225, 0, .2); border: 1px dashed rgba(13, 36, 32, .2); color: var(--m-text); text-decoration: none; font-size: .9rem; }
.province-hint:hover { background: rgba(252, 225, 0, .35); color: var(--m-text); }
.province-hint > .bi:first-child { color: var(--m-teal); font-size: 1.1rem; }

.catalog-stores { margin-bottom: 1.25rem; }
.catalog-stores h2 { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; }
.catalog-stores-row { display: flex; gap: .6rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
.catalog-stores-row::-webkit-scrollbar { display: none; }
.mini-store { flex: 0 0 auto; min-width: 220px; display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: var(--m-radius-sm); background: var(--m-card); border: 1px solid var(--m-border); color: var(--m-text); text-decoration: none; transition: .15s; }
.mini-store:hover { border-color: var(--m-teal); box-shadow: var(--m-shadow); color: var(--m-text); }
.mini-store img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.mini-store > span:not(.avatar) { flex: 1; min-width: 0; }
.mini-store strong { display: block; font-size: .9rem; }
.mini-store small { color: var(--m-muted); font-size: .78rem; }
.mini-store > .bi { color: var(--m-muted); }

.catalog-more { text-align: center; margin: 2rem auto 0; max-width: 320px; }
.catalog-progress { height: 4px; border-radius: 4px; background: var(--m-border); overflow: hidden; margin-bottom: 1rem; }
.catalog-progress span { display: block; height: 100%; background: var(--m-teal); border-radius: 4px; }
.btn-more { width: 100%; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; }
.btn-more.is-busy { pointer-events: none; opacity: .7; }
.btn-more.is-busy .bi { animation: spin 1s linear infinite; }
.btn-more.is-busy .bi::before { content: "\F130"; }
@keyframes spin { to { transform: rotate(360deg); } }
.catalog-empty .empty-icon { display: inline-flex; width: 72px; height: 72px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(0, 113, 104, .1); }
.catalog-empty .empty-icon .bi { font-size: 2rem; }

.filters-sheet { height: auto !important; max-height: 88vh; border-radius: 20px 20px 0 0; }
.filters-sheet .f-submit { position: sticky; bottom: 0; background: #fff; padding-bottom: 1rem; box-shadow: 0 -10px 16px -10px rgba(0, 0, 0, .12); }
@media (max-width: 991.98px) {
  .catalog-bar { position: sticky; top: var(--header-offset, var(--header-h, 118px)); z-index: 5; background: var(--m-surface); padding: .5rem 0; margin-top: -.5rem; }
}
@media (max-width: 575.98px) {
  .sort-form .form-select { min-width: 0; max-width: 170px; }
  .cat-hero-icon { width: 44px; height: 44px; font-size: 1.25rem; border-radius: 12px; }
}

/* ---------- Página de produto ---------- */
.pd-crumbs { font-size: .82rem; --bs-breadcrumb-divider-color: var(--m-muted); --bs-breadcrumb-item-active-color: var(--m-muted); }
.pd-crumbs a { color: var(--m-muted); text-decoration: none; }
.pd-crumbs a:hover { color: var(--m-teal); }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (min-width: 768px) { .pd-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem; } }
@media (min-width: 1200px) { .pd-layout { gap: 3rem; } }

.pd-gallery { display: flex; flex-direction: column-reverse; gap: .75rem; }
@media (min-width: 992px) { .pd-gallery { flex-direction: row; position: sticky; top: 140px; } }
.pd-thumbs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 992px) { .pd-thumbs { flex-direction: column; overflow: visible; flex: none; } }
.pd-thumbs button { flex: none; width: 68px; height: 68px; padding: 3px; border-radius: 12px; border: 2px solid var(--m-border); background: #fff; transition: .15s; }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--m-teal); }
.pd-main { position: relative; flex: 1; min-width: 0; aspect-ratio: 1; border-radius: var(--m-radius); overflow: hidden; background: #fff; border: 1px solid var(--m-border); }
.pd-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.pd-main.is-zoomed { cursor: zoom-in; }
.pd-main.is-zoomed img { transform: scale(2); }
.pd-badges { position: absolute; top: .9rem; left: .9rem; z-index: 2; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.pd-tools { position: absolute; top: .8rem; right: .8rem; z-index: 2; display: flex; flex-direction: column; gap: .5rem; }
.pd-tools .fav-btn { position: static; }

.pd-cat { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--m-teal); text-decoration: none; }
.pd-title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: .35rem 0 .5rem; line-height: 1.2; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .88rem; color: var(--m-muted); margin-bottom: 1rem; }
.pd-meta a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.pd-meta a:hover { color: var(--m-teal); }
.pd-meta strong { color: var(--m-text); }
.pd-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--m-border); }
.pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; padding: 1rem 1.1rem; border-radius: var(--m-radius-sm); background: var(--m-surface); margin-bottom: .85rem; }
.pd-price .price { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1; }
.pd-unit { color: var(--m-muted); }
.pd-save { flex-basis: 100%; display: flex; align-items: center; gap: .6rem; }
.save-tag { font-size: .78rem; font-weight: 700; color: var(--m-danger); background: rgba(210, 16, 52, .1); border-radius: 999px; padding: .15rem .6rem; }
.pd-stock { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: #198754; margin-bottom: 1rem; }
.pd-stock.is-low { color: #c2410c; }
.pd-stock.is-out { color: var(--m-muted); font-weight: 500; background: var(--m-surface); padding: .8rem 1rem; border-radius: var(--m-radius-sm); }

.pd-buy { margin-bottom: 1.1rem; }
.pd-variants { border: 0; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.pd-variants legend { font-size: .85rem; font-weight: 600; margin-bottom: .45rem; float: none; width: auto; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant span { display: inline-block; padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--m-border); background: #fff; font-size: .88rem; cursor: pointer; transition: .15s; }
.variant span:hover { border-color: var(--m-teal); }
.variant input:checked + span { border-color: var(--m-night); background: var(--m-night); color: #fff; }
.variant input:focus-visible + span { outline: 3px solid rgba(0, 113, 104, .35); outline-offset: 2px; }
.pd-actions { display: flex; gap: .6rem; align-items: stretch; }
.pd-actions .pd-add { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.pd-incart { display: flex; align-items: center; gap: .4rem; justify-content: center; margin-top: .7rem; font-size: .88rem; }

.pd-delivery { border: 1px solid var(--m-border); border-radius: var(--m-radius-sm); margin-bottom: 1rem; background: #fff; }
.pd-delivery-row { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; }
.pd-delivery-row + .pd-delivery-row { border-top: 1px solid var(--m-border); }
.pd-delivery-row > .bi { font-size: 1.25rem; color: var(--m-teal); flex: none; }
.pd-delivery-row > div { flex: 1; min-width: 0; }
.pd-delivery-row strong { display: block; font-size: .9rem; }
.pd-delivery-row small { display: block; color: var(--m-muted); font-size: .8rem; }
.pd-delivery-row .btn-link { flex: none; font-weight: 600; color: var(--m-teal); text-decoration: none; }

.pd-seller { border: 1px solid var(--m-border); border-radius: var(--m-radius-sm); padding: 1rem; background: #fff; }
.pd-seller-head { display: flex; align-items: center; gap: .8rem; color: var(--m-text); text-decoration: none; }
.pd-seller-head img { border-radius: 50%; object-fit: cover; }
.store-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--m-night); color: var(--m-yellow); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; }
.pd-seller-head small { display: block; font-size: .75rem; color: var(--m-muted); }
.pd-seller-head strong { display: block; }
.pd-seller-head em { font-style: normal; font-size: .8rem; color: var(--m-muted); }
.pd-seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .9rem 0; text-align: center; }
.pd-seller-stats span { background: var(--m-surface); border-radius: 10px; padding: .5rem .25rem; font-size: .75rem; color: var(--m-muted); line-height: 1.25; }
.pd-seller-stats strong { display: block; color: var(--m-text); font-size: .95rem; }
.pd-seller-stats .bi { color: #f5a524; font-size: .8rem; }
.pd-seller-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.pd-tabs { gap: .25rem; border-bottom: 1px solid var(--m-border); margin-bottom: 1.25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pd-tabs button { border: 0; background: none; padding: .8rem 1.1rem; font-weight: 600; color: var(--m-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.pd-tabs button span { font-size: .75rem; background: var(--m-surface); border-radius: 999px; padding: .05rem .5rem; margin-left: .2rem; }
.pd-tabs button.active { color: var(--m-text); border-bottom-color: var(--m-teal); }
.pd-panes .prose { max-width: 760px; }
.pd-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; margin: 1.25rem 0 0; max-width: 760px; }
.pd-specs div { background: var(--m-surface); border-radius: 10px; padding: .6rem .85rem; }
.pd-specs dt { font-size: .75rem; color: var(--m-muted); font-weight: 500; }
.pd-specs dd { margin: 0; font-weight: 600; font-size: .9rem; }

.review-summary { background: #fff; border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: 1.25rem; }
.review-score { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; margin-bottom: 1rem; }
.review-score > strong { font-size: 2.8rem; line-height: 1; }
.review-score small { color: var(--m-muted); }
.review-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.review-bars li { display: grid; grid-template-columns: 2.6rem 1fr 1.8rem; align-items: center; gap: .5rem; font-size: .82rem; color: var(--m-muted); }
.review-bars .bi { color: #f5a524; font-size: .7rem; }
.review-bars .bar { height: 8px; border-radius: 8px; background: var(--m-surface); overflow: hidden; }
.review-bars .bar span { display: block; height: 100%; background: #f5a524; border-radius: 8px; }
.review-bars li > span:last-child { text-align: right; }
.review-form { margin-top: 1rem; background: #fff; border: 1px solid var(--m-border); border-radius: var(--m-radius); padding: 1.25rem; }
.review-item { border-bottom: 1px solid var(--m-border); padding: 1rem 0; }
.review-item:first-child { padding-top: 0; }
.review-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.review-head > div { flex: 1; min-width: 0; }
.review-head > small { color: var(--m-muted); }
.review-item p { margin: 0; }
.verified { font-size: .75rem; color: #198754; margin-left: .35rem; }
.verified .bi { margin-right: .2rem; }
.review-reply { margin-top: .6rem; padding: .6rem .85rem; border-left: 3px solid var(--m-teal); background: var(--m-surface); border-radius: 0 10px 10px 0; font-size: .88rem; }
.review-reply strong { display: block; font-size: .8rem; color: var(--m-teal); }

.zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.zone-card { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--m-radius-sm); border: 1px solid var(--m-border); background: #fff; }
.zone-card > .bi { color: var(--m-teal); font-size: 1.2rem; }
.zone-card > div { flex: 1; min-width: 0; }
.zone-card strong { display: block; font-size: .9rem; }
.zone-card small { color: var(--m-muted); font-size: .8rem; }
.zone-card > span { font-weight: 700; white-space: nowrap; }
.zone-card.is-here { border-color: var(--m-teal); background: rgba(0, 113, 104, .06); }
.see-all .bi { transition: transform .15s; }
.see-all:hover .bi { transform: translateX(3px); }

/* ---------- Página da loja ---------- */
.store-cover { height: 150px; background: var(--m-night); position: relative; overflow: hidden; padding-top: .8rem; }
.store-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(252, 225, 0, .28), transparent 40%), radial-gradient(circle at 10% 90%, rgba(0, 113, 104, .7), transparent 45%); }
.store-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--m-capulana); }
.store-cover .breadcrumb { position: relative; font-size: .82rem; }
.store-cover .breadcrumb a, .store-cover .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .65); }
.store-cover .breadcrumb-item.active { color: #fff; }
@media (min-width: 768px) { .store-cover { height: 190px; } }
.store-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1rem 1.25rem; padding-top: .9rem; position: relative; }
.store-logo { width: 104px; height: 104px; flex: none; margin-top: -64px; border-radius: 24px; background: #fff; border: 4px solid #fff; box-shadow: var(--m-shadow-lg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-logo span { font-size: 2.6rem; font-weight: 800; color: var(--m-yellow); background: var(--m-night); width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.store-id { flex: 1; min-width: 220px; }
.store-id h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.store-id h1 .bi { color: var(--m-teal); font-size: .7em; vertical-align: .15em; }
.store-loc { color: var(--m-muted); margin: .15rem 0 0; font-size: .9rem; }
.store-loc .bi { margin-right: .25rem; }
.store-desc { margin: .4rem 0 0; max-width: 640px; font-size: .92rem; color: var(--m-text); }
.store-cta { display: flex; gap: .5rem; flex-wrap: wrap; align-self: center; }
.btn-icon { width: 42px; padding-left: 0; padding-right: 0; display: inline-flex; align-items: center; justify-content: center; }
.store-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-top: 1.25rem; }
@media (min-width: 576px) { .store-stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .store-stats { grid-template-columns: repeat(5, 1fr); } }
.store-stats > * { background: #fff; border: 1px solid var(--m-border); border-radius: var(--m-radius-sm); padding: .75rem 1rem; color: var(--m-text); text-decoration: none; }
.store-stats a:hover { border-color: var(--m-teal); color: var(--m-text); }
.store-stats strong { display: block; font-size: 1.25rem; }
.store-stats strong .bi { color: #f5a524; font-size: .9rem; }
.store-stats span { font-size: .8rem; color: var(--m-muted); }
.store-nav { position: sticky; top: var(--header-offset, var(--header-h, 118px)); z-index: 6; display: flex; gap: .25rem; margin-top: 1.25rem; background: var(--m-surface); border-bottom: 1px solid var(--m-border); overflow-x: auto; scrollbar-width: none; }

.store-nav a { padding: .8rem 1.1rem; font-weight: 600; color: var(--m-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.store-nav a.active, .store-nav a:hover { color: var(--m-text); border-bottom-color: var(--m-teal); }
html:has(body.page-store), html:has(body.page-product) { scroll-padding-top: calc(var(--header-h, 118px) + 70px); }
.store-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .9rem; }
.store-search { flex: 1; min-width: 220px; position: relative; }
.store-search .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--m-muted); }
.store-search input { border-radius: 999px; padding-left: 2.5rem; height: 42px; }
.cat-chips .chip em { font-style: normal; font-size: .72rem; opacity: .65; }
@media (max-width: 575.98px) {
  .store-logo { width: 84px; height: 84px; border-radius: 20px; margin-top: -54px; }
  .store-cta { width: 100%; }
  .store-cta .btn-brand { flex: 1; }
}
@media (max-width: 575.98px) {
  .store-stats { display: flex; overflow-x: auto; scrollbar-width: none; margin-left: -12px; margin-right: -12px; padding: 0 12px; }
  .store-stats::-webkit-scrollbar { display: none; }
  .store-stats > * { flex: 0 0 auto; min-width: 118px; padding: .6rem .85rem; }
  .store-stats strong { font-size: 1.1rem; }
}

/* ==========================================================================
   Parte 4 — telemóvel e acabamentos
   ========================================================================== */
/* Barra «Entregar em» por baixo da pesquisa */
.deliver-bar { display: flex; align-items: center; gap: .45rem; width: 100%; margin-top: .5rem; padding: .3rem .1rem 0; background: none; border: 0; color: rgba(255, 255, 255, .8); font-size: .82rem; text-align: left; }
.deliver-bar > .bi:first-child { color: var(--m-yellow); }
.deliver-bar strong { color: #fff; }
.deliver-bar .bi-chevron-right { font-size: .75rem; opacity: .6; }

/* Cabeçalho que se esconde ao descer e volta ao subir (só telemóvel) */
@media (max-width: 991.98px) {
  .site-header { transition: transform .25s ease; will-change: transform; }
  .header-hidden .site-header { transform: translateY(-100%); }
  .catalog-bar, .store-nav { transition: top .25s ease; }
}

/* Barra de baixo com 5 entradas */
.bottom-nav button { 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); background: none; border: 0; position: relative; }
.bottom-nav button .bi { font-size: 1.35rem; }
.bottom-nav button.active { color: var(--m-night); }
.bottom-nav button.active::before { content: ''; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 4px 4px; background: var(--m-yellow); }
.bottom-nav a, .bottom-nav button { -webkit-tap-highlight-color: transparent; transition: transform .1s; }
.bottom-nav a:active, .bottom-nav button:active { transform: scale(.92); }

/* Folhas que sobem do fundo */
.cats-sheet, .filters-sheet { height: auto !important; max-height: 85vh; border-radius: 20px 20px 0 0; }
.sheet-handle { width: 40px; height: 5px; border-radius: 5px; background: var(--m-border); margin: .6rem auto 0; }
.cats-sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem .5rem; }
.cats-sheet-grid a { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; font-size: .75rem; font-weight: 500; color: var(--m-text); text-decoration: none; line-height: 1.2; }
.cats-sheet-grid span { width: 56px; height: 56px; border-radius: 18px; background: var(--m-surface); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--m-teal); transition: .15s; }
.cats-sheet-grid a:active span { transform: scale(.92); background: rgba(0, 113, 104, .12); }
.cats-sheet-grid span.is-deal { background: rgba(210, 16, 52, .1); color: var(--m-danger); }

/* Galeria do produto a deslizar */
.pd-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; overflow: hidden; }
.pd-main.is-zoomed .pd-slide img { transform: scale(2); }
.pd-dots { position: absolute; left: 0; right: 0; bottom: .75rem; display: flex; justify-content: center; gap: .35rem; z-index: 2; }
.pd-dots span { width: 7px; height: 7px; border-radius: 7px; background: rgba(13, 36, 32, .25); transition: .2s; }
.pd-dots span.active { width: 20px; background: var(--m-night); }
@media (min-width: 992px) { .pd-dots { display: none; } }
@media (max-width: 991.98px) { .pd-thumbs { display: none; } .pd-main { margin: 0 -12px; border-radius: 0; border-left: 0; border-right: 0; } }

/* Pormenores */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty-state .bi.inline-icon { font-size: 1em; color: var(--m-danger); vertical-align: -.1em; }
@media (max-width: 991.98px) {
  .page-cart .sticky-buy .price, .page-checkout .sticky-buy .price { font-size: 1.15rem; }
  .page-header { padding: 1.1rem 0 1rem; }
  .page-header h1 { font-size: 1.35rem; }
}

/* Voltar ao topo */
.to-top { position: fixed; right: 18px; bottom: 92px; z-index: 1034; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--m-border); background: #fff; color: var(--m-night); box-shadow: var(--m-shadow-lg); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; animation: pop-in .2s ease; }
.to-top[hidden] { display: none; }
@media (max-width: 991.98px) { .to-top { right: 14px; bottom: calc(var(--m-bottom-nav) + 76px + env(safe-area-inset-bottom)); width: 40px; height: 40px; } .has-sticky-buy .to-top { bottom: calc(var(--m-bottom-nav) + 82px + env(safe-area-inset-bottom)); } }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }

/* Barra de progresso ao mudar de página */
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; background: linear-gradient(90deg, var(--m-yellow), var(--m-teal)); box-shadow: 0 0 8px rgba(252, 225, 0, .6); opacity: 0; pointer-events: none; }
.nav-progress.is-loading { opacity: 1; animation: nav-progress 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes nav-progress { 0% { width: 0; } 20% { width: 45%; } 100% { width: 92%; } }

/* Entrada suave dos cartões */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
