/*
Theme Name: todapaula tienda
Template: twentytwentyfour
Description: Child theme de bloques (FSE) para la tienda online de todapaula, sobre Twenty Twenty-Four. Tokens de marca en theme.json (paleta N1/N2, EditorsNote + Outfit). Ver spec_prototipo_ecommerce_v1.md para el detalle de las 5 pantallas de e-commerce.
Author: Carlos Figarella
Version: 1.4.0
Text Domain: todapaula-tienda
*/

/* ==========================================================================
   Hero (Home)
   ========================================================================== */

.tp-hero-media {
	position: relative;
}

.tp-hero-media img {
	width: 100%;
	display: block;
}

.tp-hero-tag {
	position: absolute;
	left: 20px;
	bottom: 20px;
	margin: 0;
	background: rgba(28, 28, 28, 0.82);
	color: var(--wp--preset--color--crema-meliana);
	font-size: 13px;
	line-height: 1;
	padding: 8px 16px;
	border-radius: 999px;
}

/* ==========================================================================
   Tarjetas de producto (Home + Catálogo)
   ========================================================================== */

.tp-card {
	overflow: hidden;
	height: 100%;
	box-shadow: 0 1px 2px rgba(28, 28, 28, 0.05);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tp-card:hover {
	box-shadow: 0 12px 28px rgba(28, 28, 28, 0.12);
	transform: translateY(-3px);
}

.tp-card .wp-block-woocommerce-product-image {
	margin: 0;
}

.tp-card .wp-block-woocommerce-product-image img {
	width: 100%;
	display: block;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.tp-card-cat,
.tp-card-cat a {
	color: #8a8178;
	text-decoration: none;
}

.tp-card .wp-block-post-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--editors-note);
	font-weight: 400;
}

.tp-card .wp-block-post-title a {
	text-decoration: none;
}

.tp-card .wp-block-post-title a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--coral-paula);
	text-underline-offset: 4px;
}

.tp-card .wc-block-components-product-price,
.tp-card .wp-block-woocommerce-product-price {
	font-weight: 600;
}

/* ==========================================================================
   Header
   ========================================================================== */

.tp-header-icons .wp-block-search__button {
	border-radius: 999px;
}

/* Item activo del menú subrayado en coral */
.wp-block-navigation .current-menu-item > a,
.wp-block-navigation .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--coral-paula);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

/* ==========================================================================
   Colecciones (Home)
   ========================================================================== */

.tp-coleccion {
	overflow: hidden;
}

.tp-coleccion .wp-block-cover__inner-container a {
	color: #ffffff;
	text-decoration: none;
}

.tp-coleccion .wp-block-cover__inner-container a:hover {
	text-decoration: underline;
	text-underline-offset: 5px;
}

/* Gradiente inferior para legibilidad del label, como el prototipo */
.tp-coleccion .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%) !important;
	opacity: 1 !important;
}

/* ==========================================================================
   Botón outline crema (banner oscuro)
   ========================================================================== */

.tp-btn-crema .wp-block-button__link {
	color: var(--wp--preset--color--crema-meliana);
	border-color: var(--wp--preset--color--crema-meliana);
	background: transparent;
}

.tp-btn-crema .wp-block-button__link:hover {
	background: var(--wp--preset--color--crema-meliana);
	color: var(--wp--preset--color--grafito-paula);
}

/* ==========================================================================
   Catálogo — filtros
   ========================================================================== */

/* Títulos de sección de filtro: uppercase espaciado, como el prototipo */
.wc-block-product-filters h3 {
	font-family: var(--wp--preset--font-family--outfit);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #6b6560;
}

/* Chips de talla como pills */
.wc-block-product-filter-chips__item {
	border: 1px solid #d8ccbe;
	border-radius: 999px;
	background: transparent;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.wc-block-product-filter-chips__item:hover {
	border-color: var(--wp--preset--color--grafito-paula);
}

.wc-block-product-filter-chips__item[aria-checked="true"],
.wc-block-product-filter-chips__item.is-selected {
	background: var(--wp--preset--color--grafito-paula);
	color: var(--wp--preset--color--crema-meliana);
	border-color: var(--wp--preset--color--grafito-paula);
}

/* Slider de precio en coral */
.wc-block-product-filter-price-slider,
.wp-block-woocommerce-product-filter-price {
	accent-color: var(--wp--preset--color--coral-paula);
}

/* "Limpiar filtros" como link discreto */
.wc-block-product-filter-clear-button .wp-block-button__link {
	border: none;
	padding: 0;
	background: transparent;
	color: var(--wp--preset--color--grafito-paula);
	text-decoration: underline;
	text-underline-offset: 4px;
	font-size: 14px;
}

/* Checkboxes de filtro: acento coral */
.wc-block-product-filter-checkbox-list input[type="checkbox"] {
	accent-color: var(--wp--preset--color--coral-paula);
}

/* ==========================================================================
   Catálogo — cabecera y paginación
   ========================================================================== */

.tp-breadcrumbs,
.wp-block-woocommerce-breadcrumbs {
	font-size: 13px;
	color: #8a8178;
}

.wp-block-woocommerce-breadcrumbs a {
	color: #8a8178;
	text-decoration: none;
}

.wp-block-woocommerce-product-results-count {
	font-size: 14px;
	color: #8a8178;
}

.wp-block-query-pagination a {
	text-decoration: none;
}

/* ==========================================================================
   Ficha de producto
   ========================================================================== */

/* Galería: esquinas redondeadas como las tarjetas */
.tp-ficha-galeria .woocommerce-product-gallery img {
	border-radius: 16px;
}

.tp-ficha-galeria .flex-control-thumbs img {
	border-radius: 8px;
}

/* Nota de envío junto al CTA */
.tp-ficha-envio-nota {
	opacity: 0.65;
}

/* Bloque de entrega / recogida / devoluciones */
.tp-ficha-info {
	border-top: 1px solid rgba(28, 28, 28, 0.12);
	border-bottom: 1px solid rgba(28, 28, 28, 0.12);
}

/* Etiqueta lila para decisiones pendientes de Paula (como el prototipo) */
.tp-tag-pendiente {
	display: inline-block;
	background: rgba(107, 76, 125, 0.14);
	color: var(--wp--preset--color--ciruela-vinilo);
	border-radius: 999px;
	padding: 1px 10px;
	font-size: 11px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	vertical-align: middle;
}

/* Selectores de variación (Variation Swatches): armonizar con la marca */
.variable-items-wrapper .variable-item:not(.radio-variable-item) {
	border-radius: 10px;
	box-shadow: none;
	border: 1px solid rgba(28, 28, 28, 0.3);
}

.variable-items-wrapper .variable-item:not(.radio-variable-item).selected,
.variable-items-wrapper .variable-item:not(.radio-variable-item).selected:hover {
	border-color: var(--wp--preset--color--grafito-paula);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--grafito-paula);
}

/* Wishlist (YITH): enlace discreto con corazón coral */
.yith-wcwl-add-to-wishlist a {
	color: var(--wp--preset--color--grafito-paula);
	font-size: 14px;
	text-decoration: none;
}

.yith-wcwl-add-to-wishlist a:hover {
	color: var(--wp--preset--color--coral-paula);
}

.yith-wcwl-add-to-wishlist a i,
.yith-wcwl-add-to-wishlist a .yith-wcwl-icon {
	color: var(--wp--preset--color--coral-paula);
}

/* ==========================================================================
   Carrito ("Tu bolsa")
   ========================================================================== */

/* Panel de resumen: tarjeta crema sticky, como el prototipo */
.wp-block-woocommerce-cart .wc-block-cart__sidebar {
	position: sticky;
	top: 24px;
	align-self: flex-start;
}

.wp-block-woocommerce-cart-totals-block {
	background: var(--wp--preset--color--crema-claro);
	border-radius: 16px;
	padding: 24px;
}

/* Fotos de los ítems con esquinas redondeadas */
.wc-block-cart-items .wc-block-cart-item__image img {
	border-radius: 12px;
}

/* Nombre del producto en serif, sin subrayado */
.wc-block-cart-items .wc-block-components-product-name {
	font-family: var(--wp--preset--font-family--editors-note);
	font-size: 18px;
	text-decoration: none;
	color: var(--wp--preset--color--grafito-paula);
}

.wc-block-cart-items .wc-block-components-product-name:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--coral-paula);
	text-underline-offset: 4px;
}

/* Metadatos del ítem (talla/color) y link "Quitar" discretos */
.wc-block-cart-items .wc-block-components-product-details {
	font-size: 13px;
	color: #8a8178;
}

.wc-block-cart-item__remove-link {
	font-size: 13px;
	color: #8a8178;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wc-block-cart-item__remove-link:hover {
	color: var(--wp--preset--color--coral-paula);
}

/* Stepper de cantidad armonizado con los swatches (radius 10px) */
.wc-block-cart .wc-block-components-quantity-selector {
	border-radius: 10px;
	border: 1px solid rgba(28, 28, 28, 0.3);
}

.wc-block-cart .wc-block-components-quantity-selector:after {
	border: none;
}

/* Notas bajo la lista y textos de confianza del resumen */
.tp-carrito-nota,
.tp-carrito-envio-nota {
	opacity: 0.75;
}

.tp-carrito-confianza {
	opacity: 0.65;
}

/* ==========================================================================
   Checkout
   ========================================================================== */

/* Resumen "Tu pedido": tarjeta crema sticky, como el carrito */
.wp-block-woocommerce-checkout .wc-block-checkout__sidebar {
	position: sticky;
	top: 24px;
	align-self: flex-start;
}

.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	background: var(--wp--preset--color--crema-claro);
	border-radius: 16px;
	padding: 24px;
	border: none;
}

/* Fotos de los ítems del resumen redondeadas */
.wc-block-checkout__sidebar .wc-block-components-order-summary-item__image img {
	border-radius: 8px;
}

/* Texto "Pago seguro" del header simplificado */
.tp-checkout-header-derecha {
	opacity: 0.65;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.tp-footer-direccion {
	opacity: 0.75;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 781px) {
	.tp-hero-tag {
		left: 14px;
		bottom: 14px;
		font-size: 12px;
	}
}
