/* LOVEGUARD — brand layer on top of theme.json */

:root {
	--lg-laranja: var(--wp--preset--color--laranja);
	--lg-amarelo: var(--wp--preset--color--amarelo);
	--lg-preto: var(--wp--preset--color--preto);
	--lg-creme: var(--wp--preset--color--creme);
	--lg-display: var(--wp--preset--font-family--display);
}

body {
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.screen-reader-text,
.lg-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Shared bits ---------- */

.lg-chip {
	display: inline-block;
	padding: 0.4rem 0.85rem;
	background: var(--lg-preto);
	color: #fff;
	font-weight: 800;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
}
.lg-chip--laranja { background: var(--lg-laranja); }

.lg-display,
.lg-display.wp-block-heading {
	font-family: var(--lg-display);
	font-weight: 400;
	text-transform: uppercase;
	line-height: 0.95;
	letter-spacing: 0.01em;
}

.lg-sticker {
	position: absolute;
	pointer-events: none;
	user-select: none;
	height: auto;
	z-index: 1;
}

.lg-relative { position: relative; }

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	padding: calc(0.95rem - 2px) calc(1.75rem - 2px);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--lg-preto);
	border-color: var(--lg-preto);
	color: var(--lg-amarelo);
}

.lg-btn-dark .wp-block-button__link {
	background: var(--lg-preto);
	color: var(--lg-amarelo);
}
.lg-btn-dark .wp-block-button__link:hover {
	background: #fff;
	color: var(--lg-preto);
}

/* ---------- Header ---------- */

.lg-announce {
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	padding-block: 0.55rem;
}
.lg-announce p { margin: 0; }

.lg-header {
	padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
	gap: 1.5rem;
}
.lg-logo { margin: 0; line-height: 0; flex-shrink: 0; }
.lg-logo img { width: 74px; height: auto; display: block; transition: transform .2s ease; }
.lg-logo a:hover img { transform: rotate(-4deg) scale(1.04); }

.lg-header .wp-block-navigation a { text-decoration: none; }
.lg-header .wp-block-navigation a:hover { color: var(--lg-amarelo); }
.lg-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 2rem;
}
.lg-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-family: var(--lg-display);
	font-weight: 400;
	font-size: 2.5rem;
}
.lg-header-actions { gap: 1.1rem; }
.lg-header .wc-block-mini-cart__button,
.lg-header .wc-block-customer-account a { color: #fff; }
.lg-header .wc-block-mini-cart__button:hover,
.lg-header .wc-block-customer-account a:hover { color: var(--lg-amarelo); }
.lg-header .wc-block-mini-cart__badge {
	background: var(--lg-amarelo);
	color: var(--lg-preto);
	font-weight: 800;
	border: 0;
}

/* ---------- Hero ---------- */

.lg-hero {
	position: relative;
	overflow: hidden;
	min-height: min(88vh, 820px);
}
.lg-hero .wp-block-columns { position: relative; z-index: 2; }
.lg-hero__logo { margin: 0 0 1.5rem; line-height: 0; }
.lg-hero__logo img { width: min(100%, 520px); height: auto; filter: drop-shadow(6px 6px 0 rgba(4, 8, 9, .9)); }
.lg-hero__tagline {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	line-height: 1.25;
	max-width: 30ch;
}
.lg-hero__photo {
	position: relative;
	margin: 0;
}
.lg-hero__photo > img:not(.lg-sticker) {
	display: block;
	box-sizing: border-box;
	border: 6px solid var(--lg-amarelo);
	box-shadow: 14px 14px 0 var(--lg-preto);
	transform: rotate(2deg);
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}
.lg-hero .lg-star-1 { width: 54px; top: 9%; left: 3%; transform: rotate(-12deg); }
.lg-hero .lg-star-2 { width: 34px; bottom: 14%; left: 46%; transform: rotate(18deg); }
.lg-hero .lg-star-3 { width: 40px; top: 12%; right: 4%; }
.lg-hero .lg-duck { width: clamp(90px, 11vw, 150px); bottom: -5%; left: -7%; transform: rotate(-8deg); z-index: 3; }
.lg-hero .lg-planet { width: clamp(120px, 14vw, 200px); top: -4%; right: -3%; z-index: 3; }

@keyframes lg-float {
	0%, 100% { translate: 0 0; }
	50% { translate: 0 -10px; }
}
.lg-float { animation: lg-float 5s ease-in-out infinite; }
.lg-float--slow { animation-duration: 7s; }

/* ---------- Marquee ---------- */

.lg-marquee {
	overflow: hidden;
	white-space: nowrap;
	padding-block: 0.9rem;
	border-block: 3px solid var(--lg-preto);
}
.lg-marquee__track {
	display: inline-flex;
	gap: 2.5rem;
	animation: lg-marquee 28s linear infinite;
	font-family: var(--lg-display);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1;
	text-transform: uppercase;
	padding-top: 0.15em;
}
.lg-marquee__track span::after {
	content: "★";
	margin-left: 2.5rem;
}
@keyframes lg-marquee {
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.lg-marquee__track,
	.lg-float { animation: none; }
}

/* ---------- Product grid (Product Collection + classic loop) ---------- */

.wc-block-product-template .wc-block-product,
.wc-block-product-template > li {
	position: relative;
}
.wc-block-components-product-image,
.wp-block-woocommerce-product-image {
	background: var(--lg-creme);
	position: relative;
	overflow: hidden;
}
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform .5s ease, opacity .35s ease;
}
.wp-block-woocommerce-product-image a:hover img:first-of-type { transform: scale(1.04); }

.loveguard-hover-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	opacity: 0;
}
.wp-block-woocommerce-product-image a:hover .loveguard-hover-image,
.wc-block-components-product-image a:hover .loveguard-hover-image,
.wp-block-woocommerce-product-image a:focus-visible .loveguard-hover-image { opacity: 1; }

.wp-block-woocommerce-product-button,
.wc-block-components-product-button {
	justify-content: flex-start;
	align-items: flex-start !important;
	text-align: left;
}

.wc-block-product .wp-block-post-title,
.wc-block-product .wp-block-post-title a {
	font-family: var(--wp--preset--font-family--condensed);
	text-transform: uppercase;
	text-decoration: none;
	font-size: 1.25rem;
	line-height: 1.1;
}
.wc-block-product .wp-block-post-title a:hover { color: var(--lg-laranja); }

.wc-block-components-product-sale-badge,
.wc-block-components-product-sale-badge--align-right {
	background: var(--lg-amarelo);
	color: var(--lg-preto);
	border: 0;
	border-radius: 0;
	font-weight: 800;
	text-transform: uppercase;
}

/* Woo buttons that don't pick up theme.json */
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-product-button .wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.single_add_to_cart_button {
	border-radius: 0 !important;
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 0.06em;
}

/* Single product */
.single-product .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xx-large);
}
.single-product .wp-block-woocommerce-product-price,
.single-product .wc-block-components-product-price {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--lg-laranja);
}
.woocommerce div.product .woocommerce-product-gallery {
	background: var(--lg-creme);
}
.woocommerce div.product form.cart .variations select,
.wc-block-add-to-cart-form select {
	border: 2px solid var(--lg-preto);
	border-radius: 0;
	padding: 0.6rem 0.8rem;
	font: inherit;
	font-weight: 700;
	background-color: #fff;
}
.woocommerce .quantity .qty {
	border: 2px solid var(--lg-preto);
	border-radius: 0;
	padding: 0.7rem 0.4rem;
	font-weight: 700;
}
.woocommerce-tabs .tabs li a,
.wp-block-woocommerce-product-details .tabs li a {
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-decoration: none;
}
.woocommerce-store-notice,
p.demo_store {
	background: var(--lg-laranja);
}

/* ---------- Feature (lata) ---------- */

.lg-feature__photo > img:not(.lg-sticker) {
	display: block;
	box-sizing: border-box;
	background: #fff;
	padding: clamp(0.75rem, 2vw, 1.5rem);
	box-shadow: 12px 12px 0 var(--lg-laranja);
}
.lg-feature .lg-planet { width: clamp(110px, 12vw, 170px); top: -36px; left: -26px; z-index: 2; }
.lg-feature ul { padding-left: 0; list-style: none; }
.lg-feature li { padding-left: 1.8rem; position: relative; margin-bottom: 0.55rem; }
.lg-feature li::before {
	content: "★";
	position: absolute;
	left: 0;
	color: var(--lg-amarelo);
}

/* ---------- Lookbook ---------- */

.lg-lookbook .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.lg-lookbook .wp-block-image figcaption {
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
	text-align: left;
	margin-top: 0.6rem;
}

/* ---------- Benefits ---------- */

.lg-benefits h3 {
	font-family: var(--lg-display);
	font-weight: 400;
	font-size: 1.6rem;
	margin-bottom: 0.25rem;
}
.lg-benefits p { margin: 0; }

/* ---------- Footer ---------- */

.lg-footer a { text-decoration: none; }
.lg-footer a:hover { color: var(--lg-amarelo); }
.lg-footer h2 {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 800;
	font-size: 0.875rem;
	letter-spacing: 0.1em;
	color: var(--lg-amarelo);
	margin-bottom: 0.9rem;
}
.lg-footer ul { list-style: none; padding: 0; margin: 0; }
.lg-footer li { margin-bottom: 0.45rem; }
.lg-footer__badge img { width: 190px; height: auto; }
.lg-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .18); }

/* ---------- Pages ---------- */

.lg-page-title {
	position: relative;
	overflow: hidden;
}
.lg-page-title .lg-star-1 { width: 38px; right: 8%; top: 22%; }
.lg-page-title .lg-star-2 { width: 26px; right: 18%; bottom: 18%; transform: rotate(20deg); }

.lg-404 .lg-duck { width: 180px; position: static; margin: 0 auto 1rem; display: block; }

/* ---------- Responsive ---------- */

@media (max-width: 781px) {
	.lg-hero { min-height: 0; }
	.lg-hero__photo > img:not(.lg-sticker) { transform: none; box-shadow: 8px 8px 0 var(--lg-preto); }
	.lg-hero .lg-planet { width: 96px; top: -18px; right: -6px; }
	.lg-hero .lg-star-2 { display: none; }
	.lg-logo img { width: 58px; }
	.lg-header { gap: 0.75rem; }
	.lg-feature .lg-planet { width: 90px; top: -24px; left: -6px; }
}

/* ---------- Shop archive ---------- */

.post-type-archive-product .wp-block-query-title,
.tax-product_cat .wp-block-query-title,
.tax-product_tag .wp-block-query-title {
	font-family: var(--lg-display);
	font-weight: 400;
	color: var(--lg-laranja);
	font-size: var(--wp--preset--font-size--xx-large);
}

/* Keep product cards left-aligned everywhere, like the home grid. */
.wc-block-product .has-text-align-center,
.wc-block-product .wc-block-components-product-price,
.wp-block-woocommerce-related-products .has-text-align-center {
	text-align: left !important;
}
.wc-block-product .wc-block-components-product-image { margin-bottom: 0.25rem; }

.woocommerce-ordering select,
.wc-block-catalog-sorting select {
	border: 2px solid var(--lg-preto);
	border-radius: 0;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
	font: inherit;
	font-weight: 700;
	background-color: #fff;
}

.wp-block-woocommerce-breadcrumbs a,
.woocommerce-breadcrumb a { text-decoration: none; color: var(--lg-laranja); }

/* Mobile header: logo left, account/cart + burger right */
@media (max-width: 599px) {
	.lg-header .wp-block-navigation { order: 3; flex-grow: 0; }
	.lg-header-actions { margin-left: auto !important; }
}

.wc-block-add-to-cart-form select,
.woocommerce div.product form.cart .variations select { min-width: 12rem; }
