/* Aerostar — ficha de producto. */

.aero-pdp { padding-bottom: 40px; }
.aero-pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-top: 22px;
}

/* ---------- Galería ---------- */
.aero-gallery {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
}
.aero-gallery__stage { position: relative; grid-column: 2; grid-row: 1; background: var(--aero-soft); }
.aero-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 1;
}
.aero-gallery__track::-webkit-scrollbar { display: none; }
.aero-gallery__slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  cursor: zoom-in;
}
.aero-gallery__slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .25s ease;
}
.aero-gallery__slide.is-zoom img { transform: scale(2.1); }
.aero-gallery__badge {
  position: absolute; top: 16px; left: 16px;
  padding: 5px 10px;
  background: #000; color: #fff;
  font-weight: 700; font-size: 13px;
  pointer-events: none;
}
.aero-gallery__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%; background: rgb(255 255 255 / .9); border: 1px solid #d4d4d8;
  opacity: 0; transition: opacity .2s;
}
.aero-gallery__nav svg { width: 18px; height: 18px; }
.aero-gallery__nav--prev { left: 12px; }
.aero-gallery__nav--next { right: 12px; }
.aero-gallery__stage:hover .aero-gallery__nav, .aero-gallery__nav:focus-visible { opacity: 1; }
.aero-gallery__counter {
  position: absolute; right: 14px; bottom: 12px;
  padding: 3px 10px; border-radius: 999px;
  background: rgb(255 255 255 / .85);
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.aero-gallery__thumbs {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; gap: 10px;
  max-height: calc(100vw * .5); overflow-y: auto; scrollbar-width: none;
}
.aero-gallery__thumb {
  flex-shrink: 0;
  width: 84px; height: 84px;
  background: var(--aero-soft);
  border: 1px solid transparent;
  transition: border-color .15s;
}
.aero-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.aero-gallery__thumb:hover { border-color: #b9b9be; }
.aero-gallery__thumb.is-active { border-color: #000; box-shadow: inset 0 0 0 1px #000; }

/* ---------- Resumen ---------- */
.aero-pdp__summary { padding-top: 4px; }
.aero-pdp__collection {
  display: inline-block; margin-bottom: 10px;
  font-size: 14px; color: var(--aero-mute);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c9c9cd;
}
.aero-pdp__collection:hover { color: #000; text-decoration-color: #000; }
.aero-pdp__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--aero-ink);
}
.aero-pdp__price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin: 20px 0 6px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--aero-hair);
}
.aero-pdp__price .price { display: contents; }
.aero-pdp__price ins, .aero-pdp__price > .woocommerce-Price-amount, .aero-pdp__price .price > .woocommerce-Price-amount {
  order: 1;
  font-family: var(--font-body); font-size: 32px; font-weight: 700; text-decoration: none; color: #000;
}
.aero-pdp__price del { order: 3; flex-basis: 100%; font-size: 18px; color: var(--aero-mute); }
.aero-pdp__save { order: 2; padding: 4px 9px; background: #000; color: #fff; font-size: 13px; font-weight: 700; align-self: center; }
.aero-pdp__price .screen-reader-text { position: absolute; }
.aero-pdp__excerpt { margin: 16px 0 0; color: #333; }

/* Variaciones */
.aero-pdp__buy { margin-top: 22px; }
.aero-variations { position: relative; }
.aero-variation { margin-bottom: 18px; }
.aero-variation__label { font-size: 14px; margin-bottom: 10px; color: #444; }
.aero-variation__picked { font-weight: 700; color: #000; }
.aero-variation__select { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.aero-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.aero-swatch {
  min-width: 48px; height: 44px; padding: 0 14px;
  border: 1px solid #cfcfd3; background: #fff;
  font-size: 14px; font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.aero-swatches--images .aero-swatch { width: 72px; height: 72px; padding: 4px; background: var(--aero-soft); }
.aero-swatch img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.aero-swatch:hover { border-color: #000; }
.aero-swatch[aria-checked="true"] { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.aero-swatches:not(.aero-swatches--images) .aero-swatch[aria-checked="true"] { background: #000; color: #fff; }
.aero-swatch.is-off { opacity: .35; position: relative; }
.aero-swatch.is-off::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1.5px; background: #555; transform: rotate(-30deg); }
.reset_variations { display: none !important; }

.single_variation_wrap .woocommerce-variation-price { display: none; }
.woocommerce-variation-availability p, .aero-pdp .stock { margin: 0 0 12px; font-size: 14px; }
.aero-pdp .stock.in-stock { color: var(--aero-ok); }
.aero-pdp .stock.out-of-stock { color: var(--aero-error); font-weight: 600; }

.aero-pdp form.cart:not(.variations_form), .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: stretch; }
.aero-stepper { display: inline-flex; align-items: center; border: 1px solid #000; height: 54px; }
.aero-stepper button { width: 42px; height: 100%; display: grid; place-items: center; }
.aero-stepper button svg { width: 16px; height: 16px; }
.aero-stepper button:hover { background: var(--aero-soft); }
.aero-stepper .qty { width: 44px; height: 100%; border: 0 !important; font-size: 16px; }
.aero-pdp .single_add_to_cart_button {
  flex: 1;
  height: 54px;
  font-size: 16px; letter-spacing: .02em;
}

.aero-pdp__perks { display: grid; gap: 12px; margin: 26px 0 0; padding: 22px 0; border-top: 1px solid var(--aero-hair); border-bottom: 1px solid var(--aero-hair); }
.aero-pdp__perks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.aero-pdp__perks svg { width: 20px; height: 20px; flex-shrink: 0; }
.aero-pdp__perks .aero-svg--truck { width: 22px; height: 18px; fill: currentColor; }
.aero-pdp__ask { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.aero-pdp__ask svg { width: 20px; height: 20px; fill: #1faa53; }

/* Anatomía: los datos que definen un reloj, cada uno con su forma */
.aero-pdp__anatomy {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 28px 0 8px;
  background: var(--aero-hair); border: 1px solid var(--aero-hair);
}
.aero-anat { display: grid; justify-items: center; gap: 2px; padding: 16px 6px 14px; background: #fff; text-align: center; }
.aero-anat strong { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin-top: 8px; }
.aero-anat span:last-child { font-size: 12px; color: var(--aero-mute); }
.aero-anat__icon { position: relative; width: 34px; height: 34px; }
.aero-anat--size .aero-anat__icon { border-radius: 50%; border: 2.5px solid #111; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4.5px #bdbdc2; }
.aero-anat--size .aero-anat__icon::before, .aero-anat--size .aero-anat__icon::after { content: ""; position: absolute; top: 50%; height: 1.5px; width: 9px; background: #111; }
.aero-anat--size .aero-anat__icon::before { left: -12px; }
.aero-anat--size .aero-anat__icon::after { right: -12px; }
.aero-anat--depth .aero-anat__icon { width: 20px; border: 2px solid #111; border-radius: 3px; overflow: hidden; }
.aero-anat--depth .aero-anat__icon::before { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, #a9bfcf, #5e7f97); }
.aero-anat--movement .aero-anat__icon { border-radius: 50%; border: 2px solid #111; }
.aero-anat--movement .aero-anat__icon::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2px dashed #111; }
.aero-anat--movement .aero-anat__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #111; }
.aero-anat--shield .aero-anat__icon { width: 28px; background: #111; clip-path: polygon(50% 0, 100% 16%, 100% 52%, 50% 100%, 0 52%, 0 16%); }
.aero-anat--shield .aero-anat__icon::after { content: ""; position: absolute; left: 9px; top: 9px; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }

/* Secciones */
.aero-pdp__sections { margin-top: 18px; }
.aero-acc { border-bottom: 1px solid var(--aero-hair); }
.aero-acc > summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: .02em;
}
.aero-acc > summary::-webkit-details-marker { display: none; }
.aero-acc > summary svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.aero-acc[open] > summary svg { transform: rotate(45deg); }
.aero-acc__body { padding-bottom: 22px; font-size: 15px; color: #333; }
.aero-acc__body.aero-prose p + p { margin-top: 12px; }
.aero-acc__body ul { list-style: disc; padding-left: 20px; margin: 10px 0; }
.aero-acc__body li + li { margin-top: 4px; }
.aero-specs { display: grid; }
.aero-specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #f0f0f1; }
.aero-specs > div:first-child { border-top: 0; }
.aero-specs dt { font-size: 13.5px; color: var(--aero-mute); }
.aero-specs dd { margin: 0; font-size: 14.5px; }
.aero-pdp__manual { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.aero-pdp__manual svg { width: 22px; height: 22px; }
.aero-pdp__tax { margin-top: 16px; font-size: 12.5px; color: var(--aero-mute); }

.aero-pdp__related { padding-top: 80px; }
.aero-rail__viewport--wide { grid-auto-columns: calc((100% - 90px) / 4); }

/* Barra fija móvil */
.aero-pdp__sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -6px 20px rgb(0 0 0 / .12);
  animation: aero-rise .25s var(--ease-out);
}
.aero-pdp__sticky-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.aero-pdp__sticky-info img { width: 48px; height: 48px; background: var(--aero-soft); object-fit: cover; mix-blend-mode: multiply; }
.aero-pdp__sticky-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.aero-pdp__sticky-price { font-size: 14px; }
.aero-pdp__sticky-price del { display: none; }
.aero-pdp__sticky-price ins { text-decoration: none; font-weight: 700; }
.aero-pdp__sticky .aero-btn { flex-shrink: 0; padding: 12px 18px; }
body.single-product .aero-wa { bottom: 24px; }

@media (max-width: 1024px) {
  .aero-pdp__grid { grid-template-columns: 1fr; gap: 28px; margin-top: 14px; }
  .aero-gallery { position: static; grid-template-columns: 1fr; margin: 0 calc(var(--gutter) * -1); }
  .aero-gallery__stage { grid-column: 1; }
  .aero-gallery__thumbs { grid-column: 1; grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; padding: 0 var(--gutter); }
  .aero-gallery__thumb { width: 64px; height: 64px; }
  .aero-gallery__nav { display: none; }
  .aero-rail__viewport--wide { grid-auto-columns: calc((100% - 30px) / 2.3); }
  body.single-product .aero-wa { bottom: 92px; }
}
@media (max-width: 767px) {
  .aero-pdp__price ins, .aero-pdp__price .price > .woocommerce-Price-amount { font-size: 28px; }
  .aero-pdp__anatomy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aero-specs > div { grid-template-columns: 120px 1fr; }
  .aero-rail__viewport--wide { grid-auto-columns: 70%; }
  .aero-pdp__related { padding-top: 48px; }
  body.single-product .aero-wa span { display: none; }
  body.single-product .aero-wa { padding: 12px; }
}
