/* PHONECASH: estilos de WooCommerce (catálogo, producto, pedido y confirmación).
   Reemplazan por completo los estilos propios de WooCommerce. */

.shop-main,
.woocommerce-cart .page-main,
.woocommerce-checkout .page-main {
	padding-top: clamp(32px, 5vw, 64px);
}

.shop-main {
	padding-bottom: clamp(72px, 9vw, 120px);
}

/* ---------- Avisos ---------- */

.woocommerce-notices-wrapper {
	margin-bottom: 24px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 20px;
	padding: 18px 22px;
	border-radius: var(--radius-md);
	background: var(--mist);
	color: var(--ink);
	font-size: 16px;
	list-style: none;
}

.woocommerce-message .button,
.woocommerce-info .button {
	order: 2;
	min-height: 40px;
	padding: 8px 18px;
	font-size: 15px;
}

.woocommerce-error {
	background: #fff1f0;
	color: #8c1d18;
}

.woocommerce-error li {
	margin: 0;
}

/* ---------- Migas de pan y encabezado del catálogo ---------- */

.woocommerce-breadcrumb {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 14px;
}

.woocommerce-breadcrumb a {
	color: var(--muted);
}

.woocommerce-breadcrumb a:hover {
	color: var(--ink);
}

.woocommerce-products-header {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.woocommerce-products-header__title,
.product_title {
	font-size: clamp(34px, 5vw, 56px);
	line-height: 1.07;
	letter-spacing: -0.038em;
}

.woocommerce-products-header__title {
	margin: 0;
	font-size: clamp(40px, 6.4vw, 72px);
	line-height: 1.04;
	letter-spacing: -0.042em;
}

.shop-intro {
	max-width: 32em;
	margin: 14px 0 0;
	color: var(--muted);
	font-size: clamp(18px, 2vw, 23px);
	line-height: 1.33;
	letter-spacing: -0.012em;
}

.term-description {
	max-width: 640px;
	margin-top: 12px;
	color: var(--muted);
	font-size: 19px;
}

.woocommerce-ordering {
	margin: 0 0 28px;
}

/* Barra de la tienda: categorías y orden */
.shop-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 20px;
	margin: 0 0 clamp(20px, 3vw, 32px);
}

.shop-bar .woocommerce-ordering {
	flex: none;
	margin: 0 0 0 auto;
}

.shop-bar .woocommerce-ordering select {
	width: auto;
	min-width: 0;
	min-height: 44px;
	padding: 8px 42px 8px 20px;
	border-color: transparent;
	border-radius: var(--pill);
	background-color: var(--mist);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.shop-cats {
	display: flex;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
	margin: -2px;
	padding: 2px;
	overflow-x: auto;
	scrollbar-width: none;
}

.shop-cats::-webkit-scrollbar {
	display: none;
}

.shop-cat {
	flex: none;
	padding: 10px 20px;
	border-radius: var(--pill);
	background: var(--mist);
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.3s var(--ease-out);
}

.shop-cat:hover {
	background: #e8e8ed;
	color: var(--ink);
	text-decoration: none;
}

.shop-cat:active {
	transform: scale(0.96);
}

.shop-cat.is-active,
.shop-cat.is-active:hover {
	background: var(--ink);
	color: var(--white);
}

/* Estrellas dentro de las tarjetas */
ul.products .star-rating {
	width: 82px;
	height: 16px;
	margin: 0 0 8px;
}

/* Cierre de la tienda */
.shop-assure {
	margin-top: clamp(56px, 8vw, 104px);
}

.shop-assure__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.shop-assure__list li {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: clamp(22px, 3vw, 32px);
	border-radius: var(--radius-lg);
	background: var(--mist);
	color: var(--muted);
	font-size: 16px;
	line-height: 1.4;
}

.shop-assure__list strong {
	color: var(--ink);
	font-size: 21px;
	font-weight: 600;
	letter-spacing: -0.025em;
}

.shop-assure__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	border-radius: 14px;
	background: var(--white);
	color: var(--blue);
}

.shop-assure__list a {
	margin-top: 6px;
	color: var(--blue-link);
	font-size: 15px;
	font-weight: 500;
}

.shop-assure__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
	padding: clamp(28px, 4.4vw, 52px);
	border-radius: var(--radius-lg);
	background: #000;
	color: #f5f5f7;
}

.shop-assure__cta h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(26px, 3.4vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.shop-assure__cta p {
	margin: 0;
	color: #a1a1a6;
	font-size: 18px;
}

@media (max-width: 860px) {
	.shop-assure__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.shop-assure__list li {
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr);
		column-gap: 16px;
		row-gap: 2px;
		align-items: start;
	}

	.shop-assure__icon {
		grid-row: 1 / span 3;
		margin: 0;
	}

	.shop-assure__list a {
		margin-top: 2px;
	}

	.shop-assure__cta .btn {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.shop-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.shop-bar .woocommerce-ordering {
		margin: 0;
	}

	.shop-bar .woocommerce-ordering select {
		width: 100%;
	}

	ul.products .star-rating {
		width: 70px;
		height: 14px;
		margin-bottom: 6px;
	}
}

/* ---------- Formularios ---------- */

label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--ink);
	font: 400 17px/1.3 var(--font);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
}

select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l6 6 6-6'/></svg>");
	background-position: right 16px center;
	background-repeat: no-repeat;
}

textarea {
	min-height: 110px;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--blue);
	outline: 0;
	box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18);
}

.woocommerce-ordering select {
	width: auto;
	min-width: 220px;
}

abbr.required {
	color: #d70015;
	text-decoration: none;
}

.form-row {
	margin: 0 0 18px;
}

.form-row .woocommerce-input-wrapper {
	display: block;
}

.woocommerce-invalid input.input-text {
	border-color: #d70015;
}

/* ---------- Ficha del producto ---------- */

/* En la ficha el fondo es gris claro y cada bloque es una tarjeta blanca. */
body.single-product {
	background: var(--mist);
}

body.single-product .shop-main {
	padding-top: clamp(20px, 3vw, 40px);
}

div.product {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	grid-template-areas:
		"gallery summary"
		"tabs tabs"
		"reviews reviews"
		"related related";
	gap: 20px;
	align-items: start;
	width: 100%;
}

div.product > .woocommerce-product-gallery {
	grid-area: gallery;
}

div.product > .summary {
	grid-area: summary;
}

div.product > .woocommerce-tabs {
	grid-area: tabs;
}

div.product > .pc-reviews {
	grid-area: reviews;
}

div.product > .related,
div.product > .upsells {
	grid-area: related;
}

/* Insignia de oferta sobre la galería (no ocupa lugar en la cuadrícula). */
div.product > .onsale {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 5;
	padding: 6px 14px;
	font-size: 14px;
}

/* ----- Galería ----- */

.woocommerce-product-gallery {
	position: relative;
	margin: 0;
	padding: clamp(14px, 2vw, 24px);
	border-radius: var(--radius-lg);
	background: var(--white);
}

.woocommerce-product-gallery__wrapper {
	margin: 0;
}

.woocommerce-product-gallery__image {
	border-radius: var(--radius-md);
	overflow: hidden;
}

.woocommerce-product-gallery .flex-viewport {
	border-radius: var(--radius-md);
	overflow: hidden;
}

.woocommerce-product-gallery__image a {
	display: block;
}

.woocommerce-product-gallery__image img:not(.zoomImg) {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	mix-blend-mode: multiply;
}

/* Capa de zoom de WooCommerce: imagen grande que se mueve con el cursor.
   Lleva fondo blanco para tapar la foto de abajo (si no, se ve duplicada). */
.woocommerce-product-gallery__image {
	position: relative;
	background: var(--white);
}

.woocommerce-product-gallery__image img.zoomImg {
	max-width: none;
	aspect-ratio: auto;
	object-fit: fill;
	background: var(--white);
	mix-blend-mode: normal;
	border-radius: 0;
	cursor: zoom-in;
}

.woocommerce-product-gallery__trigger {
	display: none;
}

.flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.flex-control-thumbs li {
	flex: none;
	width: 68px;
	height: 68px;
	border: 1.5px solid transparent;
	border-radius: 14px;
	background: var(--mist);
	overflow: hidden;
	transition: border-color 0.3s var(--ease);
}

.flex-control-thumbs li:has(img.flex-active) {
	border-color: var(--blue);
}

.flex-control-thumbs img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0.6;
	cursor: pointer;
	mix-blend-mode: multiply;
	transition: opacity 0.3s var(--ease);
}

.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover {
	opacity: 1;
}

/* ----- Resumen ----- */

div.product > .summary {
	padding: clamp(24px, 3.4vw, 40px);
	border-radius: var(--radius-lg);
	background: var(--white);
}

.summary .product_title {
	margin: 0 0 12px;
	font-size: clamp(28px, 3.2vw, 38px);
	line-height: 1.1;
	letter-spacing: -0.034em;
}

.summary > .price {
	margin: 0 0 18px;
	color: var(--ink);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.summary.has-variation > .price {
	display: none;
}

.price del {
	margin-right: 8px;
	color: var(--muted);
	font-size: 0.78em;
	font-weight: 400;
}

.price ins {
	text-decoration: none;
}

.woocommerce-product-details__short-description {
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.5;
}

.woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

/* Disponibilidad */
.stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: #e8f7ee;
	color: #157a3c;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
}

.stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.stock.out-of-stock {
	background: #fdecec;
	color: #b00020;
}

.summary > .stock {
	margin-bottom: 18px;
}

/* ----- Opciones del producto ----- */

form.variations_form {
	display: block;
	margin: 0;
}

form.variations_form table.variations,
form.variations_form table.variations tbody,
form.variations_form table.variations tr,
form.variations_form table.variations th,
form.variations_form table.variations td {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
}

form.variations_form table.variations {
	margin-bottom: 8px;
}

form.variations_form table.variations tr {
	margin-bottom: 22px;
}

/* Sin el script del tema, se ven las listas originales. Con el script, solo los botones. */
.pc-opts {
	display: none;
}

form.pc-ready .pc-opts {
	display: block;
}

form.pc-ready .pc-native,
form.pc-ready table.variations th.label {
	display: none;
}

.pc-js form.variations_form:not(.pc-ready) table.variations {
	visibility: hidden;
	animation: pc-show 0s 3s forwards;
}

@keyframes pc-show {
	to {
		visibility: visible;
	}
}

.pc-opts__head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
}

.pc-opts__name {
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.pc-opts__chosen {
	color: var(--muted);
	font-size: 15px;
}

.pc-opts__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pc-opt {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 1.5px solid #d2d2d7;
	border-radius: 14px;
	background: var(--white);
	color: var(--ink);
	font: 500 16px/1 var(--font);
	letter-spacing: -0.012em;
	cursor: pointer;
	transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.4s var(--ease-out);
	-webkit-tap-highlight-color: transparent;
}

.pc-opt:hover:not(:disabled) {
	border-color: #86868b;
}

.pc-opt:active:not(:disabled) {
	transform: scale(0.96);
}

.pc-opt.is-selected {
	border-color: var(--blue);
	box-shadow: 0 0 0 1px var(--blue);
}

/* Sin stock o sin esa combinación: tachado y bloqueado. */
.pc-opt:disabled,
.pc-opt.is-unavailable {
	border-color: #e5e5ea;
	background: #fafafc;
	color: #b4b4ba;
	cursor: not-allowed;
}

.pc-opt:disabled .pc-opt__text,
.pc-opt.is-unavailable .pc-opt__text {
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
}

/* Colores en círculos */
.pc-opts--swatch .pc-opt {
	width: 40px;
	min-height: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	margin: 2px;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
}

.pc-sw {
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--sw, #ccc);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
	transition: transform 0.4s var(--ease-out);
}

.pc-opts--swatch .pc-opt:hover:not(:disabled) .pc-sw {
	transform: scale(1.08);
}

.pc-opts--swatch .pc-opt.is-selected {
	box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue);
}

.pc-opts--swatch .pc-opt:disabled,
.pc-opts--swatch .pc-opt.is-unavailable {
	background: transparent;
}

.pc-opts--swatch .pc-opt:disabled .pc-sw,
.pc-opts--swatch .pc-opt.is-unavailable .pc-sw {
	opacity: 0.35;
}

.pc-opts--swatch .pc-opt:disabled::after,
.pc-opts--swatch .pc-opt.is-unavailable::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 38px;
	height: 1.5px;
	background: #6e6e73;
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Dentro de un grupo de colores, un color sin círculo se muestra como botón con texto. */
.pc-opts--swatch .pc-opt.pc-opt--text {
	width: auto;
	height: auto;
	min-height: 40px;
	margin: 2px;
	padding: 0 16px;
	border: 1.5px solid #d2d2d7;
	border-radius: 14px;
	background: var(--white);
	box-shadow: none;
	font-size: 15px;
}

.pc-opts--swatch .pc-opt.pc-opt--text.is-selected {
	border-color: var(--blue);
	box-shadow: 0 0 0 1px var(--blue);
}

.pc-opts--swatch .pc-opt.pc-opt--text:disabled,
.pc-opts--swatch .pc-opt.pc-opt--text.is-unavailable {
	border-color: #e5e5ea;
	background: #fafafc;
}

.pc-opts--swatch .pc-opt.pc-opt--text:disabled::after,
.pc-opts--swatch .pc-opt.pc-opt--text.is-unavailable::after {
	display: none;
}

.pc-opts.is-missing .pc-opts__name {
	color: #b00020;
}

.pc-opts.is-missing .pc-opt:not(:disabled) {
	border-color: #d9534f;
}

.pc-opts--swatch.is-missing .pc-opt {
	border: 0;
}

.pc-reset {
	margin: -6px 0 18px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--blue-link);
	font: 400 14px/1.2 var(--font);
	cursor: pointer;
}

.pc-reset:hover {
	text-decoration: underline;
}

.pc-reset[hidden],
.pc-hint[hidden] {
	display: none;
}

.pc-hint {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fff4e5;
	color: #8a4b00;
	font-size: 15px;
	line-height: 1.4;
}

form.pc-ready .reset_variations {
	display: none !important;
}

/* Precio de la combinación elegida y disponibilidad */
.single_variation_wrap .woocommerce-variation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 4px 0 18px;
}

.single_variation_wrap .woocommerce-variation-description {
	flex: 1 0 100%;
	color: var(--muted);
	font-size: 15px;
}

.single_variation_wrap .woocommerce-variation-description p:last-child {
	margin-bottom: 0;
}

.single_variation_wrap .woocommerce-variation-price .price {
	color: var(--ink);
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.single_variation_wrap .woocommerce-variation-availability p {
	margin: 0;
}

/* ----- Cantidad y botón Comprar ----- */

form.cart {
	margin: 0;
}

form.cart:not(.variations_form),
.woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
}

form.cart .quantity {
	flex: none;
}

.quantity.pc-qty {
	display: inline-flex;
	align-items: center;
	height: 56px;
	border: 1.5px solid #d2d2d7;
	border-radius: var(--pill);
	background: var(--white);
	overflow: hidden;
}

.pc-qty .qty {
	width: 44px;
	min-height: 0;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.pc-qty .qty::-webkit-outer-spin-button,
.pc-qty .qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.pc-qty__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: 400 22px/1 var(--font);
	cursor: pointer;
	transition: background-color 0.25s var(--ease), transform 0.3s var(--ease-out);
}

.pc-qty__btn:hover:not(:disabled) {
	background: var(--mist);
}

.pc-qty__btn:active:not(:disabled) {
	transform: scale(0.9);
}

.pc-qty__btn:disabled {
	color: #c7c7cc;
	cursor: not-allowed;
}

.quantity:not(.pc-qty) .qty {
	width: 84px;
	min-height: 56px;
	padding: 12px 8px;
	text-align: center;
}

.single_add_to_cart_button {
	flex: 1 1 140px;
	min-height: 56px;
	font-size: 19px;
}

.single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled {
	opacity: 0.35;
}

.single_add_to_cart_button.disabled {
	cursor: not-allowed;
}

.product_meta {
	margin-top: 24px;
	color: var(--muted);
	font-size: 14px;
}

.product_meta > span {
	display: block;
}

/* ----- Confianza debajo del botón Comprar ----- */

.single-trust {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.single-trust__list {
	display: grid;
	gap: 14px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.single-trust__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.4;
}

.single-trust__list .icon {
	margin-top: 1px;
	color: var(--blue);
}

/* ----- Descripción: tarjeta amplia ----- */

div.product > .woocommerce-tabs {
	margin: 0;
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--radius-lg);
	background: var(--white);
}

.wc-tabs {
	display: none;
}

/* La descripción es el único panel y siempre se ve. WooCommerce la oculta con JavaScript
   (por ejemplo al abrir la ficha con #reviews en el enlace) porque la pestaña "Opiniones"
   ya no existe; esta regla se lo impide. */
.woocommerce-tabs .wc-tab,
.woocommerce-tabs .woocommerce-Tabs-panel {
	display: block !important;
}

.woocommerce-Tabs-panel {
	font-size: 17px;
	line-height: 1.6;
}

.woocommerce-Tabs-panel > h2:first-child {
	margin: 0 0 20px;
	font-size: clamp(26px, 3vw, 32px);
	letter-spacing: -0.03em;
}

.woocommerce-Tabs-panel > :not(h2):not(img):not(figure):not(div) {
	max-width: 78ch;
}

.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3 {
	margin: 1.6em 0 0.5em;
	line-height: 1.2;
}

.woocommerce-Tabs-panel h2:first-child {
	margin-top: 0;
}

.woocommerce-Tabs-panel img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
}

.woocommerce-Tabs-panel ul,
.woocommerce-Tabs-panel ol {
	padding-left: 1.3em;
}

.related.products,
.upsells.products {
	margin-top: clamp(28px, 4vw, 48px);
}

.related.products > h2,
.upsells.products > h2 {
	margin-bottom: 24px;
	font-size: clamp(26px, 3.2vw, 36px);
}

body.single-product ul.products li.product {
	background: var(--white);
}

@media (max-width: 900px) {
	div.product {
		grid-template-columns: 1fr;
		grid-template-areas:
			"gallery"
			"summary"
			"tabs"
			"reviews"
			"related";
		gap: 14px;
	}

	div.product > .onsale {
		top: 16px;
		left: 16px;
	}

	.flex-control-thumbs li {
		width: 58px;
		height: 58px;
	}
}

@media (max-width: 520px) {
	.quantity.pc-qty {
		flex: none;
	}

	.single_variation_wrap .woocommerce-variation-price .price {
		font-size: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pc-opt,
	.pc-sw,
	.pc-qty__btn {
		transition: none;
	}
}

/* ---------- Opiniones y calificaciones ---------- */

:root {
	--star: #ff9f0a;
	--star-off: #d2d2d7;
}

/* Estrellas (calificación mostrada): el ancho de la capa de color es el porcentaje. */
.star-rating {
	position: relative;
	display: inline-block;
	flex: none;
	width: 96px;
	height: 19px;
	overflow: hidden;
	background: var(--star-off);
	font-size: 0;
	line-height: 0;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'><g id='s'><path d='M10 1.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6.1L10 14.8 4.6 17.8l1.2-6.1L1.3 7.5l6.1-.7z'/></g><use href='%23s' x='20'/><use href='%23s' x='40'/><use href='%23s' x='60'/><use href='%23s' x='80'/></svg>") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'><g id='s'><path d='M10 1.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6.1L10 14.8 4.6 17.8l1.2-6.1L1.3 7.5l6.1-.7z'/></g><use href='%23s' x='20'/><use href='%23s' x='40'/><use href='%23s' x='60'/><use href='%23s' x='80'/></svg>") center / 100% 100% no-repeat;
}

.star-rating span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: block;
	overflow: hidden;
	background: var(--star);
	font-size: 0;
	color: transparent;
}

.woocommerce-product-rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0 0 12px;
}

.woocommerce-product-rating .star-rating {
	margin: 0;
}

.woocommerce-review-link,
.pc-rate-link {
	color: var(--blue-link);
	font-size: 14px;
	text-decoration: none;
}

.woocommerce-review-link:hover,
.pc-rate-link:hover {
	text-decoration: underline;
}

.pc-rate-link {
	display: inline-block;
	margin: 0 0 12px;
}

/* Tarjeta de opiniones */
div.product > .pc-reviews {
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--radius-lg);
	background: var(--white);
}

.pc-reviews #reviews {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
}

.pc-reviews #comments,
.pc-reviews #review_form_wrapper {
	min-width: 0;
}

.woocommerce-Reviews-title,
.pc-reviews .comment-reply-title {
	display: block;
	margin: 0 0 20px;
	font-size: clamp(24px, 2.8vw, 30px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.woocommerce-noreviews {
	margin: 0;
	padding: 24px;
	border-radius: var(--radius-md);
	background: var(--mist);
	color: var(--muted);
	font-size: 16px;
	line-height: 1.5;
}

.pc-reviews ol.commentlist {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pc-reviews ol.commentlist li {
	margin: 0;
	padding: 20px 22px;
	border-radius: var(--radius-md);
	background: var(--mist);
}

.pc-reviews .comment_container {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
}

.pc-reviews .comment_container img.avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--white);
}

.pc-reviews .comment-text {
	min-width: 0;
}

.pc-reviews .comment-text .star-rating {
	margin: 2px 0 8px;
}

.pc-reviews .comment-text .meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 14px;
}

.pc-reviews .woocommerce-review__author {
	color: var(--ink);
	font-weight: 600;
}

.pc-reviews .woocommerce-review__verified,
.pc-reviews .woocommerce-review__awaiting-approval {
	font-size: 13px;
	font-style: normal;
}

.pc-reviews .woocommerce-review__verified {
	color: #157a3c;
}

.pc-reviews .woocommerce-review__awaiting-approval {
	padding: 2px 10px;
	border-radius: var(--pill);
	background: #fff4e5;
	color: #8a4b00;
}

.pc-reviews .woocommerce-review__dash {
	display: none;
}

.pc-reviews .description p {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

/* Formulario */
.pc-reviews .comment-notes,
.pc-reviews .comment-form > p {
	margin: 0 0 16px;
}

.pc-reviews .comment-notes {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.45;
}

.pc-reviews .comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
}

.pc-reviews .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.pc-reviews .comment-form-cookies-consent input {
	flex: none;
	width: 18px;
	min-height: 0;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--blue);
}

.pc-reviews .comment-form-cookies-consent label {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.pc-reviews .form-submit {
	margin: 20px 0 0;
}

.pc-reviews .form-submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 12px 28px;
	border: 0;
	border-radius: var(--pill);
	background: var(--blue);
	color: var(--white);
	font: 500 17px/1.2 var(--font);
	cursor: pointer;
	transition: background-color 0.3s var(--ease), transform 0.4s var(--ease-out);
	-webkit-appearance: none;
	appearance: none;
}

.pc-reviews .form-submit input[type="submit"]:hover {
	background: var(--blue-hover);
}

.pc-reviews .form-submit input[type="submit"]:active {
	transform: scale(0.98);
}

/* Estrellas para elegir (WooCommerce las crea con JavaScript a partir de la lista). */
.pc-reviews p.stars {
	margin: 0 0 18px;
}

.pc-reviews p.stars span {
	display: inline-flex;
	gap: 6px;
}

.pc-reviews p.stars a {
	position: relative;
	display: block;
	width: 34px;
	height: 34px;
	overflow: hidden;
	font-size: 0;
	text-indent: -9999px;
}

.pc-reviews p.stars a::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #c7c7cc;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 1.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6.1L10 14.8 4.6 17.8l1.2-6.1L1.3 7.5l6.1-.7z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 1.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6.1L10 14.8 4.6 17.8l1.2-6.1L1.3 7.5l6.1-.7z'/></svg>") center / contain no-repeat;
	transition: background-color 0.2s var(--ease), transform 0.3s var(--ease-out);
}

.pc-reviews p.stars.selected a::before {
	background: var(--star);
}

.pc-reviews p.stars.selected a.active ~ a::before {
	background: #c7c7cc;
}

.pc-reviews p.stars:hover a::before {
	background: var(--star);
}

.pc-reviews p.stars:hover a:hover ~ a::before {
	background: #c7c7cc;
}

.pc-reviews p.stars a:hover::before {
	transform: scale(1.12);
}

.pc-reviews p.stars a:focus-visible {
	outline: 3px solid var(--blue-bright);
	outline-offset: 2px;
	border-radius: 8px;
}

/* Campo trampa para robots: las personas no lo ven. */
.pc-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 900px) {
	.pc-reviews #reviews {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Paginación ---------- */

.woocommerce-pagination {
	margin-top: 48px;
}

.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border-radius: var(--pill);
	background: var(--mist);
	color: var(--ink);
	text-decoration: none;
}

.woocommerce-pagination .page-numbers.current {
	background: var(--ink);
	color: var(--white);
}

/* ---------- Carrito ---------- */

.woocommerce-cart-form {
	margin-bottom: 40px;
}

table.shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-size: 17px;
}

table.shop_table th,
table.shop_table td {
	padding: 18px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}

table.shop_table thead th {
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
}

table.shop_table td.product-thumbnail img {
	width: 84px;
	border-radius: var(--radius-sm);
	background: var(--mist);
}

table.shop_table td.product-name a {
	color: var(--ink);
	font-weight: 600;
}

a.remove {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--mist);
	color: var(--muted);
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}

a.remove:hover {
	background: #d70015;
	color: #fff;
	text-decoration: none;
}

td.actions {
	padding-top: 24px;
}

td.actions .coupon {
	display: flex;
	gap: 10px;
	float: left;
}

td.actions .coupon input {
	width: 200px;
}

td.actions > .button {
	float: right;
	background: var(--mist);
	color: var(--ink);
}

td.actions > .button:hover {
	background: var(--line);
	color: var(--ink);
}

.cart-collaterals {
	display: flex;
	justify-content: flex-end;
}

.cart_totals {
	width: 100%;
	max-width: 440px;
	padding: 28px;
	border-radius: var(--radius-lg);
	background: var(--mist);
}

.cart_totals h2 {
	margin-bottom: 12px;
	font-size: 24px;
}

.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
	padding: 14px 0;
	border-color: var(--line);
}

.cart_totals .order-total th,
.cart_totals .order-total td {
	border-bottom: 0;
	font-size: 20px;
	font-weight: 600;
}

.wc-proceed-to-checkout {
	margin-top: 20px;
}

.wc-proceed-to-checkout .button {
	display: flex;
	width: 100%;
	min-height: 56px;
	font-size: 18px;
}

.cart-empty {
	font-size: 22px;
	font-weight: 600;
}

.return-to-shop {
	margin-top: 20px;
}

@media (max-width: 760px) {
	table.shop_table_responsive thead {
		display: none;
	}

	table.shop_table_responsive tr {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid var(--line);
	}

	table.shop_table_responsive td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 8px 0;
		border: 0;
		text-align: right;
	}

	table.shop_table_responsive td::before {
		content: attr(data-title);
		color: var(--muted);
		font-size: 14px;
		text-align: left;
	}

	table.shop_table_responsive td.product-remove::before,
	table.shop_table_responsive td.product-thumbnail::before,
	table.shop_table_responsive td.actions::before {
		content: none;
	}

	td.actions .coupon {
		float: none;
		flex-wrap: wrap;
		margin-bottom: 12px;
	}

	td.actions .coupon input {
		width: 100%;
	}

	td.actions > .button {
		float: none;
		width: 100%;
	}
}

/* ---------- Finalizar compra ---------- */

form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
	grid-template-areas:
		"details heading"
		"details review";
	gap: 0 clamp(32px, 6vw, 72px);
	align-items: start;
}

form.checkout #customer_details {
	grid-area: details;
}

form.checkout #order_review_heading {
	grid-area: heading;
}

form.checkout #order_review {
	grid-area: review;
	padding: 28px;
	border-radius: var(--radius-lg);
	background: var(--mist);
}

form.checkout h3 {
	margin-bottom: 20px;
	font-size: 26px;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

#order_review_heading {
	margin-bottom: 16px;
}

.col2-set .col-1,
.col2-set .col-2 {
	width: 100%;
	float: none;
}

.woocommerce-additional-fields {
	margin-top: 8px;
}

#order_review table.shop_table th,
#order_review table.shop_table td {
	padding: 14px 0;
	border-color: var(--line);
	font-size: 16px;
}

#order_review .order-total th,
#order_review .order-total td {
	border-bottom: 0;
	font-size: 20px;
	font-weight: 600;
}

.pc-reassure {
	margin: 20px 0 18px;
	padding: 16px 18px;
	border-radius: var(--radius-md);
	background: var(--white);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.45;
}

.wc_payment_methods {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.wc_payment_method > label {
	display: inline;
	font-size: 17px;
	font-weight: 600;
}

.wc_payment_method input[type="radio"] {
	margin-right: 8px;
	accent-color: var(--blue);
}

.payment_box {
	margin-top: 10px;
	color: var(--muted);
	font-size: 15px;
}

.payment_box p {
	margin: 0;
}

#place_order {
	display: flex;
	width: 100%;
	min-height: 60px;
	font-size: 19px;
}

.woocommerce-privacy-policy-text {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 900px) {
	form.checkout {
		grid-template-columns: 1fr;
		grid-template-areas:
			"details"
			"heading"
			"review";
	}

	form.checkout #customer_details {
		margin-bottom: 32px;
	}
}

/* ---------- Confirmación del pedido ---------- */

.woocommerce-order {
	max-width: 720px;
}

.woocommerce-thankyou-order-received {
	margin-bottom: 24px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

ul.order_details li {
	padding: 16px;
	border-radius: var(--radius-md);
	background: var(--mist);
	color: var(--muted);
	font-size: 13px;
}

ul.order_details li strong {
	display: block;
	margin-top: 4px;
	color: var(--ink);
	font-size: 17px;
}

.woocommerce-order-details h2,
.woocommerce-customer-details h2 {
	margin: 32px 0 16px;
	font-size: 24px;
}

/* ---------- Mi cuenta (mínimo) ---------- */

.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 10px 16px;
	border-radius: var(--pill);
	background: var(--mist);
	color: var(--ink);
	font-size: 15px;
}

.woocommerce-MyAccount-navigation .is-active a {
	background: var(--ink);
	color: var(--white);
}

.woocommerce-form-login,
.woocommerce-form-register {
	max-width: 440px;
}
