/*
Theme Name:   Pijamas Mujer
Theme URI:    https://pijamasmujer.com
Description:  Tema hijo de bloques para pijamasmujer.com (T01).
Author:       Luis Gómez
Template:     twentytwentyfive
Version:      0.4.1
Requires at least: 6.6
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  pijamasmujer
*/

/* =========================================================================
   1. Tokens (nombres del brief). La paleta del editor vive en theme.json.
   ========================================================================= */
:root {
	--color-brand-navy: #1C2A3A;
	--color-brand-rose: #E5A196;
	--color-brand-gold: #D7AB80;
	--color-bg-ivory: #FDFAF7;
	--color-bg-blush: #F9F1EE;
	--color-surface-white: #FFFFFF;
	--color-text-primary: #1C2A3A;
	--color-text-muted: #5A6B7C;
	--color-border-subtle: #EADCD5;
	--pm-on-navy-muted: #C9D1D9; /* 9,4:1 sobre navy */
	--pm-radius-card: 14px;
	--pm-radius-box: 18px;
	/* Rejilla común: un solo ancho y un solo margen lateral para cabecera, secciones y pie. */
	--pm-wide: 1280px;
	--pm-gutter: var(--wp--style--root--padding-left, clamp(20px, 4vw, 32px));
	--pm-space-section: clamp(56px, 8vw, 104px);
	--pm-space-head: clamp(24px, 3vw, 40px);
	--pm-header-h: 64px;
	--pm-ease: cubic-bezier(.22, .61, .36, 1);
	--pm-shadow-hover: 0 18px 40px rgba(28, 42, 58, .10);
}
@media (min-width: 900px) { :root { --pm-header-h: 80px; } }


/* =========================================================================
   2. Base y utilidades
   ========================================================================= */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
a:hover { text-decoration-color: var(--color-brand-rose); text-decoration-thickness: 2px; }
.pm-muted, .pm-muted a { color: var(--color-text-muted); }
.pm-only-desktop { display: none; }
@media (min-width: 900px) { .pm-only-desktop { display: inline; } }
@media (min-width: 900px) { .pm-hide-desktop { display: none !important; } }
@media (max-width: 899px) { .pm-hide-mobile { display: none !important; } }
.pm-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--pm-wide) + 2 * var(--pm-gutter));
	margin-inline: auto;
	padding-inline: var(--pm-gutter);
}
html.pm-locked { overflow: hidden; }
:where(button, a, input, select, summary):focus-visible { outline: 2px solid var(--color-brand-gold); outline-offset: 2px; }

/* Botones */
.wp-block-button.is-style-secundario .wp-block-button__link {
	background-color: var(--color-brand-rose);
	color: var(--color-brand-navy);
}
.wp-block-button.is-style-secundario .wp-block-button__link:hover {
	background-color: var(--color-bg-blush);
	color: var(--color-brand-navy);
	box-shadow: inset 0 0 0 2px var(--color-brand-rose);
}
.wp-block-button.is-style-contorno .wp-block-button__link {
	background: transparent;
	color: var(--color-brand-navy);
	box-shadow: inset 0 0 0 1px var(--color-brand-navy);
}
.wp-block-button.is-style-contorno .wp-block-button__link:hover { background: var(--color-bg-blush); }

/* Insignias: rosa (Nuevo, Oferta), dorado (Top ventas) */
.pm-badge,
.wc-block-components-product-sale-badge {
	display: inline-block;
	padding: .2em .75em;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--color-brand-rose) !important;
	color: var(--color-brand-navy) !important;
	font-size: 11px !important;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.6;
}
.pm-badge--top { background: var(--color-brand-gold) !important; }

/* Antetítulo: el dorado va como línea, no como texto (contraste 2:1) */
.pm-subtitle {
	display: flex;
	align-items: center;
	gap: .6em;
	margin: 0;
	color: var(--color-text-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.pm-subtitle::before {
	content: "";
	flex: none;
	width: 28px;
	height: 1px;
	background: var(--color-brand-gold);
}
.pm-border-gold { border-color: var(--color-brand-gold) !important; }

/* Estrellas */
.star-rating span::before,
.wc-block-components-product-rating__stars span::before,
.wc-block-components-product-rating-stars__stars span::before { color: var(--color-brand-gold); }

/* =========================================================================
   3. Cabecera (marcado propio en patterns/header.php)
   ========================================================================= */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 50;
	view-transition-name: pm-header;
}
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; }
}
.pm-site-header { margin: 0; }
.pm-topbar {
	margin: 0 !important;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	padding: 0 var(--pm-gutter);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	background: var(--color-brand-navy);
	color: var(--color-bg-ivory);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .01em;
	text-align: center;
}
.pm-topbar__sep { color: var(--color-brand-gold); }
.pm-topbar__extra { display: none; gap: .6em; }
@media (min-width: 900px) { .pm-topbar__extra { display: inline-flex; } }

.pm-header {
	position: relative;
	background: var(--color-bg-ivory);
	border-bottom: 1px solid var(--color-border-subtle);
	transition: box-shadow .3s var(--pm-ease), background-color .3s;
}
.pm-site-header.is-scrolled .pm-header {
	background: rgba(253, 250, 247, .92);
	box-shadow: 0 8px 28px rgba(28, 42, 58, .07);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}
/* 1fr · auto · 1fr: lo central queda centrado en la página, no entre los extremos. */
.pm-header__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "start logo end";
	align-items: center;
	column-gap: 16px;
	height: var(--pm-header-h);
}
.pm-header__start, .pm-header__end { display: flex; align-items: center; gap: 2px; }
/* Los iconos tienen 44 px de zona táctil: se compensa para que el trazo quede en el margen común. */
.pm-header__start { grid-area: start; justify-self: start; margin-left: -11px; }
.pm-header__end { grid-area: end; justify-self: end; margin-right: -11px; }
.pm-logo { grid-area: logo; justify-self: center; display: block; line-height: 0; }
.pm-logo img { display: block; width: 120px; height: auto; max-width: none; } /* 400×188 → 120×56 */
@media (max-width: 360px) { .pm-logo img { width: auto; height: 40px; } }
/* 28-nov: la palabra "Pijamas" ocupa del 13 % al 96 % del archivo (la luna y los destellos tiran a la derecha);
   en móvil, donde el logo va centrado, se corrige ese 4 % para que se vea centrado de verdad. */
@media (max-width: 899px) { .pm-logo img { transform: translateX(-4%); } }
.pm-nav { grid-area: nav; }

@media (min-width: 900px) {
	.pm-header__row { grid-template-areas: "logo nav end"; column-gap: 32px; }
	.pm-header__start { display: none; }
	.pm-logo { justify-self: start; }
	.pm-logo img { width: 150px; } /* 150×70 en 80 px */
	.pm-nav { display: flex; align-items: center; gap: 8px; }
}

.pm-nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 16px;
	color: var(--color-brand-navy);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	text-decoration: none;
}
.pm-nav__link::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 8px;
	height: 2px;
	border-radius: 2px;
	background: var(--color-brand-rose);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--pm-ease);
}
.pm-nav__link:hover { text-decoration: none; }
.pm-nav__link:hover::after, .pm-nav__link[aria-current="page"]::after { transform: scaleX(1); }

.pm-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--color-brand-navy);
	cursor: pointer;
	transition: background-color .2s, transform .2s var(--pm-ease);
}
.pm-iconbtn:hover { background: var(--color-bg-blush); }
.pm-iconbtn:active { transform: scale(.94); }
.pm-iconbtn svg { display: block; }

/* Buscador desplegable (encima del contenido, sin empujarlo) */
.pm-search {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	padding-block: 16px;
	background: var(--color-bg-ivory);
	border-bottom: 1px solid var(--color-border-subtle);
	box-shadow: 0 18px 36px rgba(28, 42, 58, .08);
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity .22s var(--pm-ease), transform .22s var(--pm-ease);
}
.pm-search.is-open { opacity: 1; transform: none; }
.pm-search[hidden] { display: none; }
.pm-search__form { position: relative; display: flex; align-items: center; gap: 8px; }
.pm-search__icon { position: absolute; left: calc(var(--pm-gutter) + 16px); top: 50%; transform: translateY(-50%); line-height: 0; color: var(--color-text-muted); pointer-events: none; }
.pm-search__form input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 16px 0 48px;
	border: 1px solid var(--color-border-subtle);
	border-radius: 999px;
	background: #fff;
	color: var(--color-brand-navy);
	font: inherit;
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s;
}
.pm-search__form input[type="search"]:focus { outline: 0; border-color: var(--color-brand-navy); box-shadow: 0 0 0 3px rgba(215, 171, 128, .35); }
.pm-search__submit {
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--color-brand-navy);
	color: var(--color-bg-ivory);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.pm-search__submit:hover { background: var(--color-brand-rose); color: var(--color-brand-navy); }

/* Menú lateral (móvil) */
.pm-menu { position: fixed; inset: 0; z-index: 1000; }
.pm-menu[hidden] { display: none; }
.pm-menu__backdrop { position: absolute; inset: 0; background: rgba(28, 42, 58, .38); opacity: 0; transition: opacity .3s var(--pm-ease); }
.pm-menu__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(360px, 88vw);
	display: flex;
	flex-direction: column;
	background: var(--color-bg-ivory);
	box-shadow: 24px 0 48px rgba(28, 42, 58, .14);
	transform: translateX(-100%);
	transition: transform .3s var(--pm-ease);
	overflow-y: auto;
}
.pm-menu.is-open .pm-menu__backdrop { opacity: 1; }
.pm-menu.is-open .pm-menu__panel { transform: none; }
.pm-menu__head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--color-border-subtle); }
.pm-menu__logo { line-height: 0; }
.pm-menu__logo img { width: 104px; height: auto; }
.pm-menu__nav { display: flex; flex-direction: column; padding: 12px 20px; }
.pm-menu__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	border-bottom: 1px solid var(--color-border-subtle);
	color: var(--color-brand-navy);
	font-size: 22px;
	font-weight: 600;
	text-decoration: none;
}
.pm-menu__link svg { color: var(--color-brand-rose); transition: transform .25s var(--pm-ease); }
.pm-menu__link:hover { text-decoration: none; }
.pm-menu__link:hover svg { transform: translateX(4px); }
.pm-menu__link[aria-current="page"] span { box-shadow: inset 0 -2px 0 var(--color-brand-rose); }
.pm-menu__more { display: flex; flex-direction: column; gap: 2px; padding: 8px 20px 32px; margin-top: auto; }
.pm-menu__sublink { display: flex; align-items: center; min-height: 40px; color: var(--color-text-muted); font-size: 15px; text-decoration: none; }
.pm-menu__sublink:hover { color: var(--color-brand-navy); }
.pm-menu.is-open .pm-menu__nav > *, .pm-menu.is-open .pm-menu__more > * { animation: pm-slide-in .45s var(--pm-ease) both; }
.pm-menu.is-open .pm-menu__nav > :nth-child(2) { animation-delay: .05s; }
.pm-menu.is-open .pm-menu__nav > :nth-child(3) { animation-delay: .1s; }
.pm-menu.is-open .pm-menu__nav > :nth-child(4) { animation-delay: .15s; }
.pm-menu.is-open .pm-menu__more > * { animation-delay: .18s; }
@keyframes pm-slide-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

/* Cabecera y pie del checkout */
.pm-header--checkout .pm-header__row { min-height: 68px; display: flex; }
.pm-header--checkout .pm-logo img { width: 116px; }
@media (min-width: 900px) { .pm-header--checkout .pm-logo img { width: 150px; } }
.pm-secure { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-muted); }
.pm-footer-checkout { padding-block: 20px; border-top: 1px solid var(--color-border-subtle); font-size: 13px; }
.pm-footer-checkout a { color: var(--color-text-muted); }

/* =========================================================================
   4. Secciones comunes
   ========================================================================= */
.pm-main { margin-top: 0; }
.pm-main--home { padding-bottom: var(--pm-space-section); }
/* Ritmo vertical: el mismo espacio entre todas las secciones y la misma distancia título → contenido. */
.pm-section { padding-block: var(--pm-space-section) 0; }
.pm-section__head, .pm-cats > h2, .pm-related > h2 { margin-top: 0; margin-bottom: var(--pm-space-head) !important; }
.pm-section__head { align-items: flex-end; }
.pm-section__head h2, .pm-section__head p { margin: 0; }
.pm-card {
	background: var(--color-surface-white);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--pm-radius-box);
}
.pm-seo { padding-block: var(--pm-space-section) 0; }
.pm-seo > * { max-width: 820px; }

/* Garantías ([pm_garantias]) */
.pm-garantias { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pm-garantias li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; }
.pm-garantias svg { flex: none; }
.pm-trust { border-block: 1px solid var(--color-border-subtle); padding-block: 24px; }
.pm-garantias--strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-garantias--strip li { flex-direction: column; text-align: center; font-size: 12px; font-weight: 500; }
@media (min-width: 900px) {
	.pm-garantias--strip { max-width: 1280px; margin-inline: auto; }
	.pm-garantias--strip li { flex-direction: row; justify-content: center; font-size: 14px; }
}
.pm-garantias--ficha {
	padding: 16px;
	border-radius: var(--pm-radius-card);
	background: var(--color-bg-blush);
	grid-template-columns: 1fr;
}
@media (min-width: 900px) { .pm-garantias--ficha { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm-garantias--footer { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 28px; border-bottom: 1px solid #3A4A5C; }
.pm-garantias--footer svg { color: var(--color-brand-gold); }
@media (min-width: 900px) { .pm-garantias--footer { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* =========================================================================
   5. Portada
   ========================================================================= */
.pm-hero {
	background: linear-gradient(180deg, var(--color-bg-blush) 0%, var(--color-bg-ivory) 100%);
	padding-block: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
	margin-top: 0 !important;
}
.pm-hero__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 8px; }
.pm-hero__text { max-width: 620px; display: flex; flex-direction: column; gap: 10px; }
.pm-hero__text > * { margin: 0; }
.pm-hero__lead { color: var(--color-text-muted); font-size: 16px; }
@media (min-width: 900px) {
	.pm-hero__lead { font-size: 17px; }
}
.pm-hero .pm-perchero { margin-top: 8px; }

/* Categorías */
.pm-cats__grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) {
	/* Al lanzar solo hay 2 categorías (docs/arquitectura.md): tarjetas anchas; con más, hasta 6 por fila. */
	.pm-cats__grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
	.pm-cats__grid:has(> li:nth-child(4)) .pm-cats__img { aspect-ratio: 3 / 4; }
	.pm-cats__img { aspect-ratio: 16 / 9; }
}
.pm-cats__grid a { display: flex; flex-direction: column; gap: 8px; color: var(--color-brand-navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.pm-cats__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--pm-radius-card); background: var(--color-bg-blush); border: 1px solid var(--color-border-subtle); }
.pm-cats__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pm-cats__grid a:hover .pm-cats__img img { transform: scale(1.03); }
.pm-cats__img { display: flex; align-items: center; justify-content: center; }
.pm-cats__img img.pm-cats__ph { width: 30%; max-width: 96px; height: auto; object-fit: contain; opacity: .35; }

/* Marca + captación */
.pm-duo { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .pm-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.pm-brandbox, .pm-newsbox { padding: clamp(24px, 3vw, 36px); border-radius: 20px; margin: 0 !important; }
.pm-brandbox > *, .pm-newsbox > * { margin-block: 0 12px; }
.pm-brandbox__icon { width: 56px; height: auto; }

/* =========================================================================
   6. Captación de correo ([pm_newsletter])
   ========================================================================= */
.pm-newsletter { display: flex; flex-direction: column; gap: 8px; }
.pm-newsletter label { font-size: 13px; font-weight: 500; }
.pm-newsletter__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-newsletter input[type="email"] {
	flex: 1 1 200px;
	min-width: 0;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--color-border-subtle);
	border-radius: 999px;
	background: #fff;
	color: var(--color-brand-navy);
	font: inherit;
}
.pm-newsletter button {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--color-brand-navy);
	color: var(--color-bg-ivory);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.pm-newsletter button:hover { background: var(--color-brand-rose); color: var(--color-brand-navy); }
.pm-newsletter__legal { margin: 0; font-size: 12px; color: var(--color-text-muted); }
.pm-newsletter__ok { margin: 0; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--color-brand-navy); font-weight: 500; }
.pm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* =========================================================================
   7. Rejilla de productos (Product Collection)
   ========================================================================= */
.pm-products .wc-block-product-template { gap: 12px !important; }
@media (min-width: 900px) { .pm-products .wc-block-product-template { gap: 24px 20px !important; } }
.pm-products .wc-block-product {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 8px 14px;
	background: var(--color-surface-white);
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--pm-radius-card);
	text-align: left;
}
.pm-products .wc-block-product > * { margin: 0 !important; }
.pm-products .wc-block-components-product-image { border-radius: 10px; overflow: hidden; background: var(--color-bg-blush); }
.pm-products .wc-block-components-product-image img { aspect-ratio: 4 / 5; object-fit: cover; }
.pm-products .pm-pc-title { font-size: 14px; font-weight: 500; line-height: 1.35; }
.pm-products .pm-pc-title a { color: var(--color-brand-navy); text-decoration: none; }
.pm-products .wc-block-components-product-price { font-size: 15px; font-weight: 600; }
.pm-products .wc-block-components-product-rating { font-size: 12px; }
@media (max-width: 599px) {
	.pm-products .wc-block-product-template.is-flex-container > li { width: calc(50% - 6px) !important; }
}

/* =========================================================================
   8. Categoría (archivo)
   ========================================================================= */
.pm-archive, .pm-single, .pm-page, .pm-cart, .pm-checkout { padding-block: clamp(20px, 3vw, 32px) var(--pm-space-section) !important; }
.pm-archive > .woocommerce-breadcrumb, .pm-single > .woocommerce-breadcrumb { margin-top: 0; }
.pm-archive .woocommerce-breadcrumb, .pm-single .woocommerce-breadcrumb { color: var(--color-text-muted); margin-bottom: 12px; }
.pm-archive__head { display: grid; gap: 12px; }
@media (min-width: 900px) { .pm-archive__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.pm-archive__head h1 { margin: 0; }
.pm-chips ul { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 900px) { .pm-chips ul { flex-wrap: wrap; justify-content: flex-end; overflow: visible; } }
.pm-chips a {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	white-space: nowrap;
	border: 1px solid var(--color-border-subtle);
	border-radius: 999px;
	background: #fff;
	color: var(--color-brand-navy);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}
.pm-chips a:hover { border-color: var(--color-brand-navy); }
.pm-toolbar {
	position: sticky;
	top: calc(var(--pm-header-h) + 33px); /* barra superior + cabecera fija */
	z-index: 5;
	padding-block: 10px;
	border-block: 1px solid var(--color-border-subtle);
	background: var(--color-bg-ivory);
	font-size: 14px;
}
@media (min-width: 900px) { .pm-toolbar { position: static; } }
.pm-toolbar .woocommerce-result-count { margin: 0; color: var(--color-text-muted); }
.pm-toolbar select, .pm-single select {
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--color-border-subtle);
	border-radius: 999px;
	background-color: #fff;
	color: var(--color-brand-navy);
	font: inherit;
	font-size: 14px;
}
.wp-block-query-pagination { margin-top: 32px; gap: 8px; }

/* =========================================================================
   9. Ficha de producto
   ========================================================================= */
.pm-product { gap: clamp(20px, 5vw, 56px) !important; }
.pm-product__media img { border-radius: 16px; }
.pm-product__summary { display: flex; flex-direction: column; gap: 14px; }
.pm-product__summary > * { margin: 0 !important; }
@media (min-width: 900px) { .pm-product__summary { position: sticky; top: calc(var(--pm-header-h) + 33px + 24px); align-self: flex-start; } }
.pm-product__summary .wc-block-components-product-price,
.pm-product__summary .price { font-weight: 600; }
.pm-product__summary form.cart { display: flex; flex-direction: column; gap: 12px; }
.pm-product__summary form.cart .variations { width: 100%; border: 0; margin: 0; }
.pm-product__summary form.cart .variations,
.pm-product__summary form.cart .variations tbody,
.pm-product__summary form.cart .variations tr,
.pm-product__summary form.cart .variations th,
.pm-product__summary form.cart .variations td { display: block; width: 100%; border: 0; background: none; }
.pm-product__summary form.cart .variations th { text-align: left; font-size: 14px; font-weight: 600; padding: 0 0 6px; line-height: 1.4; }
.pm-product__summary form.cart .variations td { padding: 0 0 12px; }
.pm-product__summary form.cart .variations select {
	width: 100%;
	height: 48px;
	padding: 0 40px 0 16px;
	line-height: 1.2;
	margin: 0;
}
.pm-product__summary .reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--color-text-muted); }
/* WooCommerce oculta la galería hasta que carga su JS; con JS diferido retrasa el LCP. */
.woocommerce-product-gallery { opacity: 1 !important; }
.pm-product__summary form.cart:not(.variations_form),
.pm-product__summary .woocommerce-variation-add-to-cart { display: flex; gap: 10px; }
.pm-product__summary .single_add_to_cart_button {
	flex: 1;
	min-height: 54px;
	border: 0;
	border-radius: 999px !important;
	background: var(--color-brand-navy) !important;
	color: var(--color-bg-ivory) !important;
	font-weight: 600;
}
.pm-product__summary .single_add_to_cart_button:hover { background: var(--color-brand-rose) !important; color: var(--color-brand-navy) !important; }
.pm-product__summary .quantity input { min-height: 54px; border: 1px solid var(--color-border-subtle); border-radius: 999px; text-align: center; }

.pm-size-guide { border-block: 1px solid var(--color-border-subtle); }
.pm-size-guide summary { min-height: 48px; display: flex; align-items: center; font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-brand-rose); text-underline-offset: 3px; cursor: pointer; }
.pm-size-table { margin: 0 0 12px; overflow-x: auto; }
.pm-size-table table { font-size: 13px; border-collapse: collapse; width: 100%; background: #fff; }
.pm-size-table th, .pm-size-table td { padding: 6px 8px; border: 0; border-bottom: 1px solid var(--color-border-subtle); text-align: left; }

.pm-product-details { margin-top: clamp(40px, 6vw, 72px) !important; }
.pm-product-details .wc-tabs, .pm-product-details ul.tabs { display: flex; gap: 4px; padding: 0 !important; border-bottom: 1px solid var(--color-border-subtle); overflow-x: auto !important; white-space: nowrap; scrollbar-width: none; }
.pm-product-details .wc-tabs li, .pm-product-details ul.tabs li { list-style: none; margin: 0; }
.pm-product-details .wc-tabs li a, .pm-product-details ul.tabs li a { display: block; padding: 12px 16px; color: var(--color-text-muted); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.pm-product-details .wc-tabs li.active a, .pm-product-details ul.tabs li.active a { color: var(--color-brand-navy); border-bottom-color: var(--color-brand-navy); }
.pm-product-details .commentlist { list-style: none; padding: 0; display: grid; gap: 14px; }
.pm-product-details .commentlist .comment_container { padding: 16px; border: 1px solid var(--color-border-subtle); border-radius: var(--pm-radius-card); background: #fff; }
.pm-related { margin-top: clamp(40px, 6vw, 64px) !important; }

/* =========================================================================
   10. Carrito y checkout (bloques de WooCommerce)
   ========================================================================= */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 54px;
	border-radius: 999px !important;
	background: var(--color-brand-navy) !important;
	color: var(--color-bg-ivory) !important;
	font-weight: 600 !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover { background: var(--color-brand-rose) !important; color: var(--color-brand-navy) !important; }
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input { border-radius: 10px !important; border-color: var(--color-border-subtle) !important; }

/* =========================================================================
   11. Pie
   ========================================================================= */
.pm-footer { margin-top: 0 !important; padding-block: clamp(40px, 5vw, 64px) 24px; font-size: 14px; }
.pm-footer a { color: var(--color-bg-ivory); text-decoration: none; }
.pm-footer a:hover { text-decoration: underline; text-decoration-color: var(--color-brand-rose); }
.pm-footer .pm-muted { color: var(--pm-on-navy-muted); font-size: 13px; }
.pm-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-block: 32px; }
.pm-footer__brand, .pm-footer__news { grid-column: 1 / -1; }
@media (min-width: 900px) {
	.pm-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr; gap: 32px; padding-block: 40px; }
	.pm-footer__brand, .pm-footer__news { grid-column: auto; }
}
.pm-footer__grid > * { margin: 0 !important; }
.pm-footer-logo { display: block; line-height: 0; margin-bottom: 12px; }
.pm-footer-logo img { display: block; width: 180px; height: auto; }
.pm-footer__title {
	margin: 0 0 8px !important;
	font-size: 12px !important;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--color-brand-gold) !important;
}
.pm-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-footer__links a { display: inline-flex; min-height: 30px; align-items: center; }
.pm-footer__news-title { margin: 0 0 10px !important; font-size: 17px !important; color: var(--color-bg-ivory) !important; }
.pm-footer .pm-newsletter label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pm-footer .pm-newsletter input[type="email"] { border: 0; background: var(--color-bg-ivory); }
.pm-footer .pm-newsletter button { background: var(--color-brand-rose); color: var(--color-brand-navy); }
.pm-footer .pm-newsletter button:hover { background: var(--color-bg-ivory); }
.pm-footer .pm-newsletter__legal, .pm-footer .pm-newsletter__legal a { color: var(--pm-on-navy-muted); }
.pm-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 18px; border-top: 1px solid #3A4A5C; font-size: 12px; color: var(--pm-on-navy-muted); }
.pm-footer__legal p { margin: 0; }

/* =========================================================================
   12. 404 y Quiénes somos
   ========================================================================= */
.pm-404 { padding-block: 48px; text-align: center; }
.pm-404 > * { margin-inline: auto; }
.pm-404 .pm-subtitle { justify-content: center; }
.pm-404__icon { width: 96px; height: auto; }
.pm-404__links { list-style: none; margin: 16px auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pm-404__links a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--color-border-subtle); border-radius: 12px; background: #fff; text-decoration: none; font-size: 14px; font-weight: 500; }
.pm-search-big .wp-block-search__inside-wrapper { border: 1px solid var(--color-border-subtle); border-radius: 999px; background: #fff; padding: 4px; }
.pm-search-big .wp-block-search__input { border: 0; padding-inline: 14px; background: transparent; }
.pm-search-big .wp-block-search__button { border-radius: 999px; }

.pm-about-hero { padding-block: 40px; text-align: center; margin-top: 0 !important; }
.pm-about-hero__logo { width: 220px; height: auto; display: block; margin: 0 auto 8px; }
.pm-commitments { list-style: none; padding: 0; display: grid; gap: 10px; }
.pm-commitments li { padding: 14px 16px; border: 1px solid var(--color-border-subtle); border-radius: var(--pm-radius-card); background: #fff; }
.pm-vendor table { font-size: 14px; border-collapse: collapse; }
.pm-vendor th, .pm-vendor td { border: 0; border-bottom: 1px solid var(--color-border-subtle); padding: 8px 12px 8px 0; text-align: left; }
.pm-vendor th { color: var(--color-text-muted); font-weight: 500; width: 120px; }
.pm-contact-box { margin-block: 40px 0; padding: 28px clamp(20px, 4vw, 40px) !important; border-radius: 20px; }
.pm-contact-box p { color: var(--pm-on-navy-muted); }

/* =========================================================================
   13. Páginas de texto (ayuda y legales)
   ========================================================================= */
.pm-draft-note { padding: 12px 16px; border: 1px dashed var(--color-brand-gold); border-radius: 12px; background: var(--color-bg-blush); font-size: 14px; }
.pm-page .wp-block-table table { font-size: 14px; border-collapse: collapse; }
.pm-page .wp-block-table th, .pm-page .wp-block-table td { padding: 8px 10px; border: 0; border-bottom: 1px solid var(--color-border-subtle); text-align: left; vertical-align: top; }
.pm-page .wp-block-table thead th { border-bottom: 2px solid var(--color-brand-navy); }
.pm-page .wp-block-details { border-bottom: 1px solid var(--color-border-subtle); padding-block: 4px; }
.pm-page .wp-block-details summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.pm-page .wp-block-quote { border-left: 2px solid var(--color-brand-gold); padding-left: 16px; }

/* =========================================================================
   14. Estados vacíos y detalles
   ========================================================================= */
.pm-empty { padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); border: 1px solid var(--color-border-subtle); border-radius: var(--pm-radius-box); background: var(--color-bg-blush); text-align: center; }
.pm-empty > * { margin: 0 auto 12px !important; max-width: 520px; }
.pm-empty .pm-subtitle { justify-content: center; }
.pm-empty .wp-block-buttons { justify-content: center; margin-top: 20px !important; }
.pm-cats__name { display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 600px) { .pm-cats__name { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; } }
.pm-cats__meta { color: var(--color-text-muted); font-size: 13px; font-weight: 500; }
.pm-arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.pm-arrow-link::after { content: "→"; transition: transform .25s var(--pm-ease); }
.pm-arrow-link:hover { text-decoration: none; }
.pm-arrow-link:hover::after { transform: translateX(4px); }

/* =========================================================================
   15. Interacción y animaciones
   Solo transform y opacity (no mueven el resto de la página). Todo se desactiva con
   "reducir movimiento".
   ========================================================================= */

/* Aparición al hacer scroll (la clase la pone assets/js/pm-ui.js solo a lo que está por debajo) */
.pm-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .7s var(--pm-ease) var(--pm-delay, 0ms), transform .7s var(--pm-ease) var(--pm-delay, 0ms);
}
.pm-reveal.is-in { opacity: 1; transform: none; }

/* Entrada de la portada: solo desplazamiento (sin opacidad 0, para no retrasar el LCP) */
.pm-hero__text > *, .pm-hero__ctas { animation: pm-lift .8s var(--pm-ease) both; }
.pm-hero__text > :nth-child(2) { animation-delay: .06s; }
.pm-hero__text > :nth-child(3) { animation-delay: .12s; }
.pm-hero__ctas { animation-delay: .18s; }
@keyframes pm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pm-lift { from { transform: translateY(12px); } to { transform: none; } }

/* Botones */
.wp-element-button, .wp-block-button__link, .pm-newsletter button, .single_add_to_cart_button {
	transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--pm-ease) !important;
}
.wp-element-button:hover, .wp-block-button__link:hover, .pm-newsletter button:hover, .single_add_to_cart_button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(28, 42, 58, .14);
	text-decoration: none;
}
.wp-element-button:active, .wp-block-button__link:active, .single_add_to_cart_button:active { transform: translateY(0); box-shadow: none; }

/* Tarjetas de producto */
.pm-products .wc-block-product {
	transition: transform .35s var(--pm-ease), box-shadow .35s var(--pm-ease), border-color .35s;
}
.pm-products .wc-block-product:hover { transform: translateY(-4px); box-shadow: var(--pm-shadow-hover); border-color: transparent; }
.pm-products .wc-block-components-product-image img { transition: transform .6s var(--pm-ease); }
.pm-products .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.04); }

/* Tarjetas de categoría */
.pm-cats__grid a { transition: transform .35s var(--pm-ease); }
.pm-cats__img { transition: box-shadow .35s var(--pm-ease); }
.pm-cats__grid a:hover .pm-cats__img { box-shadow: var(--pm-shadow-hover); }
.pm-cats__grid a:hover .pm-cats__img img { transform: scale(1.04); }
.pm-cats__img img { transition: transform .6s var(--pm-ease) !important; }

/* Enlaces de texto y pie: subrayado que entra */
.pm-footer__links a, .pm-page .wp-block-post-content a {
	text-decoration: none;
	background-image: linear-gradient(var(--color-brand-rose), var(--color-brand-rose));
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .3s var(--pm-ease), color .2s;
}
.pm-page .wp-block-post-content a { background-size: 100% 1px; }
.pm-footer__links a:hover, .pm-page .wp-block-post-content a:hover { background-size: 100% 2px; text-decoration: none; }

/* Campos */
.pm-newsletter input[type="email"], .pm-toolbar select, .pm-single select { transition: border-color .2s, box-shadow .2s; }
.pm-newsletter input[type="email"]:focus, .pm-toolbar select:focus, .pm-single select:focus { outline: 0; border-color: var(--color-brand-navy); box-shadow: 0 0 0 3px rgba(215, 171, 128, .35); }

/* Preguntas frecuentes */
.pm-page .wp-block-details summary { transition: color .2s; }
.pm-page .wp-block-details summary:hover { color: var(--color-text-muted); }
.pm-page .wp-block-details[open] > :not(summary) { animation: pm-rise .35s var(--pm-ease) both; }

/* Transición suave entre páginas (navegadores que la admiten) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.pm-reveal { opacity: 1; transform: none; }
	@view-transition { navigation: none; }
}

/* =========================================================================
   16. Alineación con la rejilla (todo arranca en el mismo borde izquierdo)
   ========================================================================= */
/* Bloques de texto "estrechos" (820 px) alineados a la izquierda de la rejilla, no centrados. */
.pm-seo.is-layout-constrained > * {
	max-width: 820px;
	margin-left: max(0px, calc((100% - var(--pm-wide)) / 2)) !important;
	margin-right: auto !important;
}
.pm-footer.is-layout-constrained > .pm-garantias--footer { max-width: var(--pm-wide) !important; }
/* Tarjetas de categoría: proporción horizontal en escritorio (va después de la regla base). */
@media (min-width: 900px) {
	.pm-cats__grid .pm-cats__img { aspect-ratio: 16 / 9; }
	.pm-cats__grid:has(> li:nth-child(4)) .pm-cats__img { aspect-ratio: 3 / 4; }
}
/* Sin productos publicados, la sección Novedades no se muestra. */
.pm-section:has(.wp-block-woocommerce-product-collection-no-results) { display: none; }

/* Barra superior en móvil: puede ocupar dos líneas si el texto no cabe (sin cortar). */
@media (max-width: 599px) {
	/* En móvil puede ocupar dos líneas si el texto no cabe (sin cortar). */
	.pm-topbar { height: auto; min-height: 32px; padding-block: 6px; white-space: normal; flex-wrap: wrap; column-gap: .4em; row-gap: 0; font-size: 11.5px; }
}

/* =========================================================================
   17. Contacto (templates/page-contacto.html + patterns/contacto.php)
   ========================================================================= */
.pm-contact { padding-block: clamp(32px, 5vw, 72px) var(--pm-space-section); background: linear-gradient(180deg, var(--color-bg-blush) 0%, var(--color-bg-ivory) 420px); }
.pm-contact__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 900px) { .pm-contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.pm-contact__intro { display: flex; flex-direction: column; gap: 16px; }
.pm-contact__intro > * { margin: 0; }
.pm-contact__title { font-size: var(--wp--preset--font-size--display, 48px); line-height: 1.1; }
.pm-contact__lead { color: var(--color-text-muted); font-size: 17px; max-width: 440px; }
.pm-contact__cards { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 8px !important; }
.pm-contact__card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--color-border-subtle);
	border-radius: var(--pm-radius-card);
	background: var(--color-surface-white);
	transition: transform .3s var(--pm-ease), box-shadow .3s var(--pm-ease), border-color .3s;
}
.pm-contact__card:hover { transform: translateY(-2px); box-shadow: var(--pm-shadow-hover); border-color: transparent; }
.pm-contact__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-bg-blush); color: var(--color-brand-navy); }
.pm-contact__label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.pm-contact__value { display: block; font-size: 17px; font-weight: 600; color: var(--color-brand-navy); text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 599px) {
	.pm-contact__card { padding: 16px; gap: 14px; }
	.pm-contact__icon { width: 44px; height: 44px; }
	.pm-contact__value { font-size: 15px; }
}
a.pm-contact__value:hover { text-decoration: underline; text-decoration-color: var(--color-brand-rose); }
.pm-contact__tip { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-left: 2px solid var(--color-brand-gold); background: rgba(255, 255, 255, .6); border-radius: 0 12px 12px 0; font-size: 14px; color: var(--color-text-muted); }
.pm-contact__tip svg { flex: none; margin-top: 2px; color: var(--color-brand-gold); }
.pm-contact__links { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-contact__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--color-border-subtle); border-radius: 999px; background: #fff; color: var(--color-brand-navy); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s, background-color .2s; }
.pm-contact__links a:hover { border-color: var(--color-brand-navy); background: var(--color-bg-blush); }

.pm-contact__form {
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid var(--color-border-subtle);
	border-radius: 24px;
	background: var(--color-surface-white);
	box-shadow: 0 24px 60px rgba(28, 42, 58, .07);
}
.pm-contact__form-title { margin: 0 0 6px; font-size: var(--wp--preset--font-size--x-large, 26px); }
.pm-contact__form-lead { margin: 0 0 24px; color: var(--color-text-muted); font-size: 15px; }

/* Formulario */
.pm-form { display: flex; flex-direction: column; gap: 18px; }
.pm-form__grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .pm-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-field--full { grid-column: 1 / -1; } }
.pm-field { display: flex; flex-direction: column; gap: 6px; }
.pm-field label { font-size: 14px; font-weight: 600; }
.pm-field label span[aria-hidden] { color: #B5523F; }
.pm-field__opt { color: var(--color-text-muted); font-weight: 400; }
.pm-field input, .pm-field select, .pm-field textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid var(--color-border-subtle);
	border-radius: 12px;
	background: var(--color-bg-ivory);
	color: var(--color-brand-navy);
	font: inherit;
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.pm-field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.pm-field input::placeholder, .pm-field textarea::placeholder { color: #8A97A4; }
.pm-field input:hover, .pm-field select:hover, .pm-field textarea:hover { border-color: #D9C6BD; }
.pm-field input:focus, .pm-field select:focus, .pm-field textarea:focus { outline: 0; background: #fff; border-color: var(--color-brand-navy); box-shadow: 0 0 0 3px rgba(215, 171, 128, .35); }
.pm-form [aria-invalid="true"] { border-color: #B5523F !important; box-shadow: 0 0 0 3px rgba(181, 82, 63, .15) !important; }
.pm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.pm-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--color-brand-navy); }
.pm-check:has([aria-invalid="true"]) { color: #B5523F; }
.pm-form__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: var(--color-brand-navy);
	color: var(--color-bg-ivory);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s, color .25s, transform .25s var(--pm-ease), box-shadow .25s;
}
.pm-form .pm-form__btn { width: 100%; }
@media (min-width: 600px) { .pm-form .pm-form__btn { width: auto; align-self: flex-start; } }
.pm-form__btn:hover { background: var(--color-brand-rose); color: var(--color-brand-navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(28, 42, 58, .14); text-decoration: none; }
.pm-form__btn--ghost { background: transparent; color: var(--color-brand-navy); box-shadow: inset 0 0 0 1px var(--color-brand-navy); }
.pm-form__btn.is-loading { color: transparent; pointer-events: none; }
.pm-form__btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border: 2px solid var(--color-bg-ivory); border-right-color: transparent; border-radius: 50%; animation: pm-spin .7s linear infinite; }
@keyframes pm-spin { to { transform: rotate(360deg); } }
.pm-form__legal { margin: 0; font-size: 12px; line-height: 1.5; color: var(--color-text-muted); }
.pm-form__legal a { color: inherit; }
.pm-form__error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FBEAE7; color: #8A3526; font-size: 14px; }
.pm-form-ok { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; outline: 0; animation: pm-rise .5s var(--pm-ease) both; }
.pm-form-ok svg { color: #3F7A5A; }
.pm-form-ok h2, .pm-form-ok p { margin: 0; }
.pm-form-ok p { color: var(--color-text-muted); }

/* Preguntas frecuentes (acordeón) */
.pm-contact-faq { padding-block: var(--pm-space-section); border-top: 1px solid var(--color-border-subtle); }
.pm-contact-faq__grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (min-width: 900px) { .pm-contact-faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } .pm-contact-faq__head { position: sticky; top: calc(var(--pm-header-h) + 33px + 24px); } }
.pm-contact-faq__head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pm-contact-faq__head > * { margin: 0; }
.pm-faq { border-top: 1px solid var(--color-border-subtle); }
.pm-faq__item { border-bottom: 1px solid var(--color-border-subtle); }
.pm-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 12px 0;
	font-size: 17px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	transition: color .2s;
}
.pm-faq__item summary::-webkit-details-marker { display: none; }
.pm-faq__item summary:hover { color: var(--color-text-muted); }
.pm-faq__sign { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--color-bg-blush); transition: background-color .25s, transform .3s var(--pm-ease); }
.pm-faq__sign::before, .pm-faq__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; border-radius: 2px; background: var(--color-brand-navy); transition: transform .3s var(--pm-ease); }
.pm-faq__sign::after { transform: rotate(90deg); }
.pm-faq__item[open] .pm-faq__sign { background: var(--color-brand-rose); }
.pm-faq__item[open] .pm-faq__sign::after { transform: rotate(0deg); }
.pm-faq__a { padding: 0 48px 20px 0; color: var(--color-text-muted); }
.pm-faq__a p { margin: 0; }
.pm-faq__item[open] .pm-faq__a { animation: pm-rise .35s var(--pm-ease) both; }

/* =========================================================================
   18. Buscador de escritorio (crece hacia la izquierda dentro de la cabecera)
   ========================================================================= */
/* El hueco ocupa 44 px fijos; el formulario se abre por encima hacia la izquierda, sin mover nada. */
.pm-hsearch-slot { position: relative; width: 44px; height: 44px; flex: none; }
.pm-hsearch {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: transparent;
	box-shadow: inset 0 0 0 1px transparent;
	transition: width .4s var(--pm-ease), background-color .3s, box-shadow .3s;
}
.pm-hsearch__toggle { flex: none; position: relative; z-index: 1; }
.pm-hsearch__input {
	flex: 1;
	min-width: 0;
	width: 0;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-brand-navy);
	font: inherit;
	font-size: 15px;
	opacity: 0;
	transition: opacity .2s;
	-webkit-appearance: none;
	appearance: none;
}
.pm-hsearch__input::-webkit-search-cancel-button { display: none; }
.pm-hsearch__input:focus { outline: 0; }
.pm-hsearch__close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0;
	height: 36px;
	margin-right: 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--color-text-muted);
	cursor: pointer;
	opacity: 0;
	overflow: hidden;
	transition: opacity .2s, background-color .2s;
}
.pm-hsearch__close svg { width: 18px; height: 18px; }
.pm-hsearch__close:hover { background: var(--color-bg-blush); color: var(--color-brand-navy); }
.pm-hsearch.is-open {
	/* Hasta el borde del menú central: mitad de pantalla − mitad del menú − iconos de la derecha. */
	width: clamp(200px, calc(50vw - 340px), 340px);
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--color-border-subtle), 0 6px 18px rgba(28, 42, 58, .06);
}
.pm-hsearch.is-open:focus-within { box-shadow: inset 0 0 0 1px var(--color-brand-navy), 0 0 0 3px rgba(215, 171, 128, .35); }
.pm-hsearch.is-open .pm-hsearch__toggle:hover { background: transparent; }
.pm-hsearch.is-open .pm-hsearch__input { opacity: 1; transition-delay: .12s; }
.pm-hsearch.is-open .pm-hsearch__close { width: 36px; opacity: 1; transition-delay: .12s; }
/* En pantallas estrechas el buscador abierto tapa el menú: se oculta mientras tanto. */
.pm-nav { transition: opacity .25s; }
@media (max-width: 1023px) { .pm-header__row:has(.pm-hsearch.is-open) .pm-nav { opacity: 0; pointer-events: none; } }

/* =========================================================================
   Cabecera de categoría con fondo (27-nov): foto de la temporada + degradado navy a la izquierda
   ========================================================================= */
.pm-archive__head.has-bg {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex !important;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 14px;
	box-sizing: border-box;
	min-height: clamp(260px, 30vw, 400px);
	padding: clamp(24px, 4.5vw, 64px);
	border-radius: 24px;
	background: var(--color-brand-navy);
	color: #fff;
}
.pm-archive__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 78%; transform: scale(1.02); animation: pm-archive-bg 1.2s var(--pm-ease) both; }
@keyframes pm-archive-bg { from { transform: scale(1.08); } to { transform: scale(1.02); } }
.pm-archive__head.has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(20, 30, 42, .86) 0%, rgba(20, 30, 42, .62) 36%, rgba(20, 30, 42, .12) 72%, rgba(20, 30, 42, 0) 100%),
		linear-gradient(0deg, rgba(20, 30, 42, .45) 0%, rgba(20, 30, 42, 0) 55%);
}
.pm-archive__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 !important; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--color-brand-gold); }
.pm-archive__eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.pm-archive__head.has-bg h1 { max-width: 17ch; color: #fff; font-size: clamp(34px, 4.8vw, 64px) !important; line-height: 1.04; letter-spacing: -.015em; }
.pm-archive__lead { max-width: 44ch; margin: 0 !important; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.55; color: rgba(255, 255, 255, .88); }
.pm-archive__head.has-bg .pm-chips { margin-top: 6px; }
.pm-archive__head.has-bg .pm-chips ul { justify-content: flex-start; }
.pm-archive__head.has-bg .pm-chips a { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pm-archive__head.has-bg .pm-chips a:hover { border-color: #fff; background: rgba(255, 255, 255, .22); }
@media (max-width: 599px) {
	.pm-archive__head.has-bg { min-height: 300px; border-radius: 18px; }
	.pm-archive__head.has-bg::before { background: linear-gradient(0deg, rgba(20, 30, 42, .9) 0%, rgba(20, 30, 42, .55) 55%, rgba(20, 30, 42, .15) 100%); }
	.pm-archive__bg { object-position: 62% 80%; }
}
@media (prefers-reduced-motion: reduce) { .pm-archive__bg { animation: none; } }

/* =========================================================================
   Sin recuadro al pulsar (27-nov): ni el resaltado del toque ni el contorno de foco tras un clic.
   Con teclado se mantiene el contorno dorado (:focus-visible) por accesibilidad; los botones
   redondos del menú (cuenta, cesta, buscar) conservan su resaltado porque sigue su forma.
   ========================================================================= */
html { -webkit-tap-highlight-color: transparent; }
.pm-iconbtn { -webkit-tap-highlight-color: initial; }
:focus:not(:focus-visible) { outline: none; }
html.pm-pointer :focus:not(.pm-iconbtn) { outline: none !important; }

