/* ============================================================
   WooCommerce — overrides para suntype-child
   Aplica los tokens del design-system sobre el markup de WC
   ============================================================ */

/* Astra imprime su propio <header class="entry-header"><h1 class="entry-title">
   con el título de la página (ej. "Carrito", "Finalizar compra") ANTES del
   contenido, en las páginas que usan la plantilla por defecto — duplicado
   con el título propio (Caveat) que ya trae cada template de WC. Las
   plantillas custom (Contacto/Personalizados/Ferias) no lo sufren porque
   usan un layout de builder que ya lo omite. */
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header,
body.woocommerce-account .entry-header {
  display: none;
}

/* ── Botones globales WC ───────────────────────────────────────────────── */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
button.single_add_to_cart_button,
#place_order {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--pink) !important;
  color: var(--ink) !important;
  border-radius: var(--r-pill) !important;
  padding: 14px 28px !important;
  border: none !important;
  transition: background .2s, transform .15s, box-shadow .2s !important;
  box-shadow: var(--shadow-soft) !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover,
button.single_add_to_cart_button:hover,
#place_order:hover {
  background: var(--pink-deep) !important;
  color: var(--ink) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card) !important;
}
.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--ink) !important; color: var(--cream) !important; }
.woocommerce a.button.alt:hover { background: var(--ink-soft) !important; }

/* ── Mensajes / notificaciones WC ─────────────────────────────────────── */
.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--pink-deep);
  background: var(--pink-soft);
  color: var(--ink);
  font-family: var(--font-ui);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}
/* El ícono nativo de WC (fuente "WooCommerce") no está cargando bien y se ve
   como un glifo roto (cuadrado vacío) — se oculta en vez de dejar el error. */
.woocommerce-message::before,
.woocommerce-info::before {
  content: none;
  display: none;
}
.woocommerce-error {
  background: #fde8e8;
  border-top-color: #e05252;
  color: #7a1f1f;
  font-family: var(--font-ui);
}

/* ── Grid de productos (archive) ─────────────────────────────────────── */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 980px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 540px) {
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
}

/* ── Product card (li.product) ────────────────────────────────────────── */
.woocommerce ul.products li.product {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  transition: transform .25s;
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); }

.woocommerce ul.products li.product .woocommerce-loop-product__link { text-decoration: none; }

/* Imagen del card */
.woocommerce ul.products li.product .suntype-card-img {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream-2);
  position: relative;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .25s;
}
.woocommerce ul.products li.product:hover .suntype-card-img { box-shadow: var(--shadow-card); }
.woocommerce ul.products li.product .suntype-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: .04em;
  margin: 0 0 4px;
}
.woocommerce ul.products li.product .price {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .price del { color: var(--ink-mute); font-size: 13px; }

/* Botón "añadir al carrito" en el card */
.woocommerce ul.products li.product .add_to_cart_button {
  margin-top: 10px;
  width: 100%;
  font-size: 12px !important;
  padding: 10px 16px !important;
}

/* Badge NUEVO / OFERTA — mismos tokens que tag-new/tag-sale del handoff */
.suntype-card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--pink); color: var(--ink);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill); z-index: 2;
}
.suntype-card-badge--sale {
  background: var(--lilac-deep); color: #fff;
}
/* Botón wishlist en card (clases .suntype-card-wish / .gallery__wish de acá
   abajo quedaron sin uso — el corazón real lo pone el plugin de wishlist con
   sus propias clases .swl-heart-btn--overlay, ver el override más abajo). */
.suntype-card-wish {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.88); display: grid; place-items: center;
  color: var(--ink-soft); opacity: 0; transition: opacity .2s;
}
.woocommerce ul.products li.product:hover .suntype-card-wish,
.suntype-card-wish:focus-visible { opacity: 1; }
/* Sin :hover real en touch — el botón debe quedar visible siempre */
@media (hover: none) {
  .suntype-card-wish { opacity: 1; }
}

/* El plugin suntype-wishlist-flat posiciona su corazón (.swl-heart-btn--overlay)
   en top:10px;left:10px por defecto — pensado para no chocar con el carrito
   del header, que está a la derecha. Pero en las cards de producto y en la
   galería del PDP, ese mismo rincón izquierdo ya lo ocupa el badge "Nuevo"/
   "Oferta" (top:12px;left:12px) y quedaban superpuestos (el corazón tapaba
   la mitad del texto del badge). Se mueve al lado derecho, como en el
   diseño original (badge a la izquierda, corazón a la derecha). */
.suntype-card-img .swl-heart-btn--overlay,
.gallery__stage .swl-heart-btn--overlay {
  left: auto;
  right: 10px;
}

/* ── Single product (PDP) ────────────────────────────────────────────────
   El template suntype-child/woocommerce/single-product.php NO usa el
   wrapper estándar de WooCommerce (<div class="product">, .woocommerce-
   product-gallery, .posted_in, .woocommerce-tabs) — es 100% markup
   propio (.pdp/.gallery/.buybox/.suntype-acc). Estas reglas apuntan a
   esas clases reales, tomadas 1:1 del handoff (producto.html).
   ────────────────────────────────────────────────────────────────────── */
.pdp { max-width: var(--container); margin: 0 auto; padding: 16px 20px 64px; }
.pdp__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }

/* Migas de pan — sin esto salían pegadas al borde izquierdo, sin padding ni
   tipografía propia, justo debajo del header (nunca tuvieron CSS asignado). */
.crumbs {
  padding-top: 20px;
  padding-bottom: 4px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  color: var(--ink-mute);
}
.crumbs a { color: var(--ink-mute); text-decoration: none; }
.crumbs a:hover { color: var(--pink-deep); text-decoration: underline; }
.crumbs .crumbs__sep { margin: 0 2px; color: var(--rule); }

/* Galería */
.gallery { position: relative; }
/* position:relative acá es lo que hace que el badge "Nuevo" y el botón de
   favoritos (ambos absolute, más abajo) anclen contra la imagen grande y no
   contra .gallery completo — que en desktop incluye la columna de miniaturas
   a la izquierda (.gallery--has-thumbs es grid con esa columna primero). Sin
   esto, "top:14px;left:14px" terminaba en la esquina de la primera miniatura. */
.gallery__stage {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--r-lg);
  -ms-overflow-style: none; scrollbar-width: none;
  background: var(--cream-2);
  aspect-ratio: 4 / 5;
}
.gallery__stage::-webkit-scrollbar { display: none; }
.gallery .slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.gallery__dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.gallery__dots .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--rule);
  transition: background .2s, width .2s; cursor: pointer; border: none; padding: 0;
}
.gallery__dots .dot.is-active { background: var(--pink-deep); width: 22px; border-radius: 4px; }
.gallery__thumbs { display: none; }
.gallery__badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--pink); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-pill); z-index: 2;
}
.gallery__wish {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: grid; place-items: center;
  color: var(--ink-soft); box-shadow: var(--shadow-soft); border: none; cursor: pointer;
}

/* Buybox */
.buybox__cat { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-deep); }
.buybox .product_title {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(34px, 7vw, 44px);
  line-height: 1.12;
  color: var(--ink);
  margin: 6px 0 12px;
}
.rating-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.rating-line a { color: var(--pink-deep); }
.price-block { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-now { font-family: var(--font-ui); font-weight: 700; font-size: 30px; color: var(--ink); }
.price-note { font-size: 12px; color: var(--ink-mute); margin: 4px 0 18px; }
.desc-short { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 22px; }
.availability {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #2e7d52; margin: 18px 0;
}
.availability svg { flex-shrink: 0; }

/* Variantes */
.woocommerce div.product .variations_form .variations tr { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.woocommerce div.product .variations_form .variations td.label label {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.woocommerce div.product table.variations select {
  font-family: var(--font-ui);
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  min-height: 44px;
  width: 100%;
}
.woocommerce div.product table.variations select:focus {
  outline: none;
  border-color: var(--pink-deep);
  box-shadow: 0 0 0 3px var(--pink-soft);
}

/* Qty input */
.woocommerce div.product .quantity .qty {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  width: 60px;
  height: 52px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

/* Caja de despacho y medios de pago (buybox) — el SVG sin ancho/alto fijo
   por CSS toma su tamaño intrínseco del viewBox y se renderiza gigante. */
.suntype-delivery-box, .deliverybox {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 20px; margin: 20px 0;
}
.suntype-delivery-row { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.suntype-delivery-row svg.ic { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink); margin-top: 2px; }
.suntype-delivery-row strong { color: var(--ink); font-weight: 600; }
.suntype-delivery-row span { display: block; color: var(--ink-mute); font-size: 12px; margin-top: 2px; }

.suntype-pay-box, .payblock {
  margin: 20px 0; padding: 20px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md);
}
.suntype-pay-box__label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 12px;
}
.suntype-pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.suntype-pay-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--rule); color: var(--ink-mute); background: var(--cream-2);
}
.suntype-pay-badge--active { color: var(--ink); background: var(--mint-soft); border-color: transparent; font-weight: 600; }
.suntype-pay-badge--pending { opacity: .7; }
.suntype-pay-badge__logo { width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px; }

/* ── Acordeones PDP (detalles/envíos/cambios) ─────────────────────────── */
.acc { max-width: var(--container); margin: 8px auto 0; padding: 0 20px; }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: '+'; font-size: 24px; color: var(--pink-deep); font-weight: 300; transition: transform .2s; }
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-body { padding: 0 0 22px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.acc-body ul { padding-left: 18px; margin: 6px 0; }
.acc-body li { margin: 5px 0; }

/* ── Reseñas (vacío + nativo WC) ───────────────────────────────────────── */
.reviews { max-width: var(--container); margin: 0 auto; padding: 40px 20px; }
.reviews .section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 20px; display: flex; align-items: center; gap: 8px;
}
.reviews-empty {
  text-align: center; padding: 44px 24px; border: 1px dashed var(--rule);
  border-radius: var(--r-lg); background: var(--paper); margin-bottom: 28px;
}
.reviews-empty .ic {
  width: 54px; height: 54px; border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.reviews-empty h3 { font-family: var(--font-script); font-size: 30px; margin: 0 0 8px; color: var(--ink); }
.reviews-empty p { color: var(--ink-soft); max-width: 440px; margin: 0 auto 6px; line-height: 1.55; font-size: 14px; }

/* ── Relacionados ("También te puede gustar") ─────────────────────────── */
.strip { max-width: var(--container); margin: 0 auto; padding: 12px 20px 40px; }
.strip .section-title {
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
}
.strip .products.strip__grid { grid-template-columns: repeat(2, 1fr); }

/* ── PDP — desktop ─────────────────────────────────────────────────────── */
@media (min-width: 860px) {
  .pdp__grid { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
  .gallery { position: sticky; top: 120px; }
  .gallery.gallery--has-thumbs { display: grid; grid-template-columns: 78px 1fr; gap: 14px; }
  .gallery__stage { aspect-ratio: 4 / 5; }
  .gallery__dots { display: none; }
  .gallery__thumbs { display: flex; flex-direction: column; gap: 10px; order: -1; }
  .gallery__thumbs .thumb {
    aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
    border: 2px solid transparent; background-size: cover; background-position: center; padding: 0;
  }
  .gallery__thumbs .thumb.is-active { border-color: var(--ink); }
  .buybox { padding-top: 6px; }
  .strip .products.strip__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Sticky ATC bar (móvil) ─────────────────────────────────────────────
   Nunca tuvo CSS: sin esto quedaba como bloque suelto en el flujo normal
   de la página (se veía como un "producto" más, fuera de cualquier grilla,
   justo entre relacionados y el footer) en vez de una barra fija abajo.
   theme.js le agrega/saca la clase .is-visible según scroll (ver
   initStickyATC) — acá solo definimos cómo se ve en cada estado. */
.suntype-sticky-atc {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.suntype-sticky-atc__title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suntype-sticky-atc__btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 860px) {
  .suntype-sticky-atc { display: flex; }
  .suntype-sticky-atc.is-visible { transform: translateY(0); }
}

/* ── Cart page ─────────────────────────────────────────────────────────
   cart.php usa markup propio (.cart-page/.cart-layout/.line.cart_item),
   no la <table class="cart"> por defecto de WooCommerce — estas reglas
   apuntan al markup real en vez del genérico que nunca se aplicaba. */
.cart-page.wrap { max-width: var(--container); margin: 0 auto; padding: 32px 20px 80px; }
.cart-head { margin: 0 0 28px; }
.cart-head__title {
  font-family: var(--font-script);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.cart-head__count {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 0;
}

.cart-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 860px) {
  .cart-layout { grid-template-columns: 1.6fr 1fr; }
}

.line.cart_item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.line__img { width: 96px; }
.line__img img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); display: block; }
.line__body { min-width: 0; }
.line__title { font-weight: 600; font-size: 15px; color: var(--ink); }
.line__title a { color: var(--ink); text-decoration: none; }
.line__title a:hover { color: var(--pink-deep); }
.line__sub { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.line__opts:not(:empty) { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }
.line__bottom { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.line__stepper {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--rule); border-radius: var(--r-pill);
  padding: 5px 8px;
}
.line__step-btn {
  width: 26px; height: 26px; border-radius: 50%; border: none;
  background: none; color: var(--ink); font-size: 16px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.line__step-btn:hover:not(:disabled) { background: var(--cream-2); }
.line__step-btn:disabled { opacity: .35; cursor: default; }
.line__step-qty { font-size: 14px; font-weight: 700; min-width: 16px; text-align: center; font-family: var(--font-ui); }
a.line__rm.remove {
  width: auto; height: auto; border-radius: 0; background: none; display: inline;
  font-size: 12px; line-height: normal; font-weight: 400; text-align: left;
  color: var(--ink-mute) !important; text-decoration: underline; border: none; box-shadow: none;
  outline: none; cursor: pointer; padding: 0;
}
a.line__rm.remove:hover, a.line__rm.remove:focus { color: #e05252 !important; background: none; box-shadow: none; outline: none; }
a.line__rm.remove::before { content: none; }
.line__price { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; text-align: right; }

.line-list__actions {
  display: flex; flex-direction: column; gap: 16px; padding-top: 24px;
}
@media (min-width: 500px) {
  .line-list__actions { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
}
.line-list__actions .coupon { flex: 1; min-width: 240px; display: flex; gap: 0; }

.cart-summary {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
}
@media (min-width: 860px) { .cart-summary { position: sticky; top: 120px; } }
.cart-summary .cart_totals h2 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 20px;
}
.cart-summary .cart_totals table { width: 100%; }
.cart-summary .cart_totals table tr { border-bottom: 1px solid var(--rule); }
.cart-summary .cart_totals table td,
.cart-summary .cart_totals table th { padding: 12px 0; font-size: 14px; }
.cart-summary .cart_totals table .order-total th,
.cart-summary .cart_totals table .order-total td {
  font-weight: 700; font-size: 16px; padding-top: 16px; border: none;
}
.cart-summary__trust { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.cart-summary__trust-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--ink-mute); margin: 0;
}
.cart-summary__trust-note svg { flex-shrink: 0; margin-top: 1px; color: var(--ink-soft); }

/* Coupon field */
.woocommerce #coupon_code {
  font-family: var(--font-ui);
  padding: 12px 18px;
  border-radius: var(--r-pill) 0 0 var(--r-pill);
  border: 1.5px solid var(--rule);
  border-right: none;
  background: var(--paper);
  font-size: 14px;
  color: var(--ink);
  flex: 1;
}
.line-list__actions .coupon .button {
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  padding: 0 24px;
  background: var(--pink); color: var(--ink); border: none;
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; text-transform: uppercase;
  cursor: pointer;
}
.line-list__actions .coupon .button:hover { background: var(--pink-deep); }

@media (max-width: 540px) {
  .line.cart_item { grid-template-columns: 72px 1fr; }
  .line__price { grid-column: 2; text-align: left; margin-top: 8px; }
  .line__img img { width: 72px; height: 72px; }
}

/* ── Checkout layout ──────────────────────────────────────────────────── */
.checkout-page { padding: 32px 0 80px; }
.checkout-page__title {
  font-family: var(--font-script);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 32px;
}
.checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 28px;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--cream-2);
}
.checkout-step.is-active { background: var(--ink); color: var(--cream); }
.checkout-step.is-done { background: var(--mint-soft); color: #4a6b48; }
.checkout-step__num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .08);
  display: grid;
  place-items: center;
  font-size: 10px;
}
.checkout-step.is-active .checkout-step__num { background: var(--pink); color: var(--ink); }
.checkout-step.is-done .checkout-step__num { background: #4a6b48; color: #fff; }
.checkout-step__chev {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--ink-mute);
  border-top: 1.5px solid var(--ink-mute);
  transform: rotate(45deg);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* Barra de total en mobile: en desktop el resumen ya vive en su propia
   columna a la derecha, siempre visible. En mobile, .checkout-summary queda
   al final del documento — sin esto, la persona llena todo el formulario de
   contacto/envío antes de ver cuánto va a pagar. Esta barra muestra el total
   en vivo apenas se entra al checkout y hace scroll al resumen real (mismo
   #order_review que actualiza WooCommerce), sin duplicar su markup. */
.checkout-sticky-total { display: none; }
@media (max-width: 860px) {
  .checkout-sticky-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    /* .site-header (design-system.css) mide ~45px de alto y es sticky top:0
       — esta barra debe pegarse justo debajo, no encima. Con la admin bar de
       WP logueado, el header baja ese mismo alto extra (ver
       body.admin-bar .site-header más abajo), así que replicamos el mismo
       ajuste acá para no quedar tapados. */
    top: 45px;
    z-index: 20;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--r-pill);
    padding: 12px 18px;
    margin: 0 0 24px;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
  }
  body.admin-bar .checkout-sticky-total {
    top: calc(45px + var(--wp-admin--admin-bar--height, 32px));
  }
  .checkout-sticky-total__label {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
  }
  .checkout-sticky-total__right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
  }
  .checkout-sticky-total__amount {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 800;
  }
  .checkout-sticky-total__right svg { color: var(--ink-mute); flex-shrink: 0; }
  #order_review { scroll-margin-top: 70px; }
}

.checkout-section { margin-bottom: 32px; }
/* Notas del pedido: las renderiza WooCommerce automáticamente tras los
   campos de envío (core), no un .checkout-section nuestro — le damos el
   mismo ritmo vertical para que no quede pegada al bloque anterior. */
.woocommerce-additional-fields { margin-top: 24px; }
.checkout-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.checkout-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.checkout-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* El botón "subir arriba" de Astra (fixed, bottom:30px/right:30px) se monta
   sobre "Confirmar pedido" cuando ese botón queda en esa misma zona de la
   pantalla al hacer scroll — en checkout la prioridad es el CTA, no volver
   arriba. */
body.woocommerce-checkout #ast-scroll-top { display: none !important; }
/* Astra inyecta CSS de compatibilidad para el checkout clásico de WooCommerce
   (float: right en #order_review_heading, anchos fijos pensados para su
   propio layout de 2 columnas) que colapsa el resumen del pedido dentro de
   nuestro .checkout-grid propio — se resetea explícitamente, igual que ya
   se hace para el ::before de Astra en el corazón del carrito. */
.checkout-summary,
.checkout-summary #order_review,
.checkout-summary #order_review_heading,
.checkout-summary .woocommerce-checkout-review-order-table {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ── Miniaturas de producto en la tabla de resumen ──────────────────────
   La tabla nativa de WooCommerce solo trae texto (nombre × cantidad); se
   arma un mini "line" con imagen + badge de cantidad, mismo criterio visual
   que .line en cart.php, para que el resumen del pedido no se sienta como
   una tabla de datos suelta. */
/* Oculta visualmente los encabezados "Producto/Total" (redundantes con las
   miniaturas) sin sacarlos del árbol de accesibilidad — mismo patrón que
   .screen-reader-text de WP core, no display:none. */
.woocommerce-checkout-review-order-table thead th {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.checkout-line { display: flex; align-items: center; gap: 12px; }
.checkout-line__img {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--cream-2);
}
.checkout-line__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.checkout-line__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--ink);
  color: var(--cream);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.checkout-line__body { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* Checkbox de newsletter en el paso "Contacto" — mismo criterio visual que
   .auth-check (design-system.css) del formulario de registro. */
.suntype-checkout-newsletter .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.suntype-checkout-newsletter input[type="checkbox"] { accent-color: var(--ink); }

/* ── Métodos de pago (tarjetas, en vez del radio + texto plano de WC) ──── */
.wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0; }
.wc_payment_methods li.wc_payment_method {
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  padding: 16px 18px;
  background: var(--paper);
  transition: border-color .15s, background .15s;
}
.wc_payment_methods li.wc_payment_method:has(input:checked) {
  border-color: var(--ink);
  background: var(--cream-2);
}
.wc_payment_methods li.wc_payment_method > label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
}
.wc_payment_methods li.wc_payment_method > input.input-radio {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.wc_payment_methods li.wc_payment_method > label img {
  height: 22px;
  width: auto;
  margin-left: auto;
}
.wc_payment_methods .payment_box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── Página de gracias (checkout/thankyou.php) ───────────────────────────
   Antes era la plantilla de WooCommerce por defecto — único tramo del flujo
   de compra sin marca propia. */
/* Ancho propio, más angosto que var(--container) (pensado para grillas de
   3 productos) — esta es una página de recibo de una sola columna de
   contenido; a ancho completo el bloque de datos bancarios/detalles/
   direcciones (más abajo, todas comparten este mismo ancho) quedaba
   perdido en el centro con un tercio de página vacío a cada lado. */
.thanks-page { max-width: 860px; margin: 0 auto; padding: 48px 20px 80px; }

.thanks-hero { text-align: center; max-width: 460px; margin: 0 auto 36px; }
.thanks-hero__heart {
  display: inline-flex; width: 48px; height: 48px; border-radius: 50%;
  background: var(--pink-soft); color: var(--pink-deep); font-size: 22px;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.thanks-hero__title {
  font-family: var(--font-script);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}
.thanks-hero__sub { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

.thanks-overview {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 640px; margin: 0 auto 40px;
}
.thanks-overview__item {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 12px 20px; min-width: 120px; text-align: center;
}
.thanks-overview__label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.thanks-overview__value { font-size: 14px; font-weight: 700; color: var(--ink); }

.thanks-grid { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 780px) { .thanks-grid { grid-template-columns: 1fr; } }

.thanks-section__title {
  font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.thanks-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.thanks-line__img { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--cream-2); }
.thanks-line__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thanks-line__title { font-size: 14px; font-weight: 600; color: var(--ink); }
.thanks-line__qty { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.thanks-line__price { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.thanks-next {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 24px;
}
.thanks-next__item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.thanks-next__item svg { flex-shrink: 0; color: var(--pink-deep); margin-top: 2px; }
.thanks-next__item strong { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
.thanks-next__item span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.thanks-next__social { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); text-align: center; }
.thanks-next__social p { font-size: 12.5px; color: var(--ink-mute); margin: 0 0 12px; }

.thanks-cta { text-align: center; margin-top: 44px; }

.thanks-failed { max-width: 480px; margin: 0 auto; text-align: center; }
.thanks-failed__title { font-family: var(--font-script); font-size: 30px; color: var(--ink); margin: 0 0 12px; }
.thanks-failed p { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }
.thanks-failed__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* woocommerce_order_details_table() y las notas del gateway (BACS, MP) se
   imprimen vía woocommerce_thankyou_{metodo}/woocommerce_thankyou — mismos
   hooks que el thankyou.php por defecto de WooCommerce, sin esto quien paga
   por transferencia no vería a dónde depositar. Quedan con las clases core
   de WC (no las armamos nosotros), así que se estilizan aparte para que no
   se sientan una plantilla distinta pegada debajo de .thanks-page. */
.thanks-page .woocommerce-order-details,
.thanks-page .woocommerce-customer-details,
.thanks-page .woocommerce-bacs-bank-details,
.thanks-page > p,
body.woocommerce-view-order .woocommerce-order-details,
body.woocommerce-view-order .woocommerce-customer-details {
  margin: 0 0 32px;
}
/* "Ver pedido" en Mi cuenta (woocommerce/myaccount/view-order.php, sin
   override propio) usa las mismas clases core de WC que la página de
   gracias — misma tabla/columnas de dirección — así que comparte el
   estilo de .thanks-page en vez de quedar como HTML de WooCommerce sin
   tocar en medio del resto de la cuenta ya con marca. */
body.woocommerce-view-order .woocommerce-MyAccount-content > p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
body.woocommerce-view-order .woocommerce-MyAccount-content mark {
  background: none;
  color: var(--ink);
  font-weight: 700;
  padding: 0;
}
.thanks-page .woocommerce-bacs-bank-details {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 22px 26px;
}
.thanks-page .wc-bacs-bank-details-heading {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
/* El titular real de la cuenta (SUNTYPE SPA — RUT) — sin este estilo sale
   como un <h3> sin marca, casi invisible entre el título de la sección y la
   lista de banco/número de cuenta, justo el dato que alguien transfiriendo
   necesita para confirmar que la cuenta es la correcta. */
.thanks-page .wc-bacs-bank-details-account-name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 800;
  color: var(--pink-deep);
  margin: 0 0 14px;
}
/* Botón "copiar datos" (inyectado por theme.js initBankDetailsCopy) + QR —
   el QR solo tiene sentido en desktop: en mobile la persona ya está con el
   celular en la mano para transferir, ahí basta el botón de copiar. */
.bank-details-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.bank-details-copy { font-size: 12.5px; padding: 11px 20px !important; }
.bank-details-copy.is-copied { background: var(--mint-soft) !important; color: var(--ink) !important; }
.bank-details-qr {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.bank-details-qr img { border-radius: var(--r-sm); border: 1px solid var(--rule); display: block; }
.bank-details-qr span { font-size: 11px; color: var(--ink-mute); }
@media (min-width: 860px) {
  .bank-details-qr { display: flex; }
}
.thanks-page .woocommerce-order-details__title,
.thanks-page .woocommerce-column__title,
body.woocommerce-view-order .woocommerce-order-details__title,
body.woocommerce-view-order .woocommerce-column__title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.thanks-page table.woocommerce-table--order-details,
body.woocommerce-view-order table.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.thanks-page table.woocommerce-table--order-details th,
.thanks-page table.woocommerce-table--order-details td,
body.woocommerce-view-order table.woocommerce-table--order-details th,
body.woocommerce-view-order table.woocommerce-table--order-details td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  text-align: left;
}
.thanks-page table.woocommerce-table--order-details tfoot th,
.thanks-page table.woocommerce-table--order-details tfoot td,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot th,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot td {
  color: var(--ink);
}
.thanks-page table.woocommerce-table--order-details tfoot tr:last-child th,
.thanks-page table.woocommerce-table--order-details tfoot tr:last-child td,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot tr:last-child td {
  font-weight: 700;
  border-bottom: none;
}
.thanks-page .woocommerce-columns--addresses,
body.woocommerce-view-order .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
}
/* Astra agrega un clearfix ::before/::after (content:""; display:table;) a
   .col2-set para su layout clásico con floats — dentro de un grid, ese
   pseudo-elemento se cuenta como un item más y empuja "Dirección de envío"
   a una segunda fila. Mismo problema ya resuelto para
   .woocommerce-Addresses.u-columns en Mi cuenta. */
.thanks-page .woocommerce-columns--addresses::before,
.thanks-page .woocommerce-columns--addresses::after,
body.woocommerce-view-order .woocommerce-columns--addresses::before,
body.woocommerce-view-order .woocommerce-columns--addresses::after {
  display: none !important;
}
.thanks-page .woocommerce-column,
body.woocommerce-view-order .woocommerce-column {
  /* Astra define .col2-set .col-1/.col-2 con float:left + width:47% (su
     layout clásico de 2 columnas) — mismo conflicto ya resuelto para
     .woocommerce-Address en Mi cuenta; sin este reset la tarjeta queda a
     menos de la mitad del ancho de su celda del grid. */
  float: none !important;
  width: 100% !important;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.thanks-page .woocommerce-column address,
body.woocommerce-view-order .woocommerce-column address { font-style: normal; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 600px) {
  .thanks-page .woocommerce-columns--addresses,
  body.woocommerce-view-order .woocommerce-columns--addresses { grid-template-columns: 1fr; }
}

/* ── Shop hero ────────────────────────────────────────────────────────── */
.page-hero {
  background: var(--cream);
  padding: 56px 0 28px;
  text-align: center;
}
.page-hero .script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 1.05;
  margin: 8px 0 12px;
  color: var(--ink);
}
.page-hero__sub { font-size: 15px; color: var(--ink-soft); }
.page-hero__heart { color: var(--pink-deep); font-size: .65em; }

/* Search box (sidebar) */
.search-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  margin-bottom: 28px;
}
.search-box svg { color: var(--ink-mute); flex-shrink: 0; }
.search-box { transition: border-color .15s, box-shadow .15s; }
.search-box:focus-within { border-color: var(--pink-deep); box-shadow: 0 0 0 3px var(--pink-soft); }
.search-box input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--font-ui); font-size: 14px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.search-box input::placeholder { color: var(--ink-mute); }
.search-box input::-webkit-search-decoration,
.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-results-button,
.search-box input::-webkit-search-results-decoration { -webkit-appearance: none; }

/* Shop grid */
.shop {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 24px 0 80px;
}
@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; gap: 28px; }
  .shop__sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 16px 24px;
  }
  .shop__sidebar .search-box { grid-column: 1 / -1; margin-bottom: 8px; }
  .shop__sidebar .filter-block { margin-bottom: 0; }
}
@media (max-width: 540px) {
  .shop__sidebar { grid-template-columns: 1fr; }
}
@media (min-width: 861px) {
  .shop__sidebar { position: sticky; top: 100px; align-self: start; }
}
.filter-block { margin-bottom: 32px; }
.filter-block h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 12px; display: flex; align-items: center; gap: 6px;
}
.filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.filter-item {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--ink-soft);
  padding: 6px 8px; border-radius: var(--r-xs);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.filter-item:hover { color: var(--ink); background: var(--cream-2); }
.filter-item.is-active { color: var(--ink); font-weight: 700; }
.filter-item .count {
  background: var(--cream-2); color: var(--ink-mute);
  border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600;
}
.filter-item.is-active .count { background: var(--pink); color: var(--ink); }
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; flex-wrap: wrap; gap: 10px;
}

/* ── Product card info ───────────────────────────────────────────────── */
.product-card__info { text-align: center; }
.product-card__cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pink-deep); margin: 0 0 4px; }
.product-card__title { margin: 0 0 4px; }
.product-card__price { font-weight: 700; font-size: 15px; color: var(--ink); }
.product-card__img-wrap { display: block; }

/* ── Carrito lateral (drawer) ───────────────────────────────────────────
   Contenido real de WooCommerce (woocommerce/cart/mini-cart.php), sincronizado
   vía wc-cart-fragments.js nativo. Fidelidad visual: design_handoff_woocommerce. */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(45,38,34,.45);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
  z-index: 97;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92%);
  background: var(--cream);
  z-index: 98;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,.8,.22,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lift);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cart-drawer__head h3 {
  margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; color: var(--ink);
}
.cart-drawer__close {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: none;
  display: grid; place-items: center; color: var(--ink-soft); cursor: pointer;
}
.cart-drawer__close:hover { background: var(--cream-2); color: var(--ink); }

.widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-banner {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--mint-soft); color: var(--ink);
  font-size: 12px; line-height: 1.45;
  border-radius: var(--r-sm); padding: 10px 14px;
  margin: 10px 0 6px;
}
.drawer-line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--rule); align-items: center;
}
.drawer-line__img { width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--cream-2); }
.drawer-line__img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-line__title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.drawer-line__title a { color: var(--ink); text-decoration: none; }
.drawer-line__bottom { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.drawer-line__qty { font-size: 12px; color: var(--ink-soft); }
.drawer-line__stepper {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  padding: 3px 6px;
}
.drawer-line__step-btn {
  width: 20px; height: 20px; border-radius: 50%; border: none;
  background: none; color: var(--ink); font-size: 14px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.drawer-line__step-btn:hover:not(:disabled) { background: var(--cream-2); }
.drawer-line__step-btn:disabled { opacity: .35; cursor: default; }
.drawer-line__step-qty { font-size: 13px; font-weight: 600; min-width: 14px; text-align: center; }
.widget_shopping_cart_content a.drawer-line__rm.remove {
  /* Mismo problema que .line__rm en cart.php: el CSS core de WooCommerce
     estiliza .remove como círculo de 1em pensado para el símbolo "×";
     acá el link dice "Quitar", así que se anula ese tamaño fijo para que
     el texto no se solape con la línea de cantidad/precio de al lado. */
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  display: inline;
  font-size: 11px;
  line-height: normal;
  font-weight: 400;
  text-align: left;
  color: var(--ink-mute) !important;
  text-decoration: underline;
  border: none;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  padding: 0;
}
.widget_shopping_cart_content a.drawer-line__rm.remove:hover,
.widget_shopping_cart_content a.drawer-line__rm.remove:focus {
  color: var(--pink-deep) !important;
  background: none;
  box-shadow: none;
  outline: none;
}
/* Astra (no WooCommerce core) dibuja un círculo vía ::before en cualquier
   a.remove — position:relative + inset:0/100%/100% calzando al tamaño del
   texto "Quitar", de ahí la píldora que rodeaba el link. */
.widget_shopping_cart_content a.drawer-line__rm.remove::before { content: none; }
.drawer-line__price { font-size: 14px; font-weight: 700; text-align: right; color: var(--ink); }

.drawer-crosssell { padding: 14px 0 4px; margin-top: 4px; }
.drawer-crosssell__title {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 10px;
}
.drawer-crosssell__item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
}
.drawer-crosssell__img {
  width: 40px; height: 40px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; display: block;
}
.drawer-crosssell__img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-crosssell__title-link {
  flex: 1; font-size: 12px; color: var(--ink); text-decoration: none; line-height: 1.3;
}
.drawer-crosssell__title-link:hover { color: var(--pink-deep); }
.drawer-crosssell__price { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.drawer-crosssell__add {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule);
  background: none; display: grid; place-items: center; color: var(--ink);
  cursor: pointer; flex-shrink: 0;
}
.drawer-crosssell__add:hover { background: var(--cream-2); color: var(--pink-deep); }

.drawer-empty {
  text-align: center;
  padding: 64px 28px;
  max-width: 320px;
  margin: 0 auto;
}
.drawer-empty__heart { color: var(--pink); margin: 0 auto 18px; display: block; }
.drawer-empty .script { font-family: var(--font-script); font-size: 26px; color: var(--ink); margin: 0 0 10px; }
.drawer-empty p { color: var(--ink-soft); font-size: 13px; line-height: 1.5; margin: 0 0 22px; }

.cart-drawer__foot { padding: 18px 24px 22px; border-top: 1px solid var(--rule); background: var(--paper); flex-shrink: 0; }
.cart-drawer__totals { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.cart-drawer__totals .label { font-size: 13px; color: var(--ink-soft); }
.cart-drawer__totals .total { font-size: 24px; font-weight: 700; color: var(--ink); }
.cart-drawer__note { font-size: 11px; color: var(--ink-mute); margin-bottom: 14px; line-height: 1.5; }
.cart-drawer__pay { display: flex; justify-content: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.cart-drawer__pay-note { font-size: 11px; color: var(--ink-mute); text-align: center; margin: 8px 0 0; }

@media (max-width: 480px) {
  /* 100vw incluye el ancho del scrollbar del navegador (no descontado como
     en window.innerWidth/%), lo que puede empujar overflow horizontal en
     toda la página aunque el drawer esté fuera de pantalla. 100% evita eso. */
  .cart-drawer { width: 100%; }
}

/* ── My account: saludo + layout 2 columnas (woocommerce/myaccount/my-account.php) ── */
.woocommerce-account .acct-hero { margin: 8px 0 30px; }
.woocommerce-account .acct-hero .hi {
  font-family: var(--font-script); font-size: clamp(36px, 4.4vw, 54px); line-height: 1;
  margin: 0 0 6px; color: var(--ink);
}
.woocommerce-account .acct-hero .acct-hero__heart { color: var(--pink-deep); font-size: .55em; }
.woocommerce-account .acct-hero p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.woocommerce-account .acct-layout { display: grid; grid-template-columns: 264px 1fr; gap: 32px; align-items: start; }

/* sidebar */
.acct-side {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 22px; position: sticky; top: 100px;
}
.acct-user { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.acct-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--pink-soft); color: var(--pink-deep);
  display: grid; place-items: center; font-weight: 700; font-size: 18px;
  font-family: var(--font-ui); flex-shrink: 0;
}
.acct-user .nm { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.acct-user .em { font-size: 12px; color: var(--ink-mute); word-break: break-all; }
.acct-nav { display: flex; flex-direction: column; gap: 2px; }
.acct-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: background .14s, color .14s;
}
.acct-nav a:hover { background: var(--cream-2); color: var(--ink); }
.acct-nav a.is-active { background: var(--ink); color: var(--cream); }
.acct-nav a.is-active svg { color: var(--cream); }
.acct-nav svg { color: var(--ink-mute); flex-shrink: 0; }
.acct-nav .sep { height: 1px; background: var(--rule); margin: 10px 0; }
.acct-nav a.danger { color: var(--ink-mute); }
.acct-nav a.danger:hover { color: #c2553f; background: #fbe9e5; }

/* paneles de contenido (orders / addresses / edit-account) */
.woocommerce-MyAccount-content .panel-h { font-family: var(--font-script); font-size: 34px; line-height: 1; margin: 0 0 4px; color: var(--ink); }
.woocommerce-MyAccount-content .panel-sub { color: var(--ink-soft); font-size: 13.5px; margin: 0 0 22px; }

@media (max-width: 860px) {
  .woocommerce-account .acct-layout { grid-template-columns: 1fr; }
  .acct-side { position: static; }
}

/* ── Pedidos (myaccount/orders.php): tarjeta real, igual a .order de
   design_handoff_woocommerce/cuenta.html — miniaturas, envío/seguimiento
   real (bluex-for-woocommerce) y estado traducido con color propio. ──── */
.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 22px 24px;
}
.order__top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule);
}
.order__id { font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--ink); }
.order__id span { color: var(--ink-mute); font-weight: 500; font-size: 12.5px; margin-left: 10px; }
.order__status {
  font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 7px 14px; border-radius: var(--r-pill); white-space: nowrap;
}
.order__status.is-prep { background: var(--butter-soft); color: #8a6d1e; }
.order__status.is-ship { background: var(--sky-soft); color: #3a6a86; }
.order__status.is-done { background: var(--mint-soft); color: #3f6b48; }
.order__status.is-cancel { background: #fbe9e5; color: #c2553f; }
.order__items { display: flex; gap: 10px; padding: 16px 0; flex-wrap: wrap; }
.order__thumb { position: relative; }
.order__thumb .img { width: 50px; height: 50px; border-radius: var(--r-sm); overflow: hidden; background: var(--cream-2); }
.order__thumb .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.order__thumb .q {
  position: absolute; top: -6px; right: -6px; background: var(--ink); color: var(--cream);
  font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
}
.order__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--rule);
}
.order__ship { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 7px; }
.order__ship svg { color: var(--ink-mute); flex-shrink: 0; }
.order__ship .track { color: var(--pink-deep); font-weight: 600; }
.order__total { font-family: var(--font-ui); font-size: 13px; color: var(--ink-soft); }
.order__total strong { font-size: 18px; color: var(--ink); margin-left: 8px; }
.order__actions { display: flex; gap: 10px; }
.order__actions form { margin: 0; }

.acct-empty { text-align: center; padding: 40px 20px; }
.acct-empty p { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }

@media (max-width: 560px) {
  .order__foot { align-items: flex-start; }
  .order__foot > div { margin-left: 0 !important; width: 100%; justify-content: space-between; }
}

/* ── Direcciones (my-address.php): grid de cards .addr ── */
.woocommerce-Addresses.u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.woocommerce-Addresses.u-columns::after, .woocommerce-Addresses.u-columns::before { display: none !important; }
.woocommerce-Address {
  /* Astra define .col2-set .col-1/.col-2 con float + width:48% (su layout
     clásico de 2 columnas); dentro de un grid, ese 48% se calcula sobre el
     ancho de la columna del grid (no del contenedor completo) y deja la
     tarjeta angostísima. Hay que anularlo explícitamente. */
  float: none !important; width: 100% !important;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-lg); padding: 22px 24px;
}
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.woocommerce-Address-title h2 { font-size: 14px; margin: 0; color: var(--ink); }
.woocommerce-Address-title .edit { font-size: 12px; font-weight: 600; color: var(--pink-deep); }
.woocommerce-Address-title .edit:hover { text-decoration: underline; }
.woocommerce-Address address { font-size: 13px; color: var(--ink-soft); line-height: 1.55; font-style: normal; }
@media (max-width: 600px) { .woocommerce-Addresses.u-columns { grid-template-columns: 1fr; } }

/* ── Mis datos (form-edit-account.php): tarjeta tipo .acct-card ── */
.woocommerce-EditAccountForm { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 28px 30px; }
.woocommerce-EditAccountForm h3 {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 20px;
}
.woocommerce-EditAccountForm .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.woocommerce-EditAccountForm .row2 .form-row-first,
.woocommerce-EditAccountForm .row2 .form-row-last { float: none !important; width: 100% !important; }
@media (max-width: 600px) { .woocommerce-EditAccountForm .row2 { grid-template-columns: 1fr; } }
.woocommerce-EditAccountForm fieldset { border: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--rule); }
.woocommerce-EditAccountForm fieldset legend {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0; margin-bottom: 18px;
}
.woocommerce-EditAccountForm button[type="submit"] {
  background: var(--pink); color: var(--ink); border-radius: var(--r-pill);
  padding: 13px 28px; font-weight: 800; text-transform: uppercase; font-size: 13px; margin-top: 6px;
}
.woocommerce-EditAccountForm button[type="submit"]:hover { background: var(--pink-deep); }

