/* Purchase gallery: a thumbnail rail on desktop and a swipe carousel on mobile. */
#comprar .buy-layout {
  width: min(1320px, 100%);
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, .88fr);
  align-items: start;
  gap: 40px;
  scroll-margin-top: calc(var(--nav-height) + var(--local-nav-height));
}

#comprar .buy-mobile-heading { display: none; }
#comprar .buy-visual { min-width: 0; }
#comprar :is(.buy-information, .buy-checkout) { min-width: 0; }

#comprar .buy-information {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #1f1f1f;
}
#comprar .buy-information .buy-title {
  color: #1f1f1f;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 10px;
}
#comprar .buy-information .rating {
  gap: 8px;
  color: #737373;
  font-size: 14px;
  font-weight: 400;
}
#comprar .buy-information .stars {
  color: #3483fa;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1;
}
#comprar .buy-information .price-label { display: none; }
#comprar .buy-information .price-row {
  gap: 4px;
  margin-bottom: 6px;
}
#comprar .buy-information .offer-label {
  justify-self: start;
  margin-bottom: 4px;
  padding: 3px 5px;
  border-radius: 2px;
  background: #3483fa;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}
#comprar .buy-information .old-price .price-value {
  color: #737373;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}
#comprar .buy-information .current-price {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
#comprar .buy-information .current-price .price-value {
  color: #1f1f1f;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.35px;
}
#comprar .buy-information .price-amount {
  display: inline-flex;
  align-items: flex-start;
  white-space: nowrap;
}
#comprar .buy-information .price-cents {
  position: static;
  margin: 2px 0 0 2px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}
#comprar .buy-information .discount-badge {
  padding: 3px 4px;
  border-radius: 2px;
  background: #00a650;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
#comprar .buy-information .installments {
  color: #1f1f1f;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}
#comprar .buy-information .installment-amount { color: #00a650; }

#comprar .product-highlights {
  margin: 28px 0 26px;
  text-align: left;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
#comprar .product-highlights h4 {
  margin: 0;
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
#comprar .product-highlights ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
}
#comprar .product-highlights-link {
  display: inline-block;
  margin-top: 18px;
  color: #3483fa;
  font-size: 14px;
}
#comprar .product-highlights-link:hover {
  color: #2968c8;
  text-decoration: underline;
}
#comprar .product-highlights-link:focus-visible {
  outline: 2px solid #3483fa;
  outline-offset: 4px;
}
#caracteristicas { scroll-margin-top: 24px; }

.product-description {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #e5e5e8;
}
.product-description-copy {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #737373;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}
.product-description-copy h3 {
  margin: 30px 0 20px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}
.product-description-copy h3:first-child { margin-top: 0; }
.product-description-copy p { margin: 0 0 28px; }
.product-description-copy p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .product-description { margin-bottom: 32px; padding-bottom: 32px; }
  .product-description-copy,
  .product-description-copy h3 { font-size: 16px; }
}

#comprar .delivery-info {
  margin: 0 0 18px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #1f1f1f;
}
#comprar .delivery-badge {
  display: inline-block;
  max-width: 100%;
  padding: 2px 4px;
  border-radius: 1px;
  background: #00a650;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}
#comprar .delivery-arrival { margin: 14px 0 0; }
#comprar .delivery-free { color: #00a650; }

#comprar .purchase-stock {
  margin: 12px 0 22px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #1f1f1f;
  line-height: 1.4;
}
#comprar .purchase-stock-status { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
#comprar .purchase-quantity-row { display: flex; align-items: center; gap: 6px; font-size: 16px; }
#comprar .purchase-quantity-row label { margin: 0; font-weight: 400; }
#comprar .purchase-quantity-control { position: relative; display: inline-flex; min-width: 0; }
#comprar .purchase-quantity-control select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 100%;
  border: 0;
  border-radius: 3px;
  padding: 5px 26px 5px 0;
  background: transparent;
  color: #1f1f1f;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#comprar .purchase-quantity-control select:disabled { cursor: default; }
#comprar .purchase-quantity-control select:focus-visible { outline: 2px solid #3483fa; outline-offset: 3px; }
#comprar .purchase-quantity-control svg {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #3483fa;
  pointer-events: none;
}

#comprar .buy-checkout .buy-button.btn-primary-pill {
  border: 1px solid #3483fa;
  background: #3483fa;
  color: #fff;
  box-shadow: none;
  font-size: 20px;
  font-weight: 700;
}
#comprar .buy-checkout .buy-button.btn-primary-pill:hover {
  border-color: #2968c8;
  background: #2968c8;
}
#comprar .buy-checkout .buy-button.buy-whatsapp-button {
  border: 1px solid #e3edfb;
  background: #e3edfb;
  color: #2968c8;
  box-shadow: none;
  font-weight: 600;
}
#comprar .buy-checkout .buy-button.buy-whatsapp-button:hover {
  border-color: #d7e6fc;
  background: #d7e6fc;
  color: #1f55a4;
}

#comprar .buy-checkout .buy-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
}
#comprar .buy-checkout .meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #6e6e73;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
#comprar .buy-checkout .purchase-trust-icon {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: #3483fa;
}
#comprar .buy-checkout .meta-item p { margin: 0; }
#comprar .buy-checkout .meta-item strong {
  display: inline;
  margin: 0;
  color: #333;
  font-size: inherit;
  font-weight: 600;
}

@media (min-width: 981px) {
  .compare,
  #comprar {
    background: #ededed;
  }
  .compare > .section-wrap {
    width: min(1920px, calc(100% - 64px));
    padding: 32px 0;
  }
  .compare .compare-card {
    width: 100%;
    max-width: none;
    padding: 32px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  }
  #comprar {
    min-height: 0;
    padding: 32px 0 0;
  }
  #comprar .buy-layout {
    width: min(1920px, calc(100% - 64px));
    grid-template-columns: minmax(0, 1.45fr) minmax(230px, .92fr) minmax(260px, .84fr);
    gap: 28px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  }
  #comprar .buy-card { display: contents; }
  #comprar .buy-information {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
  }
  #comprar .buy-information .buy-title {
    order: 0;
  }
  #comprar .buy-information .rating {
    order: 1;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
  }
  #comprar .buy-information .price-row { order: 2; }
  #comprar .buy-information .installments { order: 3; margin-bottom: 28px; }
  #comprar .buy-information .kit-selector { order: 4; }
  #comprar .buy-information .product-highlights { order: 6; margin-bottom: 0; }
  #comprar .buy-information .buy-option {
    order: 5;
    align-self: flex-start;
    border: 1px solid #e8e9ed;
    border-radius: 8px;
    margin: 0;
  }
  #comprar .buy-checkout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px;
    border: 1px solid #e2e4e8;
    border-radius: 12px;
    background: #fff;
  }
  #comprar .buy-checkout .buy-button {
    min-height: 50px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 7px;
    box-shadow: none;
    font-size: 16px;
    font-weight: 650;
  }
  #comprar .buy-checkout .delivery-info { margin: 0 0 8px; }
  #comprar .buy-checkout .purchase-stock { margin: 0 0 8px; }
  #comprar .product-gallery { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
  #comprar .product-gallery__thumbnails { width: 56px; gap: 8px; }
  #comprar .product-gallery__thumbnail { flex-basis: 56px; width: 56px; height: 56px; }
  #comprar .product-gallery__stage { border-radius: 12px; }
}

.product-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
  scroll-margin-top: calc(var(--nav-height) + var(--local-nav-height) + 24px);
}

.product-gallery__thumbnails {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 64px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d4dae1 transparent;
}

.product-gallery__thumbnail {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #d4d7dc;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.product-gallery__thumbnail:hover { border-color: #7e9fc9; }
.product-gallery__thumbnail.is-active {
  border: 2px solid #3483fa;
  padding: 2px;
  box-shadow: inset 0 0 0 1px #fff;
}

.product-gallery__stage {
  position: relative;
  grid-column: 2;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #f0f0f2;
  border-radius: 20px;
  background: #fff;
}

.product-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.product-gallery__track::-webkit-scrollbar { display: none; }

.product-gallery__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.product-gallery__open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-gallery__lens {
  position: absolute;
  z-index: 2;
  border: 1px solid #7c9fcb;
  background: rgba(35, 74, 120, .19);
  pointer-events: none;
}

.product-gallery__zoom-panel {
  position: fixed;
  z-index: 1050;
  overflow: hidden;
  border: 1px solid #e0e4e9;
  border-radius: 16px;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 12px 40px #182d4526;
  pointer-events: none;
}

.product-gallery__lens[hidden],
.product-gallery__zoom-panel[hidden] { display: none; }

body.product-lightbox-open { overflow: hidden; }
body.product-lightbox-open :is(.video-float, .whatsapp-float, .promo-popover) { visibility: hidden; }

.product-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #202832;
}
.product-lightbox:not([open]) { display: none; }
.product-lightbox[open] { display: flex; flex-direction: column; }
.product-lightbox::backdrop { background: #fff; }
.product-lightbox__header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: max(12px, env(safe-area-inset-top)) 20px 12px;
  border-bottom: 1px solid #eef0f3;
}
.product-lightbox__header h2 {
  margin: 0 auto 0 0;
  font-size: 16px;
  font-weight: 650;
}
.product-lightbox__header > span { font-size: 14px; font-variant-numeric: tabular-nums; }
.product-lightbox button {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e7eaf0;
  border-radius: 50%;
  background: #f7f8fa;
  color: #236ecc;
  cursor: pointer;
}
.product-lightbox button:focus-visible { outline: 3px solid #3483fa; outline-offset: 2px; }
.product-lightbox button:disabled { opacity: .3; cursor: default; }
.product-lightbox__viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}
.product-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.final-cta .product-lightbox__image { filter: none; }
.product-lightbox__viewport.is-zoomed {
  display: block;
  touch-action: pan-x pan-y pinch-zoom;
}
.product-lightbox__viewport.is-zoomed .product-lightbox__image {
  width: max(200%, 900px);
  max-width: none;
  max-height: none;
}
.product-lightbox__toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 14px 20px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid #eef0f3;
}
.product-lightbox__toolbar button > span { font-size: 32px; line-height: 1; }
.product-lightbox .product-lightbox__zoom {
  min-width: 126px;
  padding: 0 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
}

#comprar .product-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
  filter: none;
}

.product-gallery__counter {
  position: absolute;
  top: 14px;
  left: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 29px;
  padding: 0 11px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .9);
  color: #363a40;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  pointer-events: none;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e3e5e8;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: #2371d6;
  box-shadow: 0 2px 9px #0000000a;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
  transition: opacity .16s ease, background .16s ease;
}
.product-gallery__arrow--previous { left: 12px; }
.product-gallery__arrow--next { right: 12px; }
.product-gallery:hover .product-gallery__arrow,
.product-gallery:focus-within .product-gallery__arrow { opacity: 1; }
.product-gallery .product-gallery__arrow:disabled { opacity: 0; pointer-events: none; }
.product-gallery__arrow:hover { background: #fff; }
.product-gallery__dots { display: none; }

.product-gallery button:focus-visible,
.product-gallery__track:focus-visible {
  outline: 3px solid #3483fa;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  #comprar .buy-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  #comprar .buy-visual { width: 100%; }
  .product-gallery {
    display: block;
    width: min(720px, 100%);
    margin: 0 auto;
  }
  .product-gallery__thumbnails { display: none; }
  .product-gallery__stage { border-radius: 18px; }
  .product-gallery__counter { display: inline-flex; }
  .product-gallery__arrow { display: none; }
  .product-gallery__lens, .product-gallery__zoom-panel { display: none; }
  .product-gallery__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-top: 9px;
  }
  .product-gallery__dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  .product-gallery__dot span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d9dde2;
    transition: background .16s ease, transform .16s ease;
  }
  .product-gallery__dot.is-active span {
    background: #3483fa;
    transform: scale(1.3);
  }
}

@media (max-width: 640px) {
  #comprar .buy-visual { gap: 12px; }
  .product-gallery__stage { border-radius: 15px; }
  .product-gallery__counter { top: 11px; left: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-gallery button,
  .product-gallery__dot span { transition: none; }
}
.localnav[hidden] {
  display: none !important;
}

/* Mobile has its own reading order and spacing; the desktop columns stay intact. */
@media (max-width: 980px) {
  #comprar { min-height: 0; background: #fff; }
  #comprar .buy-layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 0;
    padding: 24px 0 28px;
    scroll-margin-top: 24px;
  }
  #comprar .buy-mobile-heading:not([hidden]) { display: block; padding: 0 16px; }
  #comprar .buy-mobile-heading .rating {
    gap: 6px;
    margin: 0 0 8px;
    color: #737373;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
  }
  #comprar .buy-mobile-heading .stars { color: #3483fa; font-size: 14px; letter-spacing: .5px; }
  #comprar .buy-mobile-heading .buy-title {
    margin: 0 0 14px;
    color: #1f1f1f;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
  }
  #comprar .buy-visual { width: 100%; margin-bottom: 18px; }
  #comprar .product-gallery { width: min(720px, 100%); }
  #comprar .product-gallery__stage { aspect-ratio: 13 / 12; border: 0; border-radius: 0; }
  #comprar .product-gallery__counter { top: 10px; left: 16px; }
  #comprar .buy-card {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  #comprar .buy-information .offer-label { font-size: 10px; }
  #comprar .buy-information .old-price .price-value { font-size: 14px; }
  #comprar .buy-information .current-price .price-value { font-size: 28px; }
  #comprar .buy-information .price-cents { margin-top: 2px; font-size: 14px; }
  #comprar .buy-information .discount-badge { font-size: 12px; }
  #comprar .buy-information .installments { margin: 0 0 14px; font-size: 16px; }
  #comprar .buy-information .buy-option {
    margin: 0 0 18px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
  }
  #comprar .buy-checkout { display: flex; flex-direction: column; gap: 8px; }
  #comprar .buy-checkout .delivery-info { margin: 0 0 12px; font-size: 14px; }
  #comprar .buy-checkout .delivery-arrival { margin-top: 10px; }
  #comprar .buy-checkout .purchase-stock { margin: 4px 0 14px; }
  #comprar .buy-checkout .purchase-stock-status { margin-bottom: 8px; font-size: 16px; }
  #comprar .buy-checkout .purchase-quantity-row { font-size: 15px; }
  #comprar .buy-checkout .buy-button {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
  }
  #comprar .buy-checkout .buy-button.btn-primary-pill { font-size: 16px; font-weight: 600; }
  #comprar .buy-checkout .buy-meta { gap: 20px; margin-top: 18px; }
  #comprar .buy-checkout .meta-item { font-size: 14px; }
  #comprar .buy-checkout .purchase-trust-icon { flex-basis: 24px; width: 24px; height: 24px; }
  #comprar .buy-card > .product-highlights {
    margin: 24px 0 0;
    padding-top: 24px;
    border-top: 1px solid #e5e5e8;
  }
}

