/* =========================================================
   VM Brinquedos — Identidade Visual
   Paleta: Azul Marinho profundo + Amarelo Dourado + Creme
   Tipografia: Lora (títulos hero, serifada) + Nunito (geral)
   ========================================================= */

:root {
	--vm-navy: #0F2749;
	--vm-navy-deep: #0A1D38;
	--vm-navy-soft: #16335E;
	--vm-amarelo: #F8BD17;
	--vm-amarelo-hover: #FFCC3F;
	--vm-creme: #FAF2E2;
	--vm-card: #FFFCF3;
	--vm-card-borda: #EFE1C3;
	--vm-texto: #1E3A63;
	--vm-texto-suave: #6E7B90;
	--vm-branco: #FFFFFF;
	--vm-radius: 18px;
	--vm-shadow: 0 2px 12px rgba(15, 39, 73, 0.06);
	--vm-shadow-hover: 0 10px 26px rgba(15, 39, 73, 0.13);
	--vm-font: 'Nunito', sans-serif;
	--vm-font-serif: 'Lora', Georgia, serif;
	--vm-transition: 0.25s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */

body {
	font-family: var(--vm-font);
	background-color: var(--vm-creme);
	color: var(--vm-texto);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--vm-font);
	color: var(--vm-navy);
}

a { color: var(--vm-navy); }
a:hover { color: var(--vm-amarelo); }

/* ── Buttons ──────────────────────────────────────────────── */

.vm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	font-family: var(--vm-font);
	font-weight: 800;
	text-decoration: none;
	border: none;
	border-radius: 999px;
	padding: 0.85rem 1.9rem;
	cursor: pointer;
	transition: transform var(--vm-transition), box-shadow var(--vm-transition), background var(--vm-transition);
}

.vm-btn svg {
	width: 18px;
	height: 18px;
}

.vm-btn--primary {
	background-color: var(--vm-amarelo);
	color: var(--vm-navy);
	font-size: 1rem;
	box-shadow: 0 6px 18px rgba(248, 189, 23, 0.35);
}

.vm-btn--primary:hover {
	background-color: var(--vm-amarelo-hover);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(248, 189, 23, 0.45);
	color: var(--vm-navy);
}

/* ── Section head (título à esquerda + "Ver todas" à direita) ── */

.vm-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.4rem;
}

.vm-section-head h2 {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--vm-navy);
	margin: 0;
	letter-spacing: -0.01em;
}

.vm-link-all {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--vm-navy);
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--vm-transition);
}

.vm-link-all svg {
	width: 17px;
	height: 17px;
}

.vm-link-all:hover { color: var(--vm-amarelo); }

/* =========================================================
   Header
   ========================================================= */

header.vm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--vm-navy);
	transition: box-shadow var(--vm-transition);
}

header.vm-header.is-scrolled {
	box-shadow: 0 8px 24px rgba(10, 29, 56, 0.35);
}

#masthead.vm-header {
	margin: 0;
	padding: 0;
}

body.admin-bar header.vm-header { top: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar header.vm-header { top: 46px; }
}

.vm-header__inner {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 2.2rem;
	padding-top: 1.1rem;
	padding-bottom: 1.2rem;
}

/* O clearfix .col-full::before/::after do Storefront viraria item do grid
   e empurraria o logo para a coluna errada. */
.vm-header__inner::before,
.vm-header__inner::after {
	content: none !important;
}

.vm-header__logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.05rem;
	text-decoration: none;
}

.vm-header__logo-img {
	display: block;
	width: 76px;
	height: auto;
}

.vm-header__wordmark {
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--vm-amarelo);
	letter-spacing: 0.02em;
}

.vm-header__main {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
}

/* Busca grande arredondada */

.vm-search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #FCF7EB;
	border-radius: 999px;
	padding: 0.32rem 0.34rem 0.32rem 1.5rem;
}

.vm-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	outline: none;
	padding: 0.55rem 0;
	font-family: var(--vm-font);
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--vm-navy);
}

.vm-search input[type="search"]::placeholder {
	color: #8B96A8;
	opacity: 1;
}

.vm-search__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: var(--vm-navy);
	color: var(--vm-amarelo);
	cursor: pointer;
	transition: background var(--vm-transition);
	padding: 0;
}

.vm-search__btn:hover { background: var(--vm-navy-soft); }

.vm-search__btn svg {
	width: 19px;
	height: 19px;
}

/* Menu em pílula com ícones */

.vm-header__nav {
	background: rgba(9, 26, 50, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 999px;
	padding: 0.3rem 0.5rem;
}

.vm-header__menu {
	display: flex;
	align-items: center;
	justify-content: space-between;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vm-header__menu li a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.5rem 1.05rem;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--vm-branco);
	text-decoration: none;
	white-space: nowrap;
	transition: background var(--vm-transition);
}

.vm-header__menu li a svg {
	width: 18px;
	height: 18px;
	color: var(--vm-amarelo);
	flex-shrink: 0;
}

.vm-header__menu li a:hover {
	background: rgba(255, 255, 255, 0.09);
	color: var(--vm-branco);
}

/* Ícone genérico / hamburger */

.vm-header__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--vm-branco);
	cursor: pointer;
	text-decoration: none;
	transition: background var(--vm-transition);
}

.vm-header__icon:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: var(--vm-branco);
}

.vm-header__icon svg {
	width: 20px;
	height: 20px;
}

.vm-menu-toggle { display: none; }

.vm-hamburger {
	position: relative;
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.vm-hamburger::before,
.vm-hamburger::after {
	content: '';
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

.vm-hamburger::before { top: -6px; }
.vm-hamburger::after  { top: 6px; }

/* Mobile menu */

.vm-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	visibility: hidden;
	pointer-events: none;
}

.vm-mobile-menu.is-open {
	visibility: visible;
	pointer-events: auto;
}

.vm-mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 29, 56, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.vm-mobile-menu.is-open .vm-mobile-menu__backdrop { opacity: 1; }

.vm-mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(320px, 85vw);
	background: var(--vm-navy);
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

.vm-mobile-menu.is-open .vm-mobile-menu__panel { transform: translateX(0); }

.vm-mobile-menu__close { align-self: flex-end; }

.vm-mobile-menu__list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vm-mobile-menu__list li a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.8rem 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--vm-branco);
	text-decoration: none;
	border-radius: 12px;
	transition: background var(--vm-transition);
}

.vm-mobile-menu__list li a svg {
	width: 20px;
	height: 20px;
	color: var(--vm-amarelo);
	flex-shrink: 0;
}

.vm-mobile-menu__list li a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: var(--vm-branco);
}

body.vm-menu-open { overflow: hidden; }

/* =========================================================
   Home full-bleed
   O front-page.php é renderizado dentro de #content .col-full
   (container do Storefront). Na home, liberamos a largura total:
   cada seção controla a própria largura com seu wrapper .col-full.
   ========================================================= */

.home .site-content > .col-full {
	max-width: none;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}

/* =========================================================
   Hero
   ========================================================= */

.vm-hero {
	position: relative;
	background: var(--vm-navy);
	overflow: hidden;
}

.vm-hero__media {
	position: absolute;
	inset: 0;
}

.vm-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	display: block;
}

/* Cobre o lado esquerdo da foto (que tem texto embutido)
   e faz a fusão com o fundo navy, como no layout. */
.vm-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, var(--vm-navy) 0%, var(--vm-navy) 38%, rgba(15, 39, 73, 0) 64%),
		linear-gradient(0deg, rgba(15, 39, 73, 0.55) 0%, rgba(15, 39, 73, 0) 22%);
}

.vm-hero__content {
	position: relative;
	z-index: 1;
	padding-top: 4.5rem;
	padding-bottom: 3.2rem;
}

.vm-hero__title {
	font-family: var(--vm-font-serif);
	font-weight: 500;
	font-size: clamp(2.1rem, 4.3vw, 3.4rem);
	line-height: 1.14;
	letter-spacing: -0.01em;
	color: var(--vm-branco);
	margin: 0 0 1.15rem;
	max-width: 620px;
}

.vm-hero__title span {
	display: block;
	color: var(--vm-amarelo);
}

.vm-hero__text {
	font-size: 1.02rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
	max-width: 420px;
	margin: 0 0 1.9rem;
}

/* Barra de confiança na base do hero */

.vm-hero__trust {
	position: relative;
	z-index: 1;
	padding-bottom: 2.4rem;
}

.vm-trustbar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem 2rem;
	list-style: none;
	margin: 0;
	padding: 1.35rem 1.9rem;
	background: rgba(10, 29, 56, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 22px;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

.vm-trustbar li {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
}

.vm-trustbar li > svg {
	width: 30px;
	height: 30px;
	color: var(--vm-amarelo);
	flex-shrink: 0;
	margin-top: 2px;
}

.vm-trustbar b {
	display: block;
	font-size: 0.93rem;
	font-weight: 800;
	color: var(--vm-branco);
	margin-bottom: 0.18rem;
}

.vm-trustbar p {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.68);
}

/* =========================================================
   Escolhas por fase da infância
   ========================================================= */

.vm-fases {
	padding: 2.8rem 0 1.2rem;
}

.vm-fases__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.4rem;
}

.vm-fase-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	background: var(--vm-card);
	border: 1px solid var(--vm-card-borda);
	border-radius: var(--vm-radius);
	padding: 1rem 2.7rem 1rem 1rem;
	text-decoration: none;
	box-shadow: var(--vm-shadow);
	transition: transform var(--vm-transition), box-shadow var(--vm-transition);
}

.vm-fase-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--vm-shadow-hover);
}

.vm-fase-card__thumb {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 92px;
	height: 92px;
	border-radius: 14px;
	background: #F5EBD5;
	font-size: 2.5rem;
	overflow: hidden;
}

.vm-fase-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vm-fase-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.vm-fase-card__title {
	font-size: 1rem;
	font-weight: 800;
	color: var(--vm-navy);
}

.vm-fase-card__desc {
	font-size: 0.82rem;
	line-height: 1.45;
	color: var(--vm-texto-suave);
}

.vm-fase-card__arrow {
	position: absolute;
	right: 0.95rem;
	bottom: 0.95rem;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border: 1.5px solid var(--vm-navy);
	border-radius: 50%;
	color: var(--vm-navy);
	transition: background var(--vm-transition), color var(--vm-transition);
}

.vm-fase-card__arrow svg {
	width: 14px;
	height: 14px;
}

.vm-fase-card:hover .vm-fase-card__arrow {
	background: var(--vm-navy);
	color: var(--vm-amarelo);
}

/* =========================================================
   Os favoritos das famílias (vitrine WooCommerce)
   ========================================================= */

.vm-favoritos {
	padding: 1.6rem 0 3.4rem;
}

.vm-favoritos .products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.4rem;
	list-style: none;
	margin: 0 !important;
	padding: 0;
}

.vm-favoritos .products::before,
.vm-favoritos .products::after { display: none; }

.vm-favoritos .products li.product {
	position: relative;
	background: var(--vm-card);
	border: 1px solid var(--vm-card-borda);
	border-radius: var(--vm-radius);
	box-shadow: var(--vm-shadow);
	padding: 1.05rem;
	margin: 0 !important;
	float: none;
	width: auto !important;
	transition: transform var(--vm-transition), box-shadow var(--vm-transition);
}

.vm-favoritos .products li.product:hover {
	transform: translateY(-3px);
	box-shadow: var(--vm-shadow-hover);
}

/* Coração decorativo no canto (como no layout) */
.vm-favoritos .products li.product::after {
	content: "♡";
	position: absolute;
	top: 0.7rem;
	right: 0.95rem;
	font-size: 1.25rem;
	line-height: 1;
	color: var(--vm-navy);
	pointer-events: none;
}

/* Card horizontal: imagem à esquerda, textos à direita */
.vm-favoritos .products li.product a.woocommerce-LoopProduct-link {
	display: grid;
	grid-template-columns: 96px 1fr;
	column-gap: 0.95rem;
	align-items: start;
	text-decoration: none;
}

.vm-favoritos .products li.product a.woocommerce-LoopProduct-link img {
	grid-column: 1;
	grid-row: 1 / span 4;
	width: 100%;
	height: 96px;
	object-fit: contain;
	border-radius: 12px;
	background: var(--vm-branco);
	margin: 0;
}

.vm-favoritos .products li.product .woocommerce-loop-product__title {
	grid-column: 2;
	font-family: var(--vm-font);
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--vm-navy);
	padding: 0 1.2rem 0 0;
	margin: 0 0 0.35rem;
}

.vm-favoritos .products li.product .star-rating {
	grid-column: 2;
	margin: 0 0 0.45rem;
	color: var(--vm-amarelo);
}

.vm-favoritos .products li.product .price {
	grid-column: 2;
	font-family: var(--vm-font);
	font-size: 1rem;
	font-weight: 800;
	color: var(--vm-navy);
	padding: 0;
	margin: 0;
}

.vm-favoritos .products li.product .price del {
	color: var(--vm-texto-suave);
	font-weight: 600;
	font-size: 0.82rem;
}

.vm-favoritos .products li.product .price ins {
	text-decoration: none;
	color: var(--vm-navy);
}

/* No layout os cards não têm botão de compra */
.vm-favoritos .products li.product .button,
.vm-favoritos .products li.product .add_to_cart_button,
.vm-favoritos .products li.product .added_to_cart {
	display: none;
}

.vm-favoritos .products li.product .onsale {
	background: var(--vm-amarelo);
	color: var(--vm-navy);
	font-weight: 800;
	border-radius: 8px;
	padding: 0.2rem 0.6rem;
	font-size: 0.72rem;
	top: 0.7rem;
	left: 0.7rem;
	right: auto;
	line-height: 1.4;
	min-height: 0;
	min-width: 0;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer.vm-footer {
	background: var(--vm-navy);
	color: var(--vm-branco);
	padding: 0;
	margin: 0;
}

.vm-footer__inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1.5rem 2.6rem;
	padding-top: 1.7rem;
	padding-bottom: 1.7rem;
}

.vm-footer__brand {
	display: flex;
	align-items: center;
	gap: 0.95rem;
	max-width: 300px;
}

.vm-footer__brand img {
	width: 56px;
	height: auto;
	flex-shrink: 0;
}

.vm-footer__brand p {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
}

.vm-footer__feature {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 0.86rem;
	font-weight: 700;
	color: var(--vm-branco);
}

.vm-footer__feature svg {
	width: 26px;
	height: 26px;
	color: var(--vm-amarelo);
	flex-shrink: 0;
}

.vm-footer__social {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-left: auto;
}

.vm-footer__social b {
	font-size: 0.9rem;
	font-weight: 700;
	margin-right: 0.2rem;
}

.vm-footer__social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1.5px solid rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	color: var(--vm-branco);
	transition: background var(--vm-transition), border-color var(--vm-transition);
}

.vm-footer__social a:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: var(--vm-branco);
	color: var(--vm-branco);
}

.vm-footer__social a svg {
	width: 16px;
	height: 16px;
}

.vm-footer__pay {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.vm-footer__pay b {
	font-size: 0.82rem;
	font-weight: 700;
}

.vm-footer__pay-badges {
	display: flex;
	gap: 0.4rem;
}

.vm-footer__pay-badges svg {
	width: 46px;
	height: 30px;
	display: block;
}

/* =========================================================
   WooCommerce Global Overrides (botões, badges)
   ========================================================= */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	font-family: var(--vm-font);
	font-weight: 700;
	border-radius: 10px;
	background-color: var(--vm-navy);
	color: var(--vm-branco);
	border: none;
	transition: background var(--vm-transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background-color: var(--vm-amarelo);
	color: var(--vm-navy);
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background-color: var(--vm-amarelo);
	color: var(--vm-navy);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background-color: var(--vm-navy);
	color: var(--vm-branco);
}

.woocommerce .products li.product a img {
	border-radius: var(--vm-radius) var(--vm-radius) 0 0;
}

/* =========================================================
   Storefront Overrides
   ========================================================= */

.site-content { background: transparent; }

.storefront-full-width-content .site-main { width: 100%; }

/* Apenas o wrapper direto do Storefront — sem o ">", a regra pegaria
   também os .col-full internos das seções (hero, fases etc.). */
#content > .col-full { padding-top: 0; }

/* Container mais largo que o padrão do Storefront (1064px),
   seguindo as proporções do layout aprovado. */
.vm-header__inner.col-full,
.vm-hero__content.col-full,
.vm-hero__trust.col-full,
.vm-fases__inner.col-full,
.vm-favoritos__inner.col-full,
.vm-footer__inner.col-full {
	max-width: 1240px;
}

/* Esconde elementos padrão do Storefront (usamos os nossos) */
.site-header-cart,
.storefront-primary-navigation,
.site-branding,
.site-search,
.storefront-secondary-navigation {
	display: none !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
	.vm-header__menu li a {
		padding: 0.5rem 0.7rem;
		font-size: 0.88rem;
	}
}

@media (max-width: 960px) {
	.vm-header__inner {
		grid-template-columns: auto 1fr auto;
		column-gap: 1.2rem;
	}

	.vm-header__logo-img { width: 58px; }
	.vm-header__wordmark { font-size: 0.85rem; }

	.vm-header__nav { display: none; }
	.vm-menu-toggle { display: inline-flex; }

	.vm-trustbar {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.1rem 1.5rem;
		padding: 1.2rem 1.4rem;
	}

	.vm-fases__grid { grid-template-columns: repeat(2, 1fr); }

	.vm-favoritos .products { grid-template-columns: repeat(2, 1fr) !important; }

	.vm-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}

	.vm-footer__social { margin-left: 0; }
}

@media (max-width: 600px) {
	.vm-search {
		padding-left: 1.1rem;
	}

	.vm-search input[type="search"] { font-size: 0.9rem; }

	.vm-search__btn {
		width: 40px;
		height: 40px;
	}

	.vm-hero__content {
		padding-top: 2.8rem;
		padding-bottom: 2.2rem;
	}

	.vm-hero__title { max-width: 100%; }

	.vm-hero__text { max-width: 100%; }

	.vm-trustbar { grid-template-columns: 1fr; }

	.vm-fases__grid { grid-template-columns: 1fr; }

	.vm-favoritos .products {
		grid-template-columns: 1fr !important;
		gap: 1rem;
	}

	.vm-section-head h2 { font-size: 1.2rem; }

	.vm-link-all { font-size: 0.88rem; }

	.vm-btn--primary {
		font-size: 0.92rem;
		padding: 0.7rem 1.5rem;
	}
}
