/* Eletromais: identidade e componentes
   Cores do logo: cinza-ardósia #3E4F55 e amarelo #FFC700. */

:root {
	--slate: #3e4f55;
	--slate-900: #2b373c;
	--slate-700: #4f626a;
	--slate-100: #eef1f2;
	--slate-50: #f6f8f8;
	--yellow: #ffc700;
	--yellow-600: #e6b300;
	--yellow-100: #fff4cc;
	--green: #157a3c;
	--red: #c8321e;
	--text: #2b373c;
	--muted: #6c7a80;
	--line: #e3e8ea;
	--radius: 14px;
	--radius-sm: 8px;
	--container: 1240px;
	--shadow: 0 2px 10px rgba(43, 55, 60, 0.08);
	--font: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.5; font-size: 15px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; }
[hidden] { display: none !important; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--slate-900); padding: 8px 14px; z-index: 1000; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius-sm); padding: 12px 22px; font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: background 0.2s, transform 0.1s; }
.btn:active { transform: translateY(1px); }
.btn--yellow { background: var(--yellow); color: var(--slate-900); }
.btn--yellow:hover { background: var(--yellow-600); }
.btn--dark { background: var(--slate-900); color: #fff; }
.btn--dark:hover { background: #000; }

/* Faixa de avisos */
.topbar { background: var(--slate-900); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.topbar__inner { position: relative; height: 38px; overflow: hidden; }
.topbar__msg { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transition: opacity 0.4s; padding: 0 12px; }
.topbar__msg.is-active { opacity: 1; }
/* Só a mensagem visível recebe clique (as mensagens ficam empilhadas): permite link dentro da faixa. */
.topbar__msg { pointer-events: none; }
.topbar__msg.is-active { pointer-events: auto; }
.topbar__link { color: #fff; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
/* Aviso de validade na página de Ofertas (Black Friday). */
/* Black Friday (só no período, ver inc/data.php): banner da página de Ofertas, slide do banner da home e arte no cartão */
.em-black-banner { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 18px; padding: 22px 28px; min-height: 150px; display: flex; align-items: center; border-radius: 12px; background: #070400; color: #fff; }
.em-black-banner > div { max-width: 560px; }
.em-black-banner .em-black-banner__arte { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: none; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 38%); mask-image: linear-gradient(to right, transparent, #000 38%); }
.em-black-banner .hero__eyebrow { background: var(--yellow); color: var(--slate-900); margin-bottom: 8px; }
.em-black-banner h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; font-weight: 800; color: #fff; }
.em-black-banner p { margin: 0; font-size: 15px; opacity: 0.92; }
@media (max-width: 760px) {
	.em-black-banner { padding: 18px 18px; }
	.em-black-banner .em-black-banner__arte { right: -35%; opacity: 0.4; }
}
.topbar__link:hover, .topbar__link:focus-visible { color: var(--yellow); }
.topbar strong { color: var(--yellow); font-weight: 800; }
.topbar .icon { color: var(--yellow); }

/* Barra utilitária */
.utility { background: var(--slate-50); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--slate-700); }
.utility__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility__cep { display: flex; align-items: center; gap: 6px; }
.utility ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.utility a { text-decoration: none; }
.utility a:hover { color: var(--slate-900); text-decoration: underline; }

/* Cabeçalho */
.site-header { background: #fff; position: relative; z-index: 50; }
.site-header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 10px 0; }
.logo img { display: block; height: 52px; width: auto; }
.site-search { display: flex; align-items: center; background: var(--slate-50); border: 2px solid transparent; border-radius: 999px; padding: 4px 4px 4px 22px; width: 100%; max-width: 640px; margin-inline: auto; transition: border-color 0.2s, background 0.2s; }
.site-search:focus-within { border-color: var(--yellow); background: #fff; }
.site-search input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; outline: 0; padding: 10px 0; color: var(--text); }
.site-search button { border: 0; background: var(--yellow); color: var(--slate-900); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.site-search button:hover { background: var(--yellow-600); }
.header-actions { display: flex; gap: 6px; align-items: center; }
.header-action { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; text-decoration: none; font-size: 12.5px; line-height: 1.25; font-weight: 700; color: var(--slate-900); position: relative; }
.header-action:hover { background: var(--slate-50); }
.header-action .icon { width: 28px; height: 28px; color: var(--slate); }
.header-action small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
/* Minha conta: menu lateral sem marcadores, com a página atual destacada. */
.woocommerce-MyAccount-content .em-conta__ola { margin: 0 0 8px; font-size: 24px; color: var(--slate); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.woocommerce-MyAccount-navigation a:hover { background: var(--slate-50); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--yellow-100); box-shadow: inset 3px 0 0 var(--yellow); }

/* Quem está logado vê a inicial do nome no lugar do ícone (aparece também no celular, onde o texto some). */
.header-avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--slate-900); font-size: 14px; font-weight: 800; line-height: 1; }
.cart-count { position: absolute; left: 32px; top: 2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--yellow); color: var(--slate-900); font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }

/* Menu de departamentos */
.mainnav { background: var(--slate); color: #fff; position: relative; }
.mainnav__inner { display: flex; align-items: stretch; gap: 4px; min-height: 48px; }
.nav-all { display: flex; align-items: center; gap: 10px; background: var(--slate-900); color: #fff; border: 0; font: inherit; font-weight: 700; font-size: 14px; padding: 0 22px; cursor: pointer; }
.nav-all:hover, .nav-all[aria-expanded="true"] { background: #000; }
.nav-link { display: flex; align-items: center; padding: 0 18px; font-weight: 600; font-size: 14px; color: #fff; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-link:hover { border-bottom-color: var(--yellow); }
/* Ao passar o mouse no departamento abrem as subcategorias (o clique no nome continua levando a todos os itens) */
.nav-item { position: relative; display: flex; }
.nav-item:hover > .nav-link, .nav-item:focus-within > .nav-link { border-bottom-color: var(--yellow); }
.nav-drop { list-style: none; margin: 0; padding: 10px 0; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; color: var(--text); border-top: 3px solid var(--yellow); box-shadow: 0 18px 40px rgba(43, 55, 60, 0.18); z-index: 55; visibility: hidden; opacity: 0; transition: opacity 0.12s ease 0.15s, visibility 0s linear 0.27s; }
.nav-item:hover > .nav-drop, .nav-item:focus-within > .nav-drop { visibility: visible; opacity: 1; transition-delay: 0.08s, 0s; }
.nav-all[aria-expanded="true"] ~ .nav-item > .nav-drop { display: none; }
.nav-drop li { margin: 0; }
.nav-drop a { display: block; padding: 7px 20px; font-size: 13.5px; color: var(--slate-700); text-decoration: none; }
.nav-drop a:hover, .nav-drop a:focus-visible { background: var(--slate-50); color: var(--slate-900); }
.nav-drop ul { list-style: none; margin: 0; padding: 0; }
.nav-drop ul a { padding: 4px 20px 4px 36px; font-size: 12.5px; opacity: 0.85; }
.nav-drop .nav-drop__all { font-weight: 700; color: var(--slate); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.nav-offers { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: var(--slate-900); font-weight: 800; border-radius: var(--radius-sm); padding: 8px 18px; text-decoration: none; font-size: 14px; }
.nav-offers:hover { background: var(--yellow-600); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--text); box-shadow: 0 18px 40px rgba(43, 55, 60, 0.18); border-top: 3px solid var(--yellow); z-index: 60; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 28px 0; }
.mega h3 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: var(--slate); }
.mega h3 a { text-decoration: none; }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; }
.mega a { text-decoration: none; color: var(--slate-700); }
.mega a:hover { color: var(--slate-900); text-decoration: underline; }
.mega .mega__all { font-weight: 700; color: var(--slate); }

/* Carrossel principal */
.hero__viewport { position: relative; overflow: hidden; display: grid; }
.hero__slide { display: flex; grid-area: 1 / 1; visibility: hidden; position: relative; min-height: 245px; align-items: center; color: #fff; isolation: isolate; overflow: hidden; background: var(--slate); }
.hero__slide.is-active { visibility: visible; animation: heroIn 0.5s ease; }
@keyframes heroIn { from { opacity: 0.55; } to { opacity: 1; } }
.hero__slide::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 85% 20%, rgba(255, 199, 0, 0.22), transparent 45%), linear-gradient(120deg, var(--slate-900), var(--slate) 60%, var(--slate-700)); }
.hero__slide::after { content: ""; position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: min(30vw, 330px); aspect-ratio: 1; z-index: -1; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='%23FFC700'><rect x='35' y='2' width='30' height='30' rx='5'/><rect x='2' y='35' width='30' height='30' rx='5'/><rect x='35' y='35' width='30' height='30' rx='5'/><rect x='68' y='35' width='30' height='30' rx='5'/><rect x='35' y='68' width='30' height='30' rx='5'/></g></svg>") center / contain no-repeat; }
.hero__slide--yellow { color: var(--slate-900); background: var(--yellow); }
.hero__slide--yellow::before { background: radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.35), transparent 45%), linear-gradient(120deg, #ffd633, var(--yellow) 60%, #ffb800); }
.hero__slide--yellow::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='%233E4F55'><rect x='35' y='2' width='30' height='30' rx='5'/><rect x='2' y='35' width='30' height='30' rx='5'/><rect x='35' y='35' width='30' height='30' rx='5'/><rect x='68' y='35' width='30' height='30' rx='5'/><rect x='35' y='68' width='30' height='30' rx='5'/></g></svg>"); }
.hero__slide--dark::before { background: radial-gradient(circle at 80% 80%, rgba(255, 199, 0, 0.18), transparent 50%), linear-gradient(120deg, #1f292d, var(--slate-900) 60%, var(--slate)); }
.hero__slide--black { background: #070400; }
.hero__slide--black::before { background: radial-gradient(circle at 78% 50%, rgba(255, 199, 0, 0.16), transparent 55%), linear-gradient(120deg, #000, #0b0903 70%); }
.hero__slide--black::after { display: none; }
.hero__slide--black .hero__eyebrow { background: var(--yellow); color: var(--slate-900); }
.hero__content > .hero__arte { position: absolute; top: 0; height: 100%; width: auto; max-width: none; right: max(0px, calc((100vw - var(--container)) / 2)); z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 38%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 38%, #000 88%, transparent); }
@media (max-width: 760px) {
	.hero__content > .hero__arte { right: -40%; opacity: 0.35; }
	.hero__slide--black .hero__content { padding-bottom: 44px; } /* o texto é mais longo: as bolinhas não ficam em cima do botão */
}
.hero__content { padding-block: 26px; padding-inline: 60px; max-width: var(--container); } /* recuo: o texto não fica atrás das setas */
.hero__content > * { max-width: 560px; }
.hero__eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 5px 14px; margin-bottom: 8px; }
.hero__slide--yellow .hero__eyebrow { background: rgba(43, 55, 60, 0.12); }
.hero__content h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; font-weight: 800; margin: 0 0 6px; }
.hero__content > h2 { max-width: 760px; }
.hero__content > p { max-width: 640px; }
.hero__content .btn { padding: 10px 20px; }
.hero__content p { font-size: clamp(15px, 1.6vw, 18px); margin: 0 0 14px; opacity: 0.92; }
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--slate-900); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 3; }
.hero__arrow:hover { background: #fff; }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; z-index: 3; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.55); cursor: pointer; padding: 0; }
.hero__dots button.is-active { background: var(--yellow); width: 26px; border-radius: 6px; }

/* Faixa de benefícios */
.benefits { background: #fff; border-bottom: 1px solid var(--line); }
.benefits__list { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.benefits__list li { display: flex; align-items: center; gap: 14px; padding: 10px 8px; font-size: 13.5px; line-height: 1.3; }
.benefits__list small { color: var(--muted); font-size: 12px; }
.benefits__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow-100); color: var(--slate); display: grid; place-items: center; flex: none; }
.benefits__icon .icon { width: 24px; height: 24px; }

/* Seções */
.section { margin-top: 48px; }
.section-title { text-align: center; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: var(--slate); margin: 0 0 24px; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: var(--yellow); margin: 10px auto 0; }

/* Abas */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.tab { border: 1.5px solid var(--slate); background: #fff; color: var(--slate); border-radius: 999px; padding: 7px 18px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; transition: background 0.2s; }
.tab:hover { background: var(--slate-50); }
.tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--slate-900); font-weight: 700; }

/* Vitrines em carrossel */
.rail { position: relative; }
.rail__track { list-style: none; margin: 0; padding: 6px 4px 18px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > li { flex: 0 0 calc((100% - 64px) / 5); min-width: 205px; scroll-snap-align: start; }
.rail__btn { position: absolute; top: 40%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--slate); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); z-index: 2; }
.rail__btn:hover { background: var(--slate-900); }
.rail__btn--prev { left: -14px; }
.rail__btn--next { right: -14px; }

/* Cartão de produto */
.ecard { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; position: relative; margin: 0; transition: box-shadow 0.2s, transform 0.2s; }
.ecard:hover { box-shadow: 0 10px 28px rgba(43, 55, 60, 0.14); transform: translateY(-2px); }
.ecard__badge { position: absolute; left: 12px; top: 12px; background: var(--yellow); color: var(--slate-900); font-weight: 800; font-size: 12px; border-radius: 6px; padding: 3px 8px; z-index: 1; }
.ecard__img { display: block; aspect-ratio: 1; margin-bottom: 10px; border-radius: 10px; overflow: hidden; background: #fff; }
.ecard__img img { width: 100%; height: 100%; object-fit: contain; display: block; margin: 0; }
.ecard__img--black { aspect-ratio: 600 / 628; background: #000; }
.ecard__img--black img { object-fit: cover; }
.ecard__title { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin: 0 0 8px; min-height: 3.9em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ecard__title a { text-decoration: none; color: var(--slate-900); }
.ecard__title a:hover { text-decoration: underline; }
.ecard__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; min-height: 20px; margin-bottom: 8px; }
.stars { --p: calc(var(--rating) / 5 * 100%); font-size: 14px; letter-spacing: 1px; background: linear-gradient(90deg, #ffb400 var(--p), #d5dbde var(--p)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ecard__stock { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; }
.ecard__stock .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.ecard__stock--out { color: var(--red); }
.ecard__price { margin-top: auto; }
.ecard__price .price,
.woocommerce ul.products li.ecard .ecard__price .price { display: block; font-size: 22px; font-weight: 800; color: var(--slate-900); line-height: 1.15; }
.ecard__price .price del,
.woocommerce ul.products li.ecard .ecard__price .price del { display: block; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; opacity: 1; }
.ecard__price .price del::before { content: "de "; }
.ecard__price .price del .amount { text-decoration: line-through; }
.ecard__price .price ins,
.woocommerce ul.products li.ecard .ecard__price .price ins { display: block; font-size: 22px; font-weight: 800; text-decoration: none; background: none; }
.ecard__pix { font-size: 12.5px; color: var(--green); font-weight: 600; margin: 4px 0 12px; min-height: 2.6em; line-height: 1.3; }
.ecard__pix strong { font-weight: 800; }
.ecard__pix-off { display: inline-block; background: #e6f4ea; border-radius: 4px; padding: 0 6px; font-size: 11.5px; font-weight: 800; }
.ecard .button, .ecard__btn { display: block; width: 100%; text-align: center; border: 0; border-radius: var(--radius-sm); background: var(--yellow); color: var(--slate-900); font: inherit; font-size: 13px; font-weight: 800; padding: 11px 12px; text-decoration: none; cursor: pointer; transition: background 0.2s; }
.ecard .button:hover { background: var(--yellow-600); color: var(--slate-900); }
.ecard .button.loading { opacity: 0.6; }
.ecard .added_to_cart { display: block; text-align: center; font-size: 12px; font-weight: 700; margin-top: 8px; color: var(--slate); }

/* Vitrine em grade (home): 3 linhas de produtos por aba; o que passa da terceira linha fica escondido */
.vitrine { list-style: none; margin: 0; padding: 4px 0 8px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.vitrine > li { min-width: 0; }
.vitrine__mais { text-align: center; margin: 22px 0 0; }
@media (max-width: 1499px) { .vitrine > li:nth-child(n+16) { display: none; } }

/* Confiança */
.trust { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust__item { display: flex; align-items: center; gap: 14px; background: var(--slate-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 14px; line-height: 1.35; }
.trust__item .icon { width: 34px; height: 34px; color: var(--slate); }
.trust__item small { color: var(--muted); font-size: 12.5px; }

/* Texto institucional */
.about { margin-top: 56px; text-align: center; max-width: 820px; }
.about h2 { font-size: 18px; color: var(--slate); margin: 0 0 8px; }
.about p { margin: 0; color: var(--muted); font-size: 14px; }

/* Rodapé */
.site-footer { background: var(--slate-900); color: #d6dde0; margin-top: 64px; font-size: 14px; }
.site-footer a { color: #d6dde0; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
.footer__brand img { display: block; height: 46px; width: auto; margin-bottom: 22px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact { margin-bottom: 18px; }
.footer__mid { display: flex; gap: 48px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.pay-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-pill { background: #fff; color: var(--slate-900); border-radius: 6px; padding: 5px 12px; font-weight: 800; font-size: 12px; }
.footer__note { margin: 0; color: #9fb0b6; font-size: 13px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0 28px; font-size: 12px; color: #9fb0b6; }
.footer__bottom p { margin: 0 0 6px; }

/* WhatsApp flutuante */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); z-index: 90; transition: transform 0.2s; }
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float .icon { width: 30px; height: 30px; stroke-width: 1.6; }

/* Páginas internas e WooCommerce */
main.page { padding-block: 32px; }
.entry__title { font-size: clamp(24px, 3vw, 32px); color: var(--slate); margin: 0 0 20px; }
.woocommerce-breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.woocommerce-breadcrumb a { text-decoration: none; }
.woocommerce-products-header__title, .product_title { color: var(--slate); font-weight: 800; }
.woocommerce-result-count { font-size: 13px; color: var(--muted); float: left; margin: 10px 0 20px; }
.woocommerce-ordering { float: right; margin: 0 0 20px; }
.woocommerce-ordering select, .em-marca select { font: inherit; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; background: #fff; }
/* Barra da listagem: quantidade de resultados, filtro por marca e ordenação (inc/marcas.php). Em telas até 900 px a quantidade fica numa linha e os dois seletores dividem a seguinte. */
.page--shop .em-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 20px; }
.page--shop .em-toolbar .woocommerce-result-count { float: none; margin: 0 auto 0 0; }
.page--shop .em-toolbar .woocommerce-ordering, .page--shop .em-toolbar .em-marca { float: none; margin: 0; }
.page--shop .em-toolbar .em-marca { order: 1; }
.page--shop .em-toolbar .woocommerce-ordering { order: 2; }
.em-marca select { max-width: 240px; }
@media (max-width: 900px) {
	.page--shop .em-toolbar .woocommerce-result-count { flex-basis: 100%; }
	.page--shop .em-toolbar .em-marca, .page--shop .em-toolbar .woocommerce-ordering { flex: 1 1 calc(50% - 6px); min-width: 0; }
	.page--shop .em-toolbar select { width: 100%; max-width: none; font-size: 14px; padding: 9px 8px; }
}
.page--shop ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; clear: both; }
.page--shop ul.products::before, .page--shop ul.products::after { display: none; }
.page--shop ul.products li.product { width: auto; float: none; margin: 0; }
/* No celular o CSS do WooCommerce põe 48% de largura e float nos itens, e eles ficavam estreitos dentro da grade do tema. */
.woocommerce ul.products[class*="columns-"] li.product.ecard,
.woocommerce-page ul.products[class*="columns-"] li.product.ecard,
.page--shop ul.products[class*="columns-"] li.product.ecard { width: auto; float: none; clear: none; margin: 0; }
/* Nas listagens o CSS do WooCommerce zera o espaçamento do cartão (a home não o carrega): aqui voltam as medidas do cartão da home. */
.woocommerce ul.products li.product.ecard,
.woocommerce-page ul.products li.product.ecard { padding: 14px; }
.woocommerce ul.products li.product.ecard .ecard__title,
.woocommerce-page ul.products li.product.ecard .ecard__title { padding: 0; margin: 0 0 8px; font-size: 13.5px; }
.woocommerce ul.products li.product.ecard .ecard__img img,
.woocommerce-page ul.products li.product.ecard .ecard__img img { margin: 0; }
.woocommerce ul.products li.product.ecard .ecard__btn,
.woocommerce ul.products li.product.ecard .button,
.woocommerce-page ul.products li.product.ecard .ecard__btn,
.woocommerce-page ul.products li.product.ecard .button { margin: 0; font-size: 13px; padding: 11px 12px; display: flex; align-items: center; justify-content: center; min-height: 48px; }
/* "Sob consulta" no lugar do preço: menor, para caber numa linha em cartão estreito. */
.ecard__price .price .em-sob-consulta { font-size: 18px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt { background: var(--yellow); color: var(--slate-900); font-weight: 800; border-radius: var(--radius-sm); }
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce #respond input#submit.alt:hover { background: var(--yellow-600); color: var(--slate-900); }
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt[disabled] { background: var(--yellow); opacity: 0.5; color: var(--slate-900); }
.woocommerce .price, .woocommerce ul.products li.product .price { color: var(--slate-900); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--slate-900); font-weight: 800; }
.woocommerce div.product form.cart .button { padding: 14px 28px; font-size: 15px; }
.woocommerce-info, .woocommerce-message { border-top-color: var(--yellow); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--slate); }

/* Página do produto */
.btn--whats { background: #25d366; color: #fff; }
.btn--whats:hover { background: #1fb457; }
.btn--whats .icon { stroke-width: 1.8; }
.em-whats { margin: 14px 0 0; }
.em-pix-line { margin: 4px 0 14px; color: var(--green); font-weight: 600; }
.em-pix-line strong { font-size: 20px; font-weight: 800; }
.em-pix-line--off { color: var(--muted); font-weight: 500; font-size: 13px; }
.woocommerce div.product .product_title { font-size: clamp(22px, 3vw, 30px); }
.woocommerce div.product form.cart { margin-bottom: 8px; }
.woocommerce .quantity .qty { border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 8px; font: inherit; }

/* Formulários (checkout, conta) */
.woocommerce form .form-row label { font-weight: 700; font-size: 13px; color: var(--slate); margin-bottom: 4px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container--default .select2-selection--single { border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; font: inherit; min-height: 46px; background: #fff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 24px; padding: 0; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus, .woocommerce form .form-row select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.3); outline: 0; }
.woocommerce form .form-row .required { color: var(--red); }

/* Tipo de comprador: pessoa física ou empresa */
.em-persontype .woocommerce-input-wrapper { display: flex; flex-wrap: wrap; gap: 10px; }
.em-persontype input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.em-persontype label.radio { margin: 0; padding: 10px 20px; border: 1.5px solid var(--slate); border-radius: 999px; cursor: pointer; font-weight: 700; color: var(--slate); transition: background 0.15s; }
.em-persontype input[type="radio"]:checked + label.radio { background: var(--yellow); border-color: var(--yellow); color: var(--slate-900); }
.em-persontype input[type="radio"]:focus-visible + label.radio { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Carrinho */
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { background: var(--slate-50); color: var(--slate); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); padding: 14px 16px; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; max-width: 480px; margin-left: auto; }
.woocommerce .cart_totals h2, .woocommerce-checkout h3 { font-size: 20px; color: var(--slate); }
.em-pix-total th, .em-pix-total td { color: var(--green); font-weight: 700; }
.em-pix-total small { display: block; font-weight: 500; color: var(--muted); }
.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; float: left; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 190px; margin: 0; }
.woocommerce a.checkout-button.button.alt, .woocommerce a.checkout-button, .woocommerce #place_order { display: block; width: 100%; text-align: center; background: var(--yellow); color: var(--slate-900); border-radius: var(--radius-sm); padding: 16px 20px; font-size: 16px; font-weight: 800; }
.woocommerce a.checkout-button.button.alt:hover, .woocommerce a.checkout-button:hover, .woocommerce #place_order:hover { background: var(--yellow-600); color: var(--slate-900); }

/* Finalizar compra: dados à esquerda, resumo à direita */
.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 0 28px; align-items: start; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
.woocommerce-checkout #order_review_heading { grid-column: 2; margin-top: 0; }
.woocommerce-checkout #order_review { grid-column: 2; background: var(--slate-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.woocommerce-checkout #order_review table.shop_table { border: 0; background: transparent; }
.woocommerce-checkout #payment { background: #fff; border-radius: var(--radius-sm); }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); padding: 14px; }
.woocommerce-checkout #payment div.payment_box { background: var(--slate-50); color: var(--text); border-radius: 8px; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment div.form-row { padding: 14px; }
#shipping_method { list-style: none; margin: 0; padding: 0; }
#shipping_method li { margin: 0 0 6px; }
.fee th, .fee td { color: var(--green); font-weight: 700; }

/* Tablet */
@media (max-width: 1100px) {
	.rail__track > li { flex-basis: calc((100% - 48px) / 4); }
	.vitrine { grid-template-columns: repeat(4, 1fr); }
	.vitrine > li:nth-child(n+13) { display: none; }
	.mega__grid { grid-template-columns: repeat(3, 1fr); }
	.page--shop ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	.woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
	.woocommerce-checkout #customer_details, .woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
	.woocommerce-cart .cart-collaterals .cart_totals { max-width: none; }
	.utility__inner { gap: 10px; }
	.utility__cep { min-width: 0; }
	.utility__cep span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.utility ul { flex: none; flex-wrap: nowrap; }
	.utility ul li:not(:last-child) { display: none; }
	.site-header__inner { grid-template-columns: 1fr auto; gap: 12px 16px; padding: 12px 0; }
	.site-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
	.logo img { height: 44px; }
	.header-action__text { display: none; }
	/* Logado: no celular o nome aparece embaixo da bolinha (o texto "Olá, … minha conta" não cabe). */
	.logged-in .header-actions .header-action:first-child { flex-direction: column; gap: 2px; padding: 4px 6px; }
	.logged-in .header-actions .header-action:first-child .header-action__text { display: block; font-size: 11px; line-height: 1.1; text-align: center; }
	.logged-in .header-actions .header-action:first-child .hello,
	.logged-in .header-actions .header-action:first-child small { display: none; }
	.logged-in .header-actions .header-action:first-child .name { display: block; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.header-action { padding: 8px; }
	.nav-link, .nav-item { display: none; }
	.mega__grid { grid-template-columns: repeat(2, 1fr); }
	.benefits__list { grid-template-columns: repeat(2, 1fr); }
	.trust { grid-template-columns: 1fr; }
	.footer__top { grid-template-columns: 1fr 1fr; }
	.rail__track > li { flex-basis: calc((100% - 32px) / 3); }
	.vitrine { grid-template-columns: repeat(3, 1fr); }
	.vitrine > li:nth-child(n+10) { display: none; }
	.rail__btn { display: none; }
	.hero__arrow { display: none; }
	.hero__content { padding-inline: 0; }
	.hero__slide { min-height: 218px; }
	.hero__slide::after { opacity: 0.35; right: -6%; width: 260px; }
}

/* Celular */
@media (max-width: 600px) {
	.utility ul li:not(:last-child) { display: none; }
	.topbar { font-size: 12px; }
	.rail__track > li { flex-basis: 68%; }
	.vitrine { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.vitrine > li:nth-child(n+9) { display: none; }
	.mega__grid { grid-template-columns: 1fr; padding: 18px 0; }
	.footer__top { grid-template-columns: 1fr; }
	.page--shop ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.hero__content { padding-block: 20px; }
	.hero__content p { font-size: 14px; }
	.hero__eyebrow { font-size: 11px; padding: 4px 12px; }
	.hero__slide::after { opacity: 0.18; }
	.benefits__list { gap: 4px; }
	.benefits__list li { gap: 10px; padding: 12px 4px; font-size: 12.5px; }
	.benefits__icon { width: 38px; height: 38px; }
	.benefits__icon .icon { width: 20px; height: 20px; }
}

/* Produto "sob consulta" (sem carrinho; agenda pelo WhatsApp) */
.em-consulta { background: var(--yellow-100); border-left: 5px solid var(--yellow); border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; }
.em-consulta__titulo { margin: 0 0 6px; font-weight: 800; font-size: 16px; color: var(--slate-900); }
.em-consulta p { margin: 0 0 12px; }
.em-consulta .btn { margin: 0; }

/* Variações (cor, tamanho): botões no lugar da lista suspensa (assets/js/produto.js). */
.variations .em-chips-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.em-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.em-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.em-chip:hover:not([disabled]) { border-color: var(--slate-700); }
.em-chip.is-on { border-color: var(--slate); box-shadow: 0 0 0 2px var(--yellow); }
.em-chip[disabled] { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.em-chip:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.em-chip__dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .28); flex: none; }
.em-chip__dot--fosco { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35); }
.variations th.label { padding-right: 14px; vertical-align: middle; font-weight: 700; }
.variations td.value { padding: 6px 0; }
.single_variation .woocommerce-variation-description { margin: 8px 0 12px; color: var(--slate-700); font-size: 14px; }
.em-produto-sob-consulta .single_variation .woocommerce-variation-price { display: none; }
.em-sob-consulta { font-weight: 800; color: var(--slate); }

/* Monitores grandes: o mesmo desenho, só maior, para o miolo não ficar pequeno no meio da tela. */
/* Telas largas: home, vitrines e listas de produtos crescem até perto das bordas (6 produtos por linha na vitrine da home, 5 por linha na loja).
   Páginas de texto, carrinho, finalizar compra, conta e produto isolado continuam com 1240 px, para ler e preencher com conforto. */
@media (min-width: 1500px) {
	:root { --container: 1640px; }
	.container { width: min(100% - 64px, var(--container)); }
	.rail__track > li { flex-basis: calc((100% - 80px) / 6); }
	.vitrine { grid-template-columns: repeat(6, 1fr); }
	.page--shop ul.products { grid-template-columns: repeat(5, 1fr); }
	main.page:not(.page--shop), body.single-product main.page--shop { max-width: 1240px; }
}

@media (min-width: 1680px) { html { zoom: 1.1; } }
@media (min-width: 1880px) { html { zoom: 1.2; } }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
