/* Zap Pádua — Mini Store (encarte). Mobile primeiro, fontes do sistema. */
.zpa-loja { margin: 0; background: #f6f6f4; }
.zpl, .zpl * { box-sizing: border-box; }
.zpl {
	--zpl-accent: #14507a; --zpl-on: #fff;
	font: 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1d2327; min-height: 100vh; padding-bottom: 96px;
}
.zpl .zpa-i { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.zpl button, .zpl input, .zpl select { font: inherit; }
.zpl a:focus-visible, .zpl button:focus-visible, .zpl input:focus-visible, .zpl select:focus-visible { outline: 3px solid #1d2327; outline-offset: 2px; }
.zpl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.zpl-skip { position: absolute; left: -9999px; }
.zpl-skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 10px; }

.zpl-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--zpl-accent); color: var(--zpl-on); }
.zpl-back { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; color: inherit; text-decoration: none; font-weight: 600; }
.zpl-back span { font-size: 15px; }
.zpl-brand { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.zpl-cartbtn { position: relative; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: inherit; cursor: pointer; display: grid; place-items: center; }
.zpl-cartbtn__n { position: absolute; top: 2px; right: 0; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: #fff; color: #1d2327; font-size: 13px; font-weight: 700; display: grid; place-items: center; }

.zpl-hero { padding: 22px 16px 10px; max-width: 1100px; margin: 0 auto; }
.zpl-hero h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.15; }
.zpl-hero__sub { margin: 0 0 12px; color: #50575e; }
.zpl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.zpl-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; border: 1px solid #dcdcde; border-radius: 999px; font-size: 15px; }

.zpl-tools { max-width: 1100px; margin: 0 auto; padding: 8px 16px; }
.zpl-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #c3c4c7; border-radius: 12px; padding: 0 12px; min-height: 52px; }
.zpl-search input { flex: 1; border: 0; background: none; min-height: 48px; min-width: 0; color: inherit; }
.zpl-cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; -webkit-overflow-scrolling: touch; }
.zpl-cat { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #c3c4c7; background: #fff; cursor: pointer; font-size: 16px; }
.zpl-cat[aria-pressed="true"] { background: var(--zpl-btn); border-color: var(--zpl-btn); color: #fff; font-weight: 700; }

.zpl-main { max-width: 1100px; margin: 0 auto; padding: 8px 16px; }
.zpl-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.zpl-card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e3e3e0; }
.zpl-card[hidden] { display: none; }
.zpl-card__media { position: relative; aspect-ratio: 1/1; background: #ececea; display: grid; place-items: center; color: #a7aaad; }
.zpl-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zpl-badge, .zpl-off { position: absolute; top: 8px; padding: 4px 9px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #fff; background: #b32d2e; }
.zpl-badge { left: 8px; }
.zpl-badge--destaque { background: #8a5a00; } .zpl-badge--menor_preco { background: #0a6b2e; } .zpl-badge--novo { background: #135e96; } .zpl-badge--leve3 { background: #6a2c91; }
.zpl-off { right: 8px; background: #1d2327; }
.zpl-soldout { position: absolute; inset: auto 0 0 0; padding: 6px; text-align: center; background: rgba(29,35,39,.85); color: #fff; font-weight: 700; font-size: 15px; }
.zpl-card.is-off .zpl-card__img { filter: grayscale(1); opacity: .6; }
.zpl-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.zpl-card__cat { font-size: 13px; color: #646970; text-transform: uppercase; letter-spacing: .03em; }
.zpl-card__name { margin: 0; font-size: 17px; line-height: 1.25; }
.zpl-card__desc { margin: 0; font-size: 15px; color: #50575e; }
.zpl-price { margin: auto 0 6px; padding-top: 4px; display: flex; flex-direction: column; }
.zpl-price__old { font-size: 14px; color: #646970; text-decoration: line-through; }
.zpl-price__now { font-size: 22px; font-weight: 800; color: #1d2327; }
.zpl-add { min-height: 52px; width: 100%; border: 0; border-radius: 12px; background: var(--zpl-btn); color: #fff; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.zpl-add:disabled { background: #dcdcde; color: #50575e; cursor: not-allowed; }
.zpl-empty { text-align: center; padding: 30px 0; color: #50575e; }
.zpl-foot { max-width: 1100px; margin: 20px auto 0; padding: 0 16px; font-size: 15px; color: #50575e; text-align: center; }
.zpl-foot a { color: inherit; }

.zpl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); background: rgba(246,246,244,.96); border-top: 1px solid #dcdcde; }
.zpl-bar[hidden] { display: none; }
.zpl-bar button { width: 100%; max-width: 600px; margin: 0 auto; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--zpl-btn); color: #fff; font-weight: 600; cursor: pointer; }
.zpl-bar__n { background: #fff; color: #1d2327; border-radius: 999px; min-width: 30px; height: 30px; display: grid; place-items: center; font-weight: 800; }
.zpl-bar__txt { flex: 1; text-align: left; }

.zpl-modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.zpl-modal[hidden] { display: none; }
.zpl-modal__box { width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh; display: flex; flex-direction: column; background: #fff; border-radius: 20px 20px 0 0; }
.zpl-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e3e3e0; }
.zpl-modal__head h2 { margin: 0; font-size: 22px; }
.zpl-x { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: inherit; }
.zpl-modal__body { overflow-y: auto; padding: 12px 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.zpl-modal__body p { margin: 0 0 12px; }
.zpl-items { list-style: none; margin: 0 0 12px; padding: 0; }
.zpl-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid #eee; align-items: center; }
.zpl-item__name { font-weight: 600; }
.zpl-item__price { color: #50575e; font-size: 15px; }
.zpl-qty { display: inline-flex; align-items: center; gap: 4px; }
.zpl-qty { gap: 8px; }
.zpl-qty button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--zpl-btn); color: #fff; font-size: 28px; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.zpl-qty button:active { filter: brightness(.9); }
.zpl-qty output { min-width: 32px; font-size: 20px; text-align: center; font-weight: 700; }
.zpl-emptycart { text-align: center; color: #50575e; padding: 12px 0; }
.zpl-recv { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.zpl-recv legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.zpl-opt { display: block; }
.zpl-opt input { position: absolute; opacity: 0; }
.zpl-opt span { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 14px; border: 2px solid #c3c4c7; border-radius: 12px; cursor: pointer; }
.zpl-opt small { margin-left: auto; color: #50575e; }
.zpl-opt input:checked + span { border-color: var(--zpl-btn); background: #f0f6fa; font-weight: 700; }
.zpl-opt input:focus-visible + span { outline: 3px solid #1d2327; outline-offset: 2px; }
.zpl-field { display: block; font-weight: 600; }
.zpl-field input, .zpl-field select { display: block; width: 100%; margin-top: 4px; min-height: 52px; padding: 0 12px; border: 1px solid #c3c4c7; border-radius: 10px; background: #fff; font-weight: 400; color: inherit; }
.zpl-sum { margin: 14px 0; padding: 12px; background: #f6f6f4; border-radius: 12px; }
.zpl-sum div { display: flex; justify-content: space-between; padding: 3px 0; }
.zpl-sum dt, .zpl-sum dd { margin: 0; }
.zpl-sum__total { font-size: 22px; font-weight: 800; border-top: 1px solid #dcdcde; margin-top: 6px; padding-top: 8px !important; }
.zpl-warn { padding: 10px 12px; border-radius: 10px; background: #fdecec; border: 1px solid #e3a1a1; color: #7a1212; }
.zpl-warn[hidden] { display: none; }
.zpl-send { width: 100%; min-height: 58px; border: 0; border-radius: 14px; background: #128c4a; color: #fff; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.zpl-clear { width: 100%; min-height: 48px; margin-top: 8px; border: 0; background: none; color: #7a1212; text-decoration: underline; cursor: pointer; }
.zpl-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.zpl-lock { overflow: hidden; }

@media (min-width: 700px) {
	.zpl-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.zpl-hero h1 { font-size: 36px; }
	.zpl-modal { align-items: center; }
	.zpl-modal__box { border-radius: 20px; }
}
@media (min-width: 1000px) { .zpl-grid { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .zpl * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Barra do topo: menu, marca e carrinho */
.zpl-top { gap: 8px; }
.zpl-menubtn { width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: inherit; cursor: pointer; display: grid; place-items: center; flex: none; }
.zpl-brand--logo { display: flex; justify-content: center; align-items: center; min-width: 0; }
.zpl-logo { display: block; max-height: 44px; width: auto; max-width: 100%; object-fit: contain; }
.zpl-cartbtn, .zpl-menubtn { flex: none; }
.zpl-banner { max-width: 1100px; margin: 0 auto; }
.zpl-banner__img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: cover; }
@media (min-width: 1100px) { .zpl-banner { padding: 12px 16px 0; } .zpl-banner__img { border-radius: 16px; } }

/* Menu lateral */
.zpl-drawer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); }
.zpl-drawer[hidden] { display: none; }
.zpl-drawer__box { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; overflow-y: auto; padding: 0 0 24px; padding-top: env(safe-area-inset-top); box-shadow: 4px 0 24px rgba(0,0,0,.25); }
.zpl-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 10px 16px; border-bottom: 1px solid #e3e3e0; }
.zpl-drawer__head strong { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zpl-drawer__title { margin: 16px 16px 4px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #50575e; }
.zpl-drawer__list { list-style: none; margin: 0; padding: 0; }
.zpl-drawer__list a, .zpl-drawer__list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 16px; border: 0; background: none; color: #1d2327; font-size: 18px; text-align: left; text-decoration: none; cursor: pointer; }
.zpl-drawer__list a:hover, .zpl-drawer__list button:hover { background: #f0f0ee; }
.zpl-drawer__list button[aria-pressed="true"] { background: var(--zpl-btn); color: #fff; font-weight: 700; }
