/*
Theme Name: Lluvia de Chocolate
Theme URI: https://lluviadechocolate.local
Description: Tema hijo de Storefront para la tienda de postres Lluvia de Chocolate. Diseño aprobado en mockup: paleta beige/cacao/caramelo, tipografía Barlow Condensed + Karla, enfocado a conversión.
Author: Lluvia de Chocolate
Template: storefront
Version: 1.3.4
Text Domain: lluvia-de-chocolate
*/

/* ============ TOKENS DE MARCA ============ */
:root {
  --ldc-crema: #f2ede3;
  --ldc-beige: #d5cebe;
  --ldc-cacao: #24140e;
  --ldc-choco: #53321f;
  --ldc-caramelo: #b4763b;
  --ldc-menta: #a8cec1;
  --ldc-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ldc-body: "Karla", "Segoe UI", sans-serif;
}

/* ============ BASE ============ */
body {
  background-color: var(--ldc-crema);
  color: var(--ldc-cacao);
  font-family: var(--ldc-body);
}

h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title,
.site-branding .site-title {
  font-family: var(--ldc-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ldc-cacao);
  font-weight: 700;
}

a { color: var(--ldc-choco); }
a:hover { color: var(--ldc-caramelo); }

/* ============ HEADER ============ */
.site-header,
.storefront-handheld-footer-bar {
  background-color: var(--ldc-beige);
  color: var(--ldc-cacao);
}
.site-header {
  border-bottom: 1px solid rgba(36, 20, 14, 0.1);
  padding-top: 0.75em !important;
  padding-bottom: 0.75em !important;
}
.site-header a, .site-header .site-title a, .main-navigation ul li a,
.site-header-cart .cart-contents {
  color: var(--ldc-cacao) !important;
}
/* Botones del mini-carrito desplegable ("Ver carrito" / "Finalizar compra"):
   la regla de arriba los pintaba cacao sobre fondo cacao (invisibles hasta
   el hover). Texto crema siempre. */
.site-header-cart .widget_shopping_cart a.button {
  color: var(--ldc-crema) !important;
}
.main-navigation ul li a:hover { color: var(--ldc-caramelo) !important; }
.storefront-primary-navigation { background-color: var(--ldc-beige); }


/* Logo/título compacto */
.site-header .site-branding,
.site-header .site-logo-anchor,
.site-header .custom-logo-link { margin-bottom: 0; }
.site-header .site-title { font-size: 1.6em; line-height: 1; margin: 0; }
.site-header .custom-logo { max-height: 52px; width: auto; }
.site-header .site-description { margin: 2px 0 0; font-size: 0.78em; }



/* Header en una sola fila: logo · navegación · carrito */
@media (min-width: 768px) {
  .site-header { padding-top: 0.9em !important; padding-bottom: 0.9em !important; }
  .site-header .col-full {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
  }
  .site-header .site-branding {
    margin: 0;
    flex: 0 0 auto;
    /* Storefront le da anchos porcentuales (hasta 73.9%) que inflan el bloque
       y expulsan a la navegación y el carrito: ajustarlo a su contenido. */
    width: auto !important;
    max-width: none;
    margin-right: 0;
    float: none;
  }

  /* La navegación ocupa el centro y empuja el carrito a la derecha */
  .site-header .main-navigation {
    flex: 1 1 auto;
    margin: 0;
    width: auto;
    float: none;
  }
  /* En escritorio no se usa el botón hamburguesa */
  .site-header .main-navigation .menu-toggle { display: none !important; }
  /* Forzar el contenedor y la lista del menú visibles y en horizontal */
  .site-header .main-navigation .primary-navigation,
  .site-header .main-navigation div.menu { display: block !important; }
  .site-header .main-navigation ul.menu,
  .site-header .main-navigation ul.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 22px;
    margin: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
    text-align: center;
    white-space: nowrap;
  }
  .site-header .main-navigation ul.menu > li,
  .site-header .main-navigation ul.nav-menu > li {
    float: none;
    display: block;
    margin: 0;
  }
  .site-header .main-navigation ul.menu > li > a,
  .site-header .main-navigation ul.nav-menu > li > a {
    padding: 0.4em 0;
    font-family: var(--ldc-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.05em;
  }

  .site-header .site-header-cart {
    flex: 0 0 auto;
    margin: 0;
    width: auto;
    max-width: none;
  }
  .site-header .site-header-cart li { float: none; }
}
/* La navegación principal sin margen extra en móvil */
.site-header .main-navigation { margin-bottom: 0; }

/* Barra de anuncio */
.ldc-announcement {
  background: var(--ldc-cacao);
  color: var(--ldc-crema);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  margin: 0;
}

/* ============ BOTONES ============ */
.button, button, input[type="button"], input[type="submit"],
.woocommerce #respond input#submit, .wp-block-button__link,
.added_to_cart, .cart .button {
  background-color: var(--ldc-cacao) !important;
  color: var(--ldc-crema) !important;
  border-radius: 4px;
  font-family: var(--ldc-body);
  font-weight: 700;
  transition: background-color 0.2s ease;
}
.button:hover, button:hover, input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: var(--ldc-choco) !important;
  color: var(--ldc-crema) !important;
}
.button.alt, .single_add_to_cart_button, #place_order {
  background-color: var(--ldc-cacao) !important;
  font-size: 1.05em;
  padding: 0.9em 1.6em;
}
#place_order { width: 100%; }

/* ============ PRODUCTOS (cards) ============ */
ul.products li.product {
  background: #f7f3ea;
  border: 1px solid rgba(36, 20, 14, 0.1);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(36, 20, 14, 0.08);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
  text-align: left;
}
ul.products li.product:hover { box-shadow: 0 8px 24px rgba(36, 20, 14, 0.16); }
ul.products li.product img {
  margin-bottom: 0.6em;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.35em;
  line-height: 1;
  padding: 0 0.8em;
}
ul.products li.product .price {
  font-family: var(--ldc-display);
  font-size: 1.4em;
  font-weight: 700;
  color: var(--ldc-cacao) !important;
  padding: 0 0.75em;
}
ul.products li.product .price del { color: var(--ldc-choco); opacity: 0.6; }
ul.products li.product .price ins { color: var(--ldc-caramelo); text-decoration: none; }
ul.products li.product .button { margin: 0 1em 1.2em; }
.onsale {
  background-color: var(--ldc-caramelo) !important;
  color: #fff !important;
  border-radius: 3px;
  font-weight: 700;
}

/* ============ FICHA DE PRODUCTO ============ */
.single-product div.product .product_title { font-size: 2.6em; line-height: 0.95; }
.single-product div.product p.price {
  font-family: var(--ldc-display);
  font-size: 2em;
  font-weight: 700;
  color: var(--ldc-cacao);
}
table.variations label { font-weight: 700; text-transform: uppercase; font-size: 0.85em; letter-spacing: 0.05em; }
.woocommerce-variation-price .price { color: var(--ldc-cacao) !important; font-family: var(--ldc-display); font-size: 1.8em !important; }

/* Lista de confianza bajo el botón de compra */
.ldc-product-trust { margin-top: 1.2em; padding: 0; list-style: none; }
.ldc-product-trust li {
  font-size: 0.92em;
  color: var(--ldc-choco);
  padding-left: 1.4em;
  position: relative;
  margin-bottom: 0.35em;
}
.ldc-product-trust li::before {
  content: "";
  position: absolute; left: 0; top: 0.28em;
  width: 0.65em; height: 0.85em;
  background: var(--ldc-caramelo);
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
}

/* ============ HERO PORTADA ============ */
.ldc-hero {
  position: relative;
  background: var(--ldc-beige);
  overflow: hidden;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}
.ldc-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 768px) {
  .ldc-hero__inner { grid-template-columns: 1.1fr 1fr; padding: 40px 24px 56px; gap: 32px; }
}
.ldc-hero__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ldc-choco); margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.ldc-hero__title {
  font-family: var(--ldc-display);
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  line-height: 0.95;
  margin: 0 0 12px;
}
.ldc-hero__title span { color: var(--ldc-choco); }
.ldc-hero__text { font-size: 1.08em; color: rgba(36, 20, 14, 0.8); max-width: 30em; }
.ldc-hero__actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.ldc-hero__actions .button--ghost {
  background: transparent !important;
  color: var(--ldc-cacao) !important;
  border: 1px solid rgba(36, 20, 14, 0.4);
}
.ldc-hero__actions .button--ghost:hover { background: var(--ldc-cacao) !important; color: var(--ldc-crema) !important; }
.ldc-hero__note { margin-top: 14px; font-size: 0.92em; color: var(--ldc-choco); }
.ldc-hero__media { position: relative; }
.ldc-hero__media img.ldc-hero__photo {
  width: 100%; aspect-ratio: 5/4; object-fit: cover;
  border-radius: 6px; border: 4px solid var(--ldc-crema);
  box-shadow: 0 16px 40px rgba(36, 20, 14, 0.25);
}
.ldc-hero__media img.ldc-hero__logo {
  position: absolute; bottom: -24px; left: -12px;
  width: 88px; height: 88px; border-radius: 50%;
  border: 4px solid var(--ldc-crema); object-fit: cover;
  box-shadow: 0 8px 20px rgba(36, 20, 14, 0.3);
}

/* Goteo divisor */
.ldc-drip { display: block; width: 100%; height: 44px; margin-top: -1px; }

/* Lluvia de gotas (firma) */
.ldc-rain { pointer-events: none; position: absolute; inset: 0; overflow: hidden; color: rgba(83, 50, 31, 0.3); }
.ldc-rain span {
  position: absolute; top: -8%;
  width: 10px; height: 16px;
  background: currentColor;
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
  opacity: 0;
  animation: ldc-rain-fall linear infinite;
}
@keyframes ldc-rain-fall {
  0% { opacity: 0; transform: translateY(0) rotate(45deg); }
  12% { opacity: 0.5; }
  88% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(80vh) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ldc-rain { display: none; }
}

/* ============ BANDA DE CONFIANZA ============ */
.ldc-trust {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px 8px;
  display: grid; gap: 20px;
}
@media (min-width: 640px) { .ldc-trust { grid-template-columns: repeat(3, 1fr); } }
.ldc-trust__item {
  background: #f7f3ea;
  border: 1px solid rgba(36, 20, 14, 0.1);
  border-radius: 6px; padding: 20px;
}
.ldc-trust__item h3 { font-size: 1.25em; margin: 8px 0 6px; }
.ldc-trust__item p { font-size: 0.95em; color: rgba(83, 50, 31, 0.85); margin: 0; }

/* ============ CÓMO FUNCIONA ============ */
.ldc-steps {
  background: var(--ldc-cacao); color: var(--ldc-crema);
  margin: 40px calc(50% - 50vw) 0; width: 100vw;
}
.ldc-steps .ldc-drip { margin-top: 0; }
.ldc-steps__inner { max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
.ldc-steps__inner .ldc-eyebrow { color: var(--ldc-caramelo); }
.ldc-steps__inner h2 { color: var(--ldc-crema); font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 28px; }
.ldc-steps__grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .ldc-steps__grid { grid-template-columns: repeat(3, 1fr); } }
.ldc-steps__grid > div { border-top: 2px solid var(--ldc-caramelo); padding-top: 14px; }
.ldc-steps__num { font-family: var(--ldc-display); font-size: 3em; font-weight: 700; color: var(--ldc-caramelo); line-height: 1; }
.ldc-steps__grid h3 { color: var(--ldc-crema); font-size: 1.4em; margin: 6px 0; }
.ldc-steps__grid p { color: rgba(242, 237, 227, 0.75); font-size: 0.95em; }

/* ============ FOOTER ============ */
.site-footer {
  background-color: var(--ldc-cacao) !important;
  color: rgba(242, 237, 227, 0.8);
}
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: var(--ldc-caramelo); }
.site-footer a { color: var(--ldc-crema) !important; }

/* ============ WHATSAPP FLOTANTE ============ */
.ldc-whatsapp {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.ldc-whatsapp:hover { transform: scale(1.06); color: #fff; }
.ldc-whatsapp svg { width: 28px; height: 28px; fill: currentColor; }

/* ============ CHECKOUT DESPEJADO ============ */
.woocommerce-checkout .woocommerce-form-coupon-toggle { display: none; }
.woocommerce-checkout #order_review {
  background: #f7f3ea;
  border: 1px solid rgba(36, 20, 14, 0.12);
  border-radius: 6px;
  padding: 20px;
}
.woocommerce-checkout h3 { font-size: 1.5em; }
.woocommerce-checkout #payment { background: transparent; }
#payment .payment_method_bacs .payment_box,
#payment div.payment_box {
  background: rgba(180, 118, 59, 0.12) !important;
  border: 1px solid rgba(180, 118, 59, 0.35);
  border-radius: 4px;
  color: var(--ldc-choco) !important;
}

/* Aviso de pedidos 24 h en checkout */
.ldc-checkout-note {
  background: rgba(180, 118, 59, 0.12);
  border: 1px solid rgba(180, 118, 59, 0.4);
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.95em;
  color: var(--ldc-choco);
}

/* ============ ANIMACIÓN DE APARICIÓN (Reveal del mockup) ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ ICONOS DE GOTA ============ */
.ldc-drop-icon, .ldc-eyebrow__icon, .ldc-trust__icon {
  display: inline-block;
  vertical-align: middle;
}
.ldc-eyebrow__icon { width: 12px; height: 12px; }
.ldc-trust__icon { width: 20px; height: 20px; color: var(--ldc-caramelo); }

/* ============ TESTIMONIOS ============ */
.ldc-quotes {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}
.ldc-quotes__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 28px;
}
.ldc-quotes__grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .ldc-quotes__grid { grid-template-columns: repeat(3, 1fr); } }
.ldc-quote {
  background: rgba(213, 206, 190, 0.6);
  border: 0;
  border-radius: 6px;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ldc-quote p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ldc-cacao);
  font-style: normal;
}
.ldc-quote footer {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(83, 50, 31, 0.7);
}

/* ============ CTA FINAL ============ */
.ldc-final {
  position: relative;
  overflow: hidden;
  background: var(--ldc-beige);
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}
.ldc-final__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 768px) {
  .ldc-final__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.ldc-final__inner h2 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin: 0;
}
.ldc-final__inner p { margin: 8px 0 0; color: rgba(83, 50, 31, 0.85); max-width: 30em; }
.ldc-final__inner .button { padding: 0.9em 2.4em; font-size: 1.05em; }

/* ============ CARDS: categoría, descripción y "desde" ============ */
.ldc-card-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(83, 50, 31, 0.7);
  margin: 0.7em 0.95em 0 !important;
}
ul.products li.product .ldc-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.9em;
  color: rgba(83, 50, 31, 0.8);
  margin: 0.35em 1.05em 0;
}
.ldc-desde {
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(83, 50, 31, 0.6);
  margin-right: 2px;
}

/* ============ PORTADA: LOS MÁS PEDIDOS ============ */
.ldc-bestsellers {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 16px;
}
.ldc-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ldc-caramelo); margin-bottom: 4px;
}
.ldc-eyebrow { display: flex; align-items: center; gap: 8px; }
.ldc-bestsellers__title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 24px;
}
.ldc-bestsellers__more { text-align: center; margin: 8px 0 24px; }

/* ============ MAPA DE ENTREGA (checkout) ============ */
.ldc-mapa-seccion {
  background: #f7f3ea;
  border: 1px solid rgba(36, 20, 14, 0.12);
  border-radius: 6px;
  padding: 20px;
  margin: 24px 0;
  clear: both;
}
.ldc-mapa-seccion h3 { margin-top: 0; }
.ldc-mapa-nota { font-size: 0.95em; color: var(--ldc-choco); }
#ldc-mapa { border: 1px solid rgba(36, 20, 14, 0.2); z-index: 1; }

/* ============ CHECKOUT EN DOS COLUMNAS ============ */
/* Base (móvil): apilado, formulario primero, resumen después. */
.woocommerce-checkout .ldc-checkout-cols {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.woocommerce-checkout .ldc-col-data { order: 1; }
.woocommerce-checkout .ldc-col-summary { order: 2; }

/* Anular SIEMPRE los floats/anchos de columna de Storefront (que por defecto
   flotan el resumen a la derecha). Así el layout lo controla nuestro flex y
   nunca queda el resumen flotado a la derecha aunque cambie el viewport. */
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
  float: none !important;
  width: auto !important;
  margin-left: 0;
  margin-right: 0;
}
.woocommerce-checkout .ldc-col-data .col2-set .col-1,
.woocommerce-checkout .ldc-col-data .col2-set .col-2 {
  width: 100%;
  float: none;
  margin: 0;
}

/* Escritorio: resumen a la IZQUIERDA (sticky), datos a la DERECHA. */
@media (min-width: 768px) {
  .woocommerce-checkout .ldc-checkout-cols {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .woocommerce-checkout .ldc-col-summary {
    order: 1;            /* izquierda */
    flex: 0 0 380px;
    position: sticky;
    top: 1rem;
  }
  .woocommerce-checkout .ldc-col-data {
    order: 2;            /* derecha */
    flex: 1 1 0;
    min-width: 0;
  }
}

/* ============ CARRITO CLÁSICO ============ */
.woocommerce-cart table.cart img { width: 84px; border-radius: 4px; }
/* Recuadro de productos con esquinas redondeadas, a juego con el resumen.
   overflow:hidden recorta las esquinas de la tabla. */
.woocommerce-cart table.cart {
  border: 1px solid rgba(36, 20, 14, 0.12);
  border-radius: 8px;
  overflow: hidden;
}
.woocommerce-cart .cart-collaterals .cart_totals {
  background: #f7f3ea;
  border: 1px solid rgba(36, 20, 14, 0.12);
  border-radius: 6px;
  padding: 20px;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  background-color: var(--ldc-cacao) !important;
  font-size: 1.1em;
}

/* ============ SELECTOR DE TAMAÑO (botones como el mockup) ============ */
/* Cuando el JS genera los botones, el select nativo se oculta pero sigue
   funcionando por debajo (WooCommerce escucha sus eventos change). */
form.variations_form.ldc-has-size-buttons table.variations { display: none; }
.ldc-size-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1.2em;
}
.ldc-size-btn {
  background: #f7f3ea !important;
  color: var(--ldc-cacao) !important;
  border: 1px solid rgba(36, 20, 14, 0.25);
  border-radius: 6px;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ldc-size-btn:hover { border-color: rgba(36, 20, 14, 0.6); background: #f7f3ea !important; }
.ldc-size-btn__label {
  display: block;
  font-family: var(--ldc-display);
  font-size: 1.15em;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}
.ldc-size-btn__price {
  display: block;
  margin-top: 4px;
  font-size: 0.85em;
  opacity: 0.8;
}
.ldc-size-btn.is-active {
  background: var(--ldc-cacao) !important;
  color: var(--ldc-crema) !important;
  border-color: var(--ldc-cacao);
}
.ldc-size-btn.is-active:hover { background: var(--ldc-cacao) !important; }

/* ============ MISC ============ */
.storefront-breadcrumb { background: transparent; }

/* Carrito: compactar el bloque del título "Cart" (migas + encabezado).
   El aire grande bajo el título viene de un padding-bottom: 5.99em que
   WooCommerce aplica con selector de 3 clases; hay que igualar/superar su
   especificidad (por eso el body. delante) y sobrescribir el padding. */
.woocommerce-cart .storefront-breadcrumb,
.woocommerce-checkout .storefront-breadcrumb,
.post-type-archive-product .storefront-breadcrumb,
.tax-product_cat .storefront-breadcrumb { margin-bottom: 0.5em; padding-bottom: 0.5em; }
body.storefront-full-width-content.woocommerce-cart .entry-header,
body.storefront-full-width-content.woocommerce-checkout .entry-header,
body.storefront-full-width-content .woocommerce-products-header {
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}

/* Carrito en dos columnas (tipo pre-checkout de Amazon): artículos a la
   izquierda, resumen del pedido a la derecha. Storefront los apila y flota
   el resumen al 52%; aquí ponemos ambos hermanos lado a lado. Solo escritorio. */
@media (min-width: 768px) {
  .woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
  }
  .woocommerce-cart .woocommerce-notices-wrapper { flex: 0 0 100%; }
  .woocommerce-cart .woocommerce-cart-form { flex: 1 1 0; min-width: 0; margin: 0; }
  .woocommerce-cart .cart-collaterals { flex: 0 0 340px; width: auto; margin: 0; }
  /* Resetear los floats internos de Storefront dentro de la columna derecha */
  .woocommerce-cart .cart-collaterals .cart_totals,
  .woocommerce-cart .cart-collaterals .shipping_calculator,
  .woocommerce-cart .cart-collaterals .cross-sells {
    width: 100%;
    float: none;
  }
  /* El resumen acompaña el scroll, como Amazon */
  .woocommerce-cart .cart_totals { position: sticky; top: 1rem; }
}

/* Carrito (precheckout): ocultar destino de envío ("Enviar a Guayas") y la
   calculadora de dirección ("Cambiar dirección" + selects). La dirección real
   y el costo por distancia se definen en el checkout con el mapa. Scope a
   .woocommerce-cart: NO afecta al checkout (.woocommerce-checkout). */
.woocommerce-cart .woocommerce-shipping-destination,
.woocommerce-cart .woocommerce-shipping-calculator { display: none; }

/* Carrito: dar un respiro a la fila de acciones (cupón + actualizar carrito).
   Storefront deja td.actions con padding:0, así que los recuadros quedan
   pegados al borde del contenedor. */
.woocommerce-cart table.cart td.actions { padding: 1em 1.25em; }

.storefront-product-section .section-title, .related.products > h2, .up-sells > h2 {
  font-size: 2em;
}
@media (max-width: 640px) {
  ul.products li.product .woocommerce-loop-product__title { font-size: 1.2em; }
}
