/* =====================================================================
   PEDEJÁ — PÁGINA INICIAL (prefixo pj-)
   Carregado só no index.php. Não depende do estilo.css antigo; as regras
   abaixo neutralizam os floats/tamanhos globais que ele aplica em h1/h2/h3/p.
   Cores do cliente chegam por variáveis no .pj-home:
     --pj-cor        cor principal (passo6.cor)
     --pj-cor-txt    texto legível sobre a cor principal
     --pj-capa       fundo da capa do header
     --pj-preco      cor dos preços (cor secundária)
   ===================================================================== */

body.pj-body {
	background: #f4f4f6 !important;
}

.pj-home {
	--pj-bg: #f4f4f6;
	--pj-card: #fff;
	--pj-txt: #1d1d1f;
	--pj-txt-2: #6e6e73;
	--pj-borda: #ececf0;
	--pj-raio: 16px;
	--pj-tabs-h: 56px;
	--pj-largura: 760px;
	font-family: var(--pj-fonte, 'Plus Jakarta Sans', sans-serif);
	color: var(--pj-txt);
	width: 100%;
	clear: both;
}

.pj-home h1,
.pj-home h2,
.pj-home h3,
.pj-home p {
	float: none;
	margin: 0;
	padding: 0;
	font-family: inherit;
	color: inherit;
	letter-spacing: normal;
}

.pj-home *,
.pj-home *::before,
.pj-home *::after {
	box-sizing: border-box;
}

.pj-home a { color: inherit; text-decoration: none; }

.pj-wrap {
	width: 100%;
	max-width: var(--pj-largura);
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------------------------------------------------------------------
   HEADER DO ESTABELECIMENTO
   --------------------------------------------------------------------- */
.pj-hero {
	position: relative;
	padding-bottom: 4px;
}

.pj-hero__capa {
	position: relative;
	height: 132px;
	background: var(--pj-capa);
	overflow: hidden;
}

/* formas decorativas sobre a capa */
.pj-hero__capa::before,
.pj-hero__capa::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
}
.pj-hero__capa::before { width: 220px; height: 220px; top: -90px; right: -60px; }
.pj-hero__capa::after  { width: 140px; height: 140px; bottom: -70px; left: -30px; background: rgba(0, 0, 0, .07); }

.pj-hero__card {
	position: relative;
	margin-top: -64px;
	background: var(--pj-card);
	border-radius: 22px;
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .18);
	padding: 58px 18px 18px;
	text-align: center;
}

.pj-hero__logo {
	position: absolute;
	top: -46px;
	left: 50%;
	transform: translateX(-50%);
	width: 92px;
	height: 92px;
	border-radius: 24px;
	background: #fff;
	object-fit: contain;
	padding: 6px;
	box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .25);
}

.pj-hero__nome {
	font-size: 21px;
	font-weight: 700;
	line-height: 1.25;
	word-break: break-word;
}

.pj-hero__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.pj-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 7px 12px;
	border-radius: 999px;
	background: #f2f2f5;
	color: var(--pj-txt);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
}

.pj-chip svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	opacity: .7;
}

a.pj-chip { transition: background .15s ease; }
a.pj-chip:active { background: #e6e6ea; }

.pj-chip__seta { opacity: .45 !important; width: 12px !important; height: 12px !important; margin-left: -2px; }

.pj-chip--aberto { background: #e7f6ec; color: #11743a; font-weight: 700; }
.pj-chip--fechado { background: #fdecec; color: #b42318; font-weight: 700; }

.pj-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}
.pj-chip--aberto .pj-dot { box-shadow: 0 0 0 0 rgba(17, 116, 58, .5); animation: pj-pulso 2s infinite; }

@keyframes pj-pulso {
	0%   { box-shadow: 0 0 0 0 rgba(17, 116, 58, .45); }
	70%  { box-shadow: 0 0 0 7px rgba(17, 116, 58, 0); }
	100% { box-shadow: 0 0 0 0 rgba(17, 116, 58, 0); }
}

/* ---------------------------------------------------------------------
   BANNERS (cashback / indique e ganhe)
   --------------------------------------------------------------------- */
.pj-promos {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 14px 16px 2px;
	max-width: var(--pj-largura);
	margin: 0 auto;
	-webkit-overflow-scrolling: touch;
}

.pj-promo {
	flex: 0 0 100%;
	scroll-snap-align: center;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: var(--pj-raio);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.pj-promos--duplo .pj-promo { flex-basis: 86%; }

.pj-promo::after {
	content: '';
	position: absolute;
	width: 120px;
	height: 120px;
	right: -40px;
	top: -50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
}

.pj-promo__icone {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, .2) url(../img/coins.png) center / 30px no-repeat;
}

.pj-promo__selo {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	overflow: hidden;
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	line-height: 1;
}
.pj-promo__selo span { padding: 5px 7px; }

.pj-promo p {
	font-size: 13.5px;
	line-height: 1.35;
	color: #fff;
	position: relative;
	z-index: 1;
}

/* ---------------------------------------------------------------------
   ABAS DE CATEGORIAS
   --------------------------------------------------------------------- */
.pj-tabs-wrap {
	height: var(--pj-tabs-h);
	margin-top: 14px;
}

.pj-tabs {
	height: var(--pj-tabs-h);
	background: var(--pj-bg);
	z-index: 45;
	transition: box-shadow .2s ease, background .2s ease;
}

.pj-tabs.pj-tabs--fixa {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .25);
}

.pj-tabs__trilho {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 100%;
	max-width: var(--pj-largura);
	margin: 0 auto;
	padding: 0 16px;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.pj-tabs__trilho::-webkit-scrollbar { display: none; }

.pj-tab {
	flex-shrink: 0;
	padding: 9px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--pj-borda);
	color: var(--pj-txt-2);
	font-size: 12.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.pj-tab.pj-tab--ativa {
	background: var(--pj-cor);
	border-color: var(--pj-cor);
	color: var(--pj-cor-txt);
	font-weight: 700;
}

/* ---------------------------------------------------------------------
   CATEGORIAS E ITENS
   --------------------------------------------------------------------- */
.pj-menu { padding-top: 4px; padding-bottom: 24px; }

.pj-destaque {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 14px;
	padding: 12px;
	background: var(--pj-card);
	border-radius: var(--pj-raio);
	box-shadow: 0 2px 10px -6px rgba(0, 0, 0, .15);
}
.pj-destaque:active { background: #f7f7f9; }

.pj-destaque__img {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	background: #f2f2f5 url(../img/meia.png) center / cover no-repeat;
	flex-shrink: 0;
}

.pj-destaque__txt { flex: 1; min-width: 0; text-align: left; }
.pj-destaque__txt h3 { font-size: 15.5px; font-weight: 700; }
.pj-destaque__txt p { font-size: 12.5px; color: var(--pj-txt-2); margin-top: 3px; }
.pj-destaque svg { width: 18px; height: 18px; opacity: .35; flex-shrink: 0; }

.pj-cat {
	padding-top: 40px;
	/* ao rolar até a categoria, ela fica logo abaixo das abas fixas */
	scroll-margin-top: calc(var(--pj-tabs-h) + 8px);
}

.pj-cat__topo {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	padding: 0 2px;
}
.pj-cat:first-of-type { padding-top: 26px; }

.pj-cat__titulo {
	font-size: 16.5px;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: .4px;
}

.pj-cat__qtd {
	font-size: 12px;
	color: var(--pj-txt-2);
	white-space: nowrap;
}

.pj-cat__itens {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.pj-item {
	display: flex;
	align-items: stretch;
	gap: 12px;
	min-height: 104px;
	padding: 14px;
	background: var(--pj-card);
	border-radius: var(--pj-raio);
	box-shadow: 0 2px 10px -6px rgba(0, 0, 0, .15);
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.pj-item:active { transform: scale(.985); box-shadow: 0 1px 4px -2px rgba(0, 0, 0, .15); }

.pj-item__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	text-align: left;
}

.pj-item__nome {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.pj-item__desc {
	margin-top: 4px;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--pj-txt-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.pj-item__preco {
	margin-top: auto;
	padding-top: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--pj-preco);
}

.pj-item__foto {
	position: relative;
	width: 96px;
	height: 96px;
	flex-shrink: 0;
	align-self: center;
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient(90deg, #f0f0f3 20%, #f8f8fa 50%, #f0f0f3 80%);
	background-size: 200% 100%;
	animation: pj-brilho 1.4s linear infinite;
}

.pj-item__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity .4s ease;
}
.pj-item__foto img.pj-on { opacity: 1; }
.pj-item__foto.pj-carregada { animation: none; background: #f2f2f5; }

@keyframes pj-brilho {
	0%   { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}

.pj-vazio {
	margin-top: 28px;
	padding: 28px 18px;
	text-align: center;
	background: var(--pj-card);
	border-radius: var(--pj-raio);
	color: var(--pj-txt-2);
	font-size: 14px;
}

/* ---------------------------------------------------------------------
   AVISO DA LOJA (popup ao abrir o cardápio)
   --------------------------------------------------------------------- */
#background_aviso_index.pj-recado-fundo {
	position: fixed;
	inset: 0;
	width: auto;
	height: auto;
	z-index: 1000;
	background: rgba(15, 15, 18, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

#aviso_index.pj-recado {
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(340px, calc(100% - 40px));
	margin: 0;
	padding: 52px 22px 20px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
	text-align: center;
	transform: translate(-50%, -50%);
	animation: pj-recado-entra .28s cubic-bezier(.2, .9, .3, 1.2) both;
}

@keyframes pj-recado-entra {
	from { opacity: 0; transform: translate(-50%, -44%) scale(.94); }
	to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.pj-recado__logo {
	position: absolute;
	top: -36px;
	left: 50%;
	width: 72px;
	height: 72px;
	margin-left: -36px;
	padding: 5px;
	border-radius: 20px;
	background: #fff;
	object-fit: contain;
	box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .3);
}

#aviso_index .pj-recado__titulo {
	float: none;
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 700;
	color: #1d1d1f;
}

#aviso_index .pj-recado__texto,
#aviso_index .pj-recado__texto p {
	float: none;
	max-height: 50vh;
	overflow-y: auto;
	font-size: 14.5px;
	line-height: 1.55;
	color: #48484a;
	word-break: break-word;
}

#aviso_index .pj-recado__botao {
	position: static;
	float: none;
	width: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin-top: 20px;
	border-radius: 14px;
	background: var(--pj-marca, #1d1d1f);
	color: var(--pj-marca-txt, #fff);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
#aviso_index .pj-recado__botao:active { transform: scale(.98); }

/* telas maiores: 2 colunas de itens */
@media screen and (min-width: 820px) {
	.pj-hero__capa { height: 170px; }
	.pj-hero__nome { font-size: 24px; }
	.pj-cat__itens { grid-template-columns: 1fr 1fr; }
	.pj-promos--duplo .pj-promo { flex-basis: calc(50% - 5px); }
}

/* =====================================================================
   PROMOÇÃO / COMBO / DESTAQUES (seções da frente do cardápio)
   ===================================================================== */
.pj-item__selos { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.pj-item__selo { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .2px; }
.pj-item__selo--promo { background: #e5322d; color: #fff; }
.pj-item__selo--combo { background: #1d1d1f; color: #fff; }
.pj-item__preco s { margin-left: 4px; font-size: 12.5px; font-weight: 500; color: var(--pj-txt-2); }
.pj-item__preco small { font-size: 11.5px; font-weight: 600; color: var(--pj-txt-2); }
.pj-item--promo .pj-item__preco { color: #1a8a4a; }

/* Destaques: fileira que rola para o lado */
.pj-cat--destaques .pj-cat__qtd { display: none; }
.pj-cat--destaques .pj-cat__itens {
	display: flex;
	gap: 12px;
	margin: 0 -16px;
	padding: 2px 16px 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	scroll-padding-inline: 16px; /* o snap respeita o recuo: o 1º card alinha com o título */
}
.pj-cat--destaques .pj-cat__itens::-webkit-scrollbar { display: none; }
.pj-item--grande { flex: 0 0 min(72%, 240px); flex-direction: column; gap: 0; padding: 0; overflow: hidden; scroll-snap-align: start; }
.pj-item__capa { position: relative; aspect-ratio: 4 / 3; background: #f2f2f5; }
.pj-item__capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-item__capa--vazia { background: linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .12)), var(--pj-cor); }
.pj-item__capa .pj-item__selos { position: absolute; top: 8px; left: 8px; margin: 0; }
.pj-item--grande .pj-item__info { padding: 10px 12px 12px; }
.pj-item--grande .pj-item__nome { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* ajustes: foto do destaque na proporção certa e preço da promoção na cor normal de preço */
.pj-item__capa { overflow: hidden; height: auto; }
.pj-item__capa img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; }
.pj-item--promo .pj-item__preco { color: var(--pj-preco); }
.pj-cat--destaques .pj-cat__itens { align-items: stretch; }
