/* ============================================
   GPI Trailers — Single Product Page Styles
   ============================================ */

/* --- Product Summary Hero --- */
.product-single {
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.product-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}

.product-summary-info {
  position: relative;
}

.product-summary-info .product-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  display: block;
}

.product-summary-info h1 {
  margin-bottom: var(--space-sm);
}

.product-summary-info .product-subtitle {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.product-summary-info .product-description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 32rem;
}

.product-cta-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Summary spec quick list */
.product-summary-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm) var(--space-lg);
  margin: var(--space-lg) 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.product-summary-spec {
  display: flex;
  flex-direction: column;
}

.product-summary-spec-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.product-summary-spec-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Product image panel (right side) — now acts as gallery */
.product-summary-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.product-summary-visual .watermark {
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.85;
  text-align: center;
  color: var(--color-watermark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.product-summary-visual .gallery-main-image {
  position: relative;
  z-index: 2;
  max-height: 380px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

/* Gallery controls inside the hero panel */
.product-hero-gallery-controls {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.product-hero-gallery-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-hero-gallery-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.product-hero-gallery-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Thumbnails in hero */
.product-hero-thumbs {
  display: flex;
  gap: var(--space-sm);
  position: relative;
  z-index: 2;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.product-hero-thumb {
  width: 3.5rem;
  height: 3.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background: var(--color-watermark);
  flex-shrink: 0;
}

.product-hero-thumb:hover {
  border-color: var(--color-primary);
}

.product-hero-thumb.is-active {
  border-color: var(--color-primary);
}

.product-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Tabbed Specs Section --- */
.specs-section {
  padding: var(--space-2xl) 0;
}

.specs-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.specs-tab {
  padding: var(--space-md) var(--space-xl);
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s ease;
}

.specs-tab:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.specs-tab.is-active {
  background: var(--color-primary);
}

.specs-tab:not(.is-active):hover {
  background: var(--color-secondary);
}

.specs-panel {
  display: none;
  max-width: 800px;
  margin: 0 auto;
}

.specs-panel.is-active {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

.specs-table tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.specs-table td {
  padding: var(--space-md) var(--space-lg);
  font-size: 0.95rem;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--color-text-muted);
  width: 40%;
}

.specs-table td:last-child {
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .product-summary {
    grid-template-columns: 1fr;
  }

  .product-summary-visual {
    order: -1;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .product-cta-buttons {
    flex-direction: column;
  }

  .product-cta-buttons .btn {
    width: 100%;
  }

  .specs-tabs {
    flex-direction: column;
  }

  .specs-tab {
    text-align: center;
  }

  .specs-table td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .product-summary-visual {
    min-height: 250px;
    padding: var(--space-md);
  }

  .product-hero-thumb {
    width: 2.75rem;
    height: 2.75rem;
  }
}