/* ═══════════════════════════════════════════════
   XAN CERÁMICA — woocommerce.css
   Refinamientos adicionales del tema sobre el CSS
   premium del snippet de header (catálogo + producto).
   ═══════════════════════════════════════════════ */

:root{
  --negro:#171007;
  --tierra:#B8763B;
  --tierra-osc:#8A5223;
  --tierra-clara:#D9A25F;
  --arena:#F2E9DC;
  --crema:#FAF6EE;
  --warm:#EFE5D3;
  --blanco:#FFFDF8;
  --grad-tierra:linear-gradient(120deg,#D9A25F,#B8763B 48%,#8A5223);
}

body.woocommerce{background:var(--crema)}

/* ── Cabecera del archivo (tienda/categoría) ─── */
.xan-shop-archive{padding:0 0 100px}
.xan-shop-archive__head{
  position:relative;text-align:center;padding:130px 32px 64px;
  background:
    radial-gradient(90% 80% at 50% 0%,rgba(184,118,59,.12),transparent 60%),
    var(--crema);
  border-bottom:1px solid rgba(184,118,59,.12);
}
.xan-shop-archive__crumb{
  font-family:'DM Sans',sans-serif;font-size:9.5px;font-weight:600;
  letter-spacing:4.5px;text-transform:uppercase;color:var(--tierra);
  margin-bottom:16px;display:flex;align-items:center;justify-content:center;gap:14px;
}
.xan-shop-archive__crumb::before,.xan-shop-archive__crumb::after{content:'';width:44px;height:1px;background:var(--grad-tierra)}
.xan-shop-archive__crumb::before{background:linear-gradient(90deg,transparent,var(--tierra))}
.xan-shop-archive__crumb::after{background:linear-gradient(90deg,var(--tierra),transparent)}
.xan-shop-archive__title{
  font-family:'Cormorant Garamond',serif;font-weight:300;letter-spacing:2px;
  font-size:clamp(38px,5vw,62px);line-height:1.05;color:var(--negro);
}
.xan-shop-archive__desc{
  font-size:14px;color:rgba(23,16,7,.55);line-height:1.9;max-width:520px;margin:16px auto 0;font-weight:300;
}
/* Contenedor del catálogo: ancho completo, sin doble padding.
   Sobrescribe el padding de .xan-container para que las tarjetas
   usen todo el ancho disponible (en móvil evita productos delgados). */
.xan-container.xan-shop-archive__inner{
  width:100%;max-width:1600px;margin:0 auto;
  padding:56px 32px 0;box-sizing:border-box;
}
body.woocommerce ul.products{width:100%;max-width:none;margin:0}
@media screen and (min-width:1025px) and (max-width:1500px){
  .xan-container.xan-shop-archive__inner{padding-left:32px;padding-right:32px}
}
@media screen and (max-width:1024px){
  .xan-container.xan-shop-archive__inner{padding:44px 28px 0}
}
@media screen and (max-width:767px){
  .xan-shop-archive__head{padding:120px 20px 44px}
  .xan-container.xan-shop-archive__inner{padding:32px 16px 0}
  .xan-shop-archive__title{font-size:clamp(32px,11vw,46px)}
}
@media screen and (max-width:480px){
  .xan-container.xan-shop-archive__inner{padding:28px 10px 0}
}

/* ── Producto individual: contenedor ────────── */
body.single-product .xan-container{max-width:1440px}
body.single-product div.product{padding:110px 48px 40px;max-width:1440px;margin:0 auto}
body.single-product div.product .woocommerce-notices-wrapper{grid-column:1 / -1}
@media screen and (max-width:1024px){
  body.single-product div.product{padding:90px 28px 30px}
}
@media screen and (max-width:767px){
  body.single-product div.product{padding:80px 16px 20px}
}

/* ── Paginación compacta en móvil ───────────── */
@media screen and (max-width:480px){
  body.woocommerce ul.products li.product{padding:10px 8px 14px}
}

/* ═══════════════════════════════════════════════
   CHECKOUT
   (El tema desactiva woocommerce-layout, por lo que
   este bloque restaura el layout de dos columnas y
   coloca los métodos de pago/tarjeta justo debajo
   del total del pedido, siempre visibles.)
   ═══════════════════════════════════════════════ */
.xan-checkout{background:var(--crema);padding:120px 48px 140px;min-height:78vh}
body.woocommerce-checkout .xan-page-content{padding:0;background:var(--crema)}
body.woocommerce-checkout .xan-page-content .xan-container{max-width:none;padding:0}
.xan-checkout__head{max-width:1440px;margin:0 auto 10px;text-align:center}
.xan-checkout__crumb{
  font-family:'DM Sans',sans-serif;font-size:9.5px;font-weight:600;
  letter-spacing:4.5px;text-transform:uppercase;color:var(--tierra);
  display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:14px;
}
.xan-checkout__crumb::before,.xan-checkout__crumb::after{content:'';width:44px;height:1px;background:var(--grad-tierra)}
.xan-checkout__title{
  font-family:'Cormorant Garamond',serif;font-weight:300;letter-spacing:2px;
  font-size:clamp(38px,5vw,58px);line-height:1.05;color:var(--negro);margin-bottom:40px;
}

.xan-checkout__cols{
  max-width:1440px;margin:0 auto;
  display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:start;
}

/* Columna izquierda — facturación/envío */
.xan-checkout__billing .woocommerce-billing-fields__field-wrapper,
.xan-checkout__billing .woocommerce-shipping-fields__field-wrapper,
.xan-checkout__billing .woocommerce-account-fields,
.xan-checkout__billing .woocommerce-additional-fields__field-wrapper{
  display:grid;grid-template-columns:1fr 1fr;column-gap:18px;
}
.xan-checkout__billing .form-row{width:100% !important;float:none !important;margin-bottom:16px}
.xan-checkout__billing .form-row-first,.xan-checkout__billing .form-row-last{grid-column:auto}
.xan-checkout__billing .form-row.woocommerce-invalid .select2-container,
.xan-checkout__billing input.input-text,
.xan-checkout__billing textarea.input-text,
.xan-checkout__billing select{
  width:100%;box-sizing:border-box;padding:15px 18px;border-radius:14px;
  border:1px solid rgba(138,82,35,.25);background:var(--blanco);
  font-family:'DM Sans',sans-serif;font-size:13px;color:var(--negro);outline:none;
  transition:border-color .25s,box-shadow .25s;
}
.xan-checkout__billing .input-text:focus,.xan-checkout__billing select:focus,
.xan-checkout__billing textarea.input-text:focus{
  border-color:var(--tierra-clara);box-shadow:0 0 0 3px rgba(217,162,95,.18);
}
.xan-checkout__billing .form-row label{
  display:block;font-family:'DM Sans',sans-serif;font-size:9.5px;font-weight:600;
  letter-spacing:2px;text-transform:uppercase;color:var(--tierra-osc);margin-bottom:8px;
}
.xan-checkout__billing .woocommerce bdi{color:unset}
.xan-checkout__billing h3{
  font-family:'Cormorant Garamond',serif;font-size:26px;font-weight:500;letter-spacing:1px;
  color:var(--negro);margin:0 0 4px;
}
.xan-checkout__billing h3:not(:first-child){margin-top:34px}
.xan-checkout__billing .woocommerce-checkout-review-order-table{display:none}

/* Columna derecha — resumen + pago */
.xan-checkout__summary{position:sticky;top:calc(var(--xh-h,88px) + 24px)}
.xan-checkout__review{
  background:var(--blanco);border:1px solid var(--border,rgba(138,82,35,.18));
  border-radius:24px;box-shadow:0 1px 2px rgba(23,16,7,.05);overflow:hidden;
}
.xan-checkout__review-title{
  font-family:'Cormorant Garamond',serif;font-size:26px;font-weight:500;letter-spacing:1px;
  color:var(--negro);padding:30px 34px 8px;margin:0;
}
.xan-checkout__review .shop_table{
  width:100%;border-collapse:collapse;background:var(--blanco);
}
.xan-checkout__review .shop_table thead th{
  font-family:'DM Sans',sans-serif;font-size:9.5px;font-weight:600;letter-spacing:2px;
  text-transform:uppercase;color:var(--tierra-osc);text-align:left;
  padding:14px 34px;border-bottom:1px solid var(--border,rgba(138,82,35,.12));
}
.xan-checkout__review .shop_table .product-name,.xan-checkout__review .shop_table .product-total{
  font-size:13px;color:var(--muted,var(--negro));padding:12px 34px;border-bottom:1px solid rgba(138,82,35,.08);
}
.xan-checkout__review .shop_table .product-total,.xan-checkout__review .shop_table tfoot th,
.xan-checkout__review .shop_table tfoot td{text-align:right}
.xan-checkout__review .shop_table tfoot th,.xan-checkout__review .shop_table tfoot td{
  padding:12px 34px;font-size:13px;border-bottom:1px solid rgba(138,82,35,.08);
}
.xan-checkout__review .shop_table tfoot th{font-family:'DM Sans',sans-serif;font-weight:600;color:var(--tierra-osc);text-align:left}
.xan-checkout__review .shop_table tr.order-total th,
.xan-checkout__review .shop_table tr.order-total td{
  font-family:'Cormorant Garamond',serif;font-size:24px;font-weight:500;color:var(--negro);
}
.xan-checkout__review .shop_table tr.order-total{border-top:2px solid var(--grad-tierra)}

/* Tarjeta / métodos de pago — pegados al total */
.xan-checkout__review #payment{
  background:var(--warm);border-top:1px solid var(--border,rgba(138,82,35,.18));
  border-radius:0 0 24px 24px;
}
.xan-checkout__review #payment ul.payment_methods{
  list-style:none;margin:0;padding:34px 34px 8px;display:flex;flex-direction:column;gap:8px;
}
.xan-checkout__review #payment ul.payment_methods li{margin:0;position:relative}
.xan-checkout__review #payment ul.payment_methods li label{
  font-family:'DM Sans',sans-serif;font-weight:500;color:var(--negro);font-size:14px;
  display:flex;align-items:center;gap:10px;cursor:pointer;padding:18px 20px;
  border:1px solid rgba(138,82,35,.18);border-radius:14px;background:var(--blanco);
  transition:border-color .25s,box-shadow .25s,transform .25s;
}
.xan-checkout__review #payment ul.payment_methods li input[type=radio]{
  accent-color:var(--tierra);width:17px;height:17px;flex:none;
}
.xan-checkout__review #payment ul.payment_methods li label:hover{
  border-color:var(--tierra-clara);transform:translateY(-1px);
}
.xan-checkout__review #payment ul.payment_methods li input:checked + label,
.xan-checkout__review #payment ul.payment_methods li label.selected{
  border-color:var(--tierra-clara);box-shadow:0 0 0 2px rgba(217,162,95,.25);background:var(--blanco);
}
.xan-checkout__review #payment .payment_box{
  padding:16px 20px 22px;margin:0 34px 6px;background:var(--crema);
  border:1px solid rgba(138,82,35,.14);border-radius:14px;font-size:13px;color:var(--muted,var(--negro));
}
.xan-checkout__review #payment .payment_box p{margin:.4em 0 .2em;line-height:1.7}
.xan-checkout__review #payment .form-row.place-order{padding:22px 34px 34px;margin:0}
.xan-checkout__review #payment #place_order{
  width:100%;box-sizing:border-box;justify-content:center;text-align:center;
  background:linear-gradient(120deg,#D9A25F,#B8763B 48%,#8A5223);
  color:#171007;border:1px solid rgba(23,16,7,.18);border-radius:999px;
  padding:20px 34px;font-family:'DM Sans',sans-serif;font-weight:600;font-size:14px;
  letter-spacing:2px;text-transform:uppercase;cursor:pointer;
  box-shadow:0 14px 30px rgba(138,82,35,.32);transition:transform .25s,filter .25s;
}
.xan-checkout__review #payment #place_order:hover{transform:translateY(-2px);filter:brightness(1.04)}
.xan-checkout__review #payment #place_order:disabled{opacity:.5;cursor:not-allowed}

/* Notificaciones y avisos */
.xan-checkout .woocommerce-notices-wrapper{max-width:1440px;margin:0 auto 24px}
.xan-checkout .woocommerce-error,.xan-checkout .woocommerce-info,.xan-checkout .woocommerce-message{
  background:var(--blanco);border:1px solid rgba(138,82,35,.2);border-radius:14px;
  padding:16px 22px;list-style:none;color:var(--negro);font-size:13px;margin-bottom:14px;
}
.xan-checkout .woocommerce-error::before,.xan-checkout .woocommerce-info::before{color:var(--tierra)}

/* Responsive */
@media screen and (max-width:1024px){
  .xan-checkout{padding:100px 28px 120px}
  .xan-checkout__cols{grid-template-columns:1fr;gap:36px}
  .xan-checkout__summary{position:static}
  .xan-checkout__billing .woocommerce-billing-fields__field-wrapper{grid-template-columns:1fr}
}
@media screen and (max-width:767px){
  .xan-checkout{padding:84px 16px 100px}
  .xan-checkout__review-title{padding:24px 20px 6px}
  .xan-checkout__review .shop_table thead th,.xan-checkout__review .shop_table .product-name,
  .xan-checkout__review .shop_table .product-total,.xan-checkout__review .shop_table tfoot th,
  .xan-checkout__review .shop_table tfoot td{padding:10px 20px}
  .xan-checkout__review #payment ul.payment_methods{padding:24px 20px 6px}
  .xan-checkout__review #payment .payment_box{margin:0 20px 6px}
  .xan-checkout__review #payment .form-row.place-order{padding:18px 20px 24px}
}

/* ═══════════════════════════════════════════════════════════════
   CATÁLOGO — tarjetas de producto (marcado estándar de WooCommerce)
   header.css usaba clases de Astra (.astra-shop-*) que este tema no
   genera. Estas reglas estilizan el marcado real:
   li.product > a.woocommerce-LoopProduct-link > img + h2 + .price
   ═══════════════════════════════════════════════════════════════ */
body.woocommerce ul.products li.product{
  position:relative;overflow:hidden;gap:0;
  background:var(--blanco);border:1px solid rgba(138,82,35,.14);
  border-radius:22px;padding:12px 12px 16px;
  box-shadow:0 12px 34px rgba(23,16,7,.06);
  transition:transform .4s var(--ease,.3s),box-shadow .4s var(--ease,.3s),border-color .3s;
}
body.woocommerce ul.products li.product:hover{
  transform:translateY(-6px);box-shadow:0 26px 54px rgba(23,16,7,.14);
  border-color:rgba(184,118,59,.35);
}

/* El enlace del loop envuelve imagen + título + precio */
body.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body.woocommerce ul.products li.product a.woocommerce-loop-product__link{
  display:flex;flex-direction:column;flex:1;width:100%;
  text-decoration:none;color:inherit;background:transparent;
}
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:hover,
body.woocommerce ul.products li.product a.woocommerce-loop-product__link:hover{
  background:transparent;color:inherit;text-decoration:none;
}

/* Imagen */
body.woocommerce ul.products li.product img,
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img{
  width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;
  border-radius:16px;margin:0 0 16px;display:block;
  background:var(--warm);transition:transform .6s var(--ease,.3s);
}
body.woocommerce ul.products li.product:hover img{
  transform:scale(1.035);
}

/* Título — sin subrayado azul, tipografía premium */
body.woocommerce ul.products li.product h2.woocommerce-loop-product__title{
  font-family:'Cormorant Garamond',serif;font-size:20px;font-weight:500;
  line-height:1.22;color:var(--negro);margin:0 0 8px;padding:0 4px;
  letter-spacing:.2px;text-decoration:none;
}
body.woocommerce ul.products li.product h2.woocommerce-loop-product__title a,
body.woocommerce ul.products li.product h2.woocommerce-loop-product__title a:hover{
  color:inherit;text-decoration:none;background:transparent;
}

/* Precio: base normal o rango "Desde $X – $Y" del sistema de kits */
body.woocommerce ul.products li.product .price{
  font-family:'DM Sans',sans-serif;font-size:13px;font-weight:600;
  letter-spacing:.6px;color:var(--tierra-osc);margin:0;padding:0 4px 14px;
  display:flex;flex-direction:column;align-items:flex-start;gap:2px;
}
body.woocommerce ul.products li.product .price .amount,
body.woocommerce ul.products li.product .price bdi{color:inherit}
body.woocommerce ul.products li.product .price del{opacity:.55;font-weight:400}
body.woocommerce ul.products li.product .price ins{text-decoration:none}
body.woocommerce ul.products li.product .xan-kit-price-range{
  display:inline-flex;align-items:baseline;gap:4px;flex-wrap:wrap;
}
body.woocommerce ul.products li.product .xan-kit-price-range .amount{white-space:nowrap}
body.woocommerce ul.products li.product .xan-kit-price-range.xan-flat{
  font-weight:600;color:var(--tierra-osc);
}

/* Botón añadir al carrito */
body.woocommerce ul.products li.product a.button.add_to_cart_button,
body.woocommerce ul.products li.product a.add_to_cart_button{
  margin-top:auto;align-self:flex-start;min-height:42px;padding:0 22px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:transparent;color:var(--negro);
  border:1px solid rgba(184,118,59,.4);border-radius:999px;
  font-family:'DM Sans',sans-serif;font-size:9px;font-weight:600;
  letter-spacing:2.2px;text-transform:uppercase;text-decoration:none;
  transition:background .3s,color .3s,border-color .3s,transform .3s,box-shadow .3s;
}
body.woocommerce ul.products li.product a.button.add_to_cart_button:hover,
body.woocommerce ul.products li.product a.add_to_cart_button:hover{
  background:var(--grad-tierra);color:var(--negro);border-color:transparent;
  transform:translateY(-2px);box-shadow:0 10px 22px rgba(138,82,35,.28);
}
body.woocommerce ul.products li.product a.button.add_to_cart_button.loading{
  opacity:.7;pointer-events:none;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCTO INDIVIDUAL — refinamiento premium
   ═══════════════════════════════════════════════════════════════ */
body.single-product div.product{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:clamp(28px,4vw,64px);align-items:start;
  background:var(--crema);
}
body.single-product .woocommerce-product-gallery{
  border-radius:24px;overflow:hidden;background:var(--blanco);
  border:1px solid rgba(138,82,35,.14);padding:14px;
  box-shadow:0 18px 44px rgba(23,16,7,.08);
  position:sticky;top:calc(var(--xh-h,88px) + 28px);
}
body.single-product .woocommerce-product-gallery .flex-viewport{border-radius:16px;overflow:hidden}
body.single-product .woocommerce-product-gallery .flex-viewport img{
  aspect-ratio:1/1;width:100%;height:auto;object-fit:cover;display:block;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0 0;padding:0;list-style:none;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs li{width:auto!important;float:none;margin:0}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img{
  border-radius:10px;cursor:pointer;aspect-ratio:1/1;object-fit:cover;
  border:1px solid transparent;transition:border-color .25s;
}
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover{border-color:var(--tierra-clara)}

/* Resumen */
body.single-product div.product .summary{min-width:0;padding:6px 0 0;position:relative}
body.single-product div.product .summary .product_title{
  font-family:'Cormorant Garamond',serif;font-size:clamp(34px,4vw,48px);font-weight:500;
  line-height:1.05;color:var(--negro);margin:0 0 6px;letter-spacing:.5px;
}
body.single-product div.product .summary .price{
  font-family:'Cormorant Garamond',serif;font-size:30px;font-weight:600;
  color:var(--tierra);margin:0 0 20px;display:block;
}
body.single-product div.product .summary .price .amount{color:inherit}
body.single-product div.product .summary .price del{opacity:.55;font-size:22px;font-weight:400}
body.single-product div.product .summary .price ins{text-decoration:none}
body.single-product div.product .summary .woocommerce-product-details__short-description{
  font-family:'DM Sans',sans-serif;font-size:13.5px;line-height:1.8;color:rgba(23,16,7,.74);
  margin:0 0 28px;max-width:560px;
}

/* Separación visual antes del formulario de kits */
body.single-product div.product form.cart{
  display:block;margin:0 0 26px;
}
body.single-product div.product form.cart .quantity{
  margin:0 0 18px;display:inline-flex;align-items:center;
  border:1px solid rgba(138,82,35,.25);border-radius:12px;overflow:hidden;
}
body.single-product div.product form.cart .quantity .qty{
  width:64px;height:50px;border:none;text-align:center;
  font-family:'DM Sans',sans-serif;font-size:14px;font-weight:600;color:var(--negro);
  background:var(--blanco);
}
body.single-product div.product form.cart .quantity .qty:focus{outline:none}
body.single-product div.product .single_add_to_cart_button{
  min-height:54px;padding:0 38px;margin-top:6px;
}

/* ── Selector de kit y colores (sistema xan-kits) ──────────── */
body.single-product .xan-kit-wrapper{
  background:var(--blanco);border:1px solid rgba(138,82,35,.16);
  border-radius:20px;padding:24px;margin:0 0 24px;
  box-shadow:0 10px 28px rgba(23,16,7,.05);
}
body.single-product .xan-kit-block,.body.single-product .xan-colors-block{margin-bottom:22px}
body.single-product .xan-kit-block:last-child,.body.single-product .xan-colors-block:last-child{margin-bottom:0}
body.single-product .xan-kit-title{
  font-family:'DM Sans',sans-serif;font-size:9.5px;font-weight:600;
  letter-spacing:2.6px;text-transform:uppercase;color:var(--tierra-osc);
  display:block;margin:0 0 12px;
}
body.single-product .xan-kit-fixed-note{
  font-family:'DM Sans',sans-serif;font-size:12px;color:var(--tierra-osc);
  margin:0 0 10px;
}
body.single-product .xan-kit-select{
  width:100%;height:48px;padding:0 18px;border:1px solid rgba(138,82,35,.28);
  border-radius:12px;background:var(--crema);color:var(--negro);
  font-family:'DM Sans',sans-serif;font-size:13px;font-weight:500;outline:none;
  transition:border-color .25s,box-shadow .25s;
}
body.single-product .xan-kit-select:focus{
  border-color:var(--tierra-clara);box-shadow:0 0 0 3px rgba(217,162,95,.18);
}

/* Cuadrícula de colores */
body.single-product .xan-colors-wrapper{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:10px;
  max-height:300px;overflow:auto;padding:2px;
}
body.single-product .xan-color-option{
  position:relative;cursor:pointer;display:block;margin:0;padding:0;
  border:1px solid rgba(138,82,35,.22);border-radius:12px;background:var(--crema);
  transition:border-color .2s,background .2s,transform .2s,box-shadow .2s;
}
body.single-product .xan-color-option:hover{
  border-color:var(--tierra-clara);transform:translateY(-2px);
}
body.single-product .xan-color-option input{position:absolute;opacity:0;pointer-events:none}
body.single-product .xan-color-option .xan-color-name{
  display:flex;align-items:center;justify-content:center;min-height:46px;padding:8px 12px;
  color:var(--negro);font-family:'DM Sans',sans-serif;font-size:11px;font-weight:500;text-align:center;
  transition:color .2s,font-weight .2s;
}
body.single-product .xan-color-option input:checked + .xan-color-name{
  background:var(--grad-tierra);color:var(--negro);font-weight:600;
  box-shadow:0 8px 18px rgba(184,118,59,.35);
}
body.single-product .xan-color-option input:checked ~ .xan-color-name{
  background:var(--grad-tierra);color:var(--negro);font-weight:600;
  box-shadow:0 8px 18px rgba(184,118,59,.35);
}
body.single-product .xan-color-option.xan-selected{border-color:transparent}
body.single-product .xan-color-option.xan-disabled{opacity:.4;filter:grayscale(.5);pointer-events:none}

/* Contador / validación */
body.single-product .xan-kit-counter{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:16px;padding-top:16px;border-top:1px dashed rgba(138,82,35,.2);
}
body.single-product .xan-kit-counter-text{
  font-family:'DM Sans',sans-serif;font-size:12px;font-weight:500;color:rgba(23,16,7,.66);
}
body.single-product .xan-kit-counter-text.xan-kit-complete{color:var(--tierra);font-weight:600}
body.single-product .xan-kit-counter-text.xan-kit-error{color:#b3261e;font-weight:600}

/* Meta, pestañas, relacionados */
body.single-product div.product .product_meta{
  font-family:'DM Sans',sans-serif;font-size:9.5px;font-weight:500;letter-spacing:1.5px;
  text-transform:uppercase;color:rgba(23,16,7,.5);
  margin:26px 0 0;padding-top:20px;border-top:1px solid rgba(23,16,7,.08);
}
body.single-product div.product .product_meta a{color:var(--tierra-osc);text-decoration:none}
body.single-product div.product .product_meta a:hover{text-decoration:underline}
body.single-product .woocommerce-tabs{
  grid-column:1 / -1;margin-top:88px;padding-top:44px;border-top:1px solid rgba(23,16,7,.08);
}
body.single-product .woocommerce-tabs ul.tabs{
  display:flex;flex-wrap:wrap;gap:36px;margin:0 0 34px;padding:0;list-style:none;
  border-bottom:1px solid rgba(23,16,7,.08);
}
body.single-product .woocommerce-tabs ul.tabs::before{border:none;box-shadow:none}
body.single-product .woocommerce-tabs ul.tabs li{
  margin:0;padding:0 0 18px;border:none;background:transparent;border-radius:0;
  border-bottom:2px solid transparent;
}
body.single-product .woocommerce-tabs ul.tabs li::before,body.single-product .woocommerce-tabs ul.tabs li::after{display:none}
body.single-product .woocommerce-tabs ul.tabs li.active{border-bottom-color:var(--tierra)}
body.single-product .woocommerce-tabs ul.tabs li a{
  font-family:'DM Sans',sans-serif;font-size:10px;font-weight:600;letter-spacing:3px;
  text-transform:uppercase;color:rgba(23,16,7,.5);text-decoration:none;padding:0;
}
body.single-product .woocommerce-tabs ul.tabs li.active a{color:var(--negro)}
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel{
  font-family:'DM Sans',sans-serif;font-size:13.5px;line-height:1.85;color:rgba(23,16,7,.72);
}
body.single-product section.related.products{grid-column:1 / -1;margin-top:90px;clear:both}
body.single-product section.related.products>h2{
  font-family:'DM Sans',sans-serif;font-size:11px;font-weight:600;letter-spacing:4px;
  text-transform:uppercase;color:var(--tierra-osc);margin:0 0 28px;
}
body.single-product section.related.products ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Avisos */
body.woocommerce .woocommerce-error,body.woocommerce .woocommerce-info,
body.woocommerce .woocommerce-message{
  background:var(--blanco);border:1px solid rgba(138,82,35,.2);border-radius:14px;
  padding:16px 22px;list-style:none;color:var(--negro);font-size:13px;margin-bottom:18px;
}
body.woocommerce .woocommerce-error::before,body.woocommerce .woocommerce-info::before{color:var(--tierra)}

/* Responsive catálogo/producto */
@media screen and (max-width:1024px){
  body.single-product div.product{grid-template-columns:1fr;gap:34px}
  body.single-product .woocommerce-product-gallery{position:static}
  body.single-product .woocommerce-tabs,body.single-product section.related.products{grid-column:auto;margin-top:60px}
  body.single-product section.related.products ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media screen and (max-width:767px){
  body.single-product div.product{gap:24px}
  body.single-product .summary .product_title{font-size:clamp(28px,8.5vw,38px)}
  body.single-product .xan-colors-wrapper{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.single-product section.related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:480px){
  body.single-product .xan-kit-wrapper{padding:18px}
  body.single-product .xan-colors-wrapper{grid-template-columns:1fr}
  body.single-product form.cart{flex-direction:column;align-items:stretch}
  body.single-product form.cart .single_add_to_cart_button{width:100%;text-align:center}
}

/* ═══════════════════════════════════════════════════════════════
   GRID DEL CATÁLOGO — responsive, nativo de WooCommerce
   El archivo ul.products usa la estructura del loop de WooCommerce
   (li.product con woocommerce-LoopProduct-link, h2 y .price). Estas
   reglas definen el grid por dispositivo y garantizan tarjetas
   uniformes y alineadas. (Prevalece sobre header.css.)
   ═══════════════════════════════════════════════════════════════ */
body.woocommerce ul.products{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;
  margin:0;padding:0;list-style:none;
}

/* Tarjetas uniformes, de igual altura y alineadas */
body.woocommerce ul.products li.product{
  display:flex;flex-direction:column;height:100%;min-width:0;
}
body.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
body.woocommerce ul.products li.product a.woocommerce-loop-product__link{
  display:flex;flex-direction:column;flex:1 1 auto;width:100%;
  text-decoration:none;color:inherit;background:transparent;
}
body.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link:hover,
body.woocommerce ul.products li.product a.woocommerce-loop-product__link:hover{
  background:transparent;color:inherit;text-decoration:none;
}
body.woocommerce ul.products li.product img{
  width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;
  border-radius:16px;margin:0 0 14px;display:block;background:var(--warm);
}
body.woocommerce ul.products li.product h2.woocommerce-loop-product__title{
  font-family:'Cormorant Garamond',serif;font-size:20px;font-weight:500;
  line-height:1.25;color:var(--negro);margin:0 0 8px;padding:0 4px;
  letter-spacing:.2px;text-decoration:none;
  overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  min-height:calc(1.25em * 2);
}
body.woocommerce ul.products li.product .price{
  font-family:'DM Sans',sans-serif;font-size:13px;font-weight:600;
  letter-spacing:.6px;color:var(--tierra-osc);margin:0;padding:0 4px 14px;
  display:flex;flex-direction:column;align-items:flex-start;gap:2px;
  min-height:1.6em;justify-content:flex-end;
}
body.woocommerce ul.products li.product .price .amount,
body.woocommerce ul.products li.product .price bdi{color:inherit}
body.woocommerce ul.products li.product .price del{opacity:.55;font-weight:400}
body.woocommerce ul.products li.product .price ins{text-decoration:none}
body.woocommerce ul.products li.product a.button.add_to_cart_button{
  margin-top:auto;align-self:flex-start;min-height:42px;padding:0 22px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:transparent;color:var(--negro);
  border:1px solid rgba(184,118,59,.4);border-radius:999px;
  font-family:'DM Sans',sans-serif;font-size:9px;font-weight:600;
  letter-spacing:2.2px;text-transform:uppercase;text-decoration:none;
  transition:background .3s,color .3s,border-color .3s,transform .3s,box-shadow .3s;
}
body.woocommerce ul.products li.product a.button.add_to_cart_button:hover{
  background:var(--grad-tierra);color:var(--negro);border-color:transparent;
  transform:translateY(-2px);box-shadow:0 10px 22px rgba(138,82,35,.28);
}

/* ── Columnas por dispositivo ───────────────────────────────────
   Escritorio ancho  : 4
   Escritorio/tablet : 3
   Móvil grande      : 2
   Móvil pequeño     : 2 (compacto)
   ────────────────────────────────────────────────────────────── */
@media screen and (min-width:1201px){
  body.woocommerce ul.products,body.single-product section.related.products ul.products{
    grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;
  }
}
@media screen and (min-width:821px) and (max-width:1200px){
  body.woocommerce ul.products,body.single-product section.related.products ul.products{
    grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;
  }
}
@media screen and (min-width:480px) and (max-width:820px){
  body.woocommerce ul.products,body.single-product section.related.products ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;
  }
}
@media screen and (max-width:479px){
  body.woocommerce ul.products{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
    max-width:none;margin-left:0;margin-right:0;
  }
  body.woocommerce ul.products li.product{padding:10px 8px 14px;border-radius:18px}
  body.woocommerce ul.products li.product h2.woocommerce-loop-product__title{
    font-size:17px;min-height:calc(1.25em * 2);
  }
  body.woocommerce ul.products li.product .price{font-size:12.5px;min-height:1.6em}
  body.woocommerce ul.products li.product a.button.add_to_cart_button{
    width:100%;margin-top:auto;justify-content:center;padding:0;min-height:44px;font-size:8.5px;
  }
}
