/* ==========================================================================
   Vitalmyl Shop — sistema de diseño de vitalmyl.com aplicado a WooCommerce
   Fuente: vitalmyl/src/index.css, tailwind.config.ts y componentes React.

   Las reglas de WooCommerce usan el ámbito `body.vm-theme:not(#vm)`: el
   `:not(#vm)` suma especificidad de id para ganar a los estilos por defecto
   de WooCommerce y del kit de Elementor sin recurrir a !important.
   ========================================================================== */

:root {
	--vm-font-heading: 'Optima', 'Didot', 'Georgia', serif;
	--vm-font-body: 'DM Sans', 'Hanken Grotesk', 'Helvetica Neue', sans-serif;
	--vm-font-nav: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

	/* Colores como tripletes HSL (igual que en vitalmyl.com) para poder usar alfa. */
	--vm-background: 40 20% 97%;
	--vm-foreground: 30 10% 15%;
	--vm-card: 40 20% 99%;
	--vm-primary: 30 25% 55%;
	--vm-primary-foreground: 40 20% 97%;
	--vm-secondary: 82 20% 52%;
	--vm-muted: 40 15% 92%;
	--vm-muted-foreground: 30 8% 50%;
	--vm-accent: 196 50% 80%;
	--vm-destructive: 0 84.2% 60.2%;
	--vm-border: 35 15% 88%;

	--vm-product-zinc: 45 78% 75%;
	--vm-product-potasio: 82 20% 52%;
	--vm-product-calcio: 196 50% 80%;
	--vm-product-magnesio: 14 38% 77%;
	--vm-product-magnesio375: 264 47% 90%;
	--vm-product-hair: 30 30% 61%;

	--vm-nav-height: 4rem;
	--vm-tracking-widest: 0.1em;
	--vm-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tipografías del kit de Elementor → las de vitalmyl.com */
body.vm-theme[class*='elementor-kit-'] {
	--e-global-typography-primary-font-family: var(--vm-font-heading);
	--e-global-typography-secondary-font-family: var(--vm-font-heading);
	--e-global-typography-text-font-family: var(--vm-font-body);
	--e-global-typography-accent-font-family: var(--vm-font-body);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body.vm-theme {
	background-color: hsl(var(--vm-background));
	color: hsl(var(--vm-foreground));
	font-family: var(--vm-font-body);
	padding-top: var(--vm-nav-height);
	-webkit-font-smoothing: antialiased;
}

body.vm-theme,
body.vm-theme * {
	cursor: url('../img/cursor.png') 14 14, auto;
}

body.vm-theme h1,
body.vm-theme h2,
body.vm-theme h3,
body.vm-theme h4,
body.vm-theme h5,
body.vm-theme h6 {
	font-family: var(--vm-font-heading);
	font-weight: 400;
	letter-spacing: 0.04em;
	color: inherit;
}

body.vm-theme a {
	color: hsl(var(--vm-foreground));
	transition: color 0.15s var(--vm-ease), opacity 0.15s var(--vm-ease);
}

body.vm-theme ::selection {
	background: hsl(var(--vm-accent));
	color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .site-main {
	max-width: 1400px;
	padding-inline: 1.5rem;
}

.vm-eyebrow {
	font-family: var(--vm-font-body);
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	opacity: 0.7;
	margin: 0 0 0.25rem;
}

/* Cabecera de sección: antetítulo + titular en versalitas */
.vm-section-heading {
	text-align: center;
	margin-bottom: 4rem;
}

.vm-subheading {
	font-family: var(--vm-font-body);
	font-weight: 300;
	font-size: 0.875rem;
	line-height: 1.25rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-muted-foreground));
	margin: 0 0 0.75rem;
}

body.vm-theme .vm-heading {
	font-family: var(--vm-font-heading);
	font-size: 1.875rem;
	line-height: 2.25rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: hsl(var(--vm-foreground));
	margin: 0;
}

@media (min-width: 768px) {
	body.vm-theme .vm-heading {
		font-size: 3rem;
		line-height: 1;
	}
}

/* --------------------------------------------------------------------------
   Navegación (Navbar.tsx)
   -------------------------------------------------------------------------- */

.vm-nav {
	position: fixed;
	inset: 0 0 auto;
	z-index: 9998;
	background: #fff;
	border-bottom: 1px solid hsl(var(--vm-border));
}

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

@media (max-width: 782px) {
	.admin-bar .vm-nav {
		top: 46px;
	}
}

.vm-nav__bar {
	display: flex;
	align-items: center;
	height: var(--vm-nav-height);
	padding-inline: 1rem;
}

.vm-nav__side {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.vm-nav__side--right {
	justify-content: flex-end;
}

body.vm-theme .vm-nav__link {
	font-family: var(--vm-font-nav);
	font-weight: 300;
	font-size: 0.875rem;
	line-height: 1.25rem;
	letter-spacing: -0.044em;
	text-transform: uppercase;
	color: #000;
	text-decoration: none;
}

body.vm-theme .vm-nav__link:hover,
body.vm-theme .vm-nav__icon:hover {
	color: #9ca3af;
}

.vm-nav__logo {
	display: block;
	flex-shrink: 0;
}

body.vm-theme .vm-nav__logo img {
	display: block;
	height: 3rem;
	width: auto;
}

body.vm-theme .vm-nav__icon {
	position: relative;
	display: inline-flex;
	color: #000;
}

.vm-cart-count {
	position: absolute;
	top: -0.375rem;
	right: -0.5rem;
	min-width: 1rem;
	height: 1rem;
	padding: 0 0.25rem;
	border-radius: 9999px;
	background: hsl(var(--vm-foreground));
	color: hsl(var(--vm-primary-foreground));
	font-family: var(--vm-font-body);
	font-size: 0.625rem;
	line-height: 1rem;
	text-align: center;
}

.vm-cart-count.is-empty {
	display: none;
}

body.vm-theme .vm-nav__toggle {
	display: inline-flex;
	padding: 0;
	border: 0;
	background: none;
	color: hsl(var(--vm-foreground));
}

.vm-nav__toggle-close,
.vm-nav__toggle[aria-expanded='true'] .vm-nav__toggle-open {
	display: none;
}

.vm-nav__toggle[aria-expanded='true'] .vm-nav__toggle-close {
	display: inline-flex;
}

.vm-nav__mobile {
	background: #fff;
	border-top: 1px solid hsl(var(--vm-border));
	padding: 1rem 1.5rem;
	animation: vm-fade-in 0.8s ease-out forwards;
}

.vm-nav__mobile[hidden] {
	display: none;
}

.vm-nav__mobile .vm-nav__link {
	display: block;
	padding-block: 0.75rem;
}

@media (max-width: 767px) {
	.vm-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.vm-nav__bar {
		padding-inline: 4rem;
	}

	body.vm-theme .vm-nav__toggle,
	.vm-nav__mobile {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Pie (Footer.tsx)
   -------------------------------------------------------------------------- */

.vm-footer {
	padding: 4rem 1.5rem;
	background: hsl(var(--vm-foreground));
	color: hsl(var(--vm-primary-foreground));
}

.vm-footer__inner {
	max-width: 64rem;
	margin-inline: auto;
	padding-inline: 2rem;
}

.vm-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	margin-bottom: 4rem;
}

@media (min-width: 768px) {
	.vm-footer__grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.vm-footer__brand {
		grid-column: span 2;
	}
}

body.vm-theme .vm-footer__logo {
	display: block;
	height: 3rem;
	width: auto;
	margin-bottom: 1rem;
	filter: brightness(0) invert(1);
}

.vm-footer__claim {
	max-width: 24rem;
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	line-height: 1.625;
	color: hsl(var(--vm-primary-foreground) / 0.6);
}

.vm-footer__social {
	display: flex;
	gap: 1rem;
}

body.vm-theme .vm-footer__social a {
	color: hsl(var(--vm-primary-foreground) / 0.5);
}

.vm-footer__label {
	margin: 0 0 1rem;
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-primary-foreground) / 0.4);
}

.vm-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

body.vm-theme .vm-footer__links a {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: hsl(var(--vm-primary-foreground) / 0.7);
	text-decoration: none;
}

.vm-footer__contact {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.vm-footer__contact svg {
	flex-shrink: 0;
	margin-top: 0.125rem;
}

.vm-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	border-top: 1px solid hsl(var(--vm-primary-foreground) / 0.1);
	font-size: 0.75rem;
	line-height: 1rem;
	color: hsl(var(--vm-primary-foreground) / 0.4);
}

.vm-footer__bottom p {
	margin: 0;
}

.vm-footer__legal {
	display: flex;
	gap: 1.5rem;
}

body.vm-theme .vm-footer__legal a {
	color: hsl(var(--vm-primary-foreground) / 0.4);
	text-decoration: none;
}

body.vm-theme .vm-footer__social a:hover,
body.vm-theme .vm-footer__links a:hover {
	color: hsl(var(--vm-primary-foreground));
}

body.vm-theme .vm-footer__legal a:hover {
	color: hsl(var(--vm-primary-foreground) / 0.7);
}

@media (min-width: 768px) {
	.vm-footer__bottom {
		flex-direction: row;
	}
}

/* --------------------------------------------------------------------------
   Botones, campos y avisos (WooCommerce clásico y bloques)
   Botón principal = "Comprar ahora" / "Enviar mensaje" de vitalmyl.com
   -------------------------------------------------------------------------- */

body.vm-theme:not(#vm) .button,
body.vm-theme:not(#vm) button[type='submit']:not(.vm-nav__toggle),
body.vm-theme:not(#vm) input[type='submit'],
body.vm-theme:not(#vm) .wc-block-components-button:not(.is-link),
body.vm-theme:not(#vm) .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 2.5rem;
	border: 1px solid hsl(var(--vm-foreground));
	border-radius: 0;
	background: hsl(var(--vm-foreground));
	color: hsl(var(--vm-primary-foreground));
	font-family: var(--vm-font-body);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.25rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: none;
	transition: background-color 0.3s var(--vm-ease), color 0.3s var(--vm-ease);
}

body.vm-theme:not(#vm) .button:hover,
body.vm-theme:not(#vm) button[type='submit']:not(.vm-nav__toggle):hover,
body.vm-theme:not(#vm) input[type='submit']:hover,
body.vm-theme:not(#vm) .wc-block-components-button:not(.is-link):hover,
body.vm-theme:not(#vm) .wp-element-button:hover {
	background: transparent;
	color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .button:disabled,
body.vm-theme:not(#vm) .button.disabled,
body.vm-theme:not(#vm) .wc-block-components-button:disabled {
	opacity: 0.4;
	background: hsl(var(--vm-foreground));
	color: hsl(var(--vm-primary-foreground));
}

/* Enlace de texto en versalitas ("Comprar →") */
body.vm-theme:not(#vm) .vm-link-cta,
body.vm-theme:not(#vm) a.added_to_cart {
	display: inline-block;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--vm-font-body);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	text-decoration: none;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) .vm-link-cta:hover,
body.vm-theme:not(#vm) a.added_to_cart:hover {
	color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .vm-link-cta.loading {
	opacity: 0.5;
}

body.vm-theme:not(#vm) .vm-link-cta.added::after {
	content: ' ✓';
	position: static;
	margin: 0;
	font-family: inherit;
}

body.vm-theme:not(#vm) .vm-link-cta--out {
	color: hsl(var(--vm-destructive) / 0.7);
}

body.vm-theme:not(#vm) .vm-link-cta--out:hover {
	color: hsl(var(--vm-destructive));
}

/* Campos (formulario de contacto de vitalmyl.com) */
body.vm-theme:not(#vm) .woocommerce form .input-text,
body.vm-theme:not(#vm) .woocommerce form select,
body.vm-theme:not(#vm) .woocommerce form textarea,
body.vm-theme:not(#vm) .comment-form input:not([type='submit']):not([type='checkbox']),
body.vm-theme:not(#vm) .comment-form textarea,
body.vm-theme:not(#vm) .quantity .qty {
	padding: 0.75rem 1rem;
	border: 1px solid hsl(var(--vm-foreground) / 0.3);
	border-radius: 0;
	background: transparent;
	font-family: var(--vm-font-body);
	font-size: 0.875rem;
	color: hsl(var(--vm-foreground));
	box-shadow: none;
	transition: border-color 0.15s var(--vm-ease);
}

body.vm-theme:not(#vm) .woocommerce form .input-text:focus,
body.vm-theme:not(#vm) .woocommerce form select:focus,
body.vm-theme:not(#vm) .woocommerce form textarea:focus,
body.vm-theme:not(#vm) .quantity .qty:focus {
	outline: none;
	border-color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .woocommerce form .form-row label,
body.vm-theme:not(#vm) .comment-form label {
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-foreground) / 0.6);
}

body.vm-theme input[type='checkbox'],
body.vm-theme input[type='radio'] {
	accent-color: hsl(var(--vm-foreground));
}

/* Campos de los bloques de carrito y checkout (se respeta su etiqueta flotante) */
body.vm-theme:not(#vm) .wc-block-components-text-input input,
body.vm-theme:not(#vm) .wc-block-components-combobox .wc-block-components-combobox-control input,
body.vm-theme:not(#vm) .wc-blocks-components-select .wc-blocks-components-select__select,
body.vm-theme:not(#vm) .wc-block-components-textarea,
body.vm-theme:not(#vm) .wc-block-components-quantity-selector {
	border: 1px solid hsl(var(--vm-foreground) / 0.3);
	border-radius: 0;
	background-color: transparent;
	color: hsl(var(--vm-foreground));
	font-family: var(--vm-font-body);
}

body.vm-theme:not(#vm) .wc-block-components-text-input input:focus,
body.vm-theme:not(#vm) .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.vm-theme:not(#vm) .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.vm-theme:not(#vm) .wc-block-components-textarea:focus {
	border-color: hsl(var(--vm-foreground));
	box-shadow: inset 0 0 0 1px hsl(var(--vm-foreground));
	outline: none;
}

/* Avisos */
body.vm-theme:not(#vm) .woocommerce-message,
body.vm-theme:not(#vm) .woocommerce-info,
body.vm-theme:not(#vm) .woocommerce-error,
body.vm-theme:not(#vm) .wc-block-components-notice-banner {
	border-radius: 0;
	border: 1px solid hsl(var(--vm-border));
	border-left: 3px solid hsl(var(--vm-primary));
	background: hsl(var(--vm-card));
	color: hsl(var(--vm-foreground));
	font-family: var(--vm-font-body);
	font-size: 0.875rem;
}

body.vm-theme:not(#vm) .woocommerce-error,
body.vm-theme:not(#vm) .wc-block-components-notice-banner.is-error {
	border-left-color: hsl(var(--vm-destructive));
}

body.vm-theme:not(#vm) .woocommerce-message::before,
body.vm-theme:not(#vm) .woocommerce-info::before {
	color: hsl(var(--vm-primary));
}

body.vm-theme:not(#vm) .woocommerce-message .button,
body.vm-theme:not(#vm) .woocommerce-info .button {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: hsl(var(--vm-foreground));
	font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Listado de productos (ProductGrid.tsx)
   -------------------------------------------------------------------------- */

body.vm-theme:not(#vm).woocommerce-shop .site-main,
body.vm-theme:not(#vm).tax-product_cat .site-main,
body.vm-theme:not(#vm).tax-product_tag .site-main,
body.vm-theme:not(#vm).post-type-archive-product .site-main {
	padding-block: 6rem;
}

body.vm-theme:not(#vm) ul.products {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 72rem;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

body.vm-theme:not(#vm) ul.products::before,
body.vm-theme:not(#vm) ul.products::after {
	content: none;
}

@media (min-width: 640px) {
	body.vm-theme:not(#vm) ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	body.vm-theme:not(#vm) ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

body.vm-theme:not(#vm) ul.products li.product.vm-card {
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
	text-align: left;
	animation: vm-fade-up 0.6s ease-out both;
}

.vm-card:nth-child(2) { animation-delay: 0.1s !important; }
.vm-card:nth-child(3) { animation-delay: 0.2s !important; }
.vm-card:nth-child(4) { animation-delay: 0.3s !important; }
.vm-card:nth-child(5) { animation-delay: 0.4s !important; }
.vm-card:nth-child(n + 6) { animation-delay: 0.5s !important; }

/* Color de cada línea de producto */
.vm-card {
	--vm-card-color: hsl(var(--vm-muted));
	--vm-card-text: hsl(var(--vm-foreground));
	--vm-card-divider: currentColor;
}

.vm-line-zinc { --vm-card-color: hsl(var(--vm-product-zinc)); }
.vm-line-calcio { --vm-card-color: hsl(var(--vm-product-calcio)); }
.vm-line-magnesio { --vm-card-color: hsl(var(--vm-product-magnesio)); }
.vm-line-magnesio375 { --vm-card-color: hsl(var(--vm-product-magnesio375)); }
.vm-line-hair { --vm-card-color: hsl(var(--vm-product-hair)); }
.vm-line-potasio {
	--vm-card-color: hsl(var(--vm-product-potasio));
	--vm-card-text: hsl(var(--vm-primary-foreground));
	--vm-card-divider: #fff;
}


/* Giro: --vm-flip vale 0 (anverso) o 1 (reverso) */
body.vm-theme .vm-card__flip {
	--vm-flip: 0;
	display: block;
	perspective: 1000px;
	color: var(--vm-card-text);
	text-decoration: none;
}

@media (hover: hover) {
	body.vm-theme .vm-card__flip:hover {
		--vm-flip: 1;
	}
}

body.vm-theme .vm-card__flip:focus-visible,
body.vm-theme .vm-card.is-flipped .vm-card__flip {
	--vm-flip: 1;
}

.vm-card__inner {
	position: relative;
	aspect-ratio: 3 / 4;
	transform-style: preserve-3d;
	transform: rotateY(calc(var(--vm-flip) * 180deg));
	transition: transform 0.7s var(--vm-ease);
}

.vm-card__face {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 1.25rem;
	background: var(--vm-card-color);
	color: var(--vm-card-text);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	transition: opacity 0.5s var(--vm-ease);
}

.vm-card__front {
	opacity: calc(1 - var(--vm-flip));
}

.vm-card__back {
	justify-content: space-between;
	transform: rotateY(180deg);
	opacity: var(--vm-flip);
}

@media (min-width: 640px) {
	.vm-card__face {
		padding: 2rem;
	}
}

.vm-card__media {
	position: relative;
	flex: 1;
	min-height: 0;
	width: 100%;
	overflow: hidden;
	border-radius: 1.5rem;
}

body.vm-theme:not(#vm) .vm-card__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}

body.vm-theme:not(#vm) .vm-card__img--cutout {
	padding: 0.25rem;
	object-fit: contain;
	filter: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
}

body.vm-theme:not(#vm) .vm-card__img--photo {
	object-fit: cover;
}

.vm-card__front .vm-card__media:has(.vm-card__img--photo) {
	margin-bottom: 1rem;
}

.vm-card__text {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
}

body.vm-theme .vm-card__title {
	margin: 0 0 0.25rem;
	font-family: var(--vm-font-heading);
	font-size: 1.25rem;
	line-height: 1.75rem;
	color: var(--vm-card-text);
}

body.vm-theme .vm-card__title--sm {
	flex-shrink: 0;
	margin-bottom: 0.75rem;
	font-size: 1.125rem;
}

@media (min-width: 640px) {
	body.vm-theme .vm-card__title {
		font-size: 1.5rem;
		line-height: 2rem;
	}

	body.vm-theme .vm-card__title--sm {
		font-size: 1.25rem;
		line-height: 1.75rem;
	}
}

.vm-card__subtitle {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.25rem;
	opacity: 0.8;
}

.vm-card__hint {
	display: none;
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	opacity: 0.5;
}

@media (hover: none) {
	.vm-card__hint {
		display: block;
	}
}

.vm-card__back .vm-eyebrow {
	margin-bottom: 0.5rem;
	opacity: 0.6;
}

.vm-card__back-main {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

.vm-card__desc {
	margin: 0;
	overflow: hidden;
	font-size: 0.75rem;
	line-height: 1.625;
	opacity: 0.9;
}

@media (min-width: 640px) {
	.vm-card__desc {
		font-size: 0.875rem;
	}
}

.vm-card__back-foot {
	flex-shrink: 0;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid color-mix(in srgb, var(--vm-card-divider) 20%, transparent);
}

.vm-card__back-foot .vm-card__desc {
	opacity: 0.8;
}

/* Etiqueta de oferta */
body.vm-theme:not(#vm) .vm-card .onsale {
	position: absolute;
	top: 1rem;
	left: 1rem;
	right: auto;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0.25rem 0.625rem;
	border-radius: 0;
	background: hsl(var(--vm-foreground));
	color: hsl(var(--vm-primary-foreground));
	font-size: 0.625rem;
	font-weight: 400;
	line-height: 1rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
}

/* Pie de la card: formato, precio y enlace de compra */
.vm-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
}

.vm-card__footer p {
	margin: 0;
}

.vm-card__format {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: hsl(var(--vm-muted-foreground));
}

.vm-card__price,
body.vm-theme:not(#vm) .vm-card__price .amount {
	font-family: var(--vm-font-heading);
	font-size: 1.125rem;
	line-height: 1.75rem;
	color: hsl(var(--vm-foreground));
}

.vm-card__price del {
	margin-right: 0.375rem;
	opacity: 0.5;
}

.vm-card__price ins {
	text-decoration: none;
}

.vm-card__cta {
	flex-shrink: 0;
	text-align: right;
	white-space: nowrap;
}

body.vm-theme:not(#vm) .vm-card__cta a.added_to_cart {
	display: block;
	padding-top: 0.375rem;
}

/* Paginación */
body.vm-theme:not(#vm) .woocommerce-pagination {
	margin-top: 4rem;
}

body.vm-theme:not(#vm) .woocommerce-pagination ul.page-numbers,
body.vm-theme:not(#vm) .woocommerce-pagination ul.page-numbers li {
	border: 0;
}

body.vm-theme:not(#vm) .woocommerce-pagination ul.page-numbers li .page-numbers {
	min-width: 2.5rem;
	padding: 0.625rem;
	font-size: 0.75rem;
	letter-spacing: var(--vm-tracking-widest);
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) .woocommerce-pagination ul.page-numbers li .page-numbers.current {
	background: hsl(var(--vm-foreground));
	color: hsl(var(--vm-primary-foreground));
}

/* --------------------------------------------------------------------------
   Ficha de producto: limpia, en blanco (estructura de FichaProducto.tsx)
   -------------------------------------------------------------------------- */

body.vm-theme.single-product {
	background-color: #fff;
}

body.vm-theme:not(#vm).single-product .site-main {
	max-width: none;
	padding: 0;
}

body.vm-theme:not(#vm).single-product .woocommerce-notices-wrapper:not(:empty) {
	max-width: 72rem;
	margin: 2rem auto 0;
	padding-inline: 1.5rem;
}

.vm-product-top,
.vm-product-details,
.vm-product-related {
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.vm-product-top {
	padding-block: 3rem 4rem;
}

body.vm-theme .vm-backlink {
	display: inline-block;
	margin-bottom: 2rem;
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	text-decoration: none;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme .vm-backlink:hover {
	color: hsl(var(--vm-foreground));
}

.vm-product-top__grid {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: start;
}

@media (min-width: 768px) {
	.vm-product-top__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

body.vm-theme:not(#vm) div.product .vm-product-top div.images,
body.vm-theme:not(#vm) div.product .vm-product-top div.summary {
	float: none;
	width: auto;
	margin: 0;
}

@media (min-width: 768px) {
	body.vm-theme:not(#vm) div.product .vm-product-top div.summary {
		padding-top: 1rem;
	}
}

/* Galería */
body.vm-theme:not(#vm) div.product .woocommerce-product-gallery__image img,
body.vm-theme:not(#vm) div.product .woocommerce-product-gallery .flex-viewport {
	border-radius: 1.5rem;
}

body.vm-theme:not(#vm) div.product div.images .flex-control-thumbs {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

body.vm-theme:not(#vm) div.product div.images .flex-control-thumbs li {
	width: 4.5rem;
	float: none;
}

body.vm-theme:not(#vm) div.product div.images .flex-control-thumbs li img {
	border: 1px solid hsl(var(--vm-border));
	border-radius: 0.75rem;
	opacity: 0.6;
}

body.vm-theme:not(#vm) div.product div.images .flex-control-thumbs li img.flex-active,
body.vm-theme:not(#vm) div.product div.images .flex-control-thumbs li img:hover {
	border-color: hsl(var(--vm-foreground) / 0.4);
	opacity: 1;
}

body.vm-theme:not(#vm) div.product .woocommerce-product-gallery__trigger {
	top: 1rem;
	right: 1rem;
	background: #fff;
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

body.vm-theme:not(#vm) div.product .vm-product-top .onsale {
	top: 1rem;
	left: 1rem;
	right: auto;
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 0.25rem 0.625rem;
	border-radius: 0;
	background: hsl(var(--vm-foreground));
	font-size: 0.625rem;
	font-weight: 400;
	line-height: 1rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
}

/* Resumen */
body.vm-theme:not(#vm) div.product .summary .vm-eyebrow {
	margin-bottom: 0.75rem;
	color: hsl(var(--vm-muted-foreground));
	opacity: 1;
}

body.vm-theme:not(#vm) div.product .product_title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	line-height: 1.25;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: hsl(var(--vm-foreground));
}

@media (min-width: 768px) {
	body.vm-theme:not(#vm) div.product .product_title {
		font-size: 2.25rem;
	}
}

.vm-product-subtitle {
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) div.product .summary p.price,
body.vm-theme:not(#vm) div.product .summary span.price {
	margin: 0 0 1.5rem;
	font-family: var(--vm-font-heading);
	font-size: 1.5rem;
	color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) div.product .price del {
	opacity: 0.5;
}

body.vm-theme:not(#vm) div.product .price ins {
	text-decoration: none;
}

.vm-product-intro {
	max-width: 32rem;
	margin: 0 0 2rem;
	font-size: 0.875rem;
	line-height: 1.625;
	color: hsl(var(--vm-foreground) / 0.7);
}

body.vm-theme:not(#vm) div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

body.vm-theme:not(#vm) div.product form.cart::before,
body.vm-theme:not(#vm) div.product form.cart::after {
	content: none;
}

body.vm-theme:not(#vm) div.product form.cart .quantity {
	float: none;
	margin: 0;
}

body.vm-theme:not(#vm) div.product form.cart .quantity .qty {
	width: 4.5rem;
	height: 3rem;
	text-align: center;
}

body.vm-theme:not(#vm) div.product form.cart .button {
	float: none;
	flex: 1 1 auto;
}

body.vm-theme:not(#vm) div.product .stock {
	font-size: 0.75rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) div.product .stock.out-of-stock {
	color: hsl(var(--vm-destructive) / 0.8);
}

/* Datos rápidos */
.vm-quick-info {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin: 0 0 4rem;
	padding-block: 2rem;
	border-block: 1px solid hsl(var(--vm-border));
}

@media (min-width: 768px) {
	.vm-quick-info {
		grid-template-columns: repeat(4, 1fr);
	}
}

.vm-quick-info dt {
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	line-height: 1rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-muted-foreground));
}

.vm-quick-info dd {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: hsl(var(--vm-foreground));
}

.vm-quick-info div:first-child dd {
	font-family: var(--vm-font-heading);
	font-size: 1.25rem;
}

.vm-quick-info dd del {
	opacity: 0.5;
}

.vm-quick-info dd ins {
	text-decoration: none;
}

/* Características e información */
.vm-product-details__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	padding-bottom: 4rem;
}

@media (min-width: 768px) {
	.vm-product-details__grid {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.vm-product-details__col {
	display: flex;
	flex-direction: column;
	gap: 3rem;
}

body.vm-theme .vm-details-title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	line-height: 1.75rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-foreground));
}

.vm-details-text,
.vm-rich-text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.625;
	color: hsl(var(--vm-muted-foreground));
}

.vm-rich-text p {
	margin: 0 0 0.75rem;
}

.vm-rich-text strong,
.vm-rich-text b {
	font-weight: 500;
	color: hsl(var(--vm-foreground));
}

.vm-rich-text ul,
.vm-rich-text ol {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.vm-rich-text li {
	position: relative;
	margin-bottom: 0.5rem;
	padding-left: 1.25rem;
}

.vm-rich-text li::before {
	content: '—';
	position: absolute;
	left: 0;
	color: hsl(var(--vm-muted-foreground) / 0.4);
}

.vm-rich-text img {
	max-width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

/* Tabla de información = tabla nutricional de vitalmyl.com */
body.vm-theme:not(#vm) .vm-info-table {
	width: 100%;
	margin: 0;
	border: 1px solid hsl(var(--vm-border));
	border-collapse: collapse;
	font-size: 0.875rem;
}

body.vm-theme:not(#vm) .vm-info-table tr + tr th,
body.vm-theme:not(#vm) .vm-info-table tr + tr td {
	border-top: 1px solid hsl(var(--vm-border));
}

body.vm-theme:not(#vm) .vm-info-table th,
body.vm-theme:not(#vm) .vm-info-table td {
	padding: 0.75rem 1rem;
	border: 0;
	background: none;
	text-align: left;
	vertical-align: top;
}

body.vm-theme:not(#vm) .vm-info-table th {
	width: 40%;
	background: hsl(var(--vm-muted) / 0.5);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) .vm-info-table td {
	color: hsl(var(--vm-foreground));
}

/* Relacionados */
.vm-product-related {
	padding-bottom: 6rem;
}

body.vm-theme:not(#vm) .related.products,
body.vm-theme:not(#vm) .upsells.products {
	padding-top: 4rem;
	border-top: 1px solid hsl(var(--vm-border));
}

body.vm-theme:not(#vm) .related.products > h2,
body.vm-theme:not(#vm) .upsells.products > h2 {
	margin: 0 0 3rem;
	text-align: center;
	font-size: 1.875rem;
	line-height: 2.25rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: hsl(var(--vm-foreground));
}

/* Ficha técnica: orden y bloques propios de FichaProducto.tsx */

/* Texto a la izquierda e imagen a la derecha (en móvil, la imagen primero) */
@media (min-width: 768px) {
	.vm-product-top__grid > .summary {
		order: 1;
	}

	.vm-product-top__grid > .vm-product-media,
	.vm-product-top__grid > .images {
		order: 2;
	}
}

/* Envase sobre el color de su línea */
.vm-product-media__stage {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 1.5rem;
	background: var(--vm-card-color, hsl(var(--vm-muted)));
}

body.vm-theme:not(#vm) .vm-product-media__main {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

body.vm-theme:not(#vm) .vm-product-media__main.is-cutout {
	inset: 2.5rem;
	width: calc(100% - 5rem);
	height: calc(100% - 5rem);
	object-fit: contain;
	filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
}

.vm-product-media__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

body.vm-theme:not(#vm) .vm-product-media__thumb {
	display: block;
	width: 4.5rem;
	height: 4.5rem;
	min-height: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid hsl(var(--vm-border));
	border-radius: 0.75rem;
	background: #fff;
	opacity: 0.7;
	transition: opacity 0.15s var(--vm-ease), border-color 0.15s var(--vm-ease);
}

body.vm-theme:not(#vm) .vm-product-media__thumb.is-cutout {
	background: var(--vm-card-color, hsl(var(--vm-muted)));
}

body.vm-theme:not(#vm) .vm-product-media__thumb:hover,
body.vm-theme:not(#vm) .vm-product-media__thumb.is-active {
	border-color: hsl(var(--vm-foreground) / 0.5);
	opacity: 1;
}

body.vm-theme:not(#vm) .vm-product-media__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.vm-theme:not(#vm) .vm-product-media__thumb.is-cutout img {
	padding: 0.375rem;
	object-fit: contain;
}

/* Textos de la ficha técnica */
.vm-details-text--strong {
	margin-bottom: 1rem;
	color: hsl(var(--vm-foreground));
}

.vm-details-note {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	color: hsl(var(--vm-muted-foreground) / 0.6);
}

.vm-warnings {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vm-warnings li {
	display: flex;
	gap: 0.5rem;
	font-size: 0.75rem;
	line-height: 1.625;
	color: hsl(var(--vm-muted-foreground));
}

.vm-warnings li::before {
	content: '—';
	flex-shrink: 0;
	color: hsl(var(--vm-muted-foreground) / 0.4);
}

.vm-details-meta {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
}

.vm-details-meta dt {
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-muted-foreground));
}

.vm-details-meta dd {
	margin: 0;
	font-size: 0.875rem;
	color: hsl(var(--vm-foreground));
}

/* Tabla nutricional (tres columnas, como en vitalmyl.com) */
body.vm-theme:not(#vm) .vm-nutrition {
	width: 100%;
	margin: 0;
	border: 1px solid hsl(var(--vm-border));
	border-collapse: collapse;
	font-size: 0.875rem;
}

body.vm-theme:not(#vm) .vm-nutrition th,
body.vm-theme:not(#vm) .vm-nutrition td {
	padding: 0.75rem 1rem;
	border: 0;
	background: none;
	text-align: right;
	vertical-align: top;
}

body.vm-theme:not(#vm) .vm-nutrition thead th {
	background: hsl(var(--vm-muted));
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) .vm-nutrition th:first-child {
	text-align: left;
}

body.vm-theme:not(#vm) .vm-nutrition tbody tr {
	border-top: 1px solid hsl(var(--vm-border));
}

body.vm-theme:not(#vm) .vm-nutrition tbody tr:nth-child(even) {
	background: hsl(var(--vm-muted) / 0.3);
}

body.vm-theme:not(#vm) .vm-nutrition tbody th {
	font-weight: 400;
	color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .vm-nutrition td {
	color: hsl(var(--vm-muted-foreground));
}


/* --------------------------------------------------------------------------
   Páginas: carrito, checkout y mi cuenta
   -------------------------------------------------------------------------- */

body.vm-theme:not(#vm).woocommerce-cart .site-main,
body.vm-theme:not(#vm).woocommerce-checkout .site-main,
body.vm-theme:not(#vm).woocommerce-account .site-main {
	max-width: 72rem;
	padding-block: 4rem 6rem;
}

body.vm-theme:not(#vm) .page-header .entry-title {
	margin: 0 0 3rem;
	text-align: center;
	font-size: 1.875rem;
	line-height: 2.25rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: hsl(var(--vm-foreground));
}

@media (min-width: 768px) {
	body.vm-theme:not(#vm) .page-header .entry-title,
	body.vm-theme:not(#vm) .related.products > h2,
	body.vm-theme:not(#vm) .upsells.products > h2 {
		font-size: 3rem;
		line-height: 1;
	}
}

/* Títulos de bloque en carrito / checkout */
body.vm-theme:not(#vm) .wc-block-components-title,
body.vm-theme:not(#vm) .wc-block-cart__totals-title,
body.vm-theme:not(#vm) .wc-block-components-checkout-step__title,
body.vm-theme:not(#vm) .wc-block-cart-items__header,
body.vm-theme:not(#vm) .wc-block-components-order-summary__button-text {
	font-family: var(--vm-font-body);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) .wc-block-components-checkout-step__title {
	font-size: 0.875rem;
	color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .wc-block-components-product-name {
	font-family: var(--vm-font-heading);
	font-size: 1.125rem;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .wc-block-components-product-metadata {
	font-size: 0.75rem;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.vm-theme:not(#vm) .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--vm-font-heading);
	font-size: 1.25rem;
	font-weight: 400;
}

body.vm-theme:not(#vm) .wc-block-components-product-image img {
	border-radius: 0.75rem;
}

body.vm-theme:not(#vm) .wc-block-components-radio-control-accordion-option,
body.vm-theme:not(#vm) .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option,
body.vm-theme:not(#vm) .wc-block-components-sidebar-layout .wc-block-components-panel {
	border-radius: 0;
}

body.vm-theme:not(#vm) .wc-block-components-radio-control__input:checked {
	border-color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .wc-block-components-radio-control__input:checked::before {
	background: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .wc-block-cart__empty-cart__title {
	font-family: var(--vm-font-heading);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Mi cuenta (shortcode clásico) */
body.vm-theme:not(#vm) .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid hsl(var(--vm-border));
}

body.vm-theme:not(#vm) .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid hsl(var(--vm-border));
}

body.vm-theme:not(#vm) .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 0.875rem 0;
	font-size: 0.75rem;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	text-decoration: none;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) .woocommerce-MyAccount-navigation li.is-active a,
body.vm-theme:not(#vm) .woocommerce-MyAccount-navigation li a:hover {
	color: hsl(var(--vm-foreground));
}

body.vm-theme:not(#vm) .woocommerce form.login,
body.vm-theme:not(#vm) .woocommerce form.register,
body.vm-theme:not(#vm) .woocommerce form.lost_reset_password {
	padding: 2rem;
	border: 1px solid hsl(var(--vm-border));
	border-radius: 0;
	background: hsl(var(--vm-card));
}

body.vm-theme:not(#vm) .woocommerce h2 {
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.vm-theme:not(#vm) table.shop_table {
	border: 1px solid hsl(var(--vm-border));
	border-radius: 0;
	border-collapse: collapse;
}

body.vm-theme:not(#vm) table.shop_table th {
	background: hsl(var(--vm-muted));
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: var(--vm-tracking-widest);
	text-transform: uppercase;
	color: hsl(var(--vm-muted-foreground));
}

body.vm-theme:not(#vm) table.shop_table td,
body.vm-theme:not(#vm) table.shop_table th {
	border-color: hsl(var(--vm-border));
}

/* --------------------------------------------------------------------------
   Animaciones
   -------------------------------------------------------------------------- */

@keyframes vm-fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes vm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.vm-card,
	.vm-nav__mobile {
		animation: none !important;
	}

	.vm-card__inner,
	.vm-card__face {
		transition: none;
	}
}
