/*
 * Rediseño de páginas de categoría — Bodegas Arane v2 (SEOBIDE 03-08-2026).
 * Paleta del diseño aprobado: morado #453064, dorado #A8894C, crema #FAF7F2,
 * tinta #241E2E, bordes #EDE7DC/#EFE9DF. Tipografías: Cormorant Garamond + Jost.
 */

/* ---------- Fondo y limpieza de la cabecera antigua ---------- */
.tax-product_cat #main,
.post-type-archive-product #main {
	background: #FAF7F2;
}
.tax-product_cat .shop-page-title,
.post-type-archive-product .shop-page-title {
	display: none;
}
.tax-product_cat .shop-container > .term-description,
.post-type-archive-product .shop-container > .term-description {
	display: none;
}

/* ---------- Hero morado ---------- */
.arane-hero {
	background: #453064;
}
.arane-hero-inner {
	max-width: 1360px;
	margin: 0 auto;
	padding: 44px 30px 38px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
/* ancho de la zona de tienda a juego con el hero + aire bajo el hero */
.tax-product_cat #main > .row,
.post-type-archive-product #main > .row {
	max-width: 1420px;
	padding: 44px 30px 0;
	margin-top: 0 !important;
}
.arane-hero-left {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.arane-hero .arane-breadcrumb,
.arane-hero .woocommerce-breadcrumb {
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	font-weight: 400;
	color: #E9E2F5 !important;
	margin: 0;
	opacity: 1;
}
.arane-hero .arane-breadcrumb a,
.arane-hero .arane-breadcrumb a:visited,
.arane-hero .woocommerce-breadcrumb a,
.arane-hero .woocommerce-breadcrumb a:visited {
	color: #B7A9D6 !important;
}
.arane-hero .arane-breadcrumb a:hover,
.arane-hero .woocommerce-breadcrumb a:hover {
	color: #FCFAF6 !important;
}
.arane-hero .arane-bc-sep {
	margin: 0 10px;
	color: #B7A9D6;
}
.arane-hero-titulo {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 500;
	font-size: 52px;
	line-height: 1.02;
	color: #FCFAF6;
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
}
.arane-hero-intro {
	max-width: 560px;
	font-family: 'Jost', sans-serif;
	font-weight: 300;
	font-size: 15px;
	line-height: 1.6;
	color: #CDC2E2;
	margin: 0;
}
.arane-hero-filtrar {
	display: none;
	color: #FCFAF6;
	border: 1px solid #6A5590;
	border-radius: 999px;
	padding: 7px 18px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	align-self: flex-start;
}
.arane-hero-right {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-bottom: 6px;
}
.arane-hero-count {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	letter-spacing: 2px;
	color: #B7A9D6;
	white-space: nowrap;
}
.arane-hero .woocommerce-ordering {
	margin: 0;
}
.arane-hero .woocommerce-ordering select.orderby {
	appearance: none !important;
	-webkit-appearance: none !important;
	background-color: transparent !important;
	border: 1px solid #6A5590 !important;
	border-radius: 999px !important;
	color: #FCFAF6 !important;
	font-family: 'Jost', sans-serif !important;
	font-size: 12.5px !important;
	letter-spacing: 1.5px;
	height: auto !important;
	line-height: 1.3 !important;
	padding: 9px 42px 9px 18px !important;
	cursor: pointer;
	box-shadow: none !important;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path d="M1 1l4 4 4-4" stroke="%23CDC2E2" fill="none"/></svg>') !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	background-size: 10px 6px !important;
	margin: 0;
	max-width: 250px;
}
.arane-hero .woocommerce-ordering select.orderby option {
	color: #241E2E;
}

/* ---------- Rejilla y tarjetas ---------- */
.tax-product_cat .products.row-small,
.post-type-archive-product .products.row-small {
	margin-left: -14px;
	margin-right: -14px;
}
.tax-product_cat .products .product-small.col,
.post-type-archive-product .products .product-small.col {
	padding: 0 14px 28px;
}
.tax-product_cat .products .product-small .col-inner {
	background: #FFFFFF;
	border: 1px solid #EFE9DF;
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform .25s ease, box-shadow .25s ease;
}
.tax-product_cat .products .product-small.has-hover:hover .col-inner {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(36, 30, 46, 0.10);
}
.tax-product_cat .products .product-small .box {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Imagen: altura uniforme del diseño (340px), botella completa */
.tax-product_cat .products .product-small .box-image {
	background: #FFFFFF;
	height: 340px;
	flex-shrink: 0;
}
.tax-product_cat .products .product-small .box-image > div:first-child {
	height: 100%;
}
.tax-product_cat .products .product-small .box-image > div:first-child > a {
	display: block;
	height: 100%;
}
.tax-product_cat .products .product-small .box-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #FFFFFF;
}

/* Distintivos flotantes */
.arane-distintivos {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 3;
	pointer-events: none;
}
.arane-distintivo {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid #DCD2C0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(36, 30, 46, 0.10);
	pointer-events: auto;
}

/* Texto de la tarjeta */
.tax-product_cat .products .product-small .box-text {
	padding: 18px 20px 0;
	text-align: left;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.tax-product_cat .products .product-small .title-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	row-gap: 2px;
}
/* categoría redundante fuera; la línea dorada es la zona (.mapa) + año a la derecha */
.tax-product_cat .products .product-small .box-text .product-cat.op-8 {
	display: none;
}
.tax-product_cat .products .product-small .box-text .product-cat.op-7.mapa {
	font-family: 'Jost', sans-serif;
	font-size: 10.5px;
	letter-spacing: 2.5px;
	font-weight: 500;
	color: #A8894C;
	opacity: 1;
	margin: 0 auto 0 0;
	line-height: 1.4;
}
.tax-product_cat .products .product-small .box-text .product-cat.op-7:not(.mapa) {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	letter-spacing: 0.5px;
	color: #A9A2B2;
	opacity: 1;
	margin: 0;
	line-height: 1.4;
}
.tax-product_cat .products .product-small .box-text .name.product-title {
	width: 100%;
	font-family: 'Cormorant Garamond', serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.2;
	color: #241E2E;
	margin: 6px 0 2px;
}
.arane-bodega {
	width: 100%;
	font-family: 'Jost', sans-serif;
	font-weight: 300;
	font-size: 13px;
	letter-spacing: 0.3px;
	color: #8B8494;
	margin-bottom: 4px;
}

/* Puntuaciones Parker / Peñín */
.arane-notas {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin: 4px 0 2px;
}
.arane-nota {
	display: flex;
	align-items: center;
	gap: 7px;
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	letter-spacing: 1.5px;
	font-weight: 500;
	color: #8B8494;
}
.arane-nota-valor {
	background: #453064;
	color: #FFFFFF;
	font-family: 'Cormorant Garamond', serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 7px 4px;
}

/* Estrellas */
.arane-estrellas {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 2px 0 4px;
}
.arane-estrellas-base {
	position: relative;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 2px;
	color: #DCD2C0;
}
.arane-estrellas-llenas {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #A8894C;
}
.arane-estrellas-num {
	font-family: 'Jost', sans-serif;
	font-size: 12.5px;
	font-weight: 500;
	color: #241E2E;
}
.arane-estrellas-total {
	font-family: 'Jost', sans-serif;
	font-weight: 300;
	font-size: 12px;
	color: #8B8494;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Franja de precio con botón */
.tax-product_cat .products .product-small .price-wrapper {
	margin: auto -20px 0;
	padding: 12px 20px;
	background: #F6F3ED;
	border-top: 1px solid #EAE3D6;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.tax-product_cat .products .product-small .price-wrapper .price {
	font-family: 'Cormorant Garamond', serif;
	font-size: 23px;
	font-weight: 600;
	color: #241E2E;
	margin: 0;
}
.tax-product_cat .products .product-small .price-wrapper .price .amount {
	color: #241E2E;
}
.tax-product_cat .products .product-small .price-wrapper a.button {
	margin: 0;
	border-radius: 0;
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	letter-spacing: 2.5px;
	font-weight: 500;
	text-transform: uppercase;
	background: #453064 !important;
	border: 1px solid #453064;
	color: #FFFFFF !important;
	padding: 11px 20px;
	line-height: 1;
	min-height: 0;
	box-shadow: none;
}
.tax-product_cat .products .product-small .price-wrapper a.button:hover {
	background: #37264F !important;
	border-color: #37264F;
}
.tax-product_cat .products .product-small.out-of-stock .price-wrapper a.button,
.tax-product_cat .products .product-small .price-wrapper a.button.sinStock {
	background: transparent !important;
	border: 1px solid #C9BFD9;
	color: #453064 !important;
}
.tax-product_cat .products .product-small.out-of-stock .price-wrapper a.button:hover,
.tax-product_cat .products .product-small .price-wrapper a.button.sinStock:hover {
	border-color: #453064;
	background: #F4F0FA !important;
}
/* por si algún botón residual queda fuera de la franja */
.tax-product_cat .products .product-small .col-inner > a.button {
	display: none;
}
.tax-product_cat .products .product-small .price-wrapper .added_to_cart {
	width: 100%;
	font-family: 'Jost', sans-serif;
	font-size: 11.5px;
	letter-spacing: 1px;
	color: #453064;
	text-transform: uppercase;
}

/* Agotado */
.tax-product_cat .products .product-small .out-of-stock-label {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(250, 247, 242, 0.92);
	color: #8B8494;
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	letter-spacing: 3px;
	font-weight: 500;
	text-transform: uppercase;
	text-align: center;
	padding: 10px 0;
	margin: 0;
	border-radius: 0;
	width: 100%;
}

/* Rating por defecto fuera (lo sustituyen las estrellas propias) */
.tax-product_cat .products .star-rating {
	display: none !important;
}

/* Burbuja de oferta (-15%): círculo morado arriba a la derecha de la imagen */
.tax-product_cat .products .product-small .badge-container {
	left: auto !important;
	right: 10px;
	top: 10px;
	margin: 0;
	z-index: 3;
}
.tax-product_cat .products .product-small .callout.badge {
	width: 40px;
	height: 40px;
	top: 0;
}
.tax-product_cat .products .product-small .callout .badge-inner {
	background: #453064 !important;
	color: #FFFFFF !important;
	border-radius: 50%;
	border: none;
	box-shadow: 0 2px 8px rgba(36, 30, 46, 0.18);
	font-family: 'Jost', sans-serif !important;
	font-size: 11px !important;
	font-weight: 500;
	letter-spacing: 0.5px;
}

/* Vista rápida */
.tax-product_cat .products .product-small .quick-view {
	font-family: 'Jost', sans-serif;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-size: 11px;
}

/* ---------- Sidebar ---------- */
.tax-product_cat .sidebar-inner .widget-title,
.tax-product_cat #shop-sidebar .widget-title {
	display: block !important; /* el child ocultaba los títulos repetidos "Filtrar por"; ahora cada faceta tiene el suyo */
	font-family: 'Jost', sans-serif;
	font-size: 11.5px;
	letter-spacing: 3px;
	font-weight: 600;
	color: #241E2E;
	text-transform: uppercase;
}
/* separador ENTRE grupos (no bajo el título, como el diseño) */
.tax-product_cat .sidebar-inner .widget .is-divider {
	display: none;
}
.tax-product_cat .sidebar-inner .widget {
	border-bottom: 1px solid #EDE7DC;
	padding-bottom: 24px;
	margin-bottom: 24px;
}
.tax-product_cat .sidebar-inner .widget:last-child {
	border-bottom: none;
}

/* títulos de facetas plegables con chevron */
.tax-product_cat .sidebar-inner .widget_layered_nav .widget-title {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	margin-bottom: 14px;
}
.tax-product_cat .sidebar-inner .widget_layered_nav .widget-title::after {
	content: '';
	width: 10px;
	height: 6px;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path d="M1 5l4-4 4 4" fill="none" stroke="%238B8494" stroke-width="1.5"/></svg>') center no-repeat;
	transition: transform .25s;
}
.tax-product_cat .sidebar-inner .widget_layered_nav.arane-cerrado .widget-title::after {
	transform: rotate(180deg);
}
.tax-product_cat .sidebar-inner .widget_layered_nav.arane-cerrado .woocommerce-widget-layered-nav-list {
	display: none;
}

/* Slider de precio */
.tax-product_cat .price_slider_wrapper .ui-slider {
	background: #E3DCCF;
}
.tax-product_cat .price_slider_wrapper .ui-slider .ui-slider-range {
	background: #453064;
}
.tax-product_cat .price_slider_wrapper .ui-slider .ui-slider-handle {
	background: #FFFFFF;
	border: 2px solid #453064;
	box-shadow: 0 1px 4px rgba(36, 30, 46, 0.18);
}
.tax-product_cat .price_slider_amount {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.tax-product_cat .price_slider_amount .button {
	font-family: 'Jost', sans-serif !important;
	font-size: 11px !important;
	letter-spacing: 2.5px !important;
	text-transform: uppercase;
	background: transparent !important;
	color: #453064 !important;
	border: none !important;
	border-bottom: 1px solid #453064 !important;
	border-radius: 0 !important;
	padding: 0 0 2px !important;
	box-shadow: none !important;
	min-height: 0;
	margin: 0;
	order: 2;
}
.tax-product_cat .price_slider_amount .price_label {
	font-family: 'Cormorant Garamond', serif;
	font-size: 0; /* oculta el prefijo "Precio:" y el separador de texto */
	font-weight: 600;
	color: #241E2E;
	order: 1;
}
.tax-product_cat .price_slider_amount .price_label .from,
.tax-product_cat .price_slider_amount .price_label .to {
	font-size: 17px;
}
.tax-product_cat .price_slider_amount .price_label .from::after {
	content: ' \2014 ';
	font-size: 17px;
}

/* Facetas en lista con checkbox (estilo del diseño) */
.tax-product_cat .sidebar-inner .woocommerce-widget-layered-nav-list {
	max-height: 244px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #D4CCBD transparent;
	margin: 0;
}
.tax-product_cat .sidebar-inner .woocommerce-widget-layered-nav-list__item {
	display: flex;
	align-items: center;
	padding: 5px 0;
	border: none;
	list-style: none;
}
.tax-product_cat .sidebar-inner .woocommerce-widget-layered-nav-list__item a {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	font-family: 'Jost', sans-serif;
	font-weight: 300;
	font-size: 14px;
	letter-spacing: 0.3px;
	color: #241E2E;
}
.tax-product_cat .sidebar-inner .woocommerce-widget-layered-nav-list__item a::before {
	content: '';
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	background: #FFFFFF;
	border: 1px solid #D4CCBD;
	transition: all .15s;
}
.tax-product_cat .sidebar-inner .woocommerce-widget-layered-nav-list__item a:hover {
	color: #241E2E;
	opacity: 0.75;
}
.tax-product_cat .sidebar-inner .woocommerce-widget-layered-nav-list__item--chosen a::before {
	background: #453064 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="7" viewBox="0 0 9 7"><path d="M1 3.5l2.2 2.2L8 1" fill="none" stroke="white" stroke-width="1.8"/></svg>') center no-repeat;
	border-color: #453064;
}
.tax-product_cat .sidebar-inner .woocommerce-widget-layered-nav-list__item .count {
	color: #A9A2B2;
	font-size: 12px;
	background: none;
	border: none;
	padding: 0;
}

/* Desplegables residuales (si quedara alguno) */
.tax-product_cat .sidebar-inner select {
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	border: 1px solid #D4CCBD;
	border-radius: 999px;
	background-color: #FCFAF6;
	color: #241E2E;
	padding: 8px 34px 8px 16px;
	box-shadow: none;
}

/* Lista de categorías (Busca tu vino) al estilo Colecciones */
.tax-product_cat .sidebar-inner ul li.cat-item {
	border: none;
	padding: 5px 0;
}
.tax-product_cat .sidebar-inner ul li.cat-item a {
	font-family: 'Cormorant Garamond', serif;
	font-size: 19px;
	font-weight: 500;
	color: #241E2E;
	letter-spacing: 0;
	text-transform: none;
	transition: color .15s, padding-left .15s;
}
.tax-product_cat .sidebar-inner ul li.cat-item a:hover {
	color: #A8894C;
	padding-left: 6px;
}
.tax-product_cat .sidebar-inner ul li.cat-item .count {
	color: #A9A2B2;
	font-size: 12px;
}

/* Resto de enlaces del sidebar */
.tax-product_cat .sidebar-inner a {
	color: #241E2E;
}
.tax-product_cat .sidebar-inner a:hover {
	color: #A8894C;
}

/* ---------- Paginación ---------- */
.tax-product_cat .page-numbers li .page-number,
.tax-product_cat .page-numbers li > span,
.tax-product_cat .page-numbers li > a {
	font-family: 'Jost', sans-serif;
	border-radius: 50%;
	border-color: #D4CCBD;
	color: #241E2E;
}
.tax-product_cat .page-numbers li .current,
.tax-product_cat .page-numbers li > span.current {
	background: #453064;
	border-color: #453064;
	color: #FFFFFF;
}

/* ---------- Responsive ---------- */
@media (max-width: 849px) {
	.arane-hero-inner {
		padding: 30px 20px 26px;
	}
	.arane-hero-titulo {
		font-size: 38px;
	}
	.arane-hero-filtrar {
		display: inline-flex;
		align-items: center;
		gap: 8px;
	}
	.arane-hero-right {
		padding-bottom: 0;
	}
	.tax-product_cat .products .product-small .box-image {
		height: 220px;
	}
}
