/* Product item page — full-screen three-column layout */

body.page-product-item .site-logo svg {
  fill: var(--pi-fill);
  color: var(--pi-fill);
}

body.page-product-item .menu,
body.page-product-item .menu a {
  color: var(--pi-fill);
  z-index: 20;
}


.pi-price{
  margin-bottom: 1em;
}

.pi-layout {
  height: 100%;
  column-gap: 0;
}

/* ── Shared column base ──────────────────────────────────────────────────── */

.pi-col {
  height: 100%;
  overflow: hidden;
}

/* ── Left: nav arrows + product info ─────────────────────────────────────── */

.pi-col--left {
  background-color: var(--pi-fill);
  position: relative;
  color: #fff;
  overflow-y: auto;
  padding: 2rem;
  padding-right: 5rem;
}

/* ── Middle: gallery ─────────────────────────────────────────────────────── */

.pi-col--middle {
  background: #fff;
  overflow-y: auto;
}

/* ── Right: siblings ─────────────────────────────────────────────────────── */

.pi-col--right {
  background-color: var(--pi-bg);
  padding: 2rem;
  overflow: hidden;
}

/* ── Gallery images ──────────────────────────────────────────────────────── */

.pi-image {
  width: 100%;
}

.pi-image img,
.pi-gallery img {
  width: 100%;
  display: block;
}

.pi-gallery {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ── Nav arrows (right side of left column) ──────────────────────────────── */

.pi-nav {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.pi-arrow--prev,
.pi-arrow--next {
  font-size: 3rem;
  color:  white;
  text-decoration: none;
  line-height: 1;
  font-family: var(--font-gauche);
  font-weight: 700;
}

/* ── Product info ────────────────────────────────────────────────────────── */

.pi-info div,
.pi-info form {
  margin-bottom: 1em;
}

.pi-title {
  font-size: 2rem;
font-weight: 700;
}

.pi-price {
  font-size: 2rem;
}

.pi-description {
  font-size: 1rem;
}

.pi-description p + p {
  margin-top: 0.6em;
}

.pi-details ul,
.pi-description ul {
  list-style: none;
  padding-left: 0;
}

.pi-details ul li,
.pi-description ul li {
  position: relative;
  padding-left: 1.4em;
}

.pi-details ul li::before,
.pi-description ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 0.7em;
  height: 0.7em;
  background-image: url("../../icons/bulletpoint.svg");
  background-size: contain;
  background-repeat: no-repeat;
  filter: brightness(0) invert(1);
}


/* ── Fulfillment label ───────────────────────────────────────────────────── */


/* ── Cart button ─────────────────────────────────────────────────────────── */

.pi-cart-btn {
  color: #fff;
}

.pi-cart-btn .btn-border path {
  stroke: #fff;
}

.pi-cart-btn:hover {
  color: var(--pi-fill);
}

.pi-cart-btn--soldout {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ── Family siblings section ─────────────────────────────────────────────── */



.pi-siblings-title {
  font-size: 1.2rem;
  font-weight: 400;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #fff;
  margin-bottom: 1rem;
}

.pi-siblings {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pi-sibling {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

.pi-sibling img {
  width: 100%;
  /*aspect-ratio: 1 / 1;*/
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}

.pi-sibling:hover img {
  filter: none;
}

.pi-sibling span {
  font-size: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pi-sibling:hover span {
  opacity: 1;
}

/* Siblings in right (--pi-bg) column: white for contrast */
.pi-col--right .pi-siblings-title {
  border-bottom-color: white;
  color: white;
}

.pi-col--right .pi-sibling {
  color: white;
}


/* Mobile-only siblings copy: hidden on desktop */
.pi-siblings-section--mobile {
  display: none;
}

/* Mobile-only elements hidden on desktop */
.pi-first-image,
.pi-arrow-mobile {
  display: none;
}

/* ── Black-text mode ─────────────────────────────────────────────────────── */

body.has-black-text.page-product-item .pi-col--left {
  color: #000;
}

body.has-black-text.page-product-item .pi-arrow--prev,
body.has-black-text.page-product-item .pi-arrow--next {
  color: #000;
}

body.has-black-text.page-product-item .pi-details ul li::before,
body.has-black-text.page-product-item .pi-description ul li::before {
  filter: brightness(0);
}

body.has-black-text.page-product-item .pi-cart-btn {
  color: #000;
}

body.has-black-text.page-product-item .pi-cart-btn .btn-border path {
  stroke: #000;
}

body.has-black-text.page-product-item .pi-cart-btn:hover {
  color: var(--pi-fill);
}

body.has-black-text.page-product-item .pi-cart-btn:hover .btn-border path {
  fill: #000;
  stroke: #000;
}

body.has-black-text.page-product-item .pi-siblings-title {
  border-bottom-color: #000;
  color: #000;
}

body.has-black-text.page-product-item .pi-col--right .pi-siblings-title {
  border-bottom-color: #000;
  color: #000;
}

body.has-black-text.page-product-item .pi-sibling,
body.has-black-text.page-product-item .pi-col--right .pi-sibling {
  color: #000;
}

body.has-black-text.page-product-item .pi-sibling img {
  filter: brightness(0);
}

body.has-black-text.page-product-item .pi-sibling:hover img {
  filter: none;
}

/* ── Mobile layout ───────────────────────────────────────────────────────── */

@media only screen and (max-width: 800px) {

  body.page-product-item {
    overflow-y: auto !important;
    height: auto !important;
  }

  body.page-product-item .main {
    flex: none;
  }

  .pi-layout {
    display: flex !important;
    flex-direction: column;
    height: auto;
  }

  .pi-col {
    height: auto;
    overflow: visible;
  }

  .pi-col--right { display: none; }

  .pi-col--left {
    order: 2;
    overflow-y: visible;
    padding-right: 2rem;
  }

  .pi-col--left .pi-nav { display: none; }

  .pi-siblings-section--mobile {
    display: block;
  }

  /* Image slider: full width, photos at their natural proportions, native horizontal swipe with snapping (assets/js/templates/product-item.js
     adds the counter and the 5 s auto-advance) */
  .pi-first-image {
    display: block;
    order: 1;
    width: 100%;
    position: relative;
  }

  .pi-slider-track {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .pi-slider-track::-webkit-scrollbar { display: none; }

  .pi-slider-track img {
    flex: 0 0 100%;
    width: 100%;
    height: auto; /* natural proportions: photos are never cropped */
    display: block;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* "1/4" bottom right of the image */
  .pi-slider-count {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.85);
    color: #000;
    font-size: 0.8rem;
    line-height: 1.2;
    pointer-events: none;
  }

  /* the gallery column is desktop only; the colour block that used to close the page is gone */
  .pi-col--middle {
    display: none;
  }

  .pi-arrow-mobile {
    display: block;
    position: fixed;
    top: 0vh;
    z-index: 20;
    font-size: 3rem;
    color: var(--ui-color, white);
    text-decoration: none;
    line-height: 1;
    font-family: var(--font-gauche);
    font-weight: 700;
  }

  .pi-arrow-mobile--prev { left: 4vw; }
  .pi-arrow-mobile--next { right: 4vw; }

  body.has-black-text.page-product-item .pi-arrow-mobile {
    color: var(--ui-color, #000);
  }

}
