/* ═══════════════════════════════════════════════════
   PRODUCT PAGE  ·  Maximus 3D Printing
   Page-specific styles — loaded after style.css
   ═══════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════ */
.pg-crumb-bar {
  background: var(--off);
  padding: 18px 0;
  border-bottom: 1px solid rgba(var(--navy-rgb),0.07);
}
.pg-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--fb);
  font-weight: 600;
  font-size: 0.82rem;
}
.pg-crumb a { color: var(--muted-text); transition: color 0.2s; }
.pg-crumb a:hover { color: var(--blue); }
.pg-crumb span { color: var(--muted-text); }
.pg-crumb-current { color: var(--navy) !important; font-weight: 700; }

/* ════════════════════════════════════════════════
   MAIN LAYOUT
   ════════════════════════════════════════════════ */
.pg-main-section { background: var(--white); padding: 44px 0 40px; }

.pg-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

/* ════════════════════════════════════════════════
   GALLERY / SLIDER
   ════════════════════════════════════════════════ */
.pg-gallery { position: sticky; top: 100px; }

.pg-main {
  position: relative;
  border-radius: var(--r24);
  overflow: hidden;
  background: var(--off);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.pg-main-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.pg-main:hover .pg-main-img { transform: scale(1.04); }

.pg-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--pill);
}
.pg-badge:empty { display: none; }

/* Small "click to open gallery" affordance — replaces the old
   floating arrow/expand buttons, which felt heavy and unnecessary
   since the whole image is clickable. */
.pg-zoom-hint {
  position: absolute;
  bottom: 14px; right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--navy-rgb),0.6);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 7px 13px;
  border-radius: var(--pill);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
}
.pg-main:hover .pg-zoom-hint { opacity: 1; transform: translateY(0); }

.pg-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pg-thumb {
  display: block;
  width: 68px; height: 68px;
  border-radius: 12px;
  overflow: hidden;
  border: 2.5px solid transparent;
  background: var(--off);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s;
}
.pg-thumb:hover { transform: translateY(-2px); }
.pg-thumb.active { border-color: var(--yellow); }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ════════════════════════════════════════════════
   INFO PANEL
   ════════════════════════════════════════════════ */
.pg-category {
  display: inline-block;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--blue);
  background: rgba(var(--navy-rgb),0.08);
  padding: 5px 14px;
  border-radius: var(--pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.pg-title {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 10px;
}

.pg-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.pg-stars { color: var(--yellow-dk); font-size: 0.95rem; letter-spacing: 2px; }
.pg-rating-text { font-size: 0.84rem; font-weight: 600; color: var(--muted-text); }

.pg-price {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--navy);
  margin-bottom: 18px;
}
.pg-price::before { content: "From "; font-size: 1rem; font-weight: 600; color: var(--muted-text); }

.pg-desc {
  font-size: 1rem;
  color: var(--muted-text);
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 480px;
}

/* ── Colour swatches ──────────────────────────────── */
.pg-colors { margin-bottom: 26px; }
.pg-colors-label {
  display: block;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.pg-colors-label strong { color: var(--blue); }
.pg-swatches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  padding: 3px;
  position: relative;
  transition: transform 0.2s;
}
.pg-swatch:hover { transform: scale(1.1); }
.pg-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(var(--navy-rgb),0.12); }
.pg-swatch.active { border-color: var(--navy); }
.pg-swatch.active::after {
  content: '';
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
}

/* ── Quantity + Add to cart ───────────────────────── */
.pg-qty-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pg-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--off);
  border-radius: var(--pill);
  padding: 4px;
  flex-shrink: 0;
}
.pg-qty button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(var(--navy-rgb),0.15);
  transition: background 0.2s, color 0.2s;
}
.pg-qty button:hover { background: var(--navy); color: var(--yellow); }
.pg-qty span { min-width: 28px; text-align: center; font-family: var(--fd); font-weight: 800; color: var(--navy); }

.pg-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--fb);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--pill);
  border: none;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s, background 0.22s, color 0.22s;
}
.pg-add:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(var(--yellow-rgb),0.4); }
.pg-add.pg-added { background: #1a5c35; color: var(--white); }

.pg-custom-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 26px;
  font-family: var(--fb);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--muted-text);
  transition: color 0.2s;
}
.pg-custom-link svg { flex-shrink: 0; }
.pg-custom-link:hover { color: var(--blue); }

/* ── Trust row ────────────────────────────────────── */
.pg-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--off);
  border-radius: var(--r16);
  padding: 16px;
  margin-bottom: 28px;
}
.pg-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: var(--navy);
}
.pg-trust-item span { font-size: 0.7rem; font-weight: 700; line-height: 1.3; color: var(--muted-text); }

/* ── Details accordion (reuses .faq-item) ─────────── */
.pg-details-list { display: flex; flex-direction: column; gap: 10px; }
.pg-bullets { padding: 0 22px 20px; margin: 0; }
.pg-bullets li {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.7;
  padding-left: 18px;
  position: relative;
}
.pg-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow-dk);
}

/* ════════════════════════════════════════════════
   GLIGHTBOX — small brand touch-ups over the library defaults
   ════════════════════════════════════════════════ */
.gscrollbar-fixer { overflow: hidden; }
.glightbox-clean .gslide-description { background: transparent; }
.gbtn.gclose, .gbtn.gnext, .gbtn.gprev {
  background: rgba(var(--white-rgb),0.1) !important;
}
.gbtn.gclose:hover, .gbtn.gnext:hover, .gbtn.gprev:hover {
  background: var(--yellow) !important;
}
.gbtn.gclose:hover svg, .gbtn.gnext:hover svg, .gbtn.gprev:hover svg { fill: var(--navy) !important; }

/* ════════════════════════════════════════════════
   RELATED PRODUCTS
   ════════════════════════════════════════════════ */
.pg-related { background: var(--off); padding: 72px 0 88px; border-top: 1px solid rgba(var(--navy-rgb),0.07); min-height: 200px; }
.pg-related-header { margin-bottom: 32px; }
.pg-related .products-grid .product-card { opacity: 1 !important; transform: none !important; }

/* ════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .pg-layout { grid-template-columns: 1fr; gap: 32px; }
  .pg-gallery { position: static; }
  .pg-main { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .pg-main-section { padding: 28px 0 8px; }
  .pg-thumb { width: 54px; height: 54px; }
  .pg-title { font-size: 1.7rem; }
  .pg-price { font-size: 1.7rem; }
  .pg-add { min-width: 100%; }
  .pg-trust { grid-template-columns: 1fr; }
  .pg-trust-item { flex-direction: row; justify-content: flex-start; text-align: left; }
}
