/* Modelos de cabeçalho e rodapé (inc/modelos.php). Cores da loja: --fl-ink-2 (fundo), --fl-accent (destaque). */

.km {
	--km-bg: var(--fl-ink-2, #404642);
	--km-hi: var(--fl-accent-on-dark, var(--fl-accent, #F26935));
	--km-acc: var(--fl-accent, #F26935);
	--km-on: var(--fl-accent-on, #fff);
	--km-wa: var(--fl-wa, #1F7A4D);
	--km-soft: rgba(255, 255, 255, .1);
	--km-line: rgba(255, 255, 255, .16);
	position: relative; z-index: 50;
	background: var(--km-bg); color: #fff;
	font: 400 15px/1.4 "Bai Jamjuree", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.km *, .km *::before, .km *::after { box-sizing: border-box; }
.km a { color: inherit !important; text-decoration: none !important; }
.km h2, .km h3, .km h5, .km p { margin: 0; padding: 0; font-family: inherit; color: inherit; text-transform: none; letter-spacing: normal; }
.km h2 em, .km h5 em, .km p em, .km-aviso em { font-style: normal; color: var(--km-hi); }
.km img { max-width: 100%; }
.km :focus-visible { outline: 2.5px solid var(--km-hi); outline-offset: 3px; border-radius: 6px; }
.km-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.km-ic { width: 20px; height: 20px; flex: none; }

/* linha fina na cor de destaque (opcional: "linha" no app) */
.km-head.km-linha .km-cats, .km-head.km-linha .km-search-row + .km-cats { border-top: 3px solid var(--km-acc); }
.km-head.km-linha .km-top { border-bottom: 3px solid var(--km-acc); }
.km-head.km-linha.km-h-vitrine .km-vtop { border-bottom: 3px solid var(--km-acc); }
.km-foot.km-linha { border-top: 3px solid var(--km-acc); }

/* ---------- peças ---------- */
.km-logo { display: inline-flex; align-items: center; flex: none; }
.km-logo img { display: block; height: 52px; width: auto; max-width: 220px; object-fit: contain; }
.km-logo.is-white img { filter: brightness(0) invert(1); }
.km-logo.is-small img { height: 34px; max-width: 140px; }

.km-wa {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	padding: 11px 18px; border-radius: 999px; background: var(--km-wa); color: #fff !important;
	font-weight: 700; font-size: 15px; white-space: nowrap; line-height: 1;
	transition: transform .15s, filter .2s;
}
.km-wa:hover { filter: brightness(1.08); transform: translateY(-1px); }
.km-wa svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.km-wa.is-big { padding: 15px 24px; font-size: 18px; }
.km-wa.is-big svg { width: 22px; height: 22px; }
.km-wa.is-mobile { display: none; }

.km-btn {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	padding: 11px 18px; border-radius: 999px; background: var(--km-acc); color: var(--km-on) !important;
	font-weight: 700; font-size: 15px; white-space: nowrap; line-height: 1; transition: filter .2s, transform .15s;
}
.km-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.km-btn.is-soft { background: var(--km-soft); color: #fff !important; }
.km-btn .km-ic { width: 18px; height: 18px; }

.km-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--km-soft); font-weight: 600; font-size: 13px; white-space: nowrap; }
.km-status i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .25); }
.km-status.is-closed i { background: #F2A33A; box-shadow: 0 0 0 3px rgba(242, 163, 58, .25); }

/* busca com sugestões */
.km-search { position: relative; flex: 1; min-width: 0; max-width: 560px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 16px; height: 48px; border-radius: 12px; background: #fff; color: #5B5757; }
.km-search .km-ic { width: 18px; height: 18px; }
.km-search input[type=search] { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; padding: 0 !important; font: 500 15px "Bai Jamjuree", system-ui, sans-serif; color: #161413; -webkit-appearance: none; appearance: none; }
.km-search input::placeholder { color: #8a8686; }
.km-search:focus-within { box-shadow: 0 0 0 3px var(--km-hi); }
.km-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80; display: grid; gap: 2px; padding: 8px; border-radius: 14px; background: #fff; color: #161413; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .08); }
.km-suggest[hidden] { display: none; }
.km-suggest a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px; border-radius: 10px; color: #161413 !important; }
.km-suggest a:hover, .km-suggest a.is-on { background: #F3F2EE; }
.km-suggest img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #F7F4EE; }
.km-suggest b { display: block; font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-suggest small { color: #7b7777; font-size: 12px; }
.km-suggest .km-price { font-weight: 700; font-size: 14px; white-space: nowrap; color: #161413; }
.km-suggest .km-all { grid-template-columns: 1fr; font-weight: 700; padding: 10px; color: var(--fl-accent-ink, #A9401A) !important; }
.km-suggest .km-none { padding: 10px; color: #5B5757; font-size: 14px; }

/* barra de avisos */
.km-top { font-size: 13px; }
.km-top .km-wrap { display: flex; align-items: center; gap: 16px; min-height: 40px; }
.km-avisos { position: relative; flex: 1; min-width: 0; height: 20px; overflow: hidden; text-align: center; font-weight: 600; }
.km-aviso { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.km-aviso.is-on { opacity: 1; transform: none; }
.km-aviso em { font-weight: 800; }
.km-top-links { display: flex; gap: 16px; flex: none; }
.km-top-links a { opacity: .85; }
.km-top-links a:hover { opacity: 1; }

/* faixa principal */
.km-main .km-wrap { display: flex; align-items: center; gap: 22px; min-height: 84px; padding-top: 12px; padding-bottom: 12px; }
.km-contact { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.km-contact svg { width: 30px; height: 30px; fill: var(--km-hi); }
.km-contact span { display: grid; line-height: 1.2; }
.km-contact small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.km-contact b { font-size: 17px; font-weight: 700; }
.km-main .km-search + .km-wa, .km-main .km-search + .km-burger { margin-left: auto; }

/* menu do celular */
.km-burger { position: relative; display: none; }
.km-burger summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--km-soft); cursor: pointer; }
.km-burger summary::-webkit-details-marker { display: none; }
.km-drawer { position: absolute; right: 0; top: calc(100% + 8px); z-index: 90; display: grid; min-width: 220px; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .4); }
.km-drawer a { padding: 12px 14px; border-radius: 10px; color: #161413 !important; font-weight: 600; }
.km-drawer a:hover { background: #F3F2EE; }

/* categorias com foto + menu grande */
.km-cats { position: relative; }
.km-cats-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
.km-cat > a { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .2s; }
.km-cat > a i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff center/cover no-repeat; border: 2px solid rgba(255, 255, 255, .7); flex: none; color: var(--km-bg); }
.km-cat > a i .km-ic { width: 16px; height: 16px; }
.km-cat > a:hover { background: var(--km-soft); }
.km-cat.is-on > a, .km-cat > a[aria-current] { background: var(--km-acc); color: var(--km-on) !important; }
.km-cat.is-all > a i { background: var(--km-soft); color: #fff; }
.km-mega { display: none; }
@media (hover: hover) and (min-width: 901px) {
	.km-cat.has-mega:hover > a, .km-cat.has-mega:focus-within > a { background: var(--km-acc); color: var(--km-on) !important; }
	.km-cat.has-mega:hover .km-mega, .km-cat.has-mega:focus-within .km-mega { display: block; }
	.km-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 70; padding: 0 20px; }
	.km-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
	.km-mega-in { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 22px 24px; border-radius: 0 0 18px 18px; background: #fff; color: #161413; box-shadow: 0 24px 50px -14px rgba(0, 0, 0, .35); }
	.km-mega h5 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-accent-ink, #A9401A); }
	.km-mega ul { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; gap: 2px; }
	.km-mega li { margin: 0; }
	.km-mega li a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; font-weight: 600; color: #161413 !important; }
	.km-mega li a:hover { background: #F3F2EE; }
	.km-mega li small { color: #8a8686; font-weight: 500; }
	.km-mega-all { display: inline-block; margin-top: 10px; font-weight: 800; color: #161413 !important; border-bottom: 2px solid var(--km-acc); }
	.km-mega-picks > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
.km-card { display: grid; gap: 4px; align-content: start; color: #161413 !important; font-size: 14px; }
.km-card .km-card-img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #F7F4EE; mix-blend-mode: multiply; margin-bottom: 4px; }
.km-card b { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.km-card s { color: #8a8686; font-size: 12px; }
.km-card .km-price { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- 2. Loja aberta agora ---------- */
.km-aberta .km-wrap { display: flex; gap: 20px; align-items: center; min-height: 112px; padding-top: 14px; padding-bottom: 14px; }
.km-aberta .km-fala { flex: 1; }
.km-dono { position: relative; align-self: end; width: 120px; height: 96px; margin-bottom: -14px; }
.km-dono img { position: absolute; left: 0; bottom: 0; width: 120px; height: 130px; object-fit: contain; object-position: bottom; }
.km-fala { display: grid; gap: 10px; min-width: 0; }
.km .km-balao { position: relative; justify-self: start; max-width: 380px; padding: 11px 15px; border-radius: 16px; background: #fff; color: #161413; font-weight: 700; font-size: 15px; line-height: 1.25; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); }
.km-dono + .km-fala .km-balao::after { content: ""; position: absolute; left: -8px; bottom: 14px; border: 9px solid transparent; border-right-color: #fff; border-left: 0; }
.km .km-balao small { display: block; margin-top: 3px; font-weight: 500; font-size: 12.5px; color: #5B5757; }
.km-semana { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 !important; padding: 0 !important; }
.km-semana li { margin: 0; padding: 4px 7px; border-radius: 7px; background: rgba(255, 255, 255, .08); text-align: center; font-size: 12px; line-height: 1.15; }
.km-semana li b { display: block; font-weight: 700; }
.km-semana li small { font-size: 11px; opacity: .8; }
.km-semana li.is-today { background: var(--km-acc); color: var(--km-on); }
.km-acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.km-aberta .km-acoes { flex-direction: column; align-items: stretch; flex: none; }
.km-search-row .km-wrap { display: flex; justify-content: center; padding-bottom: 12px; }
.km-search-row .km-search { max-width: 640px; }

/* ---------- 3. Vitrine ---------- */
.km-vitrine { position: relative; min-height: min(78vh, 620px); background: var(--km-bg) center/cover no-repeat; display: flex; flex-direction: column; }
.km-vitrine::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .08) 32%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .66) 100%); }
.km-vitrine, .km-vitrine .km-vtitle h2, .km-vitrine .km-vtitle p { color: #fff; }
.km-vtop { position: relative; z-index: 5; }
.km-vtop .km-wrap { display: flex; align-items: center; gap: 22px; min-height: 84px; }
.km-vlinks { display: flex; gap: 18px; margin-left: auto; font-weight: 600; }
.km-vlinks a:hover { color: var(--km-hi) !important; }
.km-vtop .km-search { max-width: 220px; height: 42px; background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; }
.km-vtop .km-search input { color: #fff; }
.km-vtop .km-search input::placeholder { color: rgba(255, 255, 255, .85); }
.km-vtitle { position: relative; margin-top: auto; padding-bottom: 36px; }
.km-vtitle h2 { max-width: 16ch; font-size: clamp(32px, 4.6vw, 58px); font-weight: 700; line-height: 1.02; text-wrap: balance; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.km-vtitle p { margin-top: 10px; font-weight: 600; opacity: .9; }
.km-pin { position: absolute; z-index: 3; }
.km-dot { position: relative; display: block; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 7px rgba(255, 255, 255, .35); cursor: pointer; }
.km-dot::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: #161413; font: 800 18px/1 system-ui, sans-serif; transition: transform .2s; }
.km-pin.is-open .km-dot::after { transform: rotate(45deg); }
.km-tag { position: absolute; left: 26px; top: -20px; display: none; gap: 2px; min-width: 190px; max-width: 240px; padding: 11px 14px; border-radius: 14px; background: #fff; color: #161413 !important; font-size: 13px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); }
.km-pin.is-open .km-tag { display: grid; }
.km .km-tag { color: #161413 !important; }
.km button.km-dot { width: 30px !important; height: 30px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #fff !important; color: #161413 !important; font-size: 0 !important; line-height: 0 !important; box-shadow: 0 0 0 7px rgba(255, 255, 255, .35); text-indent: 0; }
.km-tag b { font-weight: 600; line-height: 1.25; }
.km-tag s { color: #8a8686; font-size: 12px; }
.km-tag .km-price { font-weight: 800; font-size: 17px; }
.km-tag em { font-style: normal; font-weight: 800; color: var(--km-wa); }
.km-pin[style*="left:7"] .km-tag { left: auto; right: 26px; }
@media (prefers-reduced-motion: no-preference) {
	.km-dot { animation: km-ping 2.4s ease-in-out infinite; }
	.km-status i { animation: km-pulse 2s ease-in-out infinite; }
	@keyframes km-ping { 50% { box-shadow: 0 0 0 13px rgba(255, 255, 255, .12); } }
	@keyframes km-pulse { 50% { box-shadow: 0 0 0 6px rgba(61, 220, 132, .05); } }
}

/* ---------- 4. Oferta da semana ---------- */
.km-oferta { background: var(--km-acc); color: var(--km-on); }
.km-oferta .km-wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.km-oferta-pic img { display: block; width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #fff; }
.km-oferta-txt { display: grid; min-width: 0; line-height: 1.2; }
.km-oferta-txt small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.km-oferta-txt b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-oferta-txt s { opacity: .7; font-size: 13px; }
.km-oferta-txt strong { font-weight: 800; font-size: 16px; }
.km-relogio { display: flex; gap: 5px; margin-left: auto; }
.km-relogio > span { min-width: 46px; padding: 5px 6px; border-radius: 8px; background: var(--km-bg); color: #fff; text-align: center; line-height: 1; }
.km-relogio b { display: block; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.km-relogio small { display: block; margin-top: 3px; font-size: 10px; font-weight: 600; opacity: .8; }
.km-oferta-btn { flex: none; padding: 11px 18px; border-radius: 999px; background: var(--km-bg); }
.km .km-oferta-btn { color: #fff !important; font-weight: 800; white-space: nowrap; }
.km-oferta-txt + .km-oferta-btn { margin-left: auto; }

/* ---------- barra de atalhos do celular ---------- */
.km-bar { display: none; }

/* ---------- rodapés ---------- */
.km-foot { padding: 44px 0 0; margin-top: 0; }
.km-foot h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.04; text-wrap: balance; }
.km-legal { margin-top: 32px; border-top: 1px solid var(--km-line); font-size: 13px; }
.km-legal .km-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding-top: 14px; padding-bottom: 18px; opacity: .88; }
.km-pay { display: flex; flex-wrap: wrap; gap: 5px; margin-left: auto; }
.km-pay span { padding: 3px 9px; border-radius: 6px; background: #fff; color: var(--km-bg); font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.km-feito { opacity: .7; }
.km-feito:hover { opacity: 1; }
.km-pay + .km-feito { margin-left: 0; }
.km-legal span:first-of-type + .km-feito { margin-left: auto; }
.km-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; font-weight: 600; }
.km-links a { opacity: .85; }
.km-links a:hover { opacity: 1; color: var(--km-hi) !important; }

/* 1. clássico */
.km-f-classico .km-clube { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin: -20px 0 36px; padding: 18px 24px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid var(--km-line); }
.km-clube-foto { width: 96px; height: 96px; object-fit: contain; object-position: bottom; margin: -36px 0 -18px; }
.km-clube h2 { font-size: clamp(22px, 2.4vw, 28px); }
.km-clube p { margin-top: 4px; opacity: .85; }
.km-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 28px; }
.km-cols h3 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--km-hi); }
.km-cols > div > a:not(.km-logo) { display: block; padding: 5px 0; opacity: .85; }
.km-cols > div > a:hover { opacity: 1; }
.km-col-marca p { margin-top: 12px; opacity: .85; max-width: 32ch; }
.km .kp-contacts a, .km .kp-contacts div { color: #fff !important; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 6px 0; }
.km .kp-contacts a:hover { background: transparent; }
.km .kp-contacts .kp-ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--km-soft); color: var(--km-hi); }
.km .kp-contacts small { color: rgba(255, 255, 255, .7); font-size: 11px; }
.km .kp-contacts b { font-size: 14.5px; }

/* 2. venha na loja */
.km-venha { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.km-mapa { min-height: 320px; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.km-mapa iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(.85); }
.km-venha-txt { display: grid; gap: 14px; align-content: center; }
.km-venha-txt .km-status { justify-self: start; }
.km-venha-txt > p { opacity: .9; }
.km-horas { display: grid; gap: 2px; margin: 0; }
.km-horas div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 3px 0; font-size: 14.5px; }
.km-horas dt { opacity: .85; }
.km-horas dd { margin: 0; }
.km-horas .is-today { color: var(--km-hi); font-weight: 700; }
.km-horas .is-today dt { opacity: 1; }
.km-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.km-mini img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }

/* 3. instagram */
.km-insta-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; justify-content: space-between; margin-bottom: 22px; }
.km-insta-head p { margin-top: 6px; opacity: .85; max-width: 56ch; }
.km-grade { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.km-grade a { display: block; border-radius: 12px; overflow: hidden; background: #fff; }
.km-grade img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .6s; }
.km-grade a:hover img { transform: scale(1.06); }

/* 4. chama a gente */
.km-f-chama { padding-top: 0; overflow: hidden; }
.km-chama { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: end; padding-top: 36px; }
.km-chama.no-foto { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
.km-chama-foto { display: block; width: 100%; height: 300px; object-fit: contain; object-position: bottom; margin-bottom: -1px; }
.km-chama-txt { display: grid; gap: 16px; padding-bottom: 40px; }
.km-chama-txt h2 { font-size: clamp(32px, 4.4vw, 56px); }
.km-chama-txt p { max-width: 54ch; opacity: .88; font-size: 16px; }
.km-f-chama .km-links { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--km-line); }
.km-f-chama .km-legal { margin-top: 16px; }

/* 5. confiança */
.km-selos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.km-selo { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid var(--km-line); }
.km-selo i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--km-acc); color: var(--km-on); font-style: normal; font-weight: 800; font-size: 16px; }
.km-selo b { display: block; font-size: 15.5px; }
.km-selo small { display: block; opacity: .8; font-size: 13px; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
	.km-contact { display: none; }
	.km-vlinks { display: none; }
	.km-cols { grid-template-columns: 1fr 1fr; }
	.km-selos { grid-template-columns: 1fr 1fr; }
}

/* ---------- celular ---------- */
@media (max-width: 900px) {
	.km-wrap { padding: 0 16px; }
	.km-logo img { height: 46px; max-width: 170px; }
	.km-top-links { display: none; }
	.km-top:not(:has(.km-aviso)):not(:has(.km-status)) { display: none; }
	.km-top .km-wrap { min-height: 36px; gap: 10px; }
	.km-top .km-status { padding: 4px 10px; font-size: 12px; }
	.km-burger { display: block; }
	.km-wa.is-mobile { display: inline-flex; padding: 10px 14px; font-size: 14px; }
	.km-main .km-wrap { flex-wrap: wrap; gap: 10px 12px; min-height: 0; }
	.km-main .km-wa.is-mobile { margin-left: auto; }
	.km-main .km-search { order: 5; flex: 1 0 100%; max-width: none; height: 46px; }
	.km-main .km-search + .km-wa:not(.is-mobile) { margin-left: auto; padding: 10px 14px; font-size: 14px; }

	/* categorias: fita com foto que desliza para o lado */
	.km-cats-row { flex-wrap: nowrap; justify-content: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-top: 12px; padding-bottom: 12px; }
	.km-cats-row::-webkit-scrollbar { display: none; }
	.km-cat { scroll-snap-align: start; flex: none; }
	.km-cat > a { flex-direction: column; gap: 6px; width: 72px; padding: 0; border-radius: 0; font-size: 12.5px; text-align: center; white-space: normal; line-height: 1.15; }
	.km-cat > a:hover { background: none; }
	.km-cat > a i { width: 60px; height: 60px; border-width: 2px; }
	.km-cat.is-on > a, .km-cat > a[aria-current] { background: none; color: var(--km-hi) !important; }
	.km-cat.is-on > a i { border-color: var(--km-acc); box-shadow: 0 0 0 2px var(--km-acc); }
	.km-cats.is-stories .km-cat > a i { border: 2px solid var(--km-bg); box-shadow: 0 0 0 2.5px var(--km-acc); }

	/* aberta */
	.km-aberta .km-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px 12px; min-height: 0; padding-top: 10px; padding-bottom: 0; }
	.km-aberta .km-logo { grid-column: 1 / 3; }
	.km-aberta .km-acoes { grid-column: 3; grid-row: 1; flex-direction: row; }
	.km-aberta .km-acoes .km-btn { display: none; }
	.km-aberta .km-acoes .km-wa span { display: none; }
	.km-aberta .km-acoes .km-wa { padding: 11px; }
	.km-aberta .km-burger { grid-column: 4; grid-row: 1; }
	.km-dono { grid-column: 1; grid-row: 2; width: 70px; height: 84px; margin: 0; }
	.km-dono img { width: 70px; height: 92px; }
	.km-fala { grid-column: 2 / 5; grid-row: 2; padding-bottom: 12px; }
	.km-aberta .km-logo + .km-fala { grid-column: 1 / 5; }
	.km .km-balao { font-size: 14px; padding: 9px 12px; }
	.km-semana { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.km-semana li { flex: none; }
	.km-search-row .km-wrap { padding-top: 4px; }

	/* vitrine */
	.km-vitrine { min-height: 520px; }
	.km-vtop .km-wrap { gap: 10px; min-height: 70px; }
	.km-vtop .km-search { display: none; }
	.km-vtop .km-wa { margin-left: auto; padding: 10px 14px; font-size: 14px; }
	.km-tag { min-width: 160px; }
	.km-pin[style*="left:4"] .km-tag, .km-pin[style*="left:5"] .km-tag, .km-pin[style*="left:6"] .km-tag { left: auto; right: 26px; }
	.km-pin[style*="left:2"] .km-tag { left: 26px; right: auto; }

	/* oferta */
	.km-oferta .km-wrap { flex-wrap: wrap; gap: 8px 10px; }
	.km-oferta-pic img { width: 42px; height: 42px; }
	.km-oferta-txt { flex: 1 1 calc(100% - 56px); }
	.km-oferta-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
	.km-relogio { order: 3; margin-left: 0; }
	.km-relogio > span { min-width: 40px; }
	.km-oferta-btn { order: 4; margin-left: auto; padding: 9px 16px; }

	/* barra de atalhos fixa embaixo */
	.km-bar { position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 999; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 4px; border-radius: 20px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .45); }
	.km-bar a { display: grid; justify-items: center; gap: 3px; padding: 4px 0; font-size: 11.5px; font-weight: 700; opacity: .85; }
	.km-bar a.is-on { opacity: 1; color: var(--km-hi) !important; }
	.km-bar a .km-ic, .km-bar a svg { width: 22px; height: 22px; }
	.km-bar a.is-wa svg { fill: #fff; padding: 3px; border-radius: 50%; background: var(--km-wa); width: 26px; height: 26px; margin-top: -2px; }
	body:has(.km-bar) { padding-bottom: 86px; }

	/* rodapés */
	.km-foot { padding-top: 34px; }
	.km-f-classico .km-clube { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: -10px; padding: 18px; }
	.km-clube-foto { display: none; }
	.km-cols { grid-template-columns: 1fr; gap: 22px; }
	.km-venha { grid-template-columns: 1fr; gap: 22px; }
	.km-mapa, .km-mapa iframe { min-height: 240px; }
	.km-grade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.km-chama { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: end; padding-top: 26px; }
	.km-chama-foto { height: 170px; }
	.km-chama-txt { padding-bottom: 22px; gap: 12px; }
	.km-chama-txt h2 { font-size: 27px; }
	.km-chama-txt p { font-size: 14px; }
	.km-chama-txt .km-acoes { grid-column: 1 / -1; }
	.km-chama-txt .km-wa.is-big { padding: 13px 18px; font-size: 16px; }
	.km-selos { grid-template-columns: 1fr; gap: 10px; }
	.km-pay { margin-left: 0; }
	.km-legal span:first-of-type + .km-feito { margin-left: 0; }
}
@media (max-width: 600px) {
	/* chama: foto ao lado do título, botões embaixo de tudo */
	.km-chama { grid-template-columns: minmax(0, 1fr) 128px; grid-template-areas: "h f" "p f" "a a"; gap: 10px 8px; align-items: end; padding-top: 26px; }
	.km-chama.no-foto { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "p" "a"; }
	.km-chama-txt { display: contents; }
	.km-chama-txt h2 { grid-area: h; align-self: end; font-size: 26px; }
	.km-chama-txt p { grid-area: p; align-self: start; }
	.km-chama-txt .km-acoes { grid-area: a; padding: 6px 0 22px; }
	.km-chama-foto { grid-area: f; width: 128px; height: 190px; margin: 0 0 -10px; align-self: end; }
	.km-grade { gap: 6px; }
}
