/*
 * PuroStileModa — estilos del tema.
 *
 * Mismos tokens que la versión anterior (src/app/globals.css). Los colores y
 * las familias tipográficas los define theme.json como variables --wp--preset--*;
 * aquí se les dan nombres cortos.
 */

:root {
	--psm-black: var(--wp--preset--color--brand-black, #121212);
	--psm-surface: var(--wp--preset--color--brand-surface, #fdf8f8);
	--psm-accent: var(--wp--preset--color--brand-accent, #d9b3a0);
	--psm-gray: var(--wp--preset--color--brand-gray, #6b7280);
	--psm-line: #e5e7eb;
	--psm-line-soft: #f3f4f6;
	--psm-serif: var(--wp--preset--font-family--serif, "Bodoni Moda", Georgia, serif);
	--psm-sans: var(--wp--preset--font-family--sans, Inter, system-ui, sans-serif);
	--psm-gutter: 1.5rem;
	--psm-max: 80rem;
	--psm-header-h: 4.5rem;

	/* Identidad de marca fija en crema: sin modo oscuro automático. */
	color-scheme: light;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--psm-surface);
	color: var(--psm-black);
	font-family: var(--psm-sans);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body > main,
body > .psm-shop {
	flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--psm-serif);
	font-weight: 400;
	line-height: 1.2;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
}

:focus-visible {
	outline: 2px solid var(--psm-black);
	outline-offset: 2px;
}

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

.psm-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--psm-black);
	color: #fff;
}

.psm-skip:focus {
	left: 1rem;
	top: 1rem;
}

.psm-container {
	width: 100%;
	max-width: var(--psm-max);
	margin-inline: auto;
	padding-inline: var(--psm-gutter);
}

.psm-center {
	text-align: center;
}

.psm-icon {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex-shrink: 0;
}

.psm-chevron,
.psm-check {
	width: 0.75rem;
	height: 0.75rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.psm-flag {
	width: 1.125rem;
	height: 0.75rem;
	flex-shrink: 0;
	border-radius: 1px;
	box-shadow: 0 0 0 1px rgb(0 0 0 / 0.1);
}

/* ------------------------------------------------------------------ */
/* Cabecera                                                            */
/* ------------------------------------------------------------------ */

.psm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--psm-line-soft);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

/* La barra de administración de WordPress también es fija: sin esto la tapa. */
.admin-bar .psm-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.psm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--psm-header-h);
	padding: 1rem var(--psm-gutter);
}

.psm-logo {
	flex-shrink: 0;
}

.psm-logo a {
	font-family: var(--psm-serif);
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	text-decoration: none;
	color: var(--psm-black);
}

.psm-logo img {
	display: block;
	max-height: 2.5rem;
	width: auto;
}

.psm-nav__list {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.psm-nav__list li {
	position: relative;
}

.psm-nav__link,
.psm-nav__list > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--psm-black);
	transition: color 0.2s;
}

/* Subrayado animado de la maqueta original. */
.psm-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 1px;
	background: var(--psm-black);
	transition: width 0.3s ease;
}

.psm-nav__list > li > a:hover {
	color: var(--psm-accent);
}

.psm-nav__list > li > a:hover::after,
.psm-nav__list > .current-menu-item > a::after {
	width: 100%;
}

/* Submenús (p. ej. Colección → Vestidos, Abrigos...). */
.psm-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 12rem;
	margin: 0;
	padding: 0.5rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--psm-line-soft);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5rem);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.psm-nav li:hover > .sub-menu,
.psm-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(1rem);
}

.psm-nav .sub-menu a {
	display: block;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	color: var(--psm-gray);
	text-decoration: none;
}

.psm-nav .sub-menu a:hover {
	background: var(--psm-surface);
	color: var(--psm-black);
}

.psm-tools {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	color: var(--psm-gray);
}

.psm-icon-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	/* Área de pulsación cómoda en móvil sin desplazar nada. */
	margin: -0.5rem;
	padding: 0.5rem;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.2s;
}

.psm-icon-link:hover {
	color: var(--psm-black);
}

.psm-cart__count {
	position: absolute;
	top: -0.125rem;
	right: -0.25rem;
	min-width: 1.125rem;
	padding: 0.125rem 0.375rem;
	border-radius: 999px;
	background: var(--psm-black);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.psm-cart__count[hidden] {
	display: none;
}

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

/* Desplegables sobre <details>: idioma y buscador. */
[data-psm-dropdown] {
	position: relative;
}

[data-psm-dropdown] > summary {
	list-style: none;
	cursor: pointer;
}

[data-psm-dropdown] > summary::-webkit-details-marker {
	display: none;
}

.psm-lang > summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: -0.5rem;
	padding: 0.5rem;
	color: var(--psm-gray);
	transition: color 0.2s;
}

.psm-lang > summary:hover {
	color: var(--psm-black);
}

.psm-lang__name {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.psm-lang[open] .psm-chevron {
	transform: rotate(180deg);
}

.psm-lang__menu {
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 60;
	width: 11rem;
	margin: 0.75rem 0 0;
	padding: 0.25rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--psm-line-soft);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.psm-lang__menu a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 1rem;
	font-size: 0.875rem;
	color: var(--psm-gray);
	text-decoration: none;
}

.psm-lang__menu a:hover {
	background: var(--psm-surface);
	color: var(--psm-black);
}

.psm-lang__menu a[aria-current] {
	font-weight: 500;
	color: var(--psm-black);
}

.psm-lang__menu .psm-check {
	margin-left: auto;
	width: 0.875rem;
	height: 0.875rem;
	color: var(--psm-accent);
}

.psm-search__form {
	position: absolute;
	right: -0.5rem;
	top: 100%;
	z-index: 60;
	width: min(20rem, calc(100vw - 2rem));
	margin-top: 0.75rem;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid var(--psm-line-soft);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.psm-search__form input[type="search"] {
	width: 100%;
}

/* ------------------------------------------------------------------ */
/* Formularios y botones                                               */
/* ------------------------------------------------------------------ */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid rgb(18 18 18 / 0.2);
	border-radius: 0;
	background: #fff;
	color: var(--psm-black);
	font: inherit;
	font-size: 0.875rem;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--psm-black);
	outline: none;
}

.psm-button,
.button,
button[type="submit"],
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button:not(.is-link) {
	display: inline-block;
	padding: 0.875rem 2rem;
	border: 1px solid var(--psm-black);
	border-radius: 0;
	background: var(--psm-black);
	color: #fff;
	font-family: var(--psm-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.psm-button:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover {
	background: var(--psm-accent);
	border-color: var(--psm-accent);
	color: var(--psm-black);
}

/*
 * Botones "alt" de WooCommerce (Añadir al carrito, Realizar pedido): su hoja de
 * estilos los pinta en morado con selectores más específicos que los de
 * arriba, así que hay que igualarlos.
 */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt.disabled,
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce button.button.alt:disabled[disabled] {
	background: var(--psm-black);
	border-color: var(--psm-black);
	color: #fff;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
	background: var(--psm-accent);
	border-color: var(--psm-accent);
	color: var(--psm-black);
}

.woocommerce div.product .stock,
.woocommerce div.product p.stock.in-stock {
	font-size: 0.8125rem;
	color: var(--psm-gray);
}

.woocommerce div.product p.stock.out-of-stock {
	color: #b91c1c;
}

.psm-button--outline {
	background: transparent;
	color: var(--psm-black);
}

.psm-button--outline:hover {
	background: var(--psm-black);
	border-color: var(--psm-black);
	color: #fff;
}

.button:disabled,
.button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* Portada                                                             */
/* ------------------------------------------------------------------ */

.psm-eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--psm-accent);
}

.psm-rule {
	display: block;
	width: 4rem;
	height: 1px;
	margin: 2rem auto;
	background: var(--psm-accent);
}

.psm-hero {
	position: relative;
}

.psm-hero__text {
	max-width: 48rem;
	margin-inline: auto;
	padding: 5rem var(--psm-gutter);
	text-align: center;
}

.psm-hero__title {
	margin: 1.5rem 0 0;
	font-size: clamp(3rem, 8vw, 4.5rem);
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.psm-hero__lead {
	max-width: 36rem;
	margin: 0 auto;
	color: var(--psm-gray);
}

/* Con foto: imagen a sangre y el texto encima, abajo a la izquierda. */
.psm-hero--image {
	height: 60vh;
	min-height: 26rem;
	overflow: hidden;
}

.psm-hero--image .psm-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.psm-hero--image .psm-hero__text {
	position: absolute;
	inset: auto 0 0;
	max-width: none;
	padding-bottom: 3rem;
	color: #fff;
	background: linear-gradient(to top, rgb(0 0 0 / 0.45), transparent);
}

.psm-hero--image .psm-hero__lead {
	color: rgb(255 255 255 / 0.9);
}

.psm-section-title {
	margin: 0 0 2.5rem;
	font-size: clamp(1.875rem, 4vw, 2.25rem);
	text-transform: uppercase;
}

.psm-selection {
	padding-block: 4rem;
}

.psm-content {
	padding-block: 2rem 4rem;
	max-width: 48rem;
}

/* ------------------------------------------------------------------ */
/* Páginas                                                             */
/* ------------------------------------------------------------------ */

.psm-page {
	max-width: 48rem;
	padding-block: 4rem 6rem;
}

.psm-page--wide {
	padding-block: 3rem 6rem;
}

.psm-page__title {
	margin: 0 0 2rem;
	font-size: clamp(1.875rem, 4vw, 2.25rem);
}

.entry-content h2 {
	margin: 2.5rem 0 0.75rem;
	font-size: 1.25rem;
}

.entry-content p,
.entry-content li {
	font-size: 0.9375rem;
	color: var(--psm-gray);
}

.entry-content strong {
	color: var(--psm-black);
}

.entry-content a {
	text-decoration: underline;
}

/* Los bloques de WooCommerce (carrito, checkout, rejillas) traen sus propios
   enlaces y botones: el subrayado de los textos legales no les corresponde. */
.entry-content [class*="wc-block"] a,
.entry-content [class*="wp-block-woocommerce"] a {
	text-decoration: none;
}

.entry-content a:hover {
	color: var(--psm-accent);
}

.entry-content ul {
	padding-left: 1.25rem;
}

/* ------------------------------------------------------------------ */
/* WooCommerce: catálogo                                               */
/* ------------------------------------------------------------------ */

.psm-shop {
	padding-block: 3rem 6rem;
}

.woocommerce-products-header__title,
.product_title {
	font-size: clamp(1.875rem, 4vw, 2.5rem);
	margin: 0 0 1rem;
}

.woocommerce-breadcrumb {
	margin-bottom: 1.5rem;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--psm-gray);
}

.woocommerce-breadcrumb a {
	text-decoration: none;
}

.woocommerce-result-count,
.woocommerce-ordering {
	font-size: 0.875rem;
	color: var(--psm-gray);
}

.woocommerce-ordering select {
	width: auto;
	padding: 0.5rem 2rem 0.5rem 0.75rem;
}

/* Rejilla propia: más fiable que los floats de woocommerce-layout. */
.woocommerce ul.products,
ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2.5rem 1.5rem;
	margin: 0 0 2rem !important;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}

.woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	position: relative;
	text-align: left;
}

.woocommerce ul.products li.product a {
	text-decoration: none;
}

.woocommerce ul.products li.product img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	margin: 0 0 1rem !important;
	background: var(--psm-line-soft);
	transition: transform 0.7s ease;
}

.woocommerce ul.products li.product a:hover img {
	transform: scale(1.03);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
	display: block;
	overflow: hidden;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin: 0 0 0.25rem;
	padding: 0;
	font-family: var(--psm-sans);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.025em;
	color: var(--psm-black);
}

.woocommerce ul.products li.product .price,
.woocommerce div.product .price {
	display: block;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	color: var(--psm-gray);
}

.woocommerce .price del {
	opacity: 0.6;
	margin-right: 0.25rem;
}

.woocommerce .price ins {
	text-decoration: none;
	color: var(--psm-black);
}

/* En la rejilla, "Añadir al carrito" solo aparece al pasar por encima. */
.woocommerce ul.products li.product .button {
	padding: 0.625rem 1rem;
	font-size: 0.6875rem;
}

@media (hover: hover) {
	.woocommerce ul.products li.product .button {
		opacity: 0;
		transition: opacity 0.2s, background-color 0.2s, color 0.2s;
	}

	.woocommerce ul.products li.product:hover .button,
	.woocommerce ul.products li.product .button:focus-visible {
		opacity: 1;
	}
}

.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	right: auto;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0.25rem 0.625rem;
	border-radius: 0;
	background: var(--psm-black);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--psm-line);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--psm-black);
	border-color: var(--psm-black);
	color: #fff;
}

/* ------------------------------------------------------------------ */
/* WooCommerce: ficha de producto                                      */
/* ------------------------------------------------------------------ */

.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells {
	grid-column: 1 / -1;
}

.woocommerce div.product div.summary .price {
	font-size: 1.25rem;
	color: var(--psm-black);
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.woocommerce div.product form.cart .variations {
	width: 100%;
	margin-bottom: 0.5rem;
}

.woocommerce div.product form.cart .variations th {
	padding: 0.5rem 1rem 0.5rem 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-align: left;
	text-transform: uppercase;
}

.woocommerce .quantity .qty {
	width: 4.5rem;
	text-align: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	flex-grow: 1;
}

.woocommerce div.product .product_meta {
	font-size: 0.8125rem;
	color: var(--psm-gray);
}

.woocommerce div.product .product_meta > span {
	display: block;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	gap: 2rem;
	margin: 3rem 0 1.5rem;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--psm-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding-bottom: 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--psm-gray);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--psm-black);
	box-shadow: inset 0 -1px 0 var(--psm-black);
}

.woocommerce div.product .related > h2,
.woocommerce div.product .upsells > h2 {
	margin: 4rem 0 2rem;
	font-size: 1.75rem;
	text-transform: uppercase;
}

/* ------------------------------------------------------------------ */
/* WooCommerce: avisos, carrito, checkout, cuenta                      */
/* ------------------------------------------------------------------ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	margin: 0 0 2rem;
	padding: 1rem 1.25rem;
	list-style: none;
	border: 1px solid var(--psm-line);
	border-left: 3px solid var(--psm-accent);
	background: #fff;
	font-size: 0.875rem;
}

.woocommerce-error {
	border-left-color: #b91c1c;
}

.woocommerce-message .button,
.woocommerce-info .button {
	float: right;
	padding: 0.5rem 1rem;
}

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 1rem 0.5rem;
	border-bottom: 1px solid var(--psm-line);
	text-align: left;
	font-size: 0.875rem;
}

.woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 0.5rem 0;
	text-decoration: none;
	color: var(--psm-gray);
}

.woocommerce-MyAccount-navigation .is-active a {
	color: var(--psm-black);
	font-weight: 500;
}

/* Bloques de carrito y checkout: heredan tipografía y colores. */
.wc-block-cart,
.wc-block-checkout {
	font-family: var(--psm-sans);
}

.wc-block-components-title,
.wc-block-cart__totals-title {
	font-family: var(--psm-serif) !important;
	font-weight: 400 !important;
	text-transform: none !important;
}

/* ------------------------------------------------------------------ */
/* Pie                                                                 */
/* ------------------------------------------------------------------ */

.psm-footer {
	margin-top: auto;
	background: #fff;
	border-top: 1px solid var(--psm-line);
}

.psm-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem;
	max-width: var(--psm-max);
	margin-inline: auto;
	padding: 3rem var(--psm-gutter);
}

.psm-footer__brand {
	margin: 0;
	font-family: var(--psm-serif);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}

.psm-footer__line {
	max-width: 20rem;
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: var(--psm-gray);
}

.psm-footer__heading {
	margin: 0;
	font-family: var(--psm-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.psm-footer__list {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.psm-footer__list li + li {
	margin-top: 0.5rem;
}

.psm-footer__list a,
.psm-footer__social {
	color: var(--psm-gray);
	text-decoration: none;
	transition: color 0.2s;
}

.psm-footer__list a:hover,
.psm-footer__social:hover {
	color: var(--psm-black);
}

.psm-footer__social {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.875rem;
}

.psm-footer__social .psm-icon {
	width: 1rem;
	height: 1rem;
}

.psm-footer__bottom {
	border-top: 1px solid var(--psm-line-soft);
}

.psm-footer__bottom p {
	max-width: var(--psm-max);
	margin: 0 auto;
	padding: 1.5rem var(--psm-gutter);
	font-size: 0.75rem;
	color: var(--psm-gray);
}

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

@media (min-width: 768px) {
	:root {
		--psm-gutter: 3rem;
	}

	.psm-logo a {
		font-size: 1.875rem;
	}

	.psm-hero--image {
		height: 75vh;
	}

	.psm-hero__text {
		padding-block: 8rem;
	}

	.psm-selection {
		padding-block: 6rem;
	}
}

@media (max-width: 1023px) {
	.woocommerce ul.products,
	ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.psm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	/*
	 * En 390 px de ancho caben justo el menú, el logo y cuatro iconos: con los
	 * tamaños de escritorio el carrito se salía 7 px por la derecha y la
	 * página entera se podía desplazar de lado.
	 */
	:root {
		--psm-gutter: 1rem;
	}

	.psm-header__inner {
		gap: 0.75rem;
	}

	.psm-logo {
		flex-grow: 1;
		min-width: 0;
	}

	.psm-logo a {
		font-size: 1.25rem;
	}

	.psm-menu-toggle {
		display: inline-flex;
	}

	/* Menú móvil: panel que baja bajo la cabecera. */
	.psm-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 1rem var(--psm-gutter) 1.5rem;
		background: #fff;
		border-bottom: 1px solid var(--psm-line);
		box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
	}

	.psm-nav.is-open {
		display: block;
	}

	.psm-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.psm-nav__list > li > a {
		display: flex;
		padding: 0.75rem 0;
	}

	.psm-nav__list > li > a::after {
		display: none;
	}

	.psm-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		padding: 0 0 0.5rem 1rem;
		border: 0;
		box-shadow: none;
	}

	.psm-tools {
		gap: 0.875rem;
	}

	.psm-lang__name,
	.psm-hide-mobile {
		display: none;
	}

	.woocommerce div.product {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.woocommerce ul.products,
	ul.products {
		gap: 2rem 1rem;
	}

	/* En móvil el botón de la rejilla siempre se ve (no hay "pasar por
	   encima"): ancho completo y sin tanto espaciado para que quepa en una
	   línea. */
	.woocommerce ul.products li.product .button {
		display: block;
		width: 100%;
		padding-inline: 0.5rem;
		letter-spacing: 0.05em;
		text-align: center;
	}

	.psm-footer__grid {
		grid-template-columns: 1fr;
	}
}

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