/**
 * Ecom Todotextil - ficha de producto editorial.
 * Escritorio: rail de miniaturas fijo | imagenes apiladas | columna de compra fija.
 * Movil: carrusel horizontal de imagenes con puntos y la compra debajo.
 * Solo se carga en la ficha (templates/_partials/stylesheets.tpl), asi no altera el CSS
 * combinado del tema ni la copia purgada de la portada.
 */
.zh-product {
  --zh-ink: #1e1e1e;
  --zh-soft: #6b6b6b;
  --zh-line: #d9d9d9;
  --zh-bg-img: #f3f1ee;
  --zh-top: 96px;
  color: var(--zh-ink);
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 32px 0;
}
.zh-product button { font: inherit; color: inherit; }

/* ---------- Distribucion ---------- */
.zh-product__layout {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(340px, 440px);
  column-gap: 40px;
  align-items: start;
}
.zh-gallery { display: contents; }
.zh-gallery--single .zh-gallery__stack { grid-column: 1 / 3; }

/* ---------- Galeria ---------- */
.zh-gallery__rail {
  grid-column: 1;
  position: sticky;
  top: var(--zh-top);
  max-height: calc(100vh - var(--zh-top) - 24px);
  overflow-y: auto;
  scrollbar-width: none;
}
.zh-gallery__rail::-webkit-scrollbar { display: none; }
.zh-gallery__rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.zh-gallery__thumb {
  display: block; width: 100%; padding: 0; border: 1px solid transparent;
  background: var(--zh-bg-img); cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s;
}
.zh-gallery__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.zh-gallery__thumb:hover, .zh-gallery__thumb.is-active { opacity: 1; }
.zh-gallery__thumb.is-active { border-color: var(--zh-ink); }

.zh-gallery__stack { grid-column: 2; display: flex; flex-direction: column; gap: 4px; }
.zh-gallery__item { margin: 0; background: var(--zh-bg-img); }
.zh-gallery__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zh-gallery__item img { display: block; width: 100%; height: auto; }
.zh-gallery__dots { display: none; }

/* ---------- Columna de compra ---------- */
.zh-product__info { grid-column: 3; position: sticky; top: var(--zh-top); outline: none; }
.zh-product__sticky { padding-bottom: 32px; }
.zh-product__name {
  margin: 0 0 8px; font-size: 22px; line-height: 1.15; font-weight: 600;
  letter-spacing: .2px; text-transform: uppercase; color: var(--zh-ink);
}
.zh-product__pack { margin: 0 0 6px; font-size: 13px; color: var(--zh-soft); }

.zh-price { margin: 0 0 20px; }
.zh-price__line { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 15px; }
.zh-price__now { font-weight: 500; }
.zh-price__now.is-offer { color: #b0272b; }
.zh-price__was { color: var(--zh-soft); font-size: 14px; }
.zh-price__saving { font-size: 12px; padding: 1px 6px; background: #b0272b; color: #fff; }
.zh-price__notes { margin: 4px 0 0; font-size: 11px; color: var(--zh-soft); display: flex; gap: 6px; flex-wrap: wrap; }

/* Combinaciones */
.zh-product .js-product-variants { margin: 0 0 18px; }
.zh-product .product-variant { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.zh-product .product-variant__legend {
  float: none; width: auto; display: inline; margin: 0; padding: 0;
  font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .4px; color: var(--zh-soft);
}
.zh-product .product-variant__selected { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; }
.zh-product .product-variant__attributes { margin-top: 8px; }
.zh-product .product-variant__colors { display: flex; flex-wrap: wrap; gap: 6px; }
.zh-product .product-variant__color { position: relative; margin: 0; }
.zh-product .input-color__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zh-product .input-color__label {
  display: block; margin: 0; padding: 0; cursor: pointer; border: 1px solid transparent; border-radius: 0;
}
.zh-product .input-color__label .color {
  display: block; width: 56px; height: 70px; border-radius: 0; margin: 0; box-shadow: none;
  border: 1px solid rgba(0, 0, 0, .06); background-size: cover; background-position: center;
}
.zh-product .input-color__label--active,
.zh-product .input-color__input:checked + .input-color__label { border-color: var(--zh-ink); }
.zh-product .input-color__input:focus-visible + .input-color__label { outline: 2px solid var(--zh-ink); outline-offset: 2px; }
.zh-product .product-variant__radios { display: flex; flex-wrap: wrap; gap: 6px; }
.zh-product .product-variant__radio .btn {
  border-radius: 0; border: 1px solid var(--zh-line); background: #fff; color: var(--zh-ink);
  font-size: 12px; padding: 7px 14px; min-width: 48px;
}
.zh-product .product-variant__radio .btn-check:checked + .btn { border-color: var(--zh-ink); background: var(--zh-ink); color: #fff; }
.zh-product .product-variant .form-select {
  border: 0; border-top: 1px solid var(--zh-line); border-bottom: 1px solid var(--zh-line);
  border-radius: 0; padding: 12px 32px 12px 0; font-size: 13px; background-position: right 4px center; box-shadow: none;
}

/* Descripcion corta */
.zh-product__summary { font-size: 13px; line-height: 1.5; text-align: justify; color: rgba(0, 0, 0, .87); }
.zh-product__summary p { margin: 0 0 6px; }
.zh-product__more {
  display: inline-block; margin: 2px 0 20px; padding: 0; border: 0; background: none;
  font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Cantidad + boton */
.zh-buy__qty-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--zh-line); padding: 10px 0 10px 6px; margin: 0;
}
.zh-buy__qty-label { font-size: 13px; font-weight: 500; }
.zh-buy__qty .input-group { flex-wrap: nowrap; width: auto; align-items: center; }
.zh-buy__qty .input-group .btn {
  border: 0; background: none; padding: 4px 10px; font-size: 16px; line-height: 1; color: var(--zh-ink); box-shadow: none;
}
.zh-buy__qty .input-group .form-control {
  width: 36px; flex: 0 0 36px; border: 0; padding: 2px 0; text-align: center; font-size: 13px; background: none; box-shadow: none;
}
.zh-buy__qty .input-group .btn .material-icons, .zh-buy__qty .input-group .btn svg { font-size: 18px; }

.zh-buy__cta { display: flex; gap: 6px; margin: 0 0 14px; }
.zh-buy__add {
  flex: 1 1 auto; height: 40px; border: 0; border-radius: 0; background: var(--zh-ink); color: #fff !important;
  font-size: 12px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background .2s;
}
.zh-buy__add:hover { background: #000; }
.zh-buy__add[disabled] { background: #9a9a9a; cursor: not-allowed; }
.zh-buy__icon {
  flex: 0 0 40px; height: 40px; border: 1px solid var(--zh-ink); border-radius: 0; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.zh-buy__icon:hover, .zh-buy__icon.is-active { background: var(--zh-ink); color: #fff; }
.zh-buy__icon.is-active svg { fill: currentColor; }
.zh-buy__more { margin-bottom: 12px; }

.zh-buy__stock p { margin: 0 0 4px; font-size: 12px; color: var(--zh-soft); }
.zh-buy__stock-msg.is-ok::before, .zh-buy__stock-msg.is-low::before, .zh-buy__stock-msg.is-out::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle;
}
.zh-buy__stock-msg.is-ok::before { background: #2e7d32; }
.zh-buy__stock-msg.is-low::before { background: #e0a100; }
.zh-buy__stock-msg.is-out::before { background: #b0272b; }
.zh-buy__minimal { font-size: 12px; color: var(--zh-soft); margin-top: 4px; }

/* Enlaces de informacion */
.zh-info__links { display: flex; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.zh-info__links button {
  border: 0; background: none; padding: 0; font-size: 11px; letter-spacing: .3px; text-transform: uppercase; cursor: pointer;
}
.zh-info__links button + button::before { content: "|"; margin: 0 8px; color: var(--zh-soft); }
.zh-info__links button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Cajon lateral */
.zh-drawer { position: fixed; inset: 0; z-index: 1060; }
.zh-drawer[hidden] { display: none; }
.zh-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); animation: zh-fade .2s ease; }
.zh-drawer__box {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: #fff;
  overflow-y: auto; padding: 56px 32px 32px; animation: zh-slide .25s ease;
}
.zh-drawer__close { position: absolute; top: 16px; right: 16px; border: 0; background: none; padding: 4px; cursor: pointer; }
.zh-drawer__panel h2 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 18px; }
.zh-drawer__panel { font-size: 13px; line-height: 1.6; }
.zh-drawer__ref { color: var(--zh-soft); font-size: 12px; }
.zh-drawer__features { margin: 0; }
.zh-drawer__features div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--zh-line); }
.zh-drawer__features dt { font-weight: 500; }
.zh-drawer__features dd { margin: 0; text-align: right; }
.zh-drawer__attachments a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--zh-line); color: inherit; }
@keyframes zh-fade { from { opacity: 0; } }
@keyframes zh-slide { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .zh-drawer__backdrop, .zh-drawer__box { animation: none; } }

/* Relacionados */
.zh-product__catalogue { margin-top: 64px; }

/* ---------- Tableta ---------- */
@media (max-width: 1199.98px) {
  .zh-product__layout { grid-template-columns: 60px minmax(0, 1fr) minmax(300px, 380px); column-gap: 24px; }
}

/* ---------- Movil ---------- */
@media (max-width: 991.98px) {
  .zh-product { padding: 0; }
  .zh-product__layout { display: block; }
  .zh-gallery { display: block; position: relative; }
  .zh-gallery__rail { display: none; }
  .zh-gallery__stack {
    flex-direction: row; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .zh-gallery__stack::-webkit-scrollbar { display: none; }
  .zh-gallery__item { flex: 0 0 100%; scroll-snap-align: start; }
  .zh-gallery__dots {
    display: flex; justify-content: center; gap: 6px; position: absolute; left: 0; right: 0; bottom: 12px; pointer-events: none;
  }
  .zh-gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .25); transition: background .2s; }
  .zh-gallery__dots span.is-active { background: var(--zh-ink); }
  .zh-product__info { position: static; padding: 20px 16px 0; }
  .zh-product__name { font-size: 18px; }
  .zh-buy__cta {
    position: sticky; bottom: 0; z-index: 5; background: #fff; padding: 8px 0; margin: 0 0 10px;
  }
  .zh-product__catalogue { margin-top: 40px; padding: 0 16px; }
  .zh-drawer__box { padding: 56px 20px 24px; }
}

/* Etiqueta de combinacion en una linea ("COLOR: AZUL"); en las listas el valor ya se ve */
.zh-product .product-variant__legend { float: left; }
.zh-product .product-variant__selected { display: inline-block; padding-left: 2px; }
.zh-product .product-variant__attributes { clear: both; }
.zh-product .product-variant--select .product-variant__selected { display: none; }
.zh-product .product-variant--select + .product-variant--select { margin-top: -17px; }
.zh-product .product-variant--select + .product-variant--select .product-variant__legend { padding-top: 12px; }
.zh-product .product-variant--select + .product-variant--select { margin-top: 0; }
.zh-product .product-variant--select + .product-variant--select .product-variant__legend { padding-top: 0; }

/* Movil: imagenes a sangre (fuera del margen del contenedor) y compra con el margen del tema */
@media (max-width: 991.98px) {
  .zh-gallery { width: 100vw; margin-left: calc(50% - 50vw); }
  .zh-product__info { padding: 20px 0 0; }
  .zh-product__catalogue { padding: 0; }
  .zh-info__links { row-gap: 6px; }
}

/* ---------- Medidas de la referencia (1440 px): rail 65 | 15 | imagen 573x780 | 44 | compra 540 ---------- */
@media (min-width: 992px) {
  .zh-product__layout {
    grid-template-columns: 65px minmax(0, 573px) minmax(320px, 540px);
    column-gap: 0;
    justify-content: start;
  }
  .zh-gallery__stack { margin-left: 15px; }
  .zh-product__info { margin-left: 44px; }
  .zh-gallery--single .zh-gallery__stack { grid-column: 2; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .zh-product__layout { grid-template-columns: 56px minmax(0, 1fr) minmax(300px, 400px); }
  .zh-product__info { margin-left: 28px; }
}
.zh-gallery__item { aspect-ratio: 573 / 780; background: #fff; }
.zh-gallery__open { height: 100%; }
.zh-gallery__open picture { display: block; height: 100%; }
.zh-gallery__item img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Relacionados: boton con los colores del tema y texto centrado ---------- */
.tx-card--ficha .tx-card__actions form { margin: 0; }
.tx-card--ficha .tx-card__details,
.tx-card--ficha .tx-card__actions button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
  margin: 0; padding: 10px 14px; border: 0; border-radius: var(--gm-r, 3px);
  background: var(--tt-yellow, #F8DF37); color: var(--tt-blue-dark, #0C1944) !important;
  font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .3px; text-transform: uppercase;
  text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.tx-card--ficha .tx-card__details:hover,
.tx-card--ficha .tx-card__details:focus-visible,
.tx-card--ficha .tx-card__actions button:hover,
.tx-card--ficha .tx-card__actions button:focus-visible {
  background: var(--tt-blue, #1F3B89); color: #fff !important;
}
.tx-card--ficha .tx-card__actions button span { display: inline; }
/* La foto llena el marco vertical como en la referencia (recorta los laterales de las cuadradas) */
.zh-gallery__item img { object-fit: cover; }

/* ---------- "Completa tu coleccion" en la columna de compra (como "Completa el look") ---------- */
.zh-product__look { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--zh-line); }
.zh-product__look .tt-product-wall { margin: 0; padding: 0; border: 0; background: none; max-width: none; }
.zh-product__look .tt-product-wall__header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 0;
}
.zh-product__look .tt-product-wall__header h2 {
  margin: 0; font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--zh-ink);
}
.zh-product__look .tt-product-wall__header a { font-size: 11px; text-transform: uppercase; letter-spacing: .3px; color: var(--zh-ink); text-decoration: underline; text-underline-offset: 3px; }
.zh-product__look .tt-product-wall__grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 3); grid-template-columns: none;
  gap: 8px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.zh-product__look .tt-product-wall__item { margin: 0; padding: 0; scroll-snap-align: start; min-width: 0; width: auto; }
.zh-product__look .tt-product-wall__card { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.zh-product__look .tt-product-wall__image { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f3f1ee; }
.zh-product__look .tt-product-wall__image picture,
.zh-product__look .tt-product-wall__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.zh-product__look .tt-product-wall__meta { margin: 6px 0 0; padding: 0; background: none; min-height: 0; }
.zh-product__look .tt-product-wall__meta h3 {
  margin: 0; font-family: inherit; font-size: 11px; font-weight: 400; line-height: 1.3; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.zh-product__look .tt-product-wall__meta h3 a { color: var(--zh-ink); text-decoration: none; }
.zh-product__look .tt-product-wall__meta p { margin: 2px 0 0; font-size: 11px; color: var(--zh-ink); }
@media (max-width: 991.98px) {
  .zh-product__look .tt-product-wall__grid { grid-auto-columns: 40%; }
}

/* ---------- Escritorio: relacionados y "mas vistos" a todo el ancho de la ventana ----------
   Se sale del contenedor del tema con margenes negativos; #wrapper recorta el ancho de la barra
   de scroll (100vw la incluye) con overflow-x: clip, que no rompe los position: sticky. */
@media (min-width: 992px) {
  .page-product #wrapper { overflow-x: clip; }
  .zh-product__catalogue {
    width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0;
    padding-left: 40px; padding-right: 40px; box-sizing: border-box;
  }
  .zh-product__catalogue .container,
  .zh-product__catalogue .gm-shelf,
  .zh-product__catalogue .ps-viewedproduct,
  .zh-product__catalogue .module-products { max-width: none; width: 100%; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (min-width: 992px) {
  /* carrusel de relacionados: 4 tarjetas que llenan todo el ancho (el tema las fija a 300 px en 1320 px) */
  .zh-product__catalogue .gm-shelf__wrap { max-width: none; width: 100%; }
  .zh-product__catalogue .gm-shelf__track {
    grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: calc((100% - 120px) / 4); gap: 40px;
  }
}

/* ---------- Escritorio ancho: proporciones de la referencia, que crecen con la ventana ----------
   rail 65 | 15 | imagen 40vw x (alto ventana - 120) | 44 | compra 37,5vw (max 575).
   1440 px -> imagen 576x780, compra 540; 2000 px -> imagen 800x880, compra 575.
   El bloque se sale del contenedor del tema (centrado) y #wrapper recorta con overflow-x: clip. */
@media (min-width: 1200px) {
  .zh-product { --zh-w: calc(65px + 15px + 40vw + 44px + min(37.5vw, 575px)); }
  .zh-product__layout {
    width: var(--zh-w); max-width: calc(100vw - 64px);
    margin-left: calc((100% - min(var(--zh-w), 100vw - 64px)) / 2);
    grid-template-columns: 65px 40vw min(37.5vw, 575px);
  }
  .zh-gallery__item { aspect-ratio: auto; height: max(520px, calc(100vh - 120px)); }
}
@media (min-width: 1200px) {
  /* las columnas incluyen la separacion (margin-left de imagen y compra) */
  .zh-product__layout { grid-template-columns: 65px calc(40vw + 15px) calc(min(37.5vw, 575px) + 44px); }
}

/* ---------- Tamanos de la referencia (iguales a 1440 y 2000 px) ---------- */
.zh-product__name { font-size: 22px; line-height: 24px; font-weight: 600; letter-spacing: .2px; margin: 10px 0 18px; }
.zh-price { margin: 0 0 20px; }
.zh-price__line { font-size: 19px; line-height: 20px; gap: 10px; }
.zh-price__now { font-weight: 600; color: var(--zh-ink); }
.zh-price__was { font-size: 15px; font-weight: 400; }
.zh-price__notes { margin-top: 6px; }
.zh-price__ref {
  margin: 14px 0 0; font-size: 11px; line-height: 15px; letter-spacing: .2px; color: rgba(0, 0, 0, .87);
}
.zh-price__color { text-transform: uppercase; }
.zh-price__sep { margin: 0 4px; }

/* Color: miniaturas de 80x99 separadas 4 px; el nombre del color ya va en la linea de referencia */
.zh-product .product-variant--color .product-variant__legend,
.zh-product .product-variant--color .product-variant__selected { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zh-product .product-variant--color .product-variant__attributes { margin-top: 0; }
.zh-product .product-variant__colors { gap: 4px; }
.zh-product .input-color__label { border: 0; position: relative; }
.zh-product .input-color__label .color { width: 80px; height: 99px; border: 0; background-color: #f3f1ee; }
.zh-product .input-color__label--active::after,
.zh-product .input-color__input:checked + .input-color__label::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 9px; margin: -7px 0 0 -8px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .45));
}
.zh-product .input-color__label--active .color,
.zh-product .input-color__input:checked + .input-color__label .color { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .18); }
.zh-product .product-variant--color { margin-bottom: 24px; }

/* Descripcion */
.zh-product__summary { font-size: 16px; line-height: 25px; letter-spacing: .2px; text-align: left; color: rgba(0, 0, 0, .87); }
.zh-product__summary p { margin: 0; }
.zh-product__more { font-size: 16px; line-height: 25px; margin: 0 0 24px; }

/* Cantidad y comprar */
.zh-buy__qty-label { font-size: 14px; line-height: 18px; font-weight: 500; }

/* Boton de comprar con los colores del tema (amarillo + azul), como el resto de botones */
.zh-buy__add {
  height: 36px; background: var(--tt-yellow, #F8DF37); color: var(--tt-blue-dark, #0C1944) !important;
  font-size: 12px; font-weight: 600; letter-spacing: .2px; border-radius: var(--gm-r, 3px);
}
.zh-buy__add:hover, .zh-buy__add:focus-visible, .zh-buy__add.is-added { background: var(--tt-blue, #1F3B89); color: #fff !important; }
.zh-buy__add[disabled] { background: #e6e6e6; color: #8a8a8a !important; }
.zh-buy__icon {
  flex-basis: 36px; height: 36px; border-color: var(--tt-blue, #1F3B89); color: var(--tt-blue, #1F3B89); border-radius: var(--gm-r, 3px);
}
.zh-buy__icon:hover, .zh-buy__icon.is-active { background: var(--tt-blue, #1F3B89); color: #fff; }

/* "Completa tu coleccion": flechas arriba a la derecha (anterior en blanco, siguiente en azul) */
.zh-product__look { position: relative; }
.zh-look__nav { position: absolute; top: 16px; right: 0; display: flex; gap: 4px; z-index: 1; }
.zh-look__arrow {
  width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--tt-blue, #1F3B89); border-radius: var(--gm-r, 3px);
  background: var(--tt-blue, #1F3B89); color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.zh-look__arrow:hover { background: var(--tt-blue-dark, #0C1944); border-color: var(--tt-blue-dark, #0C1944); }
.zh-look__arrow[disabled] { background: #fff; color: #b5b5b5; border-color: #e3e3e3; cursor: default; }
.zh-product__look.is-static .zh-look__nav { display: none; }
.zh-product__look .tt-product-wall__header { padding-right: 72px; justify-content: flex-start; min-height: 28px; align-items: center; }
.zh-product__look .tt-product-wall__header h2 { font-size: 13px; font-weight: 400; letter-spacing: .2px; }
.zh-product__look .tt-product-wall__grid { scrollbar-width: none; }
.zh-product__look .tt-product-wall__grid::-webkit-scrollbar { display: none; }
.zh-product__look .tt-product-wall__meta h3 { font-size: 12px; line-height: 16px; }
.zh-product__look .tt-product-wall__meta p { font-size: 12px; }
.zh-product .zh-buy__add { font-size: 12px; font-weight: 600; line-height: 16px; letter-spacing: .2px; }

/* ---------- Flechas de "Completa tu coleccion" con los colores del tema ----------
   (.zh-product button hereda el color del texto: hace falta la misma especificidad) */
.zh-product .zh-look__arrow { background: var(--tt-yellow, #F8DF37); border-color: var(--tt-yellow, #F8DF37); color: var(--tt-blue-dark, #0C1944); }
.zh-product .zh-look__arrow svg { stroke: currentColor; stroke-width: 2.4; }
.zh-product .zh-look__arrow:hover { background: var(--tt-blue, #1F3B89); border-color: var(--tt-blue, #1F3B89); color: #fff; }
.zh-product .zh-look__arrow[disabled] { background: #fff; border-color: #e3e3e3; color: #c4c4c4; }

/* ---------- Aviso de favoritos sin sesion ---------- */
.zh-aviso { position: fixed; inset: 0; z-index: 1070; display: flex; align-items: center; justify-content: center; padding: 16px; }
.zh-aviso__fondo { position: absolute; inset: 0; background: rgba(12, 25, 68, .45); animation: zh-fade .2s ease; }
.zh-aviso__caja {
  position: relative; width: min(420px, 100%); background: #fff; padding: 36px 28px 28px; border-radius: var(--gm-r, 3px);
  box-shadow: 0 24px 60px rgba(12, 25, 68, .25); text-align: center; color: var(--tt-blue-dark, #0C1944);
}
.zh-aviso__x { position: absolute; top: 10px; right: 10px; border: 0; background: none; padding: 6px; cursor: pointer; color: inherit; }
.zh-aviso__caja h2 { margin: 0 0 10px; font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: inherit; }
.zh-aviso__caja p { margin: 0 0 22px; font-size: 14px; line-height: 1.5; color: #3b4466; }
.zh-aviso__acciones { display: grid; gap: 8px; }
.zh-aviso__btn {
  display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px;
  border: 1px solid var(--tt-blue, #1F3B89); border-radius: var(--gm-r, 3px); background: #fff; color: var(--tt-blue, #1F3B89);
  font-size: 13px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s;
}
.zh-aviso__btn:hover { background: var(--tt-blue, #1F3B89); color: #fff; }
.zh-aviso__btn--main { background: var(--tt-yellow, #F8DF37); border-color: var(--tt-yellow, #F8DF37); color: var(--tt-blue-dark, #0C1944); }
.zh-aviso__btn--main:hover { background: var(--tt-blue, #1F3B89); border-color: var(--tt-blue, #1F3B89); color: #fff; }

/* ---------- Favoritos con sesion: aviso breve abajo y boton ocupado ---------- */
.zh-fav-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 1080; transform: translateX(-50%);
  padding: 12px 20px; border-radius: var(--gm-r, 3px); background: var(--tt-blue-dark, #0C1944); color: #fff;
  font-size: 13px; letter-spacing: .2px; box-shadow: 0 10px 30px rgba(12, 25, 68, .25);
  animation: zh-fade .2s ease; transition: opacity .3s;
}
.zh-fav-toast.is-out { opacity: 0; }
.zh-product .js-tt-favorite.is-busy { opacity: .55; pointer-events: none; }

/* ---------- Color sin fotos de combinacion: muestras pequenas (color o nombre) ----------
   Con fotos (.is-fotos) siguen las de 80x99 y sin titulo; sin fotos se ve "COLOR: C/49". */
.zh-product .product-variant--color:not(.is-fotos) .product-variant__legend,
.zh-product .product-variant--color:not(.is-fotos) .product-variant__selected {
  position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
}
.zh-product .product-variant--color:not(.is-fotos) .product-variant__attributes { margin-top: 8px; }
.zh-product .product-variant--color:not(.is-fotos) .product-variant__colors { gap: 6px; }
.zh-product .product-variant--color:not(.is-fotos) .input-color__label .color {
  width: 40px; height: 40px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.zh-product .product-variant--color:not(.is-fotos) .input-color__label .zh-swatch-texto {
  width: auto; min-width: 48px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--zh-line); box-shadow: none;
  font-size: 12px; line-height: 1; letter-spacing: .2px; color: var(--zh-ink); white-space: nowrap;
}
/* elegido: marco azul (sin la marca blanca, que no se ve sobre el chip de texto) */
.zh-product .product-variant--color:not(.is-fotos) .input-color__label::after { display: none; }
.zh-product .product-variant--color:not(.is-fotos) .input-color__label--active .color,
.zh-product .product-variant--color:not(.is-fotos) .input-color__input:checked + .input-color__label .color {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--tt-blue, #1F3B89);
}
.zh-product .product-variant--color:not(.is-fotos) .input-color__label--active .zh-swatch-texto,
.zh-product .product-variant--color:not(.is-fotos) .input-color__input:checked + .input-color__label .zh-swatch-texto {
  background: var(--tt-blue, #1F3B89); border-color: var(--tt-blue, #1F3B89); color: #fff; box-shadow: none;
}
.zh-product .product-variant--color:not(.is-fotos) .input-color__label:hover .zh-swatch-texto { border-color: var(--tt-blue, #1F3B89); }

/* ---------- Listas de combinacion (Talla...): desplegable compacto y actual ----------
   Etiqueta pequena encima y caja al ancho de su contenido (no a toda la columna), con borde
   fino, esquinas suaves, flecha propia y azul del tema al pasar o enfocar. */
.zh-product .product-variant--select { margin: 0 0 18px; }
.zh-product .product-variant--select + .product-variant--select { margin-top: 0; }
.zh-product .product-variant--select .product-variant__legend {
  float: none; display: block; margin: 0 0 6px; padding: 0;
  font-size: 11px; line-height: 15px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; color: var(--zh-soft);
}
.zh-product .product-variant--select .product-variant__attributes { margin-top: 0; clear: none; }
.zh-product .product-variant--select .form-select {
  display: inline-block; width: auto; min-width: 160px; max-width: 100%;
  height: 40px; padding: 0 40px 0 14px; margin: 0;
  border: 1px solid #cfd6e6; border-radius: 6px; background-color: #fff;
  background-image: 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='%230C1944' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .2px; color: var(--tt-blue-dark, #0C1944);
  box-shadow: none; cursor: pointer; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.zh-product .product-variant--select .form-select:hover { border-color: var(--tt-blue, #1F3B89); }
.zh-product .product-variant--select .form-select:focus {
  outline: none; border-color: var(--tt-blue, #1F3B89); box-shadow: 0 0 0 3px rgba(31, 59, 137, .15);
}
.zh-product .product-variant--select .form-select { min-height: 0; line-height: 38px; }
/* misma etiqueta para Color que para Talla: "COLOR  C/49" pequeno en gris, sin dos puntos */
.zh-product .product-variant--color:not(.is-fotos) .product-variant__legend {
  float: none; display: inline; margin: 0; font-size: 11px; line-height: 15px; font-weight: 500; letter-spacing: .4px; text-transform: uppercase; color: var(--zh-soft);
}
.zh-product .product-variant--color:not(.is-fotos) .product-variant__selected {
  display: inline; font-size: 0; color: var(--zh-ink);
}
.zh-product .product-variant--color:not(.is-fotos) .product-variant__selected::first-line { font-size: 11px; }
/* el color elegido ya se ve marcado en azul y en la linea de referencia: sin ": C/49" */
.zh-product .product-variant--color:not(.is-fotos) .product-variant__selected { display: none; }
.zh-product .product-variant--color:not(.is-fotos) .product-variant__legend { display: block; margin: 0 0 6px; }
