/* WooCommerce archive — Can Sion (14-11-2026)
   1) Tarjetas de producto (site-wide)  2) Cabecera + toolbar de archivos
   3) Subcategorías  4) Sidebar / filtros  5) Paginación  6) Móvil */

:root{
	--csa-navy:#0E2A47; --csa-orange:#D26E4B; --csa-orange-dk:#BF532C;
	--csa-bg:#F4F7FA; --csa-text:#3A4A5C; --csa-line:#E3EAF1;
	--csa-shadow:0 8px 26px rgba(14,42,71,.09); --csa-shadow-h:0 14px 34px rgba(14,42,71,.15);
	--csa-r:14px;
}

/* ===================== 1. TARJETAS DE PRODUCTO ===================== */
.product-small.col > .col-inner{
	position:relative; height:100%; display:flex; flex-direction:column;
	background:#fff; border:1px solid var(--csa-line); border-radius:var(--csa-r);
	box-shadow:0 2px 10px rgba(14,42,71,.05); overflow:hidden;
	transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-small.col > .col-inner:hover{ transform:translateY(-4px); box-shadow:var(--csa-shadow-h); border-color:#d3dde8; }
@media (prefers-reduced-motion:reduce){ .product-small.col > .col-inner{transition:none} .product-small.col > .col-inner:hover{transform:none} }
/* neutraliza sombras propias de Flatsome (row-box-shadow) para no duplicar */
.has-shadow .product-small .box,.row-box-shadow-1 .product-small .box,.row-box-shadow-5-hover .product-small .box:hover,
.product-small .box{ box-shadow:none !important; background:transparent; }
.product-small.box{ display:flex; flex-direction:column; flex:1 1 auto; height:100%; }
.product-small .box-image{ width:100%; margin:0; background:var(--csa-bg); border-bottom:1px solid var(--csa-line); padding:10px; border-radius:0; }
.product-small .box-image img{ mix-blend-mode:multiply; border-radius:8px; }
.product-small .box-image .back-image{ padding:10px; }
.product-small .box-text.box-text-products{
	display:flex; flex-direction:column; flex:1 1 auto; text-align:left;
	padding:12px 14px 14px; background:#fff;
}
.product-small .box-text .title-wrapper{ margin-bottom:6px; }
.product-small .box-text .product-cat{
	font-family:"Karla",sans-serif; font-size:.68rem; font-weight:700; letter-spacing:.12em;
	color:var(--csa-orange-dk); opacity:1; margin:0 0 4px; line-height:1.3;
}
.product-small .box-text .product-cat.op-8{ opacity:1; }
.product-small .box-text .name.product-title{
	margin:0; font-family:"Karla",sans-serif; font-size:.95rem; line-height:1.35; font-weight:600;
	color:var(--csa-navy);
	display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
	min-height:calc(1.35em * 2);
}
.product-small .box-text .name.product-title::first-letter{ text-transform:uppercase; }
.product-small .box-text .name a{ color:inherit; }
.product-small .box-text .name a:hover{ color:var(--csa-orange-dk); }
.product-small .price-wrapper{ margin-top:auto; padding-top:4px; }
.product-small .price-wrapper .price{ display:flex; flex-wrap:wrap; align-items:baseline; column-gap:6px; row-gap:0; font-size:1.15rem; line-height:1.25; }
.product-small .price-wrapper .price del{ font-size:.8em; order:0; }
.product-small .price-wrapper .price ins{ order:1; }
.product-small .price-wrapper .woocommerce-price-suffix{ order:2; font-size:.66rem !important; letter-spacing:.04em; text-transform:uppercase; font-weight:600 !important; }
.product-small .star-rating{ margin:2px 0 4px; font-size:.75rem; }

/* Botón de la tarjeta (añadido por mu-plugin) */
.product-small .cs-card-cta{ margin-top:10px; }
.product-small .cs-card-cta .button{
	display:flex; align-items:center; justify-content:center; width:100%; margin:0;
	min-height:40px; padding:6px 14px; border-radius:40px; line-height:1.15;
	font-family:"Karla",sans-serif; font-size:.78rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
	background:var(--csa-orange-dk); color:#fff; border:1px solid var(--csa-orange-dk); box-shadow:none;
	transition:background .2s, color .2s, border-color .2s;
}
.product-small .cs-card-cta .button:hover{ background:#a8461f; border-color:#a8461f; color:#fff; }
.product-small .cs-card-cta .cs-card-btn--ghost{ background:#fff; color:var(--csa-navy); border-color:#c9d5e2; }
.product-small .cs-card-cta .cs-card-btn--ghost:hover{ background:var(--csa-navy); border-color:var(--csa-navy); color:#fff; }
.product-small .cs-card-cta .added_to_cart{ display:block; margin-top:6px; text-align:center; font-size:.8rem; font-weight:700; color:var(--csa-navy); text-decoration:underline; }
.product-small .cs-card-cta .button.loading{ opacity:.7; }

/* Badges */
.product-small .badge-container{ margin:10px 0 0 10px; z-index:2; }
.product-small .badge-container .badge{ height:auto; width:auto; margin:0; }
.product-small .badge-container .badge-inner,
.product-small .badge-container .badge-circle .badge-inner{
	border-radius:40px !important; padding:5px 11px; height:auto; width:auto; min-width:0;
	font-family:"Karla",sans-serif; font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; line-height:1.2;
	background:var(--csa-orange-dk) !important; color:#fff; box-shadow:0 3px 10px rgba(191,83,44,.3);
}
.product-small .out-of-stock-label{
	position:absolute; left:10px; bottom:10px; top:auto; right:auto; width:auto; z-index:2;
	padding:5px 11px; border-radius:40px; background:var(--csa-navy); color:#fff; opacity:1;
	font-family:"Karla",sans-serif; font-size:.7rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
}
.product-small.out-of-stock .box-image img{ opacity:.6; }

/* Iconos Flatsome (wishlist / quick view) sobre la imagen */
.product-small .image-tools{ z-index:3; }
.product-small .image-tools .wishlist-button,
.product-small .image-tools .button{ border-radius:40px; }
.product-small .quick-view{ border-radius:0 0 0 0; }

/* Carruseles (Flickity): igualar altura de celdas */
.slider .product-small.col > .col-inner{ margin-bottom:6px; }
.slider-wrapper .flickity-viewport{ padding-bottom:4px; }

/* Focus visible */
.product-small a:focus-visible,.product-small .button:focus-visible,
.woocommerce-pagination a:focus-visible,.cs-archive-more:focus-visible,
.woocommerce-ordering select:focus-visible,.category-filtering .filter-button:focus-visible{
	outline:3px solid var(--csa-orange); outline-offset:2px;
}

/* ===================== 2. CABECERA + TOOLBAR (archivos) ===================== */
.woocommerce.archive .shop-page-title.category-page-title{
	background:linear-gradient(180deg,var(--csa-bg) 0%,#fff 100%); border-bottom:1px solid var(--csa-line);
	padding:0; margin-bottom:6px;
}
.woocommerce.archive .shop-page-title .page-title-inner{
	display:grid; grid-template-columns:1fr auto; grid-template-areas:"bc bc" "head head" "count order";
	align-items:center; column-gap:14px; row-gap:0; padding-top:22px; padding-bottom:16px; min-height:0;
}
.woocommerce.archive .shop-page-title .page-title-inner > .flex-col{ display:contents; }
.woocommerce.archive .shop-page-title .page-title-inner .is-medium{ grid-area:bc; }
.woocommerce.archive .shop-page-title .cs-archive-head{ grid-area:head; }
.woocommerce.archive .shop-page-title .category-filtering{ grid-area:filter; margin:0; }
.woocommerce.archive .shop-page-title .woocommerce-result-count{ grid-area:count; }
.woocommerce.archive .shop-page-title .woocommerce-ordering{ grid-area:order; }
.woocommerce.archive .shop-page-title .page-title-inner,.woocommerce.archive .shop-page-title .medium-text-center{ text-align:left !important; }

.woocommerce.archive .shop-page-title .woocommerce-breadcrumb{
	font-family:"Karla",sans-serif; font-size:.8rem; letter-spacing:.04em; text-transform:none; font-weight:500;
	color:#5A6B7D; margin:0;
}
.woocommerce.archive .shop-page-title .woocommerce-breadcrumb a{ color:#5A6B7D; }
.woocommerce.archive .shop-page-title .woocommerce-breadcrumb a:hover{ color:var(--csa-orange-dk); }
.woocommerce.archive .shop-page-title .woocommerce-breadcrumb .divider{ margin:0 .45em; opacity:.6; }

.cs-archive-head{ padding:14px 0 18px; }
.woocommerce.archive .shop-page-title .cs-archive-head{ border-bottom:1px solid var(--csa-line); margin-bottom:12px; }
.cs-archive-head > *{ max-width:860px; }
.cs-archive-eyebrow{
	margin:0 0 6px; font-family:"Karla",sans-serif; font-size:.74rem; font-weight:700;
	letter-spacing:.12em; text-transform:uppercase; color:var(--csa-orange-dk);
}
.cs-archive-title{
	margin:0; padding:0; font-family:"Fraunces",serif; font-variation-settings:"SOFT" 100,"WONK" 1;
	font-weight:600; font-size:clamp(1.7rem,1.2rem + 1.8vw,2.6rem); line-height:1.12; color:var(--csa-navy);
	text-transform:none; letter-spacing:-.01em;
}
.cs-archive-page{ font-size:.55em; font-weight:500; color:#5A6B7D; white-space:nowrap; }
.cs-archive-count{
	display:inline-block; margin:12px 0 0; padding:3px 12px; border-radius:40px;
	background:#fff; border:1px solid var(--csa-line);
	font-family:"Karla",sans-serif; font-size:.8rem; font-weight:700; color:var(--csa-navy);
}
.cs-archive-intro,.cs-archive-desc{ margin:12px 0 0; font-family:"Karla",sans-serif; font-size:1rem; line-height:1.6; color:var(--csa-text); }
.cs-archive-desc p{ margin:0 0 .6em; }
.cs-archive-desc p:last-child{ margin-bottom:0; }
.cs-archive-desc.is-collapsed{ max-height:5em; overflow:hidden; position:relative;
	-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent); mask-image:linear-gradient(180deg,#000 55%,transparent); }
.cs-archive-more{
	margin:6px 0 0; padding:0; min-height:32px; background:none; border:0; box-shadow:none;
	font-family:"Karla",sans-serif; font-size:.85rem; font-weight:700; text-transform:none; letter-spacing:0;
	color:var(--csa-orange-dk); text-decoration:underline; text-underline-offset:3px; cursor:pointer;
}

/* toolbar */
.woocommerce.archive .shop-page-title .woocommerce-result-count{
	margin:0; padding:0; display:flex; align-items:center;
	font-family:"Karla",sans-serif; font-size:.88rem; color:#5A6B7D;
}
.woocommerce.archive .shop-page-title .woocommerce-ordering{
	margin:0; padding:0;
}
.woocommerce.archive .shop-page-title .category-filtering{ padding:0; display:flex; align-items:center; }
.woocommerce.archive .shop-page-title .category-filtering:empty,
.woocommerce.archive .shop-page-title .category-filtering .inline-block:empty{ display:none; }
.woocommerce-ordering select,.woocommerce-ordering select.orderby{
	margin:0; height:42px; min-width:230px; padding:0 38px 0 16px; border-radius:40px;
	border:1px solid #c9d5e2; background-color:#fff; box-shadow:none;
	font-family:"Karla",sans-serif; font-size:.9rem; font-weight:600; color:var(--csa-navy);
	background-position:right 14px center;
}
.woocommerce-ordering select:hover{ border-color:var(--csa-navy); }
.category-filtering .filter-button{
	display:inline-flex; align-items:center; gap:8px; min-height:42px; padding:0 18px; border-radius:40px;
	background:var(--csa-navy); color:#fff !important; font-family:"Karla",sans-serif; font-size:.85rem; letter-spacing:.06em;
}
.category-filtering .filter-button strong{ font-family:"Karla",sans-serif; font-weight:700; color:#fff; }
.category-filtering .filter-button i{ color:#fff; font-size:1rem; }
.category-filtering .filter-button:hover{ background:#163a60; }

/* Quitar ocultación móvil de Flatsome de la barra en tienda sin herramientas */
.woocommerce.archive .shop-container > .term-description{ display:none; }

/* ===================== 3. SUBCATEGORÍAS (tiles) ===================== */
.woocommerce.archive .product-category.col > .col-inner{ height:100%; }
.woocommerce.archive .product-category .box{
	height:100%; display:flex; flex-direction:column; background:#fff;
	border:1px solid var(--csa-line); border-radius:var(--csa-r); overflow:hidden;
	box-shadow:0 2px 10px rgba(14,42,71,.05) !important; transition:transform .22s, box-shadow .22s;
}
.woocommerce.archive .product-category a:hover .box{ transform:translateY(-4px); box-shadow:var(--csa-shadow-h) !important; }
.woocommerce.archive .product-category .box-image{ width:100%; margin:0; overflow:hidden; background:#fff; border-radius:0; }
/* las imágenes de categoría traen un marco negro incrustado: lo recortamos */
.woocommerce.archive .product-category .box-image img{ transform:scale(1.07); transition:transform .3s; }
.woocommerce.archive .product-category a:hover .box-image img{ transform:scale(1.11); }
.woocommerce.archive .product-category .box-image .overlay,
.woocommerce.archive .product-category .hover-dark .box-image:after{ display:none; }
.woocommerce.archive .product-category .box-text{
	position:static !important; transform:none !important; inset:auto; width:auto; max-width:none; margin:0;
	padding:12px 12px 14px !important; background:#fff !important; border-top:1px solid var(--csa-line); flex:1 1 auto;
	display:flex; align-items:center; justify-content:center;
}
.woocommerce.archive .product-category .box-text-inner{ background:none !important; padding:0 !important; }
.woocommerce.archive .product-category .box-text h5,
.woocommerce.archive .product-category .box-text .header-title{
	margin:0; font-family:"Fraunces",serif; font-variation-settings:"SOFT" 100,"WONK" 1; font-weight:600;
	font-size:1rem; letter-spacing:0; line-height:1.25; color:var(--csa-navy); text-transform:lowercase;
}
.woocommerce.archive .product-category .box-text h5::first-letter{ text-transform:uppercase; }
.woocommerce.archive .product-category .box-text .count{
	margin:4px 0 0; font-family:"Karla",sans-serif; font-size:.7rem; font-weight:700; letter-spacing:.1em; color:var(--csa-orange-dk); opacity:1;
}

/* ===================== 4. SIDEBAR / FILTROS ===================== */
#shop-sidebar .widget{
	background:#fff; border:1px solid var(--csa-line); border-radius:var(--csa-r);
	padding:16px 16px 14px; margin-bottom:16px; box-shadow:0 2px 10px rgba(14,42,71,.04);
}
#shop-sidebar .widget_text{ padding:0; border:0; box-shadow:none; background:none; }
#shop-sidebar .widget_text img{ border-radius:var(--csa-r); display:block; }
#shop-sidebar .widget-title{
	display:block; margin:0 0 10px; font-family:"Fraunces",serif; font-variation-settings:"SOFT" 100,"WONK" 1;
	font-size:1.05rem; font-weight:600; letter-spacing:0; text-transform:none; color:var(--csa-navy);
}
#shop-sidebar .widget .is-divider{ display:none; }
#shop-sidebar select{
	height:42px; border-radius:10px; border:1px solid #c9d5e2; box-shadow:none; margin:0;
	font-family:"Karla",sans-serif; font-size:.9rem; color:var(--csa-navy);
}
#shop-sidebar .select2-container .select2-selection--single{ height:42px; border-radius:10px; border-color:#c9d5e2; }
#shop-sidebar .select2-container .select2-selection--single .select2-selection__rendered{ line-height:40px; }
#shop-sidebar .price_slider_wrapper .ui-slider{ margin:8px 6px 18px; height:4px; background:var(--csa-line); border-radius:4px; }
#shop-sidebar .price_slider_wrapper .ui-slider .ui-slider-range{ background:var(--csa-orange); }
#shop-sidebar .price_slider_wrapper .ui-slider .ui-slider-handle{ background:#fff; border:3px solid var(--csa-orange-dk); width:18px; height:18px; top:-7px; border-radius:50%; }
#shop-sidebar .price_slider_amount{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
#shop-sidebar .price_slider_amount .button{
	order:2; margin:0; min-height:38px; padding:0 18px; border-radius:40px; background:var(--csa-navy); color:#fff;
	font-family:"Karla",sans-serif; font-size:.78rem; font-weight:700; letter-spacing:.06em;
}
#shop-sidebar .price_slider_amount .button:hover{ background:var(--csa-orange-dk); }
#shop-sidebar .price_slider_amount .price_label{ order:1; flex:1 1 auto; font-family:"Karla",sans-serif; font-size:.88rem; color:var(--csa-text); }
#shop-sidebar .price_slider_amount .clear{ display:none; }
#shop-sidebar .product-categories{ margin:0; }
#shop-sidebar .product-categories li{ border-top:1px solid #EEF2F6; margin:0; padding:0; }
#shop-sidebar .product-categories > li:first-child{ border-top:0; }
#shop-sidebar .product-categories li a{
	display:block; padding:8px 4px; font-family:"Karla",sans-serif; font-size:.92rem; letter-spacing:0;
	color:var(--csa-text); text-transform:lowercase; line-height:1.3;
}
#shop-sidebar .product-categories li a::first-letter{ text-transform:uppercase; }
#shop-sidebar .product-categories li a:hover{ color:var(--csa-orange-dk); }
#shop-sidebar .product-categories li.current-cat > a{ color:var(--csa-orange-dk); font-weight:700; }
#shop-sidebar .product-categories .children{ margin:0 0 6px 10px; padding-left:8px; border-left:2px solid var(--csa-line); }
#shop-sidebar .product-categories .children li{ border:0; }
#shop-sidebar .product-categories .children li a{ padding:5px 4px; font-size:.86rem; }
#shop-sidebar .product-categories .toggle{ min-height:36px; }
/* off-canvas (móvil) */
.off-canvas #shop-sidebar,.mfp-content #shop-sidebar{ padding:16px; background:var(--csa-bg); }
.off-canvas-left.mfp-content,.off-canvas .sidebar-menu{ background:var(--csa-bg); }

/* ===================== 5. PAGINACIÓN ===================== */
.woocommerce-pagination{ margin:10px 0 30px; }
.woocommerce-pagination ul.page-numbers{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.woocommerce-pagination ul.page-numbers li{ margin:0; }
.woocommerce-pagination .page-number{
	display:inline-flex; align-items:center; justify-content:center; min-width:42px; height:42px; padding:0 12px;
	border-radius:40px !important; border:1px solid #c9d5e2 !important; background:#fff; color:var(--csa-navy) !important;
	font-family:"Karla",sans-serif; font-weight:700; font-size:.92rem; line-height:1; box-shadow:none;
}
.woocommerce-pagination a.page-number:hover{ border-color:var(--csa-navy) !important; background:var(--csa-bg); }
.woocommerce-pagination .page-number.current{ background:var(--csa-navy) !important; border-color:var(--csa-navy) !important; color:#fff !important; }
.woocommerce-pagination .page-number.dots{ border-color:transparent !important; background:none; min-width:24px; padding:0; }

/* ===================== 6. MÓVIL ===================== */
@media (max-width:849px){
	.woocommerce.archive .shop-page-title .page-title-inner{
		grid-template-columns:1fr auto; grid-template-areas:"bc bc" "head head" "filter order" "count count";
		padding-top:14px; padding-bottom:12px;
	}
	.woocommerce.archive .shop-page-title .woocommerce-result-count{ display:none; }
	.cs-archive-head{ padding:10px 0 14px; }
	.cs-archive-intro,.cs-archive-desc{ font-size:.95rem; }
	.woocommerce.archive .shop-page-title .woocommerce-ordering select{ min-width:0; width:100%; max-width:200px; font-size:.85rem; padding-left:14px; }
	.woocommerce.archive .shop-page-title .woocommerce-ordering{ justify-self:end; }
	.woocommerce.archive .shop-page-title .woocommerce-ordering:only-child{ justify-self:stretch; }
}
@media (max-width:549px){
	.products.row.row-small > .product-small.col{ padding:0 5px 10px; }
	.products.row.row-small{ margin-left:-5px !important; margin-right:-5px !important; }
	.product-small .box-image{ padding:6px; }
	.product-small .box-text.box-text-products{ padding:10px 10px 12px; }
	.product-small .box-text .name.product-title{ font-size:.86rem; }
	.product-small .price-wrapper .price{ font-size:1rem; }
	.product-small .cs-card-cta .button{ font-size:.7rem; letter-spacing:.04em; padding:6px 8px; min-height:40px; }
	.product-small .badge-container{ margin:6px 0 0 6px; }
	.product-small .badge-container .badge-inner{ font-size:.64rem; padding:4px 9px; }
	.woocommerce.archive .product-category .box-text h5{ font-size:.9rem; }
	.woocommerce.archive .product-category.col{ padding:0 5px 10px; }
	.woocommerce-pagination .page-number{ min-width:40px; height:40px; }
}
@media (min-width:850px){
	.woocommerce.archive .shop-page-title .page-title-inner:not(:has(.woocommerce-ordering)) .cs-archive-head{ border-bottom:0; margin-bottom:0; padding-bottom:10px; }
}
