/* ==================================================
PRODUCT PAGE
\================================================== */

body.product-page {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: var(--nulo-white);
  color: var(--nulo-red);
  font-family: var(--font-main);
}

/* ==================================================
PRODUCT PAGE — PARAGRAPHS
\================================================== */

/*
En NULO toda la microinformación / etiquetas
utiliza peso 600.
*/

/* ==================================================
PRODUCT PAGE MARQUEE
\================================================== */

.producto-page-marquee {
  --producto-marquee-gap: clamp(300px, 16vw, 320px);
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  color: var(--nulo-red);
}

/* ==================================================
TRACK
\================================================== */

.producto-page-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

/* ==================================================
GROUP
\================================================== */

.producto-page-marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--producto-marquee-gap);

  /*
  Este padding crea exactamente el mismo
  espacio entre el último elemento de un
  grupo y el primero del siguiente.
  */

  padding-right: var(--producto-marquee-gap);
}

/* ==================================================
TEXT
\================================================== */

.producto-page-marquee p {
  flex-shrink: 0;
  margin: 0;
  color: var(--nulo-red);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
}

/* ==================================================
PRODUCT TEST SECTION
\================================================== */

.producto-test-section {
  padding-top: 2px !important;
}

/* ==================================================
PRODUCT TEST SECTION
\================================================== */

.producto-test-section {
  padding-top: 2px !important;
}

.product-page p {
  font-family: var(--font-main);
  font-weight: 600;
}

/* ==================================================
PRODUCT SHOWCASE
\================================================== */

.product-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 56.5% 43.5%;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--nulo-white);
}

/* ==================================================
LEFT — PRODUCT GALLERY
\================================================== */

.product-gallery {
  position: relative;
  width: 100%;
  min-width: 0;
  background-color: var(--nulo-white);
}

/* ==================================================
IMAGE PANEL
\================================================== */

/*
Cada panel mide exactamente un viewport.
Al ser sticky todos con top: 0:
IMAGE 01 queda fija
↓
IMAGE 02 sube por encima
↓
IMAGE 03 sube por encima
Cuando termina product-gallery,
el sticky deja de actuar.
*/

.product-image-panel {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background-color: var(--nulo-white);
  z-index: var(--product-panel-index);
}

/* ==================================================
PRODUCT IMAGE
\================================================== */

/*
La imagen es algo más alta que el viewport
para dejar margen al parallax de GSAP.
*/

.product-gallery-image {
  position: absolute;
  top: -8%;
  left: 0;
  display: block;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  transform-origin: 50% 50%;
  will-change: transform;
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==================================================
RIGHT — PRODUCT INFORMATION
\================================================== */

.product-info {
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background-color: var(--nulo-white);

  /*
  El padding izquierdo reproduce la composición
  desplazada hacia la derecha de tu referencia.
  */

  padding: 17.5vh 1.7vw 3vh 7.5vw;
}

/* ==================================================
PRODUCT INFO INNER
\================================================== */

.product-info-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

/* ==================================================
PRODUCT TITLE
\================================================== */

.product-title {
  width: 100%;
  text-align: right;
}

/* ==================================================
SEASON
\================================================== */

.product-season {
  margin: 0 0 8px 0;
  color: var(--nulo-red);
  font-family: var(--font-main);
  font-size: clamp( 20px, 2vw, 32px );
  line-height: 1;
  font-weight: 500!important;
  text-transform: uppercase;
}

/* ==================================================
MAIN TITLE
\================================================== */

.product-title h1 {
  margin: 0;
  color: var(--nulo-red);
  font-family: var(--font-main);
  font-size: clamp( 42px, 4.5vw, 76px );
  line-height: 0.82;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: right;
}

/* ==================================================
DESCRIPTION
\================================================== */

.product-description {
  width: 100%;
  margin: 4.5vh 0 0 auto;
  color: var(--nulo-red);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 13px;
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
}

/* ==================================================
SIZE SELECTOR
\================================================== */

.product-sizes {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 5.5vh;
}

/* ==================================================
SIZE BUTTON
\================================================== */

.product-size {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid var(--nulo-red);
  border-radius: 10px;
  outline: 0;
  background-color: transparent;
  color: var(--nulo-red);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.product-size:hover {
  background-color: var(--nulo-red);
  color: var(--nulo-white);
}

.product-size.is-selected {
  background-color: var(--nulo-red);
  color: var(--nulo-white);
}

/* ==================================================
CART ROW
\================================================== */

.product-cart-row {
  display: grid;
  grid-template-columns: 27px 1fr;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  margin-top: 14px;
}

/* ==================================================
HEART BUTTON
\================================================== */

.product-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--nulo-red);
  border-radius: 10px;
  outline: 0;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.product-heart:hover {
  opacity: 0.6;
}

/* ==================================================
HEART ICON
\================================================== */

.product-heart img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ==================================================
ADD TO CART
\================================================== */

.product-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 27px;
  margin: 0;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  outline: 0;
  background-color: var(--nulo-red);
  color: var(--nulo-white);
  font-family: var(--font-main);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.product-add-cart:hover {
  opacity: 0.8;
}

/* ==================================================
STATIC PRODUCT INFORMATION
\================================================== */

.product-static-info {
  width: 100%;
  margin-top: 4.5vh;
}

/* ==================================================
STATIC ROW
\================================================== */

.product-static-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 34px;
  border-bottom: 1px solid var(--nulo-red);
  color: var(--nulo-red);
}

/* ==================================================
STATIC ROW ICON
\================================================== */

.product-static-row img {
  display: block;
  width: 15px;
  flex-shrink: 0;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* ==================================================
STATIC ROW LABEL
\================================================== */

.product-static-row span {
  color: var(--nulo-red);
  font-family: var(--font-main);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
}

/* ==================================================
GLOBAL FIXED NAV
\================================================== */

/*
NO añadir estilos aquí.
Se utilizan directamente los de style.css:
.fixed-scroll-nav
.fixed-scroll-nav-bg
.fixed-scroll-nav-pixels
.fixed-scroll-nav-pixel
.fixed-scroll-nav-content
.fixed-scroll-nav-left
.fixed-scroll-nav-right
.fixed-scroll-nav-logo
.fixed-scroll-nav-logo-mark
Así es literalmente el mismo nav que Home.
*/

/* ==================================================
GLOBAL FOOTER
\================================================== */

/*
Tampoco modificamos:
.nulo-footer
.nulo-footer-pixel-area
.nulo-footer-solid-bg
.nulo-footer-content
etc.
El footer utiliza íntegramente style.css
y main.js.
Tampoco modificamos margin-top: 140px,
porque queremos exactamente el mismo
comportamiento de Home.
*/

.last-product-section {
  margin-top: 100px;
}

body.product-page .nulo-footer .nulo-footer-info p,
body.product-page .nulo-footer .nulo-footer-info span {
  font-weight: 500;
}

/* FOOTER — corregir pesos en páginas de producto */

body.product-page .nulo-footer .nulo-footer-info p,
body.product-page .nulo-footer .nulo-footer-info span,
body.product-page .nulo-footer .nulo-footer-featured-text p {
  font-weight: 500;
}

/* ============================================================
NULO — PRODUCT PAGE RESPONSIVE
============================================================ */

@media (max-width: 1100px) {
  .producto-page-marquee {
    --producto-marquee-gap: clamp(150px, 18vw, 220px);
  }

  .product-showcase {
    grid-template-columns: 54% 46%;
  }

  .product-info {
    padding: 12vh 18px 28px 4.5vw;
  }

  .product-title h1 {
    font-size: clamp(38px, 5.1vw, 60px);
  }

  .product-description {
    margin-top: 4vh;
    font-size: 11px;
    line-height: 1.05;
  }

  .product-sizes {
    margin-top: 4.5vh;
    gap: 6px;
  }

  .product-size {
    min-width: 29px;
    height: 29px;
    padding: 0 5px;
    font-size: 11px;
  }

  .product-static-info {
    margin-top: 4vh;
  }

}

/* ============================================================
TABLET / MOBILE — INFO FIRST + HORIZONTAL GALLERY
============================================================ */

@media (max-width: 900px) {
  .producto-page-marquee {
    --producto-marquee-gap: 120px;
  }

  .producto-page-marquee p {
    font-size: 10px;
  }

  .product-showcase {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .product-info {
    order: 1;
    position: relative;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: 84px 24px 64px;
  }

  .product-info-inner {
    width: min(100%, 680px);
    height: auto;
    margin-left: auto;
  }

  .product-season {
    font-size: 18px;
  }

  .product-title h1 {
    font-size: clamp(50px, 10vw, 76px);
    line-height: 0.84;
  }

  .product-description {
    width: min(74%, 520px);
    margin: 38px 0 0 auto;
    font-size: 11px;
    line-height: 1.08;
  }

  .product-sizes {
    margin-top: 42px;
    gap: 6px;
  }

  .product-size {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 11px;
  }

  .product-cart-row {
    grid-template-columns: 34px minmax(0, 1fr);
    margin-top: 10px;
  }

  .product-heart {
    width: 34px;
    height: 34px;
  }

  .product-add-cart {
    height: 34px;
  }

  .product-static-info {
    margin-top: 42px;
  }

  .product-static-row {
    min-height: 40px;
  }

  .product-static-row span {
    font-size: 10px;
  }

  .product-gallery {
    order: 2;
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding: 0 12px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .product-gallery::-webkit-scrollbar {
    display: none;
  }

  .product-image-panel {
    position: relative;
    top: auto;
    flex: 0 0 86vw;
    width: 86vw;
    height: 72svh;
    min-height: 520px;
    max-height: 760px;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background-color: var(--nulo-white);
    z-index: auto;
  }

  .product-gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center center;
    transform: none;
    will-change: auto;
  }

  .last-product-section {
    margin-top: 70px;
  }

}

@media (max-width: 700px) {
  .producto-page-marquee {
    --producto-marquee-gap: 84px;
    padding: 8px 0 0;
  }

  .producto-page-marquee p {
    font-size: 9px;
    line-height: 1;
  }

  .product-info {
    min-height: 70svh;
    padding: 100px 12px 0px;
  }

  .product-info-inner {
    width: 100%;
    margin: 0;
  }

  .product-season {
    margin-bottom: 7px;
    font-size: 15px;
    line-height: 1;
  }

  .product-title h1 {
    font-size: clamp(44px, 13vw, 62px);
    line-height: 0.82;
    letter-spacing: -0.045em;
  }

  .product-description {
    width: 88%;
    max-width: 430px;
    margin: 32px 0 0 auto;
    font-size: 10px;
    line-height: 1.08;
  }

  .product-size-selection {
    width: 100%;
    align-items: center;
  }

  .product-sizes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 36px;
    gap: 5px;
  }

  .product-size {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0;
    border-radius: 7px;
    font-size: 9px;
  }

  .product-size-warning {
    width: 16px;
    height: 16px;
    margin-top: 36px;
    margin-left: 10px;
  }

  .product-cart-row {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 5px;
    margin-top: 8px;
  }

  .product-heart {
    width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 7px;
  }

  .product-add-cart {
    height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    font-size: 9px;
  }

  .product-static-info {
    margin-top: 34px;
  }

  .product-static-row {
    min-height: 38px;
  }

  .product-static-row span {
    font-size: 9px;
  }

  .product-static-row img {
    width: 13px;
  }

  .product-gallery {
    gap: 6px;
    padding: 0 10px 14px;
    scroll-padding-inline: 10px;
  }

  .product-image-panel {
    flex-basis: 88vw;
    width: 88vw;
    height: 68svh;
    min-height: 480px;
    max-height: 640px;
  }

  .producto-test-section {
    padding-top: 0 !important;
  }

  .producto-test-section .wearing-img-container {
    margin-top: 8px;
  }

  .last-product-section {
    margin-top: 48px;
  }

  body.product-page .nulo-footer .nulo-footer-info p,
  body.product-page .nulo-footer .nulo-footer-info span,
  body.product-page .nulo-footer .nulo-footer-featured-text p,
  body.product-page .nulo-footer .nulo-footer-bottom p {
    font-weight: 500;
  }

}

@media (max-width: 480px) {
  .producto-page-marquee {
    --producto-marquee-gap: 64px;
  }

  .producto-page-marquee p {
    font-size: 8px;
  }

  .product-info {
    padding: 100px 10px 0px;
  }

  .product-season {
    font-size: 13px;
  }

  .product-title h1 {
    font-size: clamp(42px, 13.5vw, 58px);
  }

  .product-description {
    width: 92%;
    margin-top: 28px;
    font-size: 9px;
    line-height: 1.08;
  }

  .product-sizes {
    margin-top: 32px;
    gap: 4px;
  }

  .product-size {
    height: 30px;
    font-size: 8px;
  }

  .product-size-warning {
    width: 15px;
    height: 15px;
    margin-top: 32px;
    margin-left: 8px;
  }

  .product-cart-row {
    grid-template-columns: 30px minmax(0, 1fr);
    margin-top: 7px;
  }

  .product-heart {
    width: 30px;
    height: 30px;
  }

  .product-add-cart {
    height: 30px;
    font-size: 8px;
  }

  .product-static-info {
    margin-top: 30px;
  }

  .product-static-row {
    min-height: 36px;
  }

  .product-static-row span {
    font-size: 8px;
  }

  .product-image-panel {
    flex-basis: 89vw;
    width: 89vw;
    height: 64svh;
    min-height: 450px;
    max-height: 600px;
  }

  .last-product-section {
    margin-top: 40px;
  }

}

@media (hover: none) and (pointer: coarse) {
  .product-size:hover:not(.is-selected) {
    background-color: transparent;
    color: var(--nulo-red);
  }

  .product-heart:hover,
  .product-add-cart:hover {
    opacity: 1;
  }

}
