/* ============================================================
   PRODUCT PAGE LAYOUT
   Two columns: gallery (left) + summary (right).
   Tabs and related products span the full width below.
   ============================================================ */

:root {
  --pp-max-width: 1200px;
  --pp-gap: 60px;
  --pp-text-dark: #1a1a1a;
  --pp-text-light: #767676;
  --pp-border: #e5e5e5;
  --pp-accent: #1e6f5c; /* matches the teal "Add To Quote" button in the screenshot */
}



.fe-gallery__main-image {
    width: 100% !important;
    height: auto !important;
    max-width: 500px !important;
    max-height: 500px;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}


/* Extra-hard override for mobile, in case theme CSS has higher priority */
@media (max-width: 600px) {
  .fe-gallery__main-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

.fe-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.fe-gallery__thumb {
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.fe-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fe-gallery__thumb.is-active {
  border-color: #1a1a1a;
}

/* Lightbox */
.fe-lightbox {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

/* Image area takes all remaining space and centers the image inside it,
   independent of the image's own aspect ratio — this is what keeps the
   thumbnail row fixed at the bottom instead of jumping. */
.fe-lightbox__image-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.fe-lightbox__image {
  max-width: 90vw;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}

.fe-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--pp-text-dark, #1a1a1a);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  z-index: 1;
}

/* Fixed height row, always at the bottom, never affected by image size */
.fe-lightbox__thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 20px;
  border-top: 1px solid var(--pp-border, #e5e5e5);
}

.fe-lightbox__thumb {
  padding: 0;
  border: 2px solid var(--pp-border, #e5e5e5);
  background: none;
  cursor: pointer;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.fe-lightbox__thumb:hover {
  border-color: #999;
}

.fe-lightbox__thumb.is-active {
  border-color: var(--pp-text-dark, #1a1a1a);
}

.fe-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
