/* Vitrine pública da loja */
body { background: #fff; }
.shop { max-width: 1100px; margin: 0 auto; padding-bottom: 110px; }
.cover { height: 190px; background: linear-gradient(135deg, var(--brand), #1F1A17); background-size: cover; background-position: center; }
.shop-head { display: flex; gap: 16px; align-items: flex-end; padding: 0 16px; margin-top: -48px; }
.shop-logo { width: 104px; height: 104px; border-radius: 22px; border: 4px solid #fff; object-fit: cover; background: var(--brand); color: #fff; font-size: 44px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow); flex: none; }
.shop-head h1 { margin: 0 0 4px; font-size: 1.5rem; }
.shop-info { padding: 12px 16px 0; }
.shop-info .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.shop-info p { margin: 8px 0 0; color: var(--muted); white-space: pre-line; }

.sticky { position: sticky; top: 0; background: #fff; z-index: 10; padding: 10px 16px 0; border-bottom: 1px solid var(--line); }
.search { position: relative; }
.search input { padding-left: 38px; border-radius: 999px; background: #F6F4F2; border-color: transparent; }
.search .search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 9px 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }

.filters { padding: 12px 16px 0; }
.filters .chip { flex: none; white-space: nowrap; }
.filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }

.section { padding: 18px 16px 4px; scroll-margin-top: 110px; }
.section h2 { font-size: 1.15rem; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.hl { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; }
.hl img, .hl .ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: #F3EFEC; display: grid; place-items: center; font-size: 48px; }
.hl .t { padding: 8px 10px 10px; }
.hl .n { font-weight: 600; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }

.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.pcard { display: flex; gap: 12px; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; width: 100%; }
.pcard:hover { border-color: #d4cbc4; box-shadow: var(--shadow); }
.pcard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pcard .n { font-weight: 700; }
.pcard .d { font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 6px; }
.pcard .pr { margin-top: auto; }
.pcard img, .pcard .ph { width: 104px; height: 104px; border-radius: 10px; object-fit: cover; background: #F3EFEC; display: grid; place-items: center; font-size: 40px; flex: none; }
.est { font-size: .78rem; color: var(--muted); }
.promo { color: var(--ok); }
@media (max-width: 400px) { .plist { grid-template-columns: 1fr; } }

/* modal de produto */
.pm-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; background: #F3EFEC; }
.pm-ph { height: 180px; border-radius: 12px; background: #F3EFEC; display: grid; place-items: center; font-size: 80px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; margin-bottom: 6px; }
.opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: 0; background: #F6F4F2; font-size: 20px; cursor: pointer; color: var(--brand); font-weight: 700; }
.stepper span { min-width: 84px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* barra do carrinho */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #fff 30%); z-index: 20; }
.cartbar button { max-width: 680px; margin: 0 auto; display: flex; width: 100%; justify-content: space-between; padding: 14px 18px; border-radius: 14px; font-size: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.cart-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-size: 1.15rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.seg label { margin: 0; }
.closed-banner { background: #FEF3C7; color: #92400E; padding: 10px 16px; font-size: .9rem; font-weight: 600; text-align: center; }
.success { text-align: center; padding: 10px 0; }
.success .big { font-size: 56px; }

/* fidelidade */
.loyal-card { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left; font: inherit; color: inherit;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, #fff); background: color-mix(in srgb, var(--brand) 7%, #fff); }
.loyal-card .ic { font-size: 28px; }
.loyal-card .grow { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.loyal-box { border: 1px dashed color-mix(in srgb, var(--brand) 45%, #fff); background: color-mix(in srgb, var(--brand) 4%, #fff); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.loyal-earn { margin-top: 6px; }
.nudge { margin-top: 6px; font-size: .88rem; background: #FEF3C7; color: #78350F; border-radius: 8px; padding: 6px 10px; }
.loyal-rules { padding-left: 18px; margin: 0 0 14px; }
.loyal-rules li { margin-bottom: 6px; }
.reward { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.reward img, .reward .ph { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #F3EFEC; display: grid; place-items: center; font-size: 24px; flex: none; }
.reward .pts { color: var(--brand); white-space: nowrap; }
.loyal-status { background: #F6F4F2; border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.loyal-status .big { font-size: 1.5rem; font-weight: 800; }

/* Foto do produto proporcional à altura da tela (telas baixas como iPhone SE) */
.pm-img { max-height: min(300px, 34vh); }
.pm-ph { height: min(180px, 22vh); }

/* produto: preço por kg + porção, abas Detalhes/Preparo e escolha de gramas */
.pm-prices { margin: 12px 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.pm-portion { font-weight: 700; }
.pm-info { margin-bottom: 14px; }
.pm-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.pm-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #F6F4F2; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.pm-tabs button[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pm-tabs .chev { display: inline-flex; transition: transform .15s; }
.pm-tabs button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pm-pane { white-space: pre-line; color: var(--muted); font-size: .92rem; background: #FAF8F6; border-radius: 10px; padding: 10px 12px; }
.stepper .amt-pick { width: auto; min-width: 104px; border-radius: 10px; background: #fff; color: inherit; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; }
.gram-list { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.gram-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.gram-grid button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; }
.gram-grid button span { font-size: .78rem; color: var(--muted); }
.gram-grid button.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }

/* "Não encontrou o que queria?" */
.req-card { display: flex; gap: 12px; align-items: center; width: 100%; padding: 14px; border-radius: 14px; border: 1px dashed var(--line); background: #FAF8F6; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.req-card .ic { color: var(--brand); display: flex; }
.req-card .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.req-text { white-space: pre-line; overflow-wrap: anywhere; }
.req-line { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; background: #FAF8F6; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; }

/* botão flutuante do WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 21; transition: bottom .2s; }
.has-cart .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
.wa-float a { width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.wa-float a:hover { background: #1EBE5A; }
.wa-hide { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #3F3A36; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
