/* =====================================================================
   Dale Sabor · Fase 5 (10/11/2026): ajustes pedidos tras ver la web
   Se carga después de fase4.css (dalesabor-fase5.php, wp_head 125)
   solo si ds_fase5_activo = 1, o con ?ds_fase5=1 para verlo antes.
   1. Las fotos ya no se tiñen con el color de su baldosa.
   2. Carrito desplegable de la cabecera legible.
   3. Pagos exprés en segundo plano y la tarjeta a la vista (con PHP).
   ===================================================================== */

/* ---------- 1. Fotos con su color real ----------
   Las WebP tienen el fondo transparente: el color de la baldosa ya se ve detrás.
   La fase 3 les puso mix-blend-mode:multiply y eso mezclaba el color con el propio
   producto (la bolsa blanca de Ajinomoto salía azulada). */
.ds-novedades .wc-block-grid__product-image img,
.ds-ofertas-inicio .wc-block-grid__product-image img,
.woocommerce ul.products li.product figure img,
.wc-block-grid__product-image img,
.ds-cat-img img,
.ds-entrada-deco .ds-deco{
  mix-blend-mode:normal!important;
  filter:none!important;
  opacity:1;
}

/* ---------- 2. Carrito desplegable de la cabecera ----------
   Antes: fondo pizarra #29333C de Blocksy, nombres en verde selva (casi invisibles),
   botones verdes y textos en mayúsculas a 11 px. Ahora: papel blanco, tinta oscura. */
[data-header*="type-1"] [data-id="cart"] .ct-cart-content,
[data-id="cart"] .ct-cart-content{
  --mini-cart-background-color:#FFFFFF!important;
  --theme-text-color:#24201B!important;
  --mini-cart-divider-color:#D6D3CC;
  --theme-link-initial-color:#12311F;
  --theme-link-hover-color:#21563A;
  background:#FFFFFF!important;
  color:#24201B!important;
  border-radius:16px!important;
  padding:20px!important;
  box-shadow:0 18px 40px -16px rgba(18,49,31,.35)!important; /* menú flotante: aquí la sombra sí separa */
}
[data-header*="type-1"] [data-id="cart"] .ct-cart-content .total,
[data-id="cart"] .ct-cart-content .total{ --theme-text-color:#24201B!important; }
.ct-cart-content .woocommerce-mini-cart li:not(:last-child){ border-bottom:0!important; }
.ct-cart-content .woocommerce-mini-cart li + li{ padding-top:14px; }
.ct-cart-content .woocommerce-mini-cart .ct-media-container{
  background:#EFEEEA; border-radius:12px!important;
}
.ct-cart-content .product-title{
  display:block;
  color:#12311F!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.35!important;
  text-decoration:none!important;
  text-transform:lowercase!important;
}
.ct-cart-content .product-title::first-letter{ text-transform:uppercase!important; }
.ct-cart-content .product-title:hover{ text-decoration:underline!important; text-underline-offset:3px; }
.ct-cart-content .quantity{ color:#3D372F!important; font-size:14px!important; }
.ct-cart-content .remove{ --theme-link-initial-color:#3D372F!important; color:#3D372F!important; }
.ct-cart-content .woocommerce-mini-cart__total{
  font-size:15px!important;
  text-transform:none!important;
  letter-spacing:0!important;
  color:#24201B!important;
  padding-top:14px;
  border-top:0!important;
}
.ct-cart-content .woocommerce-mini-cart__total strong{ font-weight:600; }
.ct-cart-content .woocommerce-mini-cart__total,
.ct-cart-content .woocommerce-mini-cart__buttons,
.ct-cart-content .woocommerce-mini-cart{ border-top:0!important; border-bottom:0!important; }
.ct-cart-content .woocommerce-mini-cart__buttons{ gap:8px; }
.ct-cart-content .woocommerce-mini-cart__buttons .button{
  --theme-button-font-size:14px!important;
  --theme-button-text-transform:none!important;
  text-transform:none!important;
  font-size:14px!important;
  letter-spacing:0!important;
  min-height:46px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  padding:0 14px!important;
}
/* «Ver carrito»: secundario, contorno selva */
.ct-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout){
  background:transparent!important;
  color:#12311F!important;
  border:1.5px solid #12311F!important;
}
.ct-cart-content .woocommerce-mini-cart__buttons .button:not(.checkout):hover{
  background:#12311F!important; color:#FFFFFF!important;
}
/* «Finalizar compra»: la acción, en mango con texto selva (5,8:1) */
.ct-cart-content .woocommerce-mini-cart__buttons .button.checkout{
  background:#E8A02C!important;
  color:#12311F!important;
  border:1.5px solid #E8A02C!important;
}
.ct-cart-content .woocommerce-mini-cart__buttons .button.checkout:hover{
  background:#D58F1E!important; border-color:#D58F1E!important;
}
.ct-cart-content .woocommerce-mini-cart__empty-message{ color:#24201B!important; font-size:15px; }

/* ---------- 3. Pago con tarjeta a la vista; pagos exprés en segundo plano ---------- */
.ds-pago-ficha{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px;
  margin:14px 0 12px;
  font-size:15px; line-height:1.4; color:#24201B;
}
.ds-pago-ficha .ds-pago-texto{ display:inline-flex; align-items:center; gap:8px; font-weight:600; }
.ds-pago-ficha .ds-pago-texto svg{ flex-shrink:0; color:#12311F; }
.ds-pago-ficha .ds-pago-marcas{ display:inline-flex; gap:6px; }
.ds-pago-ficha .ds-pago-marcas img{
  display:block; width:40px; height:26px;
  border-radius:4px; background:#FFFFFF;
}
/* Google Pay / Apple Pay en la ficha: más pequeño y debajo de la línea de tarjeta, con su rótulo */
.single-product .ds-pago-expres-rotulo{
  margin:0 0 6px; font-size:14px; color:#3D372F;
}
.single-product .ds-pago-expres-rotulo[hidden]{ display:none!important; }
.single-product .wcpay-express-checkout-wrapper{
  max-width:300px;
  margin-bottom:8px;
}
@media (max-width:689px){
  .single-product .wcpay-express-checkout-wrapper{ max-width:none; }
}
