/** Shopify CDN: Minification failed

Line 125:5 Cannot use type selector "-prev" directly after nesting selector "&"
Line 142:5 Cannot use type selector "-prev" directly after nesting selector "&"
Line 178:5 Cannot use type selector "-active" directly after nesting selector "&"
Line 182:5 Cannot use type selector "-thumb-active" directly after nesting selector "&"

**/
/* ====== THUMB NAV BUTTONS (no font, custom chevrons) ====== */
.swiper-button-next-thumb,
.swiper-button-prev-thumb {
  position: absolute;
  bottom: 0;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--swiper-navigation-color, var(--swiper-theme-color));
  transform: rotate(90deg); /* keep vertical layout behavior */
}

/* Placement tweaks */
.swiper-button-prev-thumb {
  margin: 8px 10px -5px 0;
}
.swiper-button-next-thumb {
  margin: 0 0 -4px 42px;
}

/* Remove Swiper’s text fallback entirely */
.swiper-button-next-thumb::after,
.swiper-button-prev-thumb::after {
  content: '';
}

/* Draw simple chevrons */
.swiper-button-next-thumb::before,
.swiper-button-prev-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
}

/* Prev = left chevron; will rotate to UP because parent is rotated 90deg */
.swiper-button-prev-thumb::before {
  border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* Next = right chevron; will rotate to DOWN because parent is rotated 90deg */
.swiper-button-next-thumb::before {
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Disabled state */
.swiper-thumbs .swiper-button-prev-thumb.swiper-button-disabled,
.swiper-thumbs .swiper-button-next-thumb.swiper-button-disabled {
  opacity: 0.5;
}

/* Size for chevrons when inside .swiper-thumbs */
.swiper-thumbs .swiper-button-prev-thumb::before,
.swiper-thumbs .swiper-button-next-thumb::before {
  width: 14px;
  height: 14px;
}

/* ====== PRODUCT IMAGE / GALLERY ====== */
.product-image.img_producto {
  background-size: contain;
  background-position: top;
}

.img_producto_container {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.img_producto img {
  display: none;
}

.img_producto {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform 0.5s ease-out;
}

.gallery-container {
  position: sticky;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  top: 3rem;
}

.swiper-wrapper .swiper-slide-active img:hover {
  transform: scale(1.1);
}

.gallery-main .product-image img {
  width: 100%;
  transition: transform .5s ease;
}

.gallery-main {
  width: 600px;
  height: 500px;
  box-shadow: 0 50px 75px 50px rgba(#1e1e1e, 0.18);
  border: 1px solid #e9e9e9;

  .swiper-button {
    &-prev,
    &-next {
      position: absolute;
      bottom: 0;
      right: 0;
      top: auto;
      left: auto;
      height: 75px;
      width: 40px;
      color: #e9e9e9;
      background: #1e1e1e;

      &::after {
        font-size: 12px;
      }
    }

    &-prev {
      right: 40px;
      border-right: 1px solid #e9e9e9;
    }
  }
}

.gallery-title {
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: "Epilogue", sans-serif;
  font-size: 50px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(#000, 0.3);
  color: #ffffff;

  .swiper-slide-active & {
    animation: slide-in 0.3s ease-in both;
  }
}

.gallery-thumbs {
  order: -1;
  width: 100px;
  height: 300px;
  margin-right: 15px;
  padding-left: 15px;

  .swiper-slide {
    img {
      transition: 0.3s;
    }

    &-active {
      opacity: 0.9;
    }

    &-thumb-active {
      opacity: 1;

      img {
        margin-left: -15px;
      }
    }
  }
}

.swiper-thumbs .product-image {
  border: solid 1px #ddd;
  overflow: hidden;
  cursor: pointer;
}

.swiper-thumbs .product-image img {
  max-width: 76px;
  margin: 0 auto;
  display: table;
  padding: 5px;
  box-sizing: border-box;
}

.gallery-main {
  width: 100%;
  max-width: 440px !important;
  overflow: hidden;
  border: 0;
}

.gallery-main .product-image img {
  width: 100%;
}

.swiper-thumbs .swiper-slide {
  height: 90px !important;
  margin-bottom: 10px;
}

/* Thumb button positioning for the vertical rail */
.swiper-thumbs .swiper-button-prev-thumb {
  bottom: 1px !important;
  left: 26px;
}
.swiper-thumbs .swiper-button-next-thumb {
  bottom: 0 !important;
  margin-left: 50px;
}

/* ====== RESPONSIVE ====== */
@media screen and (min-width: 769px) and (max-width: 1199px) {
  .swiper-wrapper .product-image.img_producto {
    background-size: contain !important;
  }
}

@media screen and (min-width: 769px) and (max-width: 1080px) {
  .gallery-main {
    height: 400px;
  }
}

@media screen and (max-width: 768px) {
  .swiper-wrapper .product-image {
    transform: scale(1) !important;
  }

  .swiper-wrapper .swiper-slide-active img:hover {
    transform: scale(1);
  }

  .gallery-thumbs {
    display: none;
  }

  .img_producto img {
    display: none;
  }
}

/* Phones: the gallery box was a fixed 500 px tall with the image drawn as a top-aligned background, so a square
   image left up to 137 px of blank space under it, pushing the title off screen (James, 2026-10-27). The box is now
   square and follows the screen width; square images fill it, portrait and wide ones centre inside it. */
@media screen and (max-width: 768px) {
  .gallery-main { height: auto; aspect-ratio: 1 / 1; }
  .gallery-main .swiper-wrapper, .gallery-main .swiper-slide { height: 100%; }
  .gallery-main .product-image.img_producto { background-position: center; }
}

/* Desktop thumbnail rail (James + Byron, L10 2026-10-22): 5 thumbnails tall with a prominent "more images" arrow below
   the 5th, so people see there are more; the up arrow overlays the top only once the rail has scrolled. Thumbnails
   past the 5th were clipped with no hint before. Buttons are hidden by Swiper (swiper-button-lock) when 5 or fewer. */
@media screen and (min-width: 769px) {
  /* 4 thumbnails, the down arrow's bottom level with the bottom of the main image (James, 2026-10-28). sizeThumbRail()
     in main-product.liquid measures where the image ends and sets --sf-rail-h / --sf-thumb / --sf-gap; without the
     script the rail falls back to the old 544 px. content-box on purpose: the rail shares a fixed-width flex row with
     the main image, and border-box took the 15 px left padding out of the boxes, squeezing them to 68 x 78. */
  .gallery-thumbs { height: calc(var(--sf-rail-h, 544px) - 44px); padding-bottom: 44px; box-sizing: content-box; overflow: hidden; position: relative; }
  .gallery-thumbs .swiper-wrapper { height: 100%; }
  .gallery-thumbs.swiper-thumbs .swiper-slide { height: var(--sf-thumb, 90px) !important; margin-bottom: var(--sf-gap, 10px); }
  .gallery-thumbs.swiper-thumbs .product-image { width: var(--sf-thumb, auto); height: var(--sf-thumb, auto); box-sizing: border-box; }
  .gallery-thumbs.swiper-thumbs .product-image img { max-width: 100%; }
  .gallery-thumbs .swiper-button-prev-thumb,
  .gallery-thumbs .swiper-button-next-thumb {
    position: absolute; left: 15px; right: auto; top: auto; bottom: auto; width: var(--sf-thumb, 78px); height: 36px; margin: 0;
    transform: none; border-radius: 4px; background: #fa9000; color: #fff; opacity: 1; display: flex;
  }
  /* white band above the down arrow hides the 5th thumbnail peeking into the gap; it goes when the arrow does (at the end) */
  .gallery-thumbs .swiper-button-next-thumb { bottom: 0; box-shadow: 0 -12px 0 0 #fff; }
  .gallery-thumbs .swiper-button-prev-thumb { top: 0; }
  .gallery-thumbs .swiper-button-prev-thumb.swiper-button-disabled,
  .gallery-thumbs .swiper-button-next-thumb.swiper-button-disabled,
  .gallery-thumbs .swiper-button-lock { display: none; }
  .gallery-thumbs .swiper-button-prev-thumb::before,
  .gallery-thumbs .swiper-button-next-thumb::before {
    width: 14px; height: 14px; border: 0; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor;
  }
  .gallery-thumbs .swiper-button-next-thumb::before { transform: translateY(-4px) rotate(45deg); }
  .gallery-thumbs .swiper-button-prev-thumb::before { transform: translateY(4px) rotate(-135deg); }
  .gallery-thumbs .swiper-button-prev-thumb:hover,
  .gallery-thumbs .swiper-button-next-thumb:hover { background: #ffb24d; } /* orange at rest (Byron), lighter on hover (James), 2026-10-28 */
}

/* Desktop: the blue left/right arrows over the main image are clutter next to the thumbnail rail (James, 2026-10-27).
   They stay on phones, where the rail is hidden and they are the only way to move between images. */
@media screen and (min-width: 769px) {
  .gallery-main .swiper-button-prev, .gallery-main .swiper-button-next { display: none; }
}
