/*
 * 13/11/2026: camada do CELULAR, igual para as 9 lojas (carrega depois do loja.css).
 * Pedido do Eduardo: "no mobile precisa ser tudo centralizado, logo maior, centralizada", como nas referências
 * (teterecoss, abcdaeducacaomais, alfabetecaabc): logo grande no meio, busca larga, botões e textos no centro.
 * O computador não muda: tudo aqui fica dentro de max-width 767px.
 */
@media (max-width: 767px) {

	/* ---------- barra do topo: uma frase só, no centro ---------- */
	.alf-topo-in { justify-content: center; text-align: center; flex-wrap: wrap; }
	.alf-topo p { justify-content: center; }
	.alf-topo-in > div.alf-topo-dir, .alf-topo-in > .alf-sociais { display: none; }
	.alf-topo:has(.alf-topo-esq) { display: none; }   /* Recursos/EducaMark: só tinha "Suporte"; o aviso logo abaixo já fala da entrega */

	/* ---------- cabeçalho: logo GRANDE no centro, busca larga embaixo ---------- */
	.alf-meio-in { position: relative; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 12px; min-height: 0; padding-top: 14px; padding-bottom: 14px; }
	.alf-logo { order: 1; flex: 0 0 auto; display: block; width: auto; margin: 0 auto; text-align: center; }
	.alf-logo img { display: block; width: auto; height: auto; max-width: min(70vw, 290px); max-height: 160px; margin: 0 auto; }
	.alf-busca, .alf-meio-esq { order: 3; width: 100%; max-width: none; flex: 0 0 auto; margin: 0; }
	.alf-meio-esq .alf-busca { width: 100%; }
	.alf-meio-dir { display: none; }

	/* carrinho e conta nos cantos de cima, sem empurrar a logo */
	.alf-meio-in > .alf-abre-carrinho, .alf-meio-in > .alf-acao { position: absolute; top: 12px; z-index: 2; margin: 0; }
	.alf-meio-in > .alf-abre-carrinho { right: 10px; }
	.alf-meio-in > .alf-acao:not(.alf-abre-carrinho) { left: 10px; }
	.alf-meio-in > .alf-abre-carrinho:not(.alf-acao) { padding: 11px 13px; }
	/* Atividade Pedagógica / Sua Reunião: "Conta" e "Carrinho" viram botões redondos só com ícone (o texto encostava na logo larga) */
	.alf-meio-in > .alf-acao { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); flex-direction: row; justify-content: center; align-items: center; }
	.alf-meio-in > .alf-acao span:not(.alf-ico) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.alf-meio-in > .alf-acao .alf-carrinho-qtd { top: -4px; right: -4px; }

	/* atalhos redondos (Aprendizagem Fácil / Educa na Escola): fila no centro, abaixo da logo */
	.alf-atalhos-topo { order: 2; margin: 0 auto; justify-content: center; }

	/* menu: botão no centro e itens centralizados quando abre */
	.alf-nav-in { justify-content: center; }
	.alf-hamb { margin: 0 auto; justify-content: center; }
	.alf-menu-lista.aberto { text-align: center; }
	.alf-menu-lista .alf-menu { align-items: center; }
	.alf-menu-lista .alf-menu a { justify-content: center; text-align: center; }
	.alf-abas-in .alf-hamb { margin: 0; }
	.alf-chips .alf-menu { justify-content: center; flex-wrap: wrap; overflow: visible; }
	.alf-aviso { text-align: center; }

	/* ---------- banner de abertura: texto e botões no centro ---------- */
	.alf-hero-in { justify-content: center; }
	.alf-hero-txt, .alf-hero-caixa { text-align: center; margin-left: auto; margin-right: auto; }
	.alf-hero h1, .alf-hero-caixa h1 { text-align: center; }
	.alf-hero p, .alf-hero-caixa p { margin-left: auto; margin-right: auto; text-align: center; }
	.alf-hero-btns { flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
	.alf-hero-btns > a { justify-content: center; min-width: 240px; }
	.alf-hero .alf-btn, .alf-hero-caixa .alf-btn { display: inline-block; margin-left: auto; margin-right: auto; }

	/* vantagens: ícone em cima, texto embaixo, tudo no centro */
	.alf-vantagens li { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 4px; }
	.alf-vantagens .alf-ico { grid-row: auto; margin: 0 auto 2px; }

	/* atalhos por tipo (Recursos/EducaMark) */
	.alf-atalhos a { align-items: center; text-align: center; }
	/* 13/11: número ímpar de atalhos (loja com poucos tipos ainda): o último fica no meio, não sozinho à esquerda */
	.alf-atalhos > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }

	/* calendário (Atividade Pedagógica / Sua Reunião) */
	.alf-calendario h2 { text-align: center; }
	.alf-calendario ol { justify-content: safe center; }
	.alf-calendario a { align-items: center; text-align: center; }

	/* títulos das seções */
	.alf-secao-tit { text-align: center; }
	.alf-cab-secao { flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
	.alf-cab-secao .alf-secao-tit { margin: 0; }

	/* ---------- cartões dos produtos: tudo no centro ---------- */
	.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { text-align: center; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { text-align: center; justify-self: center; }
	.woocommerce ul.products li.product .price { justify-content: center; align-items: center; justify-self: center; text-align: center; flex-wrap: wrap; column-gap: 7px; }
	.woocommerce ul.products li.product .button { justify-self: stretch; text-align: center; margin-left: auto; margin-right: auto; }

	/* listas de categoria e busca */
	.woocommerce-products-header, .woocommerce-products-header__title, .woocommerce .page-title, .woocommerce-result-count, .woocommerce-breadcrumb, .term-description { text-align: center; }
	.woocommerce-result-count, .woocommerce-ordering { float: none; }
	.woocommerce-ordering { display: flex; justify-content: center; }

	/* ---------- página do produto ---------- */
	.single-product div.product .summary { text-align: center; }
	.single-product div.product .summary .product_title { text-align: center; }
	.single-product div.product .summary .price { justify-content: center; align-items: center; text-align: center; }
	.single-product div.product form.cart { justify-content: center; }
	.alf-info-tit, .single-product .alf-info-tit { text-align: center; }
	.alf-descricao, .alf-descricao p, .alf-descricao h2, .alf-descricao h3 { text-align: center; }
	.alf-descricao ul, .alf-descricao ol { list-style-position: inside; padding-left: 0; margin-left: 0; text-align: center; }
	.single-product .related > h2, .single-product .upsells > h2 { text-align: center; }

	/* páginas de texto (Quem somos, Contato, políticas): título no centro */
	.alf-pagina h1, .entry-header, .entry-title, .page-title { text-align: center; }

	/* ---------- rodapé: uma coluna, tudo no centro ---------- */
	.alf-rodape-in { grid-template-columns: 1fr !important; text-align: center; justify-items: center; }
	.alf-rod-marca, .alf-rodape-in > div { text-align: center; }
	.alf-rod-marca img { margin-left: auto; margin-right: auto; }
	.alf-rodape .alf-sociais { justify-content: center; }
	.alf-rodape ul, .alf-rod-lista { padding: 0; text-align: center; }
	.alf-direitos, .alf-direitos .alf-wrap { justify-content: center; text-align: center; }
	.alf-rodape h2, .alf-rodape h3, .alf-rodape p, .alf-cartao { text-align: center; }
	.alf-rodape img { display: block; margin-left: auto; margin-right: auto; }

	/* ---------- pagamento: logo maior no centro ---------- */
	.alf-ck-logo img { height: auto; width: auto; max-width: min(64vw, 250px); max-height: 110px; margin: 0 auto; display: block; }
	.woocommerce-checkout #customer_details .woocommerce-billing-fields h3, #order_review_heading { text-align: center; }
	.woocommerce-checkout #payment .payment_methods li > label, .woocommerce-checkout #payment .payment_box { text-align: center; }
}

/* telas bem estreitas: cantos de cima só com ícone, para não encostar na logo */
@media (max-width: 380px) {
	.alf-meio-in > .alf-abre-carrinho, .alf-meio-in > .alf-acao { top: 8px; }
	.alf-meio-in > .alf-abre-carrinho { right: 6px; }
	.alf-meio-in > .alf-acao:not(.alf-abre-carrinho) { left: 6px; }
	.alf-logo img { max-width: min(66vw, 290px); }
}

/* 13/11: em qualquer tela, atalho único fica centralizado (EducaMark só tem 'Datas e campanhas' por enquanto) */
.alf-atalhos:has(> li:only-child) { grid-template-columns: minmax(0, 300px); justify-content: center; }
@media (max-width: 767px) { .alf-atalhos > li:only-child:last-child:nth-child(odd) { width: auto; grid-column: auto; justify-self: stretch; } .alf-atalhos:has(> li:only-child) { grid-template-columns: minmax(0, 220px); } }
