/* ============================================
   PRODUCT CATALOG & DETAIL PAGE
   ============================================ */

/* ---- Product Catalog Section ---- */
.product-catalog-section {
  background: var(--dark);
  padding: 8rem 0 6rem;
}

.product-hero-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.6rem 1.8rem;
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--glass-border);
}

.product-hero-copy {
  max-width: 720px;
}

.product-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.product-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-nav-link.active,
.product-nav-link:hover {
  background: rgba(201, 168, 76, 0.16);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.28);
}

/* ---- Catalog Grid ---- */
.product-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-catalog-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.35s ease;
}

.product-catalog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.product-catalog-link {
  text-decoration: none;
  color: inherit;
}

.product-card-image {
  border-radius: 16px;
  overflow: hidden;
  min-height: 210px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.product-catalog-card .product-category {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.product-catalog-card .product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1.35;
}

.product-subtitle {
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.product-catalog-card .btn-primary-gold {
  margin-top: auto;
  justify-content: center;
}

/* ---- Brand Row ---- */
.product-brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.9rem;
  border-radius: 14px;
}

.product-brand-logo {
  width: 100%;
  min-height: 120px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.product-brand-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 120px;
  display: block;
}

.product-brand-name {
  font-weight: 600;
  color: var(--light);
  text-align: center;
  font-size: 0.9rem;
}

/* ---- Product Detail Layout (OLD - keep for backward compat) ---- */
.product-detail-section {
  background: var(--dark);
  padding: 8rem 0 6rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.product-detail-sidebar {
  position: sticky;
  top: 100px;
  padding: 1.25rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.product-side-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.product-side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.product-side-item:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateX(4px);
}

.product-main-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.product-hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 320px;
}

.product-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.product-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 14, 0.8), transparent 60%);
}

.product-brand-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-brand-card .product-hero-badge {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.product-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  color: var(--primary);
}

.product-feature-item i {
  color: var(--gold);
  margin-top: 0.2rem;
}

.product-contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.product-contact-card a {
  color: var(--light);
  text-decoration: none;
}

.product-contact-card a:hover {
  color: var(--gold);
}

/* ---- Product Images Grid (3 images like service details) ---- */
.product-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.product-image-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.product-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-image-item:hover img {
  transform: scale(1.05);
}

/* ---- Product Category Badge (pill style) ---- */
.product-hero-badge {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(201, 168, 76, 0.1);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  margin-bottom: 20px;
}

/* ---- Product Brand Row Compact ---- */
.product-brand-row-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.product-brand-logo-sm {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 2/1;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.product-brand-logo-sm img {
  width: auto;
  height: auto;
  max-width: 400px;
  max-height: 200px;
  display: block;
}

.product-brand-name-sm {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  text-align: center;
  display: none;
}

/* ---- Product Info Flex Row ---- */
.product-info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ---- Product CTA Section ---- */
.product-cta-section {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-cta-section .product-contact-card {
  width: 100%;
}

.product-detail-section-new {
  background: var(--dark);
  padding: 8rem 0 6rem;
}

/* ---- Brand Info Line (for detail page) ---- */
.product-brand-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ---- Product Detail Info ---- */
.product-detail-description {
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ============================================
   UTILITY CLASSES FOR REPLACED INLINE STYLES
   ============================================ */

.gold-line-center {
  margin: 1.5rem auto;
}

.section-body-center {
  margin: 0 auto;
  text-align: center;
  max-width: 800px;
}

.service-detail-cta-margin-top {
  margin-top: 2.5rem;
}

.product-info-row-gap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.contact-card-full-width {
  width: 100%;
}

.contact-links-column {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-subtitle-margin {
  margin-top: 0.3rem;
}

.gold-line-margin-bottom {
  margin-bottom: 2rem;
}

.product-contact-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-label-margin-lg {
  margin-bottom: 1.5rem;
  display: block;
}

.section-label-margin-sm {
  margin-bottom: 1rem;
}

.footer-contact-text {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer-contact-mt {
  margin-top: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
  .product-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-sidebar {
    position: relative;
    top: 0;
  }

  .product-hero-grid {
    grid-template-columns: 1fr;
  }

  .product-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-image-item {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .product-catalog-grid {
    grid-template-columns: 1fr;
  }

  .product-hero-banner {
    padding: 1.2rem;
  }

  .product-card-image,
  .product-card-image img {
    min-height: 180px;
  }

  .product-gallery-grid,
  .product-feature-list {
    grid-template-columns: 1fr;
  }

  .product-main-card {
    padding: 1.25rem;
  }

  .product-contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-images-grid {
    grid-template-columns: 1fr;
  }

  .product-image-item {
    height: 240px;
  }

  .product-brand-logo-sm {
    max-width: 100%;
    height: auto;
    aspect-ratio: 2/1;
  }

  .product-brand-logo-sm img {
    max-width: 100%;
    max-height: 120px;
  }

  .product-brand-row-compact {
    padding: 1rem 0.75rem;
  }
}
