/* GuiaMart: vitrine (homepage, categorias e busca). */

body.gm-pagina--home,
body.gm-pagina--catalogo {
	margin: 0;
	background: var(--gm-fundo);
	color: var(--gm-texto);
	font-family: var(--gm-fonte-texto);
	font-size: 16.5px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.gm-loja { overflow-x: clip; }
.gm-loja img { max-width: 100%; height: auto; }
:is(.gm-loja, .gm-topo, .gm-rodape) a:not(.gm-btn) { color: inherit; text-decoration: none; }
:is(.gm-loja, .gm-topo, .gm-rodape) a.gm-chip { color: var(--gm-secundaria); }
:is(.gm-loja, .gm-topo, .gm-rodape) a.gm-chip.is-ativo { color: #fff; }
:is(.gm-loja, .gm-topo, .gm-rodape) a.gm-card__btn { color: var(--gm-primaria); }
:is(.gm-loja, .gm-topo, .gm-rodape) .gm-card--feature a.gm-card__btn { color: #fff; }
.gm-loja .gm-sobre__texto a, .gm-loja .gm-secao-loja__desc a { color: var(--gm-primaria); text-decoration: underline; }
.gm-loja :is(h1, h2, h3) { font-family: var(--gm-fonte-titulo); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; color: var(--gm-secundaria); text-wrap: balance; }
.gm-container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); box-sizing: border-box; }
.gm-sobretitulo { margin: 0 0 10px; color: var(--gm-primaria); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }

/* Cabeçalho --------------------------------------------------------- */
.gm-topo {
	position: sticky;
	top: 0;
	z-index: 60;
	background: color-mix(in srgb, var(--gm-fundo) 88%, transparent);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-bar .gm-topo { top: 32px; }
@media (max-width: 782px) { .admin-bar .gm-topo { top: 46px; } }
@media (max-width: 600px) { .admin-bar .gm-topo { top: 0; } }
.gm-topo.is-rolado { border-color: color-mix(in srgb, var(--gm-secundaria) 10%, transparent); box-shadow: 0 8px 30px -20px rgb(0 0 0 / 35%); }
.gm-topo__barra { display: flex; align-items: center; gap: 28px; min-height: 72px; }

.gm-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gm-secundaria); text-decoration: none; margin-right: auto; }
.gm-logo__img { max-height: 46px; width: auto; }
.gm-logo__marca { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--gm-primaria); color: #fff; box-shadow: 0 8px 18px -8px var(--gm-primaria); }
.gm-logo__marca .gm-icone { width: 20px; height: 20px; }
.gm-logo__texto { font-family: var(--gm-fonte-titulo); font-size: 1.55rem; line-height: 1; letter-spacing: -0.01em; }
.gm-logo__texto span { color: var(--gm-primaria); }

.gm-topo__nav { display: flex; align-items: center; gap: 28px; }
.gm-topo__nav > ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.gm-topo__nav a, .gm-topo__nav summary { color: var(--gm-secundaria); font-size: 0.95rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.gm-topo__nav a:hover, .gm-topo__nav summary:hover { color: var(--gm-primaria); }
.gm-topo__sub { position: relative; }
.gm-topo__sub summary { list-style: none; }
.gm-topo__sub summary::-webkit-details-marker { display: none; }
.gm-topo__sub summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.gm-topo__sub ul { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 220px; margin: 0; padding: 10px; list-style: none; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / 35%); border: 1px solid rgb(0 0 0 / 6%); }
.gm-topo__sub ul a { display: block; padding: 8px 12px; border-radius: 8px; }
.gm-topo__sub ul a:hover { background: color-mix(in srgb, var(--gm-primaria) 10%, #fff); }

.gm-topo__busca { display: flex; align-items: center; height: 42px; padding: 0 4px 0 14px; border-radius: 999px; background: #fff; border: 1px solid color-mix(in srgb, var(--gm-secundaria) 14%, transparent); }
.gm-topo__busca input { width: 170px; border: 0; background: none; font: inherit; font-size: 0.92rem; color: var(--gm-texto); outline: none; }
.gm-topo__busca button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--gm-primaria); color: #fff; cursor: pointer; }
.gm-topo__busca button .gm-icone { width: 16px; height: 16px; }
.gm-topo__busca:focus-within { border-color: var(--gm-primaria); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gm-primaria) 20%, transparent); }

.gm-topo__menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.gm-hamburguer, .gm-hamburguer::before, .gm-hamburguer::after { display: block; width: 22px; height: 2px; margin: 0 auto; border-radius: 2px; background: var(--gm-secundaria); transition: transform 0.2s ease; }
.gm-hamburguer { position: relative; }
.gm-hamburguer::before, .gm-hamburguer::after { content: ""; position: absolute; left: 0; }
.gm-hamburguer::before { top: -7px; }
.gm-hamburguer::after { top: 7px; }
.gm-menu-aberto .gm-hamburguer { background: transparent; }
.gm-menu-aberto .gm-hamburguer::before { transform: translateY(7px) rotate(45deg); }
.gm-menu-aberto .gm-hamburguer::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.gm-topo__menu-btn { display: block; }
	.gm-topo__nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px clamp(16px, 4vw, 32px) 24px; background: var(--gm-fundo); border-bottom: 1px solid color-mix(in srgb, var(--gm-secundaria) 10%, transparent); box-shadow: 0 20px 40px -24px rgb(0 0 0 / 35%); }
	.gm-menu-aberto .gm-topo__nav { display: flex; }
	.gm-topo__nav > ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.gm-topo__nav > ul > li > a, .gm-topo__nav summary { display: block; padding: 10px 4px; font-size: 1.05rem; }
	.gm-topo__sub ul { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; }
	.gm-topo__busca input { width: 100%; }
}

/* Abertura ---------------------------------------------------------- */
.gm-hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.gm-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(42% 60% at 85% 35%, color-mix(in srgb, var(--gm-primaria) 16%, transparent), transparent 70%),
		radial-gradient(35% 50% at 10% 90%, color-mix(in srgb, var(--gm-destaque) 18%, transparent), transparent 70%);
}
.gm-hero__grade { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.gm-hero h1 { margin: 0; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.02em; }
.gm-hero__sub { max-width: 560px; margin: 22px 0 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: color-mix(in srgb, var(--gm-texto) 82%, #fff); }
.gm-hero__busca { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 30px; padding: 7px 7px 7px 20px; border-radius: 999px; background: #fff; box-shadow: 0 18px 40px -22px rgb(0 0 0 / 40%); border: 1px solid color-mix(in srgb, var(--gm-secundaria) 10%, transparent); }
.gm-hero__busca > .gm-icone { color: color-mix(in srgb, var(--gm-secundaria) 60%, #fff); }
.gm-hero__busca input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1rem; color: var(--gm-texto); outline: none; }
.gm-hero__busca .gm-btn { min-height: 46px; padding: 0.6em 1.5em; }
.gm-hero__busca:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--gm-primaria) 22%, transparent), 0 18px 40px -22px rgb(0 0 0 / 40%); }
.gm-hero__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.gm-hero__cats a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--gm-secundaria) 7%, transparent); color: var(--gm-secundaria); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.gm-hero__cats a:hover { background: var(--gm-secundaria); color: #fff; }

.gm-hero__visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.gm-hero__img { width: 100%; border-radius: 28px; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 45%); }
.gm-hero__capas { position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1; }
.gm-hero__capa { position: absolute; display: block; width: 58%; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -24px rgb(0 0 0 / 50%); transition: transform 0.4s ease; }
.gm-hero__capa img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gm-hero__capas--1 .gm-hero__capa { left: 21%; top: 4%; width: 62%; transform: rotate(-3deg); }
.gm-hero__capas--2 .gm-hero__capa:nth-child(1) { left: 6%; top: 10%; transform: rotate(-7deg); }
.gm-hero__capas--2 .gm-hero__capa:nth-child(2) { right: 4%; top: 2%; transform: rotate(5deg); z-index: 2; }
.gm-hero__capas--3 .gm-hero__capa:nth-child(1) { left: 0; top: 14%; width: 50%; transform: rotate(-9deg); }
.gm-hero__capas--3 .gm-hero__capa:nth-child(2) { left: 24%; top: 0; z-index: 3; width: 54%; }
.gm-hero__capas--3 .gm-hero__capa:nth-child(3) { right: 0; top: 16%; width: 50%; transform: rotate(9deg); z-index: 2; }
.gm-hero__capas:hover .gm-hero__capa { transform: rotate(0) translateY(-4px); }
.gm-hero__deco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gm-hero__deco span { display: grid; place-items: center; width: 110px; height: 140px; border-radius: 18px; background: #fff; color: var(--gm-primaria); box-shadow: 0 30px 50px -28px rgb(0 0 0 / 40%); }
.gm-hero__deco span:nth-child(2) { transform: translateY(-24px); color: var(--gm-secundaria); }
.gm-hero__deco .gm-icone { width: 40px; height: 40px; }

@media (max-width: 860px) {
	.gm-hero__grade { grid-template-columns: minmax(0, 1fr); }
	.gm-hero__visual { min-height: 0; order: 0; }
	.gm-hero__capas { width: min(70%, 300px); }
	.gm-hero__deco { display: none; }
}

/* Faixa de vantagens ------------------------------------------------ */
.gm-selos { border-block: 1px solid color-mix(in srgb, var(--gm-secundaria) 9%, transparent); background: #fff; }
.gm-selos__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px 32px; margin: 0 auto; padding-block: 24px; list-style: none; }
.gm-selos__lista li { display: flex; align-items: center; gap: 14px; font-size: 0.92rem; color: color-mix(in srgb, var(--gm-texto) 80%, #fff); }
.gm-selos__lista strong { display: block; color: var(--gm-secundaria); font-size: 0.98rem; }
.gm-selos__icone { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--gm-primaria) 11%, #fff); color: var(--gm-primaria); }

/* Seções ------------------------------------------------------------ */
.gm-secao-loja { padding-block: clamp(48px, 7vw, 88px); }
.gm-secao-loja + .gm-secao-loja { padding-top: 0; }
.gm-secao-loja__topo { margin-bottom: clamp(24px, 3vw, 36px); }
.gm-secao-loja__topo h1, .gm-secao-loja__topo h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 2.9rem); }
.gm-secao-loja__desc { max-width: 680px; margin-top: 12px; color: color-mix(in srgb, var(--gm-texto) 80%, #fff); }
.gm-secao-loja__topo .gm-sobretitulo + h2 { margin-top: 0; }
.gm-loja--catalogo .gm-secao-loja__topo .gm-sobretitulo { margin: 12px 0 0; }
.gm-trilha { display: flex; gap: 8px; margin-bottom: 16px; font-size: 0.9rem; color: color-mix(in srgb, var(--gm-texto) 65%, #fff); }
.gm-trilha a { color: inherit; }

/* Filtros ----------------------------------------------------------- */
.gm-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 28px; }
.gm-filtros__busca { position: relative; display: flex; align-items: center; flex: 1 1 260px; max-width: 360px; }
.gm-filtros__busca .gm-icone { position: absolute; left: 14px; width: 18px; height: 18px; color: color-mix(in srgb, var(--gm-secundaria) 55%, #fff); pointer-events: none; }
.gm-filtros__busca input { width: 100%; height: 46px; padding: 0 16px 0 42px; border: 1px solid color-mix(in srgb, var(--gm-secundaria) 15%, transparent); border-radius: 999px; background: #fff; font: inherit; font-size: 0.95rem; color: var(--gm-texto); }
.gm-filtros__busca input:focus { outline: none; border-color: var(--gm-primaria); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gm-primaria) 20%, transparent); }
.gm-filtros__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gm-secundaria) 15%, transparent); background: #fff; color: var(--gm-secundaria); font-size: 0.92rem; font-weight: 600; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.gm-chip:hover { border-color: var(--gm-secundaria); }
.gm-chip.is-ativo { background: var(--gm-secundaria); border-color: var(--gm-secundaria); color: #fff; }
.gm-chip__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: 0.75rem; }
.gm-filtros__tipo { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 0.9rem; }
.gm-filtros__tipo[hidden] { display: none; }
.gm-filtros__tipo select { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--gm-secundaria) 15%, transparent); background: #fff; font: inherit; font-size: 0.92rem; }

.gm-vazio { padding: 28px; border-radius: 16px; background: #fff; text-align: center; color: color-mix(in srgb, var(--gm-texto) 75%, #fff); }
.gm-vazio[hidden] { display: none; }
.gm-vazio--inicial { padding: clamp(32px, 6vw, 64px); border: 2px dashed color-mix(in srgb, var(--gm-secundaria) 16%, transparent); background: transparent; }

/* Categorias -------------------------------------------------------- */
.gm-categorias__lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gm-categorias__lista a { position: relative; display: block; padding: 22px 52px 22px 22px; border-radius: 16px; background: #fff; color: var(--gm-secundaria); text-decoration: none; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); border: 1px solid color-mix(in srgb, var(--gm-secundaria) 8%, transparent); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.gm-categorias__lista a:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgb(0 0 0 / 35%); }
.gm-categorias__lista strong { display: block; font-family: var(--gm-fonte-titulo); font-size: 1.3rem; font-weight: 400; }
.gm-categorias__lista span { font-size: 0.88rem; color: color-mix(in srgb, var(--gm-texto) 65%, #fff); }
.gm-categorias__lista .gm-icone { position: absolute; right: 20px; top: 50%; margin-top: -10px; color: var(--gm-primaria); }

/* Como funciona ----------------------------------------------------- */
.gm-passos__lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: gm-passo; }
.gm-passos__lista li { position: relative; padding: 28px 26px 26px; border-radius: 18px; background: var(--gm-secundaria); color: rgb(255 255 255 / 82%); counter-increment: gm-passo; overflow: hidden; }
.gm-passos__lista li::before { content: counter(gm-passo); display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 50%; background: var(--gm-primaria); color: #fff; font-weight: 800; }
.gm-passos__lista h3 { margin: 0 0 6px; color: #fff; font-size: 1.35rem; }
.gm-passos__lista p { margin: 0; font-size: 0.95rem; }

/* Sobre ------------------------------------------------------------- */
.gm-sobre__grade { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 64px); align-items: start; padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid color-mix(in srgb, var(--gm-secundaria) 10%, transparent); }
.gm-sobre h2 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.gm-sobre__texto { font-size: 1.05rem; color: color-mix(in srgb, var(--gm-texto) 85%, #fff); }
.gm-sobre__texto > :first-child { margin-top: 0; }
@media (max-width: 760px) { .gm-sobre__grade { grid-template-columns: minmax(0, 1fr); } }

/* Rodapé ------------------------------------------------------------ */
.gm-rodape { margin-top: clamp(32px, 5vw, 64px); background: var(--gm-secundaria); color: rgb(255 255 255 / 72%); font-family: var(--gm-fonte-texto); font-size: 0.93rem; }
.gm-rodape__grade { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 36px; }
.gm-rodape .gm-logo { color: #fff; margin-right: 0; }
.gm-rodape__marca p { max-width: 320px; margin: 16px 0 0; }
.gm-rodape h2 { margin: 0 0 14px; color: #fff; font-family: var(--gm-fonte-texto); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.gm-rodape ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gm-rodape a { color: rgb(255 255 255 / 86%); text-decoration: none; }
.gm-rodape a:hover { color: #fff; text-decoration: underline; }
.gm-rodape__base { padding-block: 20px 28px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 0.85rem; }
.gm-rodape__base p { margin: 0; }
@media (max-width: 860px) { .gm-rodape__grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gm-rodape__marca { grid-column: 1 / -1; } }
@media (max-width: 480px) { .gm-rodape__grade { grid-template-columns: minmax(0, 1fr); } }


.gm-sobre__conteudo { margin-top: 1.5rem; }
