/* ==========================================================================
   Gráfica Penha — Home Shop (Cenário A) · /loja-preview/
   ========================================================================== */

.gphs-page {
	/* Azul da casa, o mesmo do .gp-cat-header logo abaixo. Era verde #16a34a;
	   trocado em 2026-09-17 pelo mesmo motivo do product-page.css. */
	--gphs-green: #104f77;
	--gphs-green-dark: #0d3e5d;
	--gphs-ink: #0f172a;
	--gphs-muted: #64748b;
	--gphs-line: #e2e8f0;
	--gphs-blue: #144e82;
	--gphs-card: #ffffff;
	--gphs-bg: #f6f7f9;
	--gphs-radius: 12px;

	font-family: var(--wp--preset--font-family--manrope, 'Manrope', 'Segoe UI', sans-serif);
	color: var(--gphs-ink);
	background: var(--gphs-bg);
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px 56px;
	box-sizing: border-box;
}

.gphs-page *,
.gphs-page *::before,
.gphs-page *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------ Carrossel */
.gphs-banner {
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 24px;
	aspect-ratio: 1200 / 370;
	overflow: hidden;
	border-radius: 8px;
	background: transparent;
}

.gphs-banner-track {
	display: flex;
	height: 100%;
	transition: transform 0.6s ease;
	will-change: transform;
}

.gphs-slide {
	flex: 0 0 100%;
	min-width: 100%;
	height: 100%;
}

.gphs-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: transparent;
	display: block;
	border-radius: 8px;
}

/* Setas discretas */
.gphs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.35);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
	z-index: 2;
}

.gphs-banner:hover .gphs-arrow {
	opacity: 1;
}

.gphs-arrow:hover {
	background: rgba(15, 23, 42, 0.6);
}

.gphs-arrow--prev { left: 12px; }
.gphs-arrow--next { right: 12px; }

/* Dots na base */
.gphs-dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}

.gphs-dot {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.gphs-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* ---------------------------------------------------- Layout 2 colunas */
.gphs-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 24px;
	align-items: start;
}

/* Menu Lateral de Categorias */
.gp-sidebar-categorias {
  width: 260px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  align-self: flex-start;
}

.gp-cat-header {
  background: #104f77;
  padding: 14px 20px;
}

.gp-cat-header h3 {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.gp-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gp-cat-list li {
  border-bottom: 1px solid #f1f5f9;
}

.gp-cat-list li:last-child {
  border-bottom: none;
}

.gp-cat-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.gp-cat-icon {
  width: 20px;
  height: 20px;
  color: #64748b;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.gp-cat-list a:hover {
  background: #f8fafc;
  color: #104f77;
}

.gp-cat-list a:hover .gp-cat-icon {
  color: #104f77;
}

/* ------------------------------------------------- Item promovido na sidebar
   Selo opcional à direita do rótulo (hoje só a campanha "Eleições 2026").
   Mora AQUI, e não no category-archive.css, porque este é o arquivo que carrega
   nas TRÊS telas que desenham a sidebar: a home, o arquivo de categoria e a
   busca. No category-archive.css o selo apareceria sem estilo fora do arquivo.

   O `margin-left: auto` é o que empurra o selo para a borda direita: o <a> é
   flex em LINHA, então sem ele o selo ficaria colado no rótulo. O
   `flex-shrink: 0` impede que o selo encolha quando o rótulo é longo — quem
   encolhe primeiro é o rótulo. O ícone já tem flex-shrink: 0 no .gp-cat-icon e
   o <a> tem align-items: center, então ele fica com os 20px e centrado. */
.gp-cat-badge {
  margin-left: auto;
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e8f1f8;
  color: #104f77;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* O item promovido sai no azul da casa já em REPOUSO, para o olho achar a
   categoria antes de passar o mouse. NÃO recebe fundo, de propósito: fundo
   azul-claro com barra à esquerda é a assinatura do estado ATIVO
   (`.gp-cat-list a.is-active`, no category-archive.css) — repetir o fundo aqui
   faria o item parecer a categoria selecionada. O hover continua dando o
   `background: #f8fafc` da regra acima, que esta não substitui. */
.gp-cat-list a.gp-cat-destaque,
.gp-cat-list a.gp-cat-destaque .gp-cat-icon {
  color: #104f77;
}

/* ------------------------------------------------------ Vitrine produtos */
.gphs-products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.gphs-card {
	position: relative;
	background: var(--gphs-card);
	border: 1px solid var(--gphs-line);
	border-radius: var(--gphs-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.gphs-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.gphs-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--gphs-green);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.4px;
	padding: 3px 8px;
	border-radius: 4px;
	z-index: 2;
}

.gphs-card-media {
	display: block;
	background: #f1f5f9;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.gphs-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gphs-card-media--ph {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cbd5e1;
}

.gphs-card-media--ph svg {
	width: 56px;
	height: 56px;
}

.gphs-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
	flex: 1;
}

.gphs-card-name {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.35;
	margin: 0;
	color: var(--gphs-ink);
}

.gphs-card-name a {
	color: inherit;
	text-decoration: none;
}

.gphs-card-name a:hover {
	color: var(--gphs-blue);
}

.gphs-card-price {
	margin-top: auto;
	font-size: 13px;
	color: var(--gphs-muted);
}

.gphs-card-price strong {
	color: var(--gphs-green-dark);
	font-weight: 800;
	font-size: 15px;
}

.gphs-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	text-align: center;
	background: var(--gphs-green);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	padding: 11px 14px;
	border-radius: 8px;
	transition: background 0.15s ease;
}

.gphs-card-btn:hover {
	background: var(--gphs-green-dark);
}

/* O card deixou de mostrar preço (17/09/2026), então o botão passou a ser o
   ÚLTIMO elemento do corpo — e é ele que precisa do `margin-top: auto` para
   continuar colado no rodapé, senão os botões desalinham entre cards de nomes
   com alturas diferentes. O seletor irmão-adjacente só casa quando o bloco
   `.gphs-card-price` NÃO existe; os cards que ainda mostram "Sob consulta"
   seguem ancorados pelo preço, com o layout de antes. */
.gphs-card-name + .gphs-card-btn {
	margin-top: auto;
}

.gphs-card-soon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	width: 100%;
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	background: #f1f5f9;
	border: 1px dashed #cbd5e1;
	padding: 10px 14px;
	border-radius: 8px;
	letter-spacing: 0.02em;
}

/* ------------------------------------------------------------ Responsivo */
@media (max-width: 1024px) {
	.gphs-products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	.gphs-layout {
		grid-template-columns: 1fr;
	}

	.gphs-products {
		grid-template-columns: 1fr;
	}

	.gphs-banner {
		aspect-ratio: 1200 / 400;
	}
}
