/*
 * CITE — Ficha de producto (woocommerce/content-single-product.php, inc/product.php).
 * Se carga solo en las fichas. Los selectores empiezan por
 * «.single-product .cite-product» para ganar a los de woocommerce.css
 * (del tipo «.woocommerce div.product form.cart …») sin recurrir a !important.
 */

/* ----- Contenedor y migas ----- */
.single-product .cite-product { max-width: 1320px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px); color: var(--shoe-ink); overflow-x: clip; }
.single-product .cite-product .cite-product-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 18px; padding: 0; color: var(--shoe-ink); font-size: 12px; font-weight: 400; }
.single-product .cite-product .cite-product-crumbs::before, .single-product .cite-product .cite-product-crumbs::after { display: none; }
.single-product .cite-product .cite-product-crumbs a { color: var(--shoe-ink-soft); font-weight: 400; text-decoration: none; transition: color .2s ease; }
.single-product .cite-product .cite-product-crumbs a:hover { color: var(--shoe-clay); }
.cite-product-crumbs__sep { color: var(--shoe-line); font-weight: 400; }

/* Avisos de WooCommerce (sin JS: «añadido», errores) */
.single-product .cite-product .woocommerce-message,
.single-product .cite-product .woocommerce-info,
.single-product .cite-product .woocommerce-error { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 18px; padding: 14px 18px; border: 0; border-left: 2px solid #2f6b45; border-radius: 0; color: var(--shoe-ink); background: #fff; font-size: 13.5px; list-style: none; box-shadow: 0 0 0 1px var(--shoe-line) inset; }
.single-product .cite-product .woocommerce-error { border-left-color: var(--shoe-clay); color: var(--shoe-clay-dark); }
.single-product .cite-product .woocommerce-message::before,
.single-product .cite-product .woocommerce-info::before,
.single-product .cite-product .woocommerce-error::before { display: none; }

/* ----- Rejilla principal ----- */
.single-product .cite-product .cite-product__item { margin: 0; }
.single-product .cite-product .cite-product__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; gap: clamp(28px, 4vw, 56px); }
.single-product .cite-product .cite-product__top .cite-product__summary.summary { float: none; width: auto; margin: 0; padding: 0; }

/* ----- Galería ----- */
/* Es la de WooCommerce: flexslider genera siempre las miniaturas y, según el
   Customizer, van a la izquierda, debajo, como puntos sobre la foto, o todas
   las fotos en rejilla o mosaico (sin carrusel en escritorio). Clases:
   --d-* en escritorio y --m-* en móvil (inc/product.php). Una variación
   puede cambiar la galería entera, por eso la rejilla depende de que existan
   miniaturas (:has) y no del producto; has-thumbs solo reserva el hueco
   mientras flexslider arranca (aún sin .flex-active-slide). */
.cite-product__gallery { position: relative; min-width: 0; --thumbs: 78px; --thumbs-gap: 14px; --nav-left: 0px; --nav-row: 0px; }
/* La galería acompaña mientras se lee el resumen, si cabe en la pantalla. */
@media (min-width: 961px) and (min-height: 720px) {
  .cite-product__gallery { position: sticky; top: 24px; }
  /* En rejilla y mosaico la galería es larga: lo que acompaña es el resumen. */
  .cite-product__gallery--d-rejilla, .cite-product__gallery--d-mosaico { position: relative; top: auto; }
  .single-product .cite-product .cite-product__top:has(.cite-product__gallery--d-rejilla) > .cite-product__summary,
  .single-product .cite-product .cite-product__top:has(.cite-product__gallery--d-mosaico) > .cite-product__summary { position: sticky; top: 24px; }
}
.single-product .cite-product .cite-product__gallery div.images { float: none; width: auto; margin: 0; }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery { position: relative; }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery:has(.flex-control-thumbs),
.single-product .cite-product .cite-product__gallery.has-thumbs .woocommerce-product-gallery:not(:has(.flex-active-slide)) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .flex-viewport,
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery__wrapper { background: var(--shoe-sand); }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .woocommerce-product-gallery__image img { display: block; width: 100%; height: auto; }

/* Miniaturas */
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; scrollbar-width: none; }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .flex-control-thumbs::-webkit-scrollbar { display: none; }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 auto; width: var(--thumbs); margin: 0; float: none; }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .flex-control-thumbs li img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--shoe-line); background: var(--shoe-sand); opacity: 1; cursor: pointer; transition: border-color .2s ease, opacity .2s ease, background .2s ease; }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .flex-control-thumbs li img:not(.flex-active) { opacity: .72; }
@media (hover: hover) and (pointer: fine) {
  .single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .flex-control-thumbs li img:hover { opacity: 1; }
}
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { border-color: var(--shoe-ink); box-shadow: 0 0 0 1px var(--shoe-ink) inset; }

@media (min-width: 961px) {
  /* Miniaturas en columna a la izquierda */
  .single-product .cite-product .cite-product__gallery--d-izquierda .woocommerce-product-gallery:has(.flex-control-thumbs),
  .single-product .cite-product .cite-product__gallery--d-izquierda.has-thumbs .woocommerce-product-gallery:not(:has(.flex-active-slide)) { grid-template-columns: var(--thumbs) minmax(0, 1fr); gap: var(--thumbs-gap); }
  /* La foto va en la 2.ª columna: dentro de .flex-viewport (deslizar) o suelta (fundido, o antes de arrancar). */
  .single-product .cite-product .cite-product__gallery--d-izquierda .woocommerce-product-gallery > .flex-viewport,
  .single-product .cite-product .cite-product__gallery--d-izquierda .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 2; grid-row: 1; }
  .single-product .cite-product .cite-product__gallery--d-izquierda .woocommerce-product-gallery .flex-control-thumbs { flex-direction: column; grid-column: 1; grid-row: 1; max-height: 100%; overflow-y: auto; }
  .single-product .cite-product .cite-product__gallery--d-izquierda .woocommerce-product-gallery .flex-control-thumbs li { width: 100%; }
  .cite-product__gallery--d-izquierda:has(.flex-control-thumbs),
  .cite-product__gallery--d-izquierda.has-thumbs:not(:has(.flex-active-slide)) { --nav-left: calc(var(--thumbs) + var(--thumbs-gap)); }

  /* Miniaturas en fila debajo */
  .single-product .cite-product .cite-product__gallery--d-debajo .woocommerce-product-gallery .flex-control-thumbs { overflow-x: auto; }
  .cite-product__gallery--d-debajo:has(.flex-control-thumbs) { --nav-row: calc(var(--thumbs) + 10px); }

  /* Puntos */
  /* Cápsula translúcida sobre la foto. Cada punto es la miniatura de WooCommerce
     sin dibujar la foto (caja de contenido 0): el relleno es el punto y el borde
     transparente, el área táctil de 28 px. El activo se alarga. */
  .single-product .cite-product .cite-product__gallery--d-puntos .woocommerce-product-gallery .flex-control-thumbs { position: absolute; left: 50%; bottom: 14px; z-index: 8; flex-flow: row nowrap; justify-content: center; gap: 0; max-width: calc(100% - 28px); padding: 0 6px; overflow-x: auto; border-radius: 99px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateX(-50%); }
  .single-product .cite-product .cite-product__gallery--d-puntos .woocommerce-product-gallery .flex-control-thumbs li { width: auto; }
  .single-product .cite-product .cite-product__gallery--d-puntos .woocommerce-product-gallery .flex-control-thumbs li img { box-sizing: content-box; width: 0; height: 0; aspect-ratio: auto; padding: 3px; border: 11px solid transparent; border-radius: 99px; background-color: rgba(0,0,0,.3); background-clip: padding-box; box-shadow: none; transition: padding .35s cubic-bezier(.22, 1, .36, 1), background-color .25s ease, opacity .25s ease; }
  .single-product .cite-product .cite-product__gallery--d-puntos .woocommerce-product-gallery .flex-control-thumbs li img:hover { background-color: rgba(0,0,0,.6); }
  .single-product .cite-product .cite-product__gallery--d-puntos .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { padding: 3px 10px; border-color: transparent; box-shadow: none; background-color: var(--shoe-ink); }

  /* Rejilla y mosaico: todas las fotos a la vista, como Zara, COS o Nike, y
     el resumen fijo al lado. Es el mismo flexslider (en móvil sigue siendo
     carrusel): aquí se anulan las medidas que pone en línea. */
  .single-product .cite-product .cite-product__gallery--d-rejilla .woocommerce-product-gallery,
  .single-product .cite-product .cite-product__gallery--d-mosaico .woocommerce-product-gallery { display: block; }
  .single-product .cite-product .cite-product__gallery--d-rejilla .woocommerce-product-gallery .flex-viewport,
  .single-product .cite-product .cite-product__gallery--d-mosaico .woocommerce-product-gallery .flex-viewport { height: auto !important; overflow: visible !important; background: none; }
  .single-product .cite-product .cite-product__gallery--d-rejilla .woocommerce-product-gallery__wrapper,
  .single-product .cite-product .cite-product__gallery--d-mosaico .woocommerce-product-gallery__wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: auto !important; transform: none !important; transition: none !important; background: none; }
  .single-product .cite-product .cite-product__gallery--d-rejilla .woocommerce-product-gallery__image,
  .single-product .cite-product .cite-product__gallery--d-mosaico .woocommerce-product-gallery__image { position: relative !important; left: auto !important; z-index: auto !important; display: block !important; float: none !important; width: auto !important; margin: 0 !important; opacity: 1 !important; background: var(--shoe-sand); }
  .single-product .cite-product .cite-product__gallery--d-rejilla .woocommerce-product-gallery__image:only-child,
  .single-product .cite-product .cite-product__gallery--d-mosaico .woocommerce-product-gallery__image:first-child { grid-column: 1 / -1; }
  .single-product .cite-product .cite-product__gallery--d-rejilla .woocommerce-product-gallery__image a,
  .single-product .cite-product .cite-product__gallery--d-mosaico .woocommerce-product-gallery__image a { cursor: zoom-in; }
  .single-product .cite-product .cite-product__gallery--d-rejilla .woocommerce-product-gallery .flex-control-thumbs, .single-product .cite-product .cite-product__gallery--d-rejilla .woocommerce-product-gallery .flex-direction-nav,
  .single-product .cite-product .cite-product__gallery--d-mosaico .woocommerce-product-gallery .flex-control-thumbs, .single-product .cite-product .cite-product__gallery--d-mosaico .woocommerce-product-gallery .flex-direction-nav { display: none; }
  .single-product .cite-product .cite-product__top:has(.cite-product__gallery--d-rejilla),
  .single-product .cite-product .cite-product__top:has(.cite-product__gallery--d-mosaico) { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
}

/* Flechas (escritorio con ratón): aparecen al pasar por la foto. */
.single-product .cite-product .cite-product__gallery .flex-direction-nav { position: absolute; inset: 0; z-index: 7; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.single-product .cite-product .cite-product__gallery .flex-direction-nav li { margin: 0; }
.single-product .cite-product .cite-product__gallery .flex-direction-nav a { position: absolute; top: calc((100% - var(--nav-row)) / 2); display: block; width: 42px; height: 42px; margin-top: -21px; overflow: hidden; border-radius: 50%; color: var(--shoe-ink); background: rgba(255,255,255,.94); box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 0; line-height: 0; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
/* La flecha va centrada en absoluto: el texto «Anterior»/«Siguiente» de flexslider sigue en el enlace (lectores de pantalla) y, como hijo de la rejilla, empujaba el icono hacia arriba. */
.single-product .cite-product .cite-product__gallery .flex-direction-nav a::before { position: absolute; inset: 0; width: 18px; height: 18px; margin: auto; content: ""; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m14.5 6-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.single-product .cite-product .cite-product__gallery .flex-direction-nav .flex-prev { left: calc(var(--nav-left) + 14px); }
.single-product .cite-product .cite-product__gallery .flex-direction-nav .flex-next { right: 14px; }
.single-product .cite-product .cite-product__gallery .flex-direction-nav .flex-next::before { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) {
  .single-product .cite-product .cite-product__gallery:hover .flex-direction-nav a:not(.flex-disabled),
  .single-product .cite-product .cite-product__gallery .flex-direction-nav a:focus-visible { opacity: 1; pointer-events: auto; }
  .single-product .cite-product .cite-product__gallery .flex-direction-nav a:hover { transform: scale(1.06); }
}
.single-product .cite-product .cite-product__gallery .flex-direction-nav a.flex-disabled { opacity: 0 !important; pointer-events: none; }
@media (max-width: 960px), (hover: none) {
  .single-product .cite-product .cite-product__gallery .flex-direction-nav { display: none !important; }
}

/* Botón de pantalla completa (PhotoSwipe): círculo blanco con flechas */
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger { position: absolute; top: 14px; right: 14px; z-index: 9; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border-radius: 50%; color: var(--shoe-ink); background: rgba(255,255,255,.94); box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 0; text-indent: 0; box-sizing: border-box; opacity: 0; pointer-events: none; transform: scale(.92); transition: opacity .25s ease, transform .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .single-product .cite-product .cite-product__gallery:hover .woocommerce-product-gallery .woocommerce-product-gallery__trigger { opacity: 1; pointer-events: auto; transform: scale(1); }
  .single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover { transform: scale(1.06); }
}
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger > span { display: none; }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before { position: static; width: 18px; height: 18px; margin: 0; border: 0; border-radius: 0; content: ""; background: currentColor; transform: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4.5h5v5M19.5 4.5 13 11M9.5 19.5h-5v-5M4.5 19.5 11 13'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4.5h5v5M19.5 4.5 13 11M9.5 19.5h-5v-5M4.5 19.5 11 13'/%3E%3C/svg%3E") center / contain no-repeat; }
.single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger::after { display: none; }

/* Etiquetas sobre la imagen principal */
.cite-product-badges { position: absolute; top: 14px; left: 14px; z-index: 8; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; opacity: 1 !important; transform: none !important; }
.cite-product__gallery .cite-product-badges { left: calc(var(--nav-left) + 14px); }
.single-product .cite-product-badges .odr-badges,
.single-product .cite-product-badges .odr-badges__list {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.single-product .cite-product-badges > .cite-product-badge,
.single-product .cite-product-badges .odr-label,
.single-product .cite-product__gallery .odr-badges .odr-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 5.5px 8.5px 4px !important;
  border-radius: 3px !important;
  color: #fff !important;
  background: var(--shoe-clay, #c2593f) !important;
  font-family: inherit !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .14) !important;
}
.single-product .cite-product-badges > .cite-product-badge--nuevo,
.single-product .cite-product-badges .odr-label--promocion {
  background: var(--shoe-ink) !important;
  color: #fff !important;
}
.single-product .cite-product-badges > .cite-product-badge--agotado {
  color: var(--shoe-ink) !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px var(--shoe-line) inset, 0 3px 10px rgba(0, 0, 0, .1) !important;
}
/* Solo sustituye el descuento del tema si existe la etiqueta real del plugin. */
.single-product .cite-product-badges:has(.odr-label--descuento) .cite-product-badge--oferta,
.single-product .cite-product__gallery:has(.odr-badges .odr-label--descuento) .cite-product-badge--oferta { display: none !important; }
.single-product .cite-product__gallery .cite-product-badges > .odr-badges { position: static; max-width: 100%; display: flex; flex-direction: column; gap: 8px; }

/* Las etiquetas se mantienen siempre visibles para informar la oferta sin desaparecer */
.single-product .cite-product-badges {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 860px) {
  .cite-product-badges { top: 10px; left: 10px; gap: 5px; }
  .cite-product__gallery .cite-product-badges { left: 10px; }
  .single-product .cite-product-badges > .cite-product-badge,
  .single-product .cite-product-badges .odr-label,
  .single-product .cite-product__gallery .odr-badges .odr-label {
    padding: 4.5px 7px 3.5px !important;
    font-size: 10.5px !important;
    line-height: 1 !important;
    border-radius: 3px !important;
  }
}

.cite-product__counter { display: none; }

/* ----- Resumen ----- */
.cite-product-heading__title { margin: 0; color: var(--shoe-ink); font-family: "DM Sans", sans-serif; font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.cite-product-heading__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; color: var(--shoe-ink-soft); font-size: 13px; }
.cite-product-heading__rating { display: inline-flex; align-items: center; gap: 8px; color: var(--shoe-ink-soft); text-decoration: none; }
.cite-product-heading__rating:hover { color: var(--shoe-ink); }
.single-product .cite-product .cite-product-heading__rating .star-rating { float: none; margin: 0; font-size: 13px; }
.single-product .cite-product .star-rating::before { color: var(--shoe-line); }
.single-product .cite-product .star-rating span::before { color: #d49a2a; }
.cite-product-heading__rating + .cite-product-heading__sku::before { margin-right: 14px; content: "·"; }
.cite-product-heading__sku .sku { color: var(--shoe-ink); font-weight: 600; }

/* Precio: el actual grande primero y el anterior tachado al lado */
.cite-product-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 0; }
.single-product .cite-product .cite-product-price p.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; color: var(--shoe-ink); font-family: "DM Sans", sans-serif; font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.single-product .cite-product .cite-product-price p.price ins { order: -1; color: var(--shoe-ink); background: none; font-weight: 800; text-decoration: none; }
.single-product .cite-product .cite-product-price p.price del { color: #9a9189; font-size: .52em; font-weight: 500; letter-spacing: 0; opacity: 1; }

.single-product .cite-product .cite-product__summary .woocommerce-product-details__short-description { margin: 16px 0 0; color: var(--shoe-ink-soft); font-size: 14.5px; line-height: 1.7; }
.single-product .cite-product .cite-product__summary .woocommerce-product-details__short-description p { margin: 0 0 8px; }

/* Existencias: caja verde con punto; ámbar si quedan pocas */
.single-product .cite-product .cite-product__summary .stock { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 11px 14px; border: 1px solid rgba(47,107,69,.22); border-radius: 2px; color: #2f6b45; background: rgba(47,107,69,.07); font-size: 13px; font-weight: 600; line-height: 1.4; }
.single-product .cite-product .cite-product__summary .stock::before { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; content: ""; background: currentColor; }
.single-product .cite-product .cite-product__summary .stock.available-on-backorder::before { display: none; }
.single-product .cite-product .cite-product__summary .stock.is-low,
.single-product .cite-product .cite-product__summary .stock.available-on-backorder { border-color: rgba(196,138,37,.3); color: #8a5a12; background: rgba(196,138,37,.1); }
.single-product .cite-product .cite-product__summary .stock.is-low::before { animation: cite-product-pulse 1.8s ease-out infinite; }
.single-product .cite-product .cite-product__summary .stock.out-of-stock { border-color: rgba(165,35,72,.25); color: var(--shoe-clay-dark); background: rgba(165,35,72,.07); }

/* ----- Formulario de compra ----- */
.single-product .cite-product .cite-product__summary form.cart { margin: 22px 0 0; }
.single-product .cite-product .cite-product__summary form.cart::before,
.single-product .cite-product .cite-product__summary form.cart::after { display: none; }
/* Fila: cantidad · Agregar · Comprar ahora · favorito */
.single-product .cite-product .cite-product__summary form.cart:not(.variations_form):not(.grouped_form),
.single-product .cite-product .cite-product__summary form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.single-product .cite-product .cite-product__summary form.grouped_form > .single_add_to_cart_button { margin-top: 12px; }

/* Cantidad con − / + (product.js) */
.single-product .cite-product .cite-product__summary form.cart div.quantity { display: inline-flex; flex: 0 0 auto; align-items: stretch; float: none; height: 48px; margin: 0; border: 1px solid var(--shoe-line); border-radius: 4px; background: #fff; overflow: hidden; transition: border-color .2s ease; }
.single-product .cite-product .cite-product__summary form.cart div.quantity:focus-within { border-color: var(--shoe-ink); }
.cite-qty__btn { display: grid; width: 38px; place-items: center; padding: 0; border: 0; color: var(--shoe-ink); background: transparent; cursor: pointer; transition: background .15s ease, color .15s ease; }
.cite-qty__btn:hover:not(:disabled) { background: var(--shoe-sand); }
.cite-qty__btn:disabled { color: var(--shoe-line); cursor: default; }
.cite-qty__btn:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: -2px; }
.single-product .cite-product .cite-product__summary form.cart div.quantity .qty { width: 44px; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--shoe-ink); background: transparent; font-family: inherit; font-size: 14.5px; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.single-product .cite-product .cite-product__summary form.cart div.quantity.cite-qty .qty { border-right: 1px solid var(--shoe-line); border-left: 1px solid var(--shoe-line); }
.single-product .cite-product .cite-product__summary form.cart div.quantity .qty::-webkit-inner-spin-button,
.single-product .cite-product .cite-product__summary form.cart div.quantity .qty::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.single-product .cite-product .cite-product__summary form.cart div.quantity .qty:focus { outline: none; background: var(--shoe-paper); }

/* Agregar al carrito */
.single-product .cite-product .cite-product__summary form.cart .single_add_to_cart_button { position: relative; display: inline-flex; flex: 1 1 180px; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 0 20px; float: none; border: 1px solid var(--shoe-ink); border-radius: 4px; color: #fff; background: var(--shoe-ink); font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; opacity: 1; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease; }
.single-product .cite-product .cite-product__summary form.cart .single_add_to_cart_button:hover:not(.disabled) { border-color: var(--shoe-clay); color: #fff; background: var(--shoe-clay); box-shadow: 0 4px 14px rgba(165,35,72,.25); transform: translateY(-1px); }
.single-product .cite-product .cite-product__summary form.cart .single_add_to_cart_button.disabled { opacity: .5; background: var(--shoe-ink); border-color: var(--shoe-ink); cursor: pointer; }
.single-product .cite-product .cite-product__summary form.cart .single_add_to_cart_button.disabled:hover { opacity: .7; }
.single-product .cite-product .cite-product__summary form.cart .single_add_to_cart_button:focus-visible,
.cite-product-buynow:focus-visible,
.cite-product-fav:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }

/* Comprar ahora y favorito */
.single-product .cite-product .cite-product__summary .cite-product-buynow { position: relative; display: inline-flex; flex: 1 1 120px; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 0 16px; border: 1px solid var(--shoe-ink); border-radius: 4px; color: var(--shoe-ink); background: #fff; font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; cursor: pointer; transition: background .2s ease, color .2s ease; }
.single-product .cite-product .cite-product__summary .cite-product-buynow:hover { color: #fff; background: var(--shoe-ink); }
.single-product .cite-product .cite-product__summary .cite-product-buynow.is-disabled { opacity: .45; }
.single-product .cite-product .cite-product__summary .cite-product-fav { display: grid; flex: 0 0 48px; width: 48px; min-height: 48px; place-items: center; padding: 0; border: 1px solid var(--shoe-line); border-radius: 4px; color: var(--shoe-ink); background: #fff; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.single-product .cite-product .cite-product__summary .cite-product-fav:hover { border-color: var(--shoe-ink); color: var(--shoe-clay); }
.single-product .cite-product .cite-product__summary .cite-product-fav .material-symbols-outlined { font-size: 22px; }

/* Estados del envío: indicador girando y confirmación en verde */
.single-product .cite-product .cite-product__summary form.cart .is-loading { color: transparent; pointer-events: none; }
.single-product .cite-product .cite-product__summary form.cart .is-loading::after { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; content: ""; animation: cite-product-spin .8s linear infinite; }
.single-product .cite-product .cite-product__summary form.cart .cite-product-buynow.is-loading::after { border-color: rgba(0,0,0,.2); border-top-color: var(--shoe-ink); }
.single-product .cite-product .cite-product__summary form.cart .single_add_to_cart_button.is-added { border-color: #2f6b45; color: transparent; background: #2f6b45; }
.single-product .cite-product .cite-product__summary form.cart .single_add_to_cart_button.is-added::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; color: #fff; content: "✓  Añadido"; letter-spacing: .14em; }

/* Ocultar enlace "Ver carrito" (el minicarrito se despliega automáticamente tras añadir) */
.single-product .added_to_cart,
.single-product form.cart .added_to_cart,
.single-product .woocommerce-variation-add-to-cart .added_to_cart,
.single-product .cite-product .added_to_cart,
.cite-product__summary .added_to_cart,
a.added_to_cart { display: none !important; }

.single-product .cite-product .cite-product__summary .cite-product-msg { flex-basis: 100%; margin: 12px 0 0; padding: 10px 14px; border-left: 2px solid var(--shoe-clay); color: var(--shoe-clay-dark); background: rgba(165,35,72,.08); font-size: 13px; line-height: 1.5; }
.single-product .cite-product .cite-product__summary .cite-product-msg[hidden] { display: none; }

/* ----- Opciones (variaciones) ----- */
.single-product .cite-product .cite-product__summary form.cart table.variations,
.single-product .cite-product .cite-product__summary form.cart table.variations tbody,
.single-product .cite-product .cite-product__summary form.cart table.variations tr,
.single-product .cite-product .cite-product__summary form.cart table.variations th,
.single-product .cite-product .cite-product__summary form.cart table.variations td { display: block; width: 100%; max-width: 100%; box-sizing: border-box; }
.single-product .cite-product .cite-product__summary form.cart table.variations { margin: 0 0 6px; border: 0; border-collapse: collapse; background: none; }
.single-product .cite-product .cite-product__summary form.cart table.variations tr { margin: 0 0 18px; }
.single-product .cite-product .cite-product__summary form.cart table.variations th,
.single-product .cite-product .cite-product__summary form.cart table.variations td { padding: 0; border: 0; background: none; line-height: 1.4; text-align: left; }
.single-product .cite-product .cite-product__summary form.cart table.variations th { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.single-product .cite-product .cite-product__summary form.cart table.variations th label { margin: 0; color: var(--shoe-ink); font-size: 13px; font-weight: 700; }
.cite-swatches__current { font-weight: 400; }
.cite-swatches__current:not(:empty)::before { content: ": "; }
.single-product .cite-product .cite-product__summary form.cart table.variations select { width: 100%; max-width: 320px; min-width: 0; height: 46px; margin: 0; padding: 0 40px 0 14px; border: 1px solid var(--shoe-line); border-radius: 0; color: var(--shoe-ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231d1b19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat; font-family: inherit; font-size: 14px; -webkit-appearance: none; appearance: none; }
/* Con botones, el <select> sigue en el formulario (manda en WooCommerce) pero no se ve. */
.single-product .cite-product .cite-product__summary form.cart table.variations select.cite-swatches__select { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; pointer-events: none; }
.single-product .cite-product .cite-product__summary form.cart .reset_variations { display: inline-block; margin: 10px 0 0; color: var(--shoe-ink-soft); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.single-product .cite-product .cite-product__summary form.cart .reset_variations:hover { color: var(--shoe-clay); }

.cite-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.cite-swatch { min-width: 48px; height: 44px; padding: 0 10px; border: 1px solid var(--shoe-line); border-radius: 4px; color: var(--shoe-ink); background: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; cursor: pointer; box-sizing: border-box; transition: all .18s cubic-bezier(.22, 1, .36, 1); }
.cite-swatch:hover:not(:disabled):not(.is-selected) { border-color: var(--shoe-ink); background: var(--shoe-sand); transform: translateY(-1px); }
.cite-swatch.is-selected { border-color: var(--shoe-ink); color: #fff; background: var(--shoe-ink); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.cite-swatch:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }
/* Combinación inexistente o agotada: tachada en diagonal */
.cite-swatch:disabled { color: #b3aba2; background: linear-gradient(to top right, transparent calc(50% - .6px), var(--shoe-line) 50%, transparent calc(50% + .6px)) #faf8f4; text-decoration: line-through; cursor: not-allowed; }

.cite-swatches--color { gap: 10px; }
.cite-swatches--color .cite-swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 44px; min-width: 0; height: auto; padding: 3px 2px 0; border: 0; background: none; }
.cite-swatches--color .cite-swatch.is-selected { color: var(--shoe-ink); background: none; box-shadow: none; }
.cite-swatch__chip { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--chip, var(--shoe-sand)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.16); outline: 2px solid transparent; outline-offset: 2.5px; transition: outline-color .15s ease, transform .15s ease; }
.cite-swatches--color .cite-swatch:hover:not(:disabled) .cite-swatch__chip { outline-color: var(--shoe-line); transform: scale(1.05); }
.cite-swatches--color .cite-swatch.is-selected .cite-swatch__chip { outline: 2px solid var(--shoe-ink); }
.cite-swatch__name { display: none; }
.cite-swatches--color .cite-swatch:disabled { background: none; text-decoration: none; }
.cite-swatches--color .cite-swatch:disabled .cite-swatch__chip { opacity: .35; background-image: linear-gradient(to top right, transparent calc(50% - .75px), var(--shoe-ink) 50%, transparent calc(50% + .75px)); }
/* Color sin muestra conocida: botón con el nombre, como las tallas */
.cite-swatches--color .cite-swatch.is-plain { flex-direction: row; width: auto; height: 44px; padding: 0 14px; border: 1px solid var(--shoe-line); border-radius: 4px; background: #fff; }
.cite-swatches--color .cite-swatch.is-plain .cite-swatch__chip { display: none; }
.cite-swatches--color .cite-swatch.is-plain .cite-swatch__name { display: block; color: var(--shoe-ink); font-size: 13.5px; font-weight: 600; }
.cite-swatches--color .cite-swatch.is-plain.is-selected { background: var(--shoe-ink); }
.cite-swatches--color .cite-swatch.is-plain.is-selected .cite-swatch__name { color: #fff; }

.single-product .cite-product .cite-product__summary form.cart table.variations.is-attention .cite-swatches,
.single-product .cite-product .cite-product__summary form.cart table.variations.is-attention select { animation: cite-product-nudge .5s ease; }

.cite-product-sizeguide { display: inline-flex; align-items: center; gap: 5px; margin: 0 0 12px; color: var(--shoe-ink); font-size: 12px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--shoe-line); text-underline-offset: 3px; transition: color .2s ease; }
.cite-product-sizeguide:hover { color: var(--shoe-clay); text-decoration-color: currentColor; }
.single-product .cite-product table.variations th .cite-product-sizeguide { margin: 0; }
/* Con guía de categoría es un botón: mismo aspecto que el enlace. */
button.cite-product-sizeguide { padding: 0; background: none; border: 0; font-family: inherit; line-height: inherit; cursor: pointer; }
button.cite-product-sizeguide:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }
/* Sin variaciones va suelto encima del formulario de compra. */
.single-product .cite-product .cite-product__summary > .cite-product-sizeguide { margin: 16px 0 2px; }

/* Ventana de la guía de tallas (inc/size-guide.php): centrada en escritorio,
   hoja desde abajo en móvil. La tabla se desplaza sola si no cabe. */
html.cite-sizeguide-open { overflow: hidden; }
.cite-sizeguide { width: min(720px, calc(100% - 32px)); max-width: none; max-height: min(86vh, 860px); margin: auto; padding: 0; overflow: hidden; color: var(--shoe-ink); background: #fff; border: 0; border-radius: 0; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.cite-sizeguide::backdrop { background: rgba(0,0,0,.55); }
.cite-sizeguide[open] { display: flex; animation: cite-sizeguide-in .25s ease; }
.cite-sizeguide__box { display: flex; flex-direction: column; width: 100%; max-height: min(86vh, 860px); }
.cite-sizeguide__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--shoe-line); }
.cite-sizeguide__eyebrow { margin: 0 0 4px; color: var(--shoe-clay); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cite-sizeguide__title { margin: 0; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: 24px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.cite-sizeguide__close { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; padding: 0; color: var(--shoe-ink); background: #fff; border: 1px solid var(--shoe-line); border-radius: 50%; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.cite-sizeguide__close:hover { color: var(--shoe-clay); border-color: var(--shoe-ink); }
.cite-sizeguide__close:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }
.cite-sizeguide__body { display: grid; flex: 1 1 auto; grid-auto-rows: max-content; gap: 16px; min-height: 0; padding: 20px 24px 26px; overflow-y: auto; overscroll-behavior: contain; }
.cite-sizeguide__note { margin: 0; color: var(--shoe-ink-soft); font-size: 14px; line-height: 1.6; }
.cite-sizeguide__table { overflow-x: auto; border: 1px solid var(--shoe-line); border-radius: var(--shoe-radius); }
.cite-sizeguide__table:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }
.cite-sizeguide__table table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cite-sizeguide__table th, .cite-sizeguide__table td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--shoe-line); text-align: center; white-space: nowrap; }
.cite-sizeguide__table :is(th, td):not(:last-child) { border-right: 1px solid var(--shoe-line); }
.cite-sizeguide__table thead th { color: var(--shoe-ink); background: var(--shoe-sand); font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cite-sizeguide__table tbody th { color: var(--shoe-ink); font-weight: 800; }
.cite-sizeguide__table tbody tr:nth-child(even) { background: #faf8f5; }
.cite-sizeguide__table tbody tr:last-child :is(th, td) { border-bottom: 0; }
.cite-sizeguide__table tbody tr:hover { background: rgba(165,35,72,.06); }
.cite-sizeguide__figure { margin: 0; }
.cite-sizeguide__image { display: block; width: 100%; height: auto; border: 1px solid var(--shoe-line); }
@keyframes cite-sizeguide-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 680px) {
  .cite-sizeguide {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .cite-sizeguide__box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
  }
  .cite-sizeguide__head {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 18px 14px;
    border-bottom: 1px solid var(--shoe-line);
  }
  .cite-sizeguide__title { font-size: 20px; }
  .cite-sizeguide__body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }
  .cite-sizeguide__note { font-size: 13px; line-height: 1.45; }
  .cite-sizeguide__table { -webkit-overflow-scrolling: touch; }
  .cite-sizeguide__table table { table-layout: fixed; width: 100%; min-width: 100%; font-size: 12.5px; }
  .cite-sizeguide__table th,
  .cite-sizeguide__table td { min-width: 48px; padding: 8px 4px; vertical-align: middle; }
  .cite-sizeguide__table thead th { padding: 9px 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; line-height: 1.25; white-space: normal; word-break: normal; }
  .cite-sizeguide__table tbody th { font-weight: 700; background: rgba(0, 0, 0, .02); }
  .cite-sizeguide__table tbody tr:nth-child(even) th { background: rgba(0, 0, 0, .035); }
}
@media (prefers-reduced-motion: reduce) { .cite-sizeguide[open] { animation: none; } }

/* Precio y existencias de la variación elegida */
.single-product .cite-product .cite-product__summary .woocommerce-variation { margin: 0 0 14px; }
.single-product .cite-product .cite-product__summary .woocommerce-variation-price .price { color: var(--shoe-ink); font-size: 20px; font-weight: 800; }
.single-product .cite-product .cite-product__summary .woocommerce-variation-price .price del { color: #9a9189; font-size: .75em; font-weight: 500; }
.single-product .cite-product .cite-product__summary .woocommerce-variation-price .price ins { text-decoration: none; }
.single-product .cite-product .cite-product__summary .woocommerce-variation-availability .stock { margin-top: 10px; }
.single-product .cite-product .cite-product__summary .woocommerce-variation-description p { margin: 8px 0 0; color: var(--shoe-ink-soft); font-size: 13.5px; }

/* Agrupados */
.single-product .cite-product .cite-product__summary table.group_table { width: 100%; border: 0; border-collapse: collapse; }
.single-product .cite-product .cite-product__summary table.group_table td { padding: 12px 8px 12px 0; border: 0; border-bottom: 1px solid var(--shoe-line); vertical-align: middle; }

/* Ventajas en el resumen (3 columnas equilibradas) */
.cite-product-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 0; padding: 20px 0; border-top: 1px solid var(--shoe-line); list-style: none; }
.cite-product-benefits li { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; margin: 0; text-align: center; }
.cite-product-benefits strong,
.cite-product-benefits__title { display: block; color: var(--shoe-ink); font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.cite-product-benefits__sub { display: block; color: var(--shoe-ink-soft); font-size: 12px; line-height: 1.45; }
.cite-product-benefits__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; line-height: 1.45; }
.cite-product-benefits__icon { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: var(--shoe-ink); background: var(--shoe-sand); }
.cite-product-benefits__icon svg { display: block; width: 18px; height: 18px; }

/* Acordeones integrados en el resumen (Detalles, Envíos, Cuidado) */
.cite-product-accordions { margin: 18px 0 0; border-top: 1px solid var(--shoe-line); }
.cite-product-accordion { border-bottom: 1px solid var(--shoe-line); }
.cite-product-accordion__summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; color: var(--shoe-ink); font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; list-style: none; user-select: none; transition: color .18s ease; }
.cite-product-accordion__summary::-webkit-details-marker { display: none; }
.cite-product-accordion__title { display: inline-flex; align-items: center; gap: 10px; color: var(--shoe-ink); }
.cite-product-accordion__title svg { color: var(--shoe-clay); flex-shrink: 0; }
.cite-product-accordion__arrow { position: relative; width: 18px; height: 18px; flex-shrink: 0; color: var(--shoe-ink-soft); transition: transform .25s cubic-bezier(.22, 1, .36, 1), color .2s ease; }
.cite-product-accordion__arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 6.5px; height: 6.5px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.cite-product-accordion[open] .cite-product-accordion__arrow::before { transform: rotate(-135deg) translateY(-1px); }
.cite-product-accordion__summary:hover { color: var(--shoe-clay); }
.cite-product-accordion__summary:hover .cite-product-accordion__arrow { color: var(--shoe-ink); }
.cite-product-accordion__content { padding: 0 0 16px; color: var(--shoe-ink-soft); font-size: 13px; line-height: 1.6; }
.cite-product-accordion__content p { margin: 0 0 10px; }
.cite-product-accordion__content p:last-child { margin-bottom: 0; }
.cite-product-accordion__list { margin: 0; padding: 0 0 0 18px; list-style: disc; }
.cite-product-accordion__list li { margin-bottom: 6px; }
.cite-product-accordion__list li:last-child { margin-bottom: 0; }

/* Descripción editorial (the_content) */
.cite-product-accordion__content--editorial { color: var(--shoe-ink-soft); font-size: 13.5px; line-height: 1.65; }
.cite-product-accordion__content--editorial h1,
.cite-product-accordion__content--editorial h2,
.cite-product-accordion__content--editorial h3,
.cite-product-accordion__content--editorial h4 { margin: 12px 0 6px; color: var(--shoe-ink); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; }
.cite-product-accordion__content--editorial ul,
.cite-product-accordion__content--editorial ol { margin: 6px 0 10px 18px; padding: 0; }
.cite-product-accordion__content--editorial li { margin-bottom: 4px; }
.cite-product-accordion__content--editorial img { max-width: 100%; height: auto; border-radius: 4px; }
.cite-product-accordion__content--editorial blockquote { margin: 10px 0; padding: 8px 14px; border-left: 2px solid var(--shoe-clay); background: var(--shoe-sand); font-style: italic; }

/* Tabla de características técnicas (wc_display_product_attributes) */
.cite-product-accordion .shop_attributes { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.cite-product-accordion .shop_attributes tr { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border: 0; border-bottom: 1px dashed var(--shoe-line); }
.cite-product-accordion .shop_attributes tr:last-child { border-bottom: 0; }
.cite-product-accordion .shop_attributes th,
.cite-product-accordion .shop_attributes td { padding: 0; border: 0; background: none; font-size: 13px; line-height: 1.45; }
.cite-product-accordion .shop_attributes th { color: var(--shoe-ink-soft); font-weight: 500; text-align: left; flex: 0 0 auto; max-width: 45%; }
.cite-product-accordion .shop_attributes td { color: var(--shoe-ink); font-weight: 600; text-align: right; flex: 1 1 auto; }
.cite-product-accordion .shop_attributes td p { margin: 0; display: inline; }
.cite-product-accordion .shop_attributes td a { color: inherit; text-decoration: none; }

/* ----- Pestañas (si existen editoriales largas) ----- */
.single-product .cite-product .cite-product-tabs { max-width: 960px; margin: clamp(28px, 4vw, 48px) auto 0; }
.cite-product-tabs__list { display: flex; gap: 30px; margin: 0; overflow-x: auto; border-bottom: 1px solid var(--shoe-line); scrollbar-width: none; }
.cite-product-tabs__list::-webkit-scrollbar { display: none; }
.cite-product-tabs__list[hidden] { display: none; }
.cite-product-tabs__tab { position: relative; flex: 0 0 auto; padding: 14px 0; border: 0; color: var(--shoe-ink-soft); background: none; font-family: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s ease; }
.cite-product-tabs__tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: var(--shoe-ink); transform: scaleX(0); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.cite-product-tabs__tab:hover,
.cite-product-tabs__tab[aria-selected="true"] { color: var(--shoe-ink); }
.cite-product-tabs__tab[aria-selected="true"]::after { transform: none; }
.cite-product-tabs__tab:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }
.cite-product-tabs__panel { padding: 28px 0 0; color: var(--shoe-ink-soft); font-size: 15px; line-height: 1.75; }
.cite-product-tabs__panel:focus-visible { outline: none; }
.cite-product-tabs__panel p { margin: 0 0 14px; }
/* Sin JS cada panel lleva su título; con pestañas, solo para lectores de pantalla. */
.single-product .cite-product .cite-product-tabs__heading { margin: 0 0 14px; color: var(--shoe-ink); font-family: "DM Sans", sans-serif; font-size: 18px; font-weight: 700; }
.single-product .cite-product .cite-product-tabs.is-tabs .cite-product-tabs__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cite-product-desc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.single-product .cite-product table.shop_attributes tr { display: table-row; }
.single-product .cite-product table.shop_attributes { display: table; width: 100%; margin: 0; border: 0; border-top: 1px solid var(--shoe-line); border-collapse: collapse; }
.single-product .cite-product table.shop_attributes th,
.single-product .cite-product table.shop_attributes td { padding: 12px 0; border: 0; border-bottom: 1px solid var(--shoe-line); background: none; font-size: 13.5px; line-height: 1.5; vertical-align: top; }
.single-product .cite-product table.shop_attributes tr:nth-child(even) th,
.single-product .cite-product table.shop_attributes tr:nth-child(even) td { background: none; }
.single-product .cite-product table.shop_attributes th { width: 45%; padding-right: 16px; color: var(--shoe-ink-soft); font-weight: 400; text-align: left; }
.single-product .cite-product table.shop_attributes th,
.single-product .cite-product table.shop_attributes td { display: table-cell; }
.single-product .cite-product table.shop_attributes td { color: var(--shoe-ink); font-style: normal; font-weight: 600; text-align: right; }
.single-product .cite-product table.shop_attributes td p { margin: 0; padding: 0; }
.single-product .cite-product table.shop_attributes td a { color: inherit; }

/* Reseñas */
.single-product .cite-product #reviews h2,
.single-product .cite-product #reviews .comment-reply-title { color: var(--shoe-ink); font-family: "DM Sans", sans-serif; font-size: 17px; font-weight: 700; }
.single-product .cite-product #reviews #comments ol.commentlist li .comment-text { border-color: var(--shoe-line); border-radius: 2px; }
.single-product .cite-product #reviews .comment-form input[type="text"],
.single-product .cite-product #reviews .comment-form input[type="email"],
.single-product .cite-product #reviews .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--shoe-line); border-radius: 0; background: #fff; font-family: inherit; font-size: 14px; }
.single-product .cite-product #respond input#submit { min-height: 46px; padding: 0 24px; border-radius: 0; color: #fff; background: var(--shoe-ink); font-family: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.single-product .cite-product #respond input#submit:hover { background: var(--shoe-clay); }
.single-product .cite-product #reviews p.stars a { color: #d49a2a; }

/* ----- Recomendados ----- */
.cite-product-recs { margin-top: clamp(52px, 7vw, 92px); }
.cite-product-recs__head { display: flex; flex-direction: column; align-items: center; margin-bottom: 26px; text-align: center; }
.cite-product-recs__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; color: var(--shoe-clay); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.cite-product-recs__eyebrow::before,
.cite-product-recs__eyebrow::after { width: 28px; height: 1px; content: ""; background: currentColor; opacity: .5; }
.single-product .cite-product .cite-product-recs__title { margin: 0; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: clamp(26px, 3vw, 36px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }

/* ----- Barra de compra fija ----- */
.cite-buybar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 800; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(16px, calc((100vw - 1320px) / 2 + 40px)) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--shoe-line); background: rgba(251,250,247,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -10px 30px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
.cite-buybar.is-visible { transform: none; }
.cite-buybar__product { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cite-buybar__img { flex: 0 0 auto; width: 46px; height: 46px; object-fit: cover; background: var(--shoe-sand); }
.cite-buybar__info { min-width: 0; }
.cite-buybar__name { margin: 0; overflow: hidden; color: var(--shoe-ink); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.cite-buybar__price { margin: 2px 0 0; color: var(--shoe-ink); font-size: 14px; font-weight: 700; }
.cite-buybar__price del { color: #9a9189; font-size: .85em; font-weight: 500; }
.cite-buybar__price ins { text-decoration: none; }
.cite-buybar__btn { flex: 0 0 auto; min-height: 48px; padding: 0 26px; border: 0; color: #fff; background: var(--shoe-ink); font-family: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s ease; }
.cite-buybar__btn:hover { background: var(--shoe-clay); }
.cite-buybar-on .cite-whatsapp { bottom: 86px; transition: bottom .35s cubic-bezier(.22,1,.36,1); }
/* Volver arriba sigue apilado sobre WhatsApp (custom.css): 58px del botón + 14px de aire. */
.cite-buybar-on .cite-totop { bottom: 158px; }
@media (max-width: 680px) {
  .cite-buybar-on .cite-totop { bottom: 150px; }
}
@media (max-width: 500px) {
  .cite-buybar-on .cite-totop { bottom: 140px; }
}

/* ----- Aviso «añadido» (si el minicarrito no puede abrirse) ----- */
.cite-added { position: fixed; right: 24px; bottom: 24px; z-index: 1300; width: min(340px, calc(100vw - 32px)); padding: 18px; border-top: 2px solid #2f6b45; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .25s ease, transform .35s cubic-bezier(.22,1,.36,1), visibility 0s linear .35s; }
.cite-added.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cite-buybar-on .cite-added { bottom: 92px; }
.cite-added__close { position: absolute; top: 10px; right: 10px; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--shoe-ink); background: var(--shoe-sand); cursor: pointer; }
.cite-added__head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #2f6b45; font-size: 13px; font-weight: 700; }
.cite-added__product { display: flex; align-items: center; gap: 12px; }
.cite-added__product img { width: 56px; height: 56px; object-fit: cover; background: var(--shoe-sand); }
.cite-added__product p { margin: 0; color: var(--shoe-ink); font-size: 14px; font-weight: 600; line-height: 1.35; }
.cite-added__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cite-added__actions a { display: grid; min-height: 42px; place-items: center; border: 1px solid var(--shoe-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.cite-added__cart { color: var(--shoe-ink); }
.cite-added__checkout { color: #fff; background: var(--shoe-ink); }
.cite-added__checkout:hover { border-color: var(--shoe-clay); color: #fff; background: var(--shoe-clay); }

@keyframes cite-product-spin { to { transform: rotate(360deg); } }
@keyframes cite-product-pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes cite-product-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .single-product .cite-product { padding-top: 0; }
  .single-product .cite-product .cite-product-crumbs { display: none; }
  .single-product .cite-product .cite-product__top { grid-template-columns: minmax(0, 1fr); gap: 22px; }

  /* Galería a sangre, con las miniaturas en fila deslizable debajo. */
  .cite-product__gallery { margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); overflow: hidden; }
  /* Miniaturas en fila deslizable debajo */
  .single-product .cite-product .cite-product__gallery--m-miniaturas .woocommerce-product-gallery .flex-control-thumbs { gap: 8px; padding: 0 clamp(16px, 4vw, 40px); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; }
  .single-product .cite-product .cite-product__gallery--m-miniaturas .woocommerce-product-gallery .flex-control-thumbs li { width: 64px; scroll-snap-align: start; }
  .cite-product__gallery--m-miniaturas:has(.flex-control-thumbs) { --nav-row: calc(64px + 10px); }
  .cite-product__gallery--m-miniaturas .cite-product__counter { position: absolute; left: 14px; bottom: calc(var(--nav-row) + 14px); z-index: 8; padding: 5px 10px; border-radius: 99px; color: #fff; background: rgba(0,0,0,.72); font-size: 12px; font-weight: 700; letter-spacing: .04em; pointer-events: none; }
  .cite-product__gallery--m-miniaturas:has(.flex-control-thumbs) .cite-product__counter.is-ready { display: block; }

  /* Puntos */
  /* Cápsula translúcida sobre la foto. Cada punto es la miniatura de WooCommerce
     sin dibujar la foto (caja de contenido 0): el relleno es el punto y el borde
     transparente, el área táctil de 28 px. El activo se alarga. */
  .single-product .cite-product .cite-product__gallery--m-puntos .woocommerce-product-gallery .flex-control-thumbs { position: absolute; left: 50%; bottom: 14px; z-index: 8; flex-flow: row nowrap; justify-content: center; gap: 0; max-width: calc(100% - 28px); padding: 0 6px; overflow-x: auto; border-radius: 99px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateX(-50%); }
  .single-product .cite-product .cite-product__gallery--m-puntos .woocommerce-product-gallery .flex-control-thumbs li { width: auto; }
  .single-product .cite-product .cite-product__gallery--m-puntos .woocommerce-product-gallery .flex-control-thumbs li img { box-sizing: content-box; width: 0; height: 0; aspect-ratio: auto; padding: 3px; border: 11px solid transparent; border-radius: 99px; background-color: rgba(0,0,0,.3); background-clip: padding-box; box-shadow: none; transition: padding .35s cubic-bezier(.22, 1, .36, 1), background-color .25s ease, opacity .25s ease; }
  .single-product .cite-product .cite-product__gallery--m-puntos .woocommerce-product-gallery .flex-control-thumbs li img:hover { background-color: rgba(0,0,0,.6); }
  .single-product .cite-product .cite-product__gallery--m-puntos .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { padding: 3px 10px; border-color: transparent; box-shadow: none; background-color: var(--shoe-ink); }

  /* Móvil: el botón de pantalla completa y las etiquetas son permanentes y visibles */
  .single-product .cite-product .cite-product__gallery .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    top: auto;
    bottom: calc(var(--nav-row) + 14px);
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .cite-product-desc { grid-template-columns: minmax(0, 1fr); }
}

/* Sin zoom al pasar el cursor */
.single-product .cite-product .woocommerce-product-gallery .zoomImg {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Ocultar botón de expandir si no hay imagen destacada ni galería */
.single-product .cite-product .woocommerce-product-gallery--without-images .woocommerce-product-gallery__trigger,
.single-product .cite-product .woocommerce-product-gallery:has(.woocommerce-product-gallery__image--placeholder) .woocommerce-product-gallery__trigger {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

@media (max-width: 600px) {
  .single-product .cite-product .cite-product__summary form.cart table.variations { width: 100%; max-width: 100%; }
  .single-product .cite-product .cite-product__summary form.cart table.variations td.value { width: 100%; max-width: 100%; min-width: 0; }

  /* Tallas en retícula exacta de 5 por fila en móvil */
  .cite-swatches:not(.cite-swatches--color) { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; box-sizing: border-box; }
  .cite-swatches:not(.cite-swatches--color) .cite-swatch { width: 100%; min-width: 0; height: 42px; padding: 0; display: grid; place-items: center; font-size: 13.5px; border-radius: 4px; box-sizing: border-box; }

  /* Cantidad y botón Añadir al carrito en fila equilibrada */
  .single-product .cite-product .cite-product__summary form.cart:not(.variations_form):not(.grouped_form),
  .single-product .cite-product .cite-product__summary form.cart .woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: stretch; }
  .single-product .cite-product .cite-product__summary form.cart div.quantity { flex: 0 0 106px; height: 48px; }
  .cite-qty__btn { width: 34px; }
  .single-product .cite-product .cite-product__summary form.cart div.quantity .qty { width: 38px; font-size: 15px; }
  .single-product .cite-product .cite-product__summary form.cart .single_add_to_cart_button { flex: 1 1 auto; min-height: 48px; padding: 0 14px; font-size: 12px; }
  .single-product .cite-product .cite-product__summary .cite-product-buynow { width: 100%; margin-top: 10px; }
  .single-product .cite-product .cite-product__summary .cite-product-msg { width: 100%; }
  .single-product .cite-product .cite-product__summary form.cart table.variations select { font-size: 16px; }

  /* Ventajas en lista vertical limpia y 100% alineada */
  .cite-product-benefits { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; padding: 18px 0; }
  .cite-product-benefits li { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
  .cite-product-benefits__text { flex: 1; gap: 3px; }

  /* Acordeones en móvil */
  .cite-product-accordions { margin-top: 16px; }
  .cite-product-accordion__summary { padding: 13px 0; font-size: 13px; }
  .cite-product-accordion__content { font-size: 12.5px; }

  .cite-product-tabs__list { gap: 22px; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)); padding: 0 clamp(16px, 4vw, 40px); }

  .cite-buybar { gap: 12px; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .cite-buybar__img { display: none; }
  .cite-buybar__name { font-size: 12.5px; font-weight: 600; }
  .cite-buybar__price { font-size: 15px; font-weight: 800; }
  .cite-buybar__btn { padding: 0 18px; }
  .cite-added { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cite-buybar,
  .cite-added,
  .cite-product-tabs__tab::after { transition: none; }
  .single-product .cite-product .cite-product__summary .stock.is-low::before,
  .single-product .cite-product .cite-product__summary form.cart table.variations.is-attention .cite-swatches { animation: none; }
}
