/* =====================================================================
   Dale Sabor · Fase 3 del rediseño (dirección A): plantillas
   Se carga después de fase2.css (dalesabor-fase3.php, wp_head 123)
   solo si ds_fase3_activo = 1, o con ?ds_fase3=1 para verlo antes.
   Superficies por tono, sin filetes ni cajas de 1 px; cada producto
   sobre su campo de color; composiciones distintas por sección.
   ===================================================================== */

:root{
  /* (los mismos campos que la fase 1, por si esta se apagara) */
  --ds-campo-maiz:#EFD38A;
  --ds-campo-aji:#E9B4A0;
  --ds-campo-hoja:#C9D8C5;
  --ds-campo-cielo:#BFD3DC;
  --ds-campo-maiz-claro:#F3E4C4;
  --ds-selva-honda:#0D2417;
}

/* ---------- Portada: hero ---------- */
.ds-hero-dato{ border:0!important; background:rgba(255,255,255,.07)!important; }
.ds-hero-chips{ border-top:0!important; padding-top:6px!important; }

/* Estado en directo (lo pone el script de dalesabor-fase3.php; sin script se ve el horario escrito) */
.ds-abierto{
  display:flex; align-items:center; gap:8px;
  margin-top:8px; font-size:15px; font-weight:600; color:#FFFFFF;
}
.ds-abierto::before{
  content:""; width:9px; height:9px; border-radius:50%; flex-shrink:0;
  background:var(--ds-mango);
}
.ds-abierto.is-cerrado{ font-weight:500; color:rgba(255,255,255,.84); }
.ds-abierto.is-cerrado::before{ background:rgba(255,255,255,.5); }

/* ---------- Portada: «Lo más nuevo del estante» como especímenes ---------- */
.ds-novedades .wc-block-grid__product{
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
  padding-bottom:0!important;
}
.ds-novedades .wc-block-grid__product:hover{ transform:none!important; }
.ds-novedades .wc-block-grid__product-image{
  border-radius:16px!important;
  overflow:hidden;
  margin-bottom:14px!important;
}
.ds-novedades .wc-block-grid__product:nth-child(4n+1) .wc-block-grid__product-image{ background:var(--ds-campo-cielo)!important; }
.ds-novedades .wc-block-grid__product:nth-child(4n+2) .wc-block-grid__product-image{ background:var(--ds-campo-hoja)!important; }
.ds-novedades .wc-block-grid__product:nth-child(4n+3) .wc-block-grid__product-image{ background:var(--ds-campo-maiz)!important; }
.ds-novedades .wc-block-grid__product:nth-child(4n+4) .wc-block-grid__product-image{ background:var(--ds-campo-aji)!important; }
.ds-novedades .wc-block-grid__product-image img{ mix-blend-mode:multiply; }

/* ---------- Portada: «Ofertas de la semana» como lista a dos columnas ---------- */
.ds-ofertas-inicio{ background:var(--ds-campo-maiz-claro)!important; }
.ds-ofertas-inicio .wc-block-grid__products{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px 28px!important;
}
.ds-ofertas-inicio .wc-block-grid__product{
  display:grid!important;
  grid-template-columns:1fr auto;
  grid-template-areas:"enlace enlace" "precio boton";
  align-items:center;
  gap:6px 16px;
  padding:14px!important;
  border:0!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.72)!important;
  position:relative;
}
.ds-ofertas-inicio .wc-block-grid__product:hover{ transform:none!important; background:#FFFFFF!important; }
.ds-ofertas-inicio .wc-block-grid__product-link{
  grid-area:enlace;
  display:flex!important; align-items:center; gap:16px;
  text-align:left!important;
}
.ds-ofertas-inicio .wc-block-grid__product-image{
  flex:0 0 96px; width:96px!important; height:96px; margin:0!important;
  border-radius:12px!important; overflow:hidden; background:var(--ds-campo-maiz)!important;
}
.ds-ofertas-inicio .wc-block-grid__product-image img{ width:100%; height:100%; object-fit:contain; mix-blend-mode:multiply; }
.ds-ofertas-inicio .wc-block-grid__product-title{ text-align:left!important; margin:0!important; padding:0!important; font-size:16px!important; }
.ds-ofertas-inicio .wc-block-grid__product-price{ grid-area:precio; text-align:left!important; justify-content:flex-start!important; margin:0 0 0 112px!important; padding:0!important; }
.ds-ofertas-inicio .wc-block-grid__product-add-to-cart{ grid-area:boton; margin:0!important; padding:0!important; }
.ds-ofertas-inicio .wc-block-grid__product-onsale{ position:absolute!important; top:12px!important; right:12px!important; left:auto!important; margin:0!important; }
.ds-ofertas-inicio .wc-block-grid__product-title{ padding-right:72px!important; }
@media (max-width:781px){
  .ds-ofertas-inicio .wc-block-grid__products{ grid-template-columns:1fr!important; }
  .ds-ofertas-inicio .wc-block-grid__product-image{ flex-basis:80px; width:80px!important; height:80px; }
  .ds-ofertas-inicio .wc-block-grid__product-price{ margin-left:96px!important; }
}

/* ---------- Portada: recetas y pasos, sin cajas ni filetes ---------- */
.ds-rm{ border:0!important; background:#FFFFFF; }
.ds-rm:hover{ transform:none!important; }
.ds-paso,
.ds-paso:last-child{
  border:0!important;
  background:rgba(255,255,255,.06);
  border-radius:16px;
  padding:20px 22px!important;
  margin-bottom:10px;
}

/* ---------- Recetas: superficies por tono en vez de cajas y filetes ---------- */
.ds-receta-compra,
.ds-receta-pasos{ border:0!important; background:#FFFFFF!important; }
.ds-recetas-indice a{ border:0!important; background:#FFFFFF!important; }
.ds-receta-item{ border-bottom:0!important; padding-top:8px!important; padding-bottom:8px!important; }
.ds-receta-item + .ds-receta-item{ border-top:0!important; }

/* ---------- Tienda y categorías: el producto sobre su campo, sin bordes ---------- */
.woocommerce ul.products li.product,
.products .product{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.woocommerce ul.products li.product:hover{ transform:none!important; }
.woocommerce ul.products li.product figure,
.woocommerce ul.products li.product .ct-media-container{
  border-radius:16px!important;
  overflow:hidden;
}
.woocommerce ul.products li.product:nth-child(4n+1) figure{ background:var(--ds-campo-cielo); }
.woocommerce ul.products li.product:nth-child(4n+2) figure{ background:var(--ds-campo-hoja); }
.woocommerce ul.products li.product:nth-child(4n+3) figure{ background:var(--ds-campo-maiz); }
.woocommerce ul.products li.product:nth-child(4n+4) figure{ background:var(--ds-campo-aji); }
.woocommerce ul.products li.product figure img{ mix-blend-mode:multiply; background:transparent!important; }
.woocommerce ul.products li.product .ct-media-container{ background:transparent!important; }

/* Nombres de producto un punto más grandes (eran el texto más repetido, a 14 px) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title{ font-size:16px!important; line-height:1.35!important; }
@media (max-width:999px){
  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .wc-block-grid__product-title{ font-size:15px!important; }
}

/* Barra lateral: botones por tono, sin contorno */
ul.product-categories li.cat-item{ border:0!important; }
ul.product-categories::after{ border-top:0!important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.ct-pagination .page-numbers{ border:0!important; }

/* Móvil: las categorías en rejilla plegable (el script marca las que se pliegan) */
@media (max-width:999px){
  ul.product-categories{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    overflow:visible!important;
    margin:0!important;
    padding:0!important;
  }
  ul.product-categories::before,
  ul.product-categories::after{ grid-column:1/-1; }
  ul.product-categories li.cat-item{ min-height:46px; white-space:normal!important; }
  ul.product-categories li.cat-item>a{ font-size:14px; padding:10px 0; }
  ul.product-categories:not(.ds-abiertas) li.ds-cat-extra{ display:none!important; }
  .ds-cats-boton{
    display:flex; align-items:center; justify-content:center;
    width:100%; min-height:44px; margin:8px 0 4px;
    border:1.5px solid var(--theme-palette-color-4); border-radius:999px;
    background:transparent; color:var(--theme-palette-color-4);
    font:600 14px/1 'Plus Jakarta Sans',system-ui,sans-serif; cursor:pointer;
  }
  .ds-cats-boton:focus-visible{ outline:2px solid var(--theme-palette-color-1); outline-offset:2px; }
}
@media (min-width:1000px){ .ds-cats-boton{ display:none!important; } }

/* ---------- Ficha de producto ---------- */
.woocommerce-tabs ul.tabs,
.woocommerce-tabs ul.tabs li,
.woocommerce-tabs ul.tabs::before{ border:0!important; }
.ct-product-divider{ display:none!important; }
.woocommerce-tabs ul.tabs li.active a{ color:var(--theme-palette-color-4)!important; }
.woocommerce-tabs ul.tabs li a{ border-radius:999px; }
.woocommerce-tabs ul.tabs li.active{ background:var(--theme-palette-color-6); border-radius:999px; }
.woocommerce div.product .woocommerce-tabs .panel{ border:0!important; }
.single-product .product_title{ font-size:42px!important; line-height:1.06!important; }
@media (max-width:999px){ .single-product .product_title{ font-size:30px!important; } }
/* El resumen deja de ir «pegado» al hacer scroll: las fichas son cortas y el título grande
   se deslizaba por encima de las fotos */
.sticky-summary .entry-summary{ position:static!important; }
/* El botón de ampliar muestra su icono (máscara de 40 px); el emoji 🔍 de texto no se ve ni se lee */
.woocommerce-product-gallery__trigger{ font-size:0!important; color:transparent!important; }
.single-product .woocommerce-product-gallery .flexy-pills [class*="active"] img,
.single-product .flexy-pills li{ border:0!important; }

/* ---------- Carrito, pago y cuenta: título a la altura del resto ---------- */
.woocommerce-cart .entry-header h1,
.woocommerce-checkout .entry-header h1,
.woocommerce-account .entry-header h1,
.woocommerce-cart h1.page-title,
.woocommerce-checkout h1.page-title,
.woocommerce-account h1.page-title{
  font-size:46px!important;
  line-height:1.06!important;
}
@media (max-width:689px){
  .woocommerce-cart .entry-header h1,
  .woocommerce-checkout .entry-header h1,
  .woocommerce-account .entry-header h1,
  .woocommerce-cart h1.page-title,
  .woocommerce-checkout h1.page-title,
  .woocommerce-account h1.page-title{ font-size:34px!important; }
}

/* Separador «— O —» de los pagos exprés: una frase en vez de un adorno */
#wcpay-express-checkout-button-separator{
  font-size:0!important;
  margin:14px 0 18px!important;
  text-align:left!important;
}
#wcpay-express-checkout-button-separator::before{
  content:"o rellena tus datos y paga con tarjeta o Klarna";
  font-size:14px; color:var(--theme-palette-color-3);
}

/* ---------- Franja superior de la cabecera: blanco neutro en vez de crema ---------- */
.ct-header [data-row*="top"]{ --theme-text-color:rgba(255,255,255,.92)!important; }
.ct-header [data-row*="top"] p,
.ct-header [data-row*="top"] .ct-header-text{ color:rgba(255,255,255,.92)!important; }

/* ---------- Pie: sin líneas discontinuas; el final, un tono más hondo ---------- */
footer.ct-footer [data-row],
footer.ct-footer [data-row] > div,
footer.ct-footer [data-row] .ct-container{
  --theme-border-top:none!important;
  --theme-border-bottom:none!important;
  border-top:0!important;
  border-bottom:0!important;
}
footer.ct-footer [data-row="bottom"]{ background:var(--ds-selva-honda)!important; }
footer.ct-footer [data-row="top"] p,
footer.ct-footer [data-row="top"] li,
footer.ct-footer [data-row="top"] li a{ font-size:16px!important; line-height:1.6!important; }
footer.ct-footer hr,
footer.ct-footer .wp-block-separator{ display:none!important; }
