/**
 * Single Product Page – isolated layout (loads after style.css)
 * Brand: #001BB7, #0046FF, #FF8040, #E9E9E9
 */

/* ---- Hero 2-column ---- */
.single-product .phu-sp-hero {
  padding: 1.25rem 0 2rem !important;
  background: #fff !important;
}

.single-product .phu-sp-hero-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr) !important;
  gap: 2rem 2.5rem !important;
  align-items: start !important;
  width: 100% !important;
}

.single-product .phu-sp-gallery {
  position: relative !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.single-product .phu-sp-buybox {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  width: 100% !important;
  min-width: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ---- Custom gallery ---- */
.single-product .phu-gallery {
  position: relative !important;
  width: 100% !important;
  float: none !important;
  opacity: 1 !important;
}

.single-product .phu-gallery-badge,
.single-product .phu-gallery .onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 5 !important;
  background: #FF8040 !important;
  color: #fff !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 6px !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Hide duplicate WC sale flash if present outside gallery */
.single-product .phu-sp-gallery > .onsale:not(.phu-gallery-badge) {
  display: none !important;
}

.single-product .phu-gallery-main {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  background: #E9E9E9 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  display: block !important;
}

.single-product .phu-gallery-slide {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: none !important;
  position: absolute !important;
  inset: 0 !important;
}

.single-product .phu-gallery-slide.is-active {
  display: block !important;
  position: relative !important;
}

.single-product .phu-gallery-slide[hidden] {
  display: none !important;
}

.single-product .phu-gallery-zoom {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  cursor: zoom-in !important;
}

.single-product .phu-gallery-main img,
.single-product .phu-gallery-img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  float: none !important;
}

/* Thumbs: HORIZONTAL row */
.single-product .phu-gallery-thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  list-style: none !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.single-product .phu-gallery-thumbs li,
.single-product .phu-gallery-thumb {
  display: block !important;
  float: none !important;
  width: 72px !important;
  height: 72px !important;
  flex: 0 0 72px !important;
  max-width: 72px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 2px solid transparent !important;
  background: #E9E9E9 !important;
  box-sizing: border-box !important;
}

.single-product .phu-gallery-thumb.is-active,
.single-product .phu-gallery-thumb:hover {
  border-color: #001BB7 !important;
}

.single-product .phu-gallery-thumb-btn {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  line-height: 0 !important;
}

.single-product .phu-gallery-thumbs img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  float: none !important;
  opacity: 1 !important;
}

/* ---- Buy box typography ---- */
.single-product .phu-sp-cats {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #001BB7 !important;
}

.single-product .phu-sp-title {
  font-family: Roboto, sans-serif !important;
  font-size: clamp(1.5rem, 2.8vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #001BB7 !important;
  margin: 0 !important;
}

.single-product .phu-sp-price .price {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #121417 !important;
}

.single-product .phu-sp-price .price ins {
  text-decoration: none !important;
  color: #FF8040 !important;
}

.single-product .phu-sp-price-note {
  font-size: 0.8rem !important;
  color: #6c757d !important;
}

.single-product .phu-sp-excerpt {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #495057 !important;
}

.single-product .phu-sp-chips {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.5rem !important;
  list-style: none !important;
  margin: 0.25rem 0 !important;
  padding: 0 !important;
}

.single-product .phu-sp-chips li {
  background: #E9E9E9 !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.4rem !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.1rem !important;
}

.single-product .phu-sp-chips li strong {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #001BB7 !important;
}

.single-product .phu-sp-chips li span {
  font-size: 0.65rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #6c757d !important;
}

.single-product .phu-sp-chips li.is-accent strong {
  color: #FF8040 !important;
}

.single-product .phu-sp-ctas .phu-product-ctas,
.single-product .phu-sp-ctas .phu-dual-ctas,
.single-product .phu-sp-ctas form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  align-items: center !important;
}

.single-product .phu-sp-ctas .button,
.single-product .phu-sp-ctas .phu-btn,
.single-product .phu-sp-ctas .single_add_to_cart_button {
  flex: 1 1 140px !important;
  min-height: 48px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
}

.single-product .phu-sp-trust {
  list-style: none !important;
  margin: 0.5rem 0 0 !important;
  padding: 0.85rem 0 0 !important;
  border-top: 1px solid #E9E9E9 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.55rem 0.75rem !important;
}

.single-product .phu-sp-trust li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.4rem !important;
  font-size: 0.8rem !important;
  color: #495057 !important;
  line-height: 1.35 !important;
}

.single-product .phu-sp-trust svg {
  flex-shrink: 0 !important;
  color: #001BB7 !important;
}

/* ---- Section nav ---- */
.single-product .phu-sp-nav {
  position: sticky !important;
  top: 68px !important;
  z-index: 40 !important;
  background: #fff !important;
  border-top: 1px solid #E9E9E9 !important;
  border-bottom: 1px solid #E9E9E9 !important;
}

.single-product .phu-sp-nav ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.25rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0.55rem 0 !important;
  align-items: center !important;
}

.single-product .phu-sp-nav a {
  display: block !important;
  padding: 0.4rem 0.75rem !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: #495057 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
}

.single-product .phu-sp-nav-cta {
  background: #FF8040 !important;
  color: #fff !important;
  font-weight: 700 !important;
  margin-left: auto !important;
}

/* ---- Sections ---- */
.single-product .phu-sp-section {
  padding: 2.75rem 0 !important;
}

.single-product .phu-sp-section--alt {
  background: #f7f7f8 !important;
}

.single-product .phu-sp-narrow {
  max-width: 800px !important;
}

.single-product .phu-sp-section-head .phu-eyebrow {
  display: block !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #FF8040 !important;
  margin-bottom: 0.35rem !important;
}

.single-product .phu-sp-section-head h2 {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: #001BB7 !important;
  margin: 0 !important;
  font-family: Roboto, sans-serif !important;
}

.single-product .phu-sp-description {
  font-size: 1rem !important;
  line-height: 1.75 !important;
  color: #343a40 !important;
}

.single-product .phu-sp-description h2 {
  font-size: 1.2rem !important;
  color: #001BB7 !important;
  margin: 1.5rem 0 0.6rem !important;
}

.single-product .phu-sp-table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #E9E9E9 !important;
}

.single-product .phu-sp-table th,
.single-product .phu-sp-table td {
  padding: 0.85rem 1.1rem !important;
  text-align: left !important;
  border-bottom: 1px solid #E9E9E9 !important;
  font-size: 0.92rem !important;
}

.single-product .phu-sp-table th {
  width: 40% !important;
  font-weight: 500 !important;
  color: #6c757d !important;
  background: #fafafa !important;
}

.single-product .phu-sp-table td {
  font-weight: 600 !important;
  color: #121417 !important;
}

/* Quote band */
.single-product .phu-sp-quote-band {
  background: linear-gradient(135deg, #001BB7 0%, #0046FF 100%) !important;
  color: #fff !important;
  padding: 2.75rem 0 !important;
}

.single-product .phu-sp-quote-inner {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr !important;
  gap: 1.75rem !important;
  align-items: center !important;
}

.single-product .phu-sp-quote-copy h2 {
  font-size: 1.45rem !important;
  color: #fff !important;
  margin: 0 0 0.5rem !important;
}

.single-product .phu-sp-quote-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
}

.single-product .phu-sp-quote-actions .phu-btn-secondary {
  background: #FF8040 !important;
  border-color: #FF8040 !important;
  color: #fff !important;
}

.single-product .phu-sp-quote-actions .phu-sp-call {
  border-color: rgba(255,255,255,0.45) !important;
  color: #fff !important;
}

/* FAQ */
.single-product .phu-faq-item {
  background: #fff !important;
  border: 1px solid #E9E9E9 !important;
  border-radius: 10px !important;
  margin-bottom: 0.6rem !important;
}

.single-product .phu-faq-item summary {
  padding: 0.95rem 1.1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  list-style: none !important;
}

.single-product .phu-faq-answer {
  padding: 0 1.1rem 1rem !important;
  color: #495057 !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
}

/* Related products grid */
.single-product .related ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.5rem !important;
}

/* Responsive */
@media (max-width: 991px) {
  .single-product .phu-sp-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .single-product .phu-sp-quote-inner {
    grid-template-columns: 1fr !important;
  }
  .single-product .phu-sp-nav {
    top: 60px !important;
  }
  .single-product .related ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 575px) {
  .single-product .phu-sp-chips {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .single-product .phu-sp-trust {
    grid-template-columns: 1fr !important;
  }
  .single-product .phu-gallery-thumbs li,
  .single-product .phu-gallery-thumb {
    width: 60px !important;
    height: 60px !important;
    flex-basis: 60px !important;
  }
  .single-product .related ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* Gallery zoom is a button now */
.single-product .phu-gallery-zoom {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  cursor: zoom-in !important;
  line-height: 0 !important;
}

.single-product .phu-gallery-main {
  position: relative !important;
  min-height: 280px !important;
}

.single-product .phu-gallery-slide {
  display: none !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.single-product .phu-gallery-slide.is-active {
  display: block !important;
  position: relative !important;
}

.single-product .phu-gallery-slide[hidden] {
  display: none !important;
}

.single-product .phu-gallery-thumb-btn {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.single-product .phu-gallery-thumbs {
  pointer-events: auto !important;
  z-index: 2 !important;
  position: relative !important;
}


.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* ========== POPUP GALLERY LIGHTBOX ========== */
body.phu-lightbox-open {
  overflow: hidden !important;
}

#phu-lightbox.phu-lightbox {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background: rgba(0, 0, 0, 0.92) !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

#phu-lightbox.phu-lightbox.is-open {
  display: flex !important;
}

#phu-lightbox .phu-lightbox-inner {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#phu-lightbox .phu-lightbox-img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  user-select: none;
  pointer-events: none;
}

/* Big circular close (X) button */
#phu-lightbox .phu-lightbox-close {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,0.85) !important;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
  font-size: 1.75rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 1000001 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  transition: background 0.2s, transform 0.15s;
}

#phu-lightbox .phu-lightbox-close:hover {
  background: #FF8040 !important;
  border-color: #FF8040 !important;
  transform: scale(1.05);
}

#phu-lightbox .phu-lightbox-prev,
#phu-lightbox .phu-lightbox-next {
  position: fixed !important;
  top: 50% !important;
  transform: translateY(-50%);
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  z-index: 1000001 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#phu-lightbox .phu-lightbox-prev { left: 1rem !important; }
#phu-lightbox .phu-lightbox-next { right: 1rem !important; }

#phu-lightbox .phu-lightbox-prev:hover,
#phu-lightbox .phu-lightbox-next:hover {
  background: #001BB7 !important;
}

#phu-lightbox .phu-lightbox-counter {
  position: fixed !important;
  bottom: 1.25rem !important;
  left: 50% !important;
  transform: translateX(-50%);
  color: #fff !important;
  font-size: 0.9rem !important;
  font-family: Roboto, sans-serif !important;
  background: rgba(0,0,0,0.45);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  z-index: 1000001 !important;
}

@media (max-width: 640px) {
  #phu-lightbox .phu-lightbox-prev { left: 0.5rem !important; }
  #phu-lightbox .phu-lightbox-next { right: 0.5rem !important; }
  #phu-lightbox .phu-lightbox-close {
    top: 0.65rem !important;
    right: 0.65rem !important;
    width: 44px !important;
    height: 44px !important;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* ---- Mobile product page polish ---- */
@media (max-width: 991px) {
  .single-product .phu-sp-hero {
    padding: 0.75rem 0 1.25rem !important;
  }

  .single-product .phu-sp-hero-grid {
    gap: 1.25rem !important;
  }

  .single-product .phu-sp-title {
    font-size: 1.35rem !important;
  }

  .single-product .phu-sp-price .price {
    font-size: 1.35rem !important;
  }

  .single-product .phu-sp-chips {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
  }

  .single-product .phu-sp-chips li {
    padding: 0.5rem 0.25rem !important;
  }

  .single-product .phu-sp-chips li strong {
    font-size: 0.9rem !important;
  }

  .single-product .phu-sp-chips li span {
    font-size: 0.6rem !important;
  }

  /* CTAs: full width stacked, comfortable tap targets */
  .single-product .phu-sp-ctas .phu-product-ctas,
  .single-product .phu-sp-ctas .phu-dual-ctas,
  .single-product .phu-sp-ctas form.cart {
    flex-direction: column !important;
    width: 100% !important;
  }

  .single-product .phu-sp-ctas .button,
  .single-product .phu-sp-ctas .phu-btn,
  .single-product .phu-sp-ctas .single_add_to_cart_button {
    width: 100% !important;
    flex: 1 1 100% !important;
    min-height: 50px !important;
    max-width: 100% !important;
  }

  .single-product .phu-sp-ctas .quantity {
    width: 100% !important;
    margin-bottom: 0.35rem !important;
  }

  .single-product .phu-sp-trust {
    grid-template-columns: 1fr !important;
    gap: 0.45rem !important;
  }

  .single-product .phu-sp-nav {
    top: 56px !important;
  }

  .single-product .phu-sp-nav ul {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 0.25rem !important;
    padding: 0.5rem 0 !important;
  }

  .single-product .phu-sp-nav a {
    white-space: nowrap !important;
    font-size: 0.8rem !important;
    padding: 0.4rem 0.65rem !important;
  }

  .single-product .phu-sp-nav-cta {
    margin-left: 0 !important;
  }

  .single-product .phu-sp-section {
    padding: 2rem 0 !important;
  }

  .single-product .phu-sp-section-head h2 {
    font-size: 1.2rem !important;
  }

  .single-product .phu-gallery-main {
    aspect-ratio: 1 / 1 !important;
    border-radius: 10px !important;
  }

  .single-product .phu-gallery-thumbs li,
  .single-product .phu-gallery-thumb {
    width: 56px !important;
    height: 56px !important;
    flex-basis: 56px !important;
  }
}

@media (max-width: 400px) {
  .single-product .phu-sp-chips {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
