/* Lujinha - estilos que os blocos nao cobrem. Tokens vivem no theme.json. */

:root {
	--lujinha-radius-sm: 6px;
	--lujinha-radius-md: 16px;
	--lujinha-radius-lg: 24px;
	--lujinha-radius-full: 9999px;
}

/* Alvo de toque minimo de 44px em todo link ou botao de icone. */
.lujinha-header__conta a,
.lujinha-header__conta button {
	min-width: 44px;
	min-height: 44px;
}

/* Cabecalho ------------------------------------------------------------- */

.lujinha-header__principal .wp-block-search {
	flex: 1 1 320px;
	min-width: 0;
}

.lujinha-header__principal .wp-block-search__inside-wrapper {
	min-height: 48px;
	padding: 0 20px;
	border-radius: var(--lujinha-radius-full);
}

.lujinha-header__principal .wp-block-search__input {
	border: 0;
	background: transparent;
	font-size: 14px;
}

.lujinha-categorias {
	overflow-x: auto;
	white-space: nowrap;
	padding-bottom: 4px;
}

.lujinha-categorias .wp-block-navigation-item__content {
	padding: 12px 0 14px;
	text-decoration: none;
}

/* Rotulos em caixa alta, espacados (token "label" do design system). */
.lujinha-rotulo {
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 500;
	margin-bottom: 6px;
}

/* Rodape ---------------------------------------------------------------- */

.lujinha-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lujinha-links a {
	text-decoration: none;
}

.lujinha-selos {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.lujinha-selos span {
	padding: 4px 10px;
	border-radius: var(--lujinha-radius-sm);
	background: var(--wp--preset--color--linho);
}

/* Cartao de produto ----------------------------------------------------- */

.lujinha-produtos .wc-block-product {
	background: var(--wp--preset--color--branco);
	border-radius: var(--lujinha-radius-md);
	overflow: hidden;
	padding: 0 0 20px;
}

.lujinha-produtos .wc-block-components-product-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
}

.lujinha-produtos .wc-block-components-product-title,
.lujinha-produtos .wc-block-components-product-price,
.lujinha-produtos .wp-block-button {
	padding-inline: 20px;
}

/* Marca-d'agua manuscrita do hero. */
.lujinha-assinatura {
	font-family: var(--wp--preset--font-family--script);
	font-size: clamp(120px, 18vw, 260px);
	line-height: 1;
	color: var(--wp--preset--color--taupe);
	opacity: 0.18;
	position: absolute;
	left: -12px;
	bottom: -64px;
	pointer-events: none;
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* Catálogo -------------------------------------------------------------- */

.lujinha-capa .wp-block-query-title,
.lujinha-capa .wp-block-term-description {
	max-width: 680px;
}

.lujinha-filtros fieldset,
.lujinha-filtros .wp-block-woocommerce-product-filters > * {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--areia-claro);
	margin: 0;
	padding: 20px 0 0;
}

.lujinha-filtros legend,
.lujinha-filtros .wc-block-product-filters__title {
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 500;
	color: var(--wp--preset--color--texto-suave);
	margin-bottom: 12px;
}

/* Alvo de toque de 44px nos controles de filtro e ordenação. */
.lujinha-filtros label,
.wp-block-woocommerce-catalog-sorting select {
	min-height: 44px;
}

.wp-block-woocommerce-catalog-sorting select {
	padding: 0 40px 0 16px;
	border-radius: var(--lujinha-radius-full);
	border: 1px solid var(--wp--preset--color--areia);
	background: var(--wp--preset--color--branco);
}

/* Cartao de produto do Product Collection. */
.lujinha-produtos .wc-block-product-template__responsive .wc-block-product,
.lujinha-produtos .wp-block-post {
	background: var(--wp--preset--color--branco);
	border-radius: var(--lujinha-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 20px;
}

.lujinha-produtos .wp-block-post > :not(.wc-block-components-product-image):not(figure) {
	padding-inline: 20px;
}

.lujinha-produtos .wc-block-components-product-image img,
.lujinha-produtos figure img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
	width: 100%;
}

.lujinha-produtos .wc-block-components-product-button .wp-block-button__link {
	width: 100%;
	min-height: 44px;
	background: transparent;
	color: var(--wp--preset--color--tinta);
	border: 1.5px solid var(--wp--preset--color--tinta);
}

/* Paginacao em pilulas. */
.wp-block-query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--lujinha-radius-full);
	border: 1px solid var(--wp--preset--color--areia);
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--tinta);
	color: var(--wp--preset--color--off-white);
	border-color: var(--wp--preset--color--tinta);
}

/* Produto --------------------------------------------------------------- */

.lujinha-preco .wc-block-components-product-price del {
	font-size: 15px;
	color: var(--wp--preset--color--texto-suave);
}

.wp-block-woocommerce-product-image-gallery img {
	border-radius: var(--lujinha-radius-md);
}

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

.lujinha-hero {
	position: relative;
	overflow: hidden;
}

/* Loop classico do WooCommerce (legacy-template) ------------------------ */

.lujinha-produtos ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.lujinha-produtos ul.products::before,
.lujinha-produtos ul.products::after {
	content: none;
}

.lujinha-produtos ul.products li.product {
	width: auto;
	margin: 0;
	float: none;
	background: var(--wp--preset--color--branco);
	border-radius: var(--lujinha-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0 0 20px;
}

.lujinha-produtos ul.products li.product img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	margin: 0;
	border-radius: 0;
}

.lujinha-produtos ul.products li.product > :not(a.woocommerce-LoopProduct-link):not(img),
.lujinha-produtos ul.products li.product .woocommerce-loop-product__title {
	padding-inline: 20px;
}

.lujinha-produtos ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
	line-height: 22px;
	font-family: var(--wp--preset--font-family--sans);
}

.lujinha-produtos ul.products li.product .price {
	font-size: 18px;
	font-weight: 600;
	color: var(--wp--preset--color--tinta);
}

.lujinha-produtos ul.products li.product .button {
	margin: auto 20px 0;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--lujinha-radius-full);
	border: 1.5px solid var(--wp--preset--color--tinta);
	background: transparent;
	color: var(--wp--preset--color--tinta);
	font-size: 13px;
	font-weight: 500;
}

.lujinha-produtos .woocommerce-ordering select {
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--lujinha-radius-full);
	border: 1px solid var(--wp--preset--color--areia);
	background: var(--wp--preset--color--branco);
}

/* Pagina de produto ----------------------------------------------------- */

.lujinha-produto div.product .woocommerce-product-gallery img {
	border-radius: var(--lujinha-radius-md);
}

.lujinha-produto div.product .summary .price {
	background: var(--wp--preset--color--branco);
	border-radius: var(--lujinha-radius-md);
	padding: 24px;
	display: block;
	font-size: 32px;
	font-weight: 600;
}

.lujinha-produto div.product .single_add_to_cart_button {
	min-height: 56px;
	border-radius: var(--lujinha-radius-full);
	padding-inline: 32px;
}

/* Blog ------------------------------------------------------------------ */

/* Categorias como pilulas, conforme o design da listagem. */
.lujinha-pilulas ul,
ul.lujinha-pilulas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lujinha-pilulas li a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border-radius: var(--lujinha-radius-full);
	border: 1px solid var(--wp--preset--color--areia);
	background: var(--wp--preset--color--branco);
	font-size: 13px;
	text-decoration: none;
}

.lujinha-destaque .wp-block-columns {
	background: var(--wp--preset--color--branco);
	border-radius: var(--lujinha-radius-lg);
	overflow: hidden;
}

.lujinha-destaque figure,
.lujinha-destaque img {
	height: 100%;
	min-height: 380px;
	object-fit: cover;
	border-radius: 0;
}

.lujinha-cards .wp-block-post {
	background: var(--wp--preset--color--branco);
	border-radius: var(--lujinha-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 24px;
}

.lujinha-cards .wp-block-post > :not(figure) {
	padding-inline: 24px;
	margin-block: 0;
}

.lujinha-cards .wp-block-post figure {
	margin: 0;
}

.lujinha-cards .wp-block-post figure img {
	border-radius: 0;
	width: 100%;
}

/* Corpo do artigo -------------------------------------------------------- */

.lujinha-artigo__corpo {
	font-size: 17px;
	line-height: 30px;
}

.lujinha-artigo__corpo p {
	margin: 0 0 20px;
}

.lujinha-artigo__corpo h2 {
	margin: 48px 0 16px;
	font-size: 32px;
	line-height: 38px;
}

.lujinha-artigo__corpo h3 {
	margin: 32px 0 12px;
}

.lujinha-artigo__corpo blockquote {
	margin: 32px 0;
	padding: 28px 32px;
	border-radius: var(--lujinha-radius-md);
	background: var(--wp--preset--color--areia-claro);
	font-family: var(--wp--preset--font-family--display);
	font-size: 24px;
	line-height: 32px;
	border: 0;
}

.lujinha-artigo__corpo ul,
.lujinha-artigo__corpo ol {
	margin: 0 0 20px;
	padding-left: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lujinha-artigo__capa .wp-block-post-title {
	margin: 0;
}

/* Beneficios da home ----------------------------------------------------- */

.lujinha-perk__icone {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: var(--lujinha-radius-full);
	background: var(--wp--preset--color--linho);
	color: var(--wp--preset--color--tinta);
	display: flex;
	align-items: center;
	justify-content: center;
}

.lujinha-perk {
	align-items: flex-start;
}

/* Slider da home --------------------------------------------------------- */

.lujinha-slider {
	position: relative;
	border-radius: var(--lujinha-radius-lg);
	overflow: hidden;
}

.lujinha-slider__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.lujinha-slider__track::-webkit-scrollbar {
	display: none;
}

.lujinha-slide {
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
}

.lujinha-slide .wp-block-columns {
	margin: 0;
	align-items: stretch;
}

.lujinha-slide__foto,
.lujinha-slide__foto figure,
.lujinha-slide__foto img {
	height: 100%;
	margin: 0;
}

.lujinha-slide__foto img {
	width: 100%;
	min-height: 520px;
	object-fit: cover;
	border-radius: 0;
}

.lujinha-slider__controles {
	position: absolute;
	left: 64px;
	bottom: 32px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.lujinha-slider__botao {
	width: 44px;
	height: 44px;
	border-radius: var(--lujinha-radius-full);
	border: 1.5px solid var(--wp--preset--color--tinta);
	background: var(--wp--preset--color--off-white);
	color: var(--wp--preset--color--tinta);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lujinha-slider__play {
	border: 0;
	background: transparent;
}

.lujinha-slider__pontos {
	display: flex;
	align-items: center;
}

.lujinha-slider__ponto {
	width: 32px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.lujinha-slider__ponto span {
	display: block;
	height: 8px;
	width: 8px;
	border-radius: var(--lujinha-radius-full);
	background: var(--wp--preset--color--tinta);
	opacity: 0.35;
	transition: width 300ms ease;
}

.lujinha-slider__ponto[aria-current="true"] span {
	width: 24px;
	opacity: 1;
}

@media (max-width: 781px) {
	.lujinha-slider__controles {
		left: 24px;
		bottom: 16px;
	}

	.lujinha-slide__foto img {
		min-height: 320px;
	}
}
