/* ============================================================
   GoldenThumbRise – Products Catalog & Detail Page Styles
   ============================================================ */

/* ===== PAGE HERO (shared) ===== */
.page-hero {
  padding: 130px 0 50px;
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(201,168,76,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.breadcrumb {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover { color: var(--gold); }

.breadcrumb > span {
  color: rgba(255,255,255,0.25);
}

.breadcrumb .bc-current {
  color: var(--gold);
  font-weight: 600;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
}

.page-hero h1 span { color: var(--gold); }

.page-hero .hero-sub {
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
}

/* ===== CATEGORY TABS (products.html) ===== */
.cat-tabs-bar {
  padding: 28px 0 0;
}

.cat-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 11px 30px;
  background: transparent;
  border: 2px solid rgba(201,168,76,0.28);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.4px;
}

.cat-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cat-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
}

/* ===== SUBCATEGORY TABS ===== */
.subcat-bar {
  background: var(--dark-2);
  padding: 20px 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.subcat-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

.subcat-tab {
  padding: 8px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
}

.subcat-tab:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.4);
  color: var(--gold);
}

.subcat-tab.active {
  background: rgba(201,168,76,0.13);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

/* ===== CATALOG GRID ===== */
.catalog-section {
  padding: 40px 0 90px;
  background: var(--dark-2);
  min-height: 60vh;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 26px;
}

/* ===== CATALOG CARD ===== */
.catalog-card {
  background: var(--dark-card);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.catalog-card:hover {
  transform: translateY(-7px);
  border-color: rgba(201,168,76,0.55);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.15);
}

.catalog-card .card-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0d0d0d;
}

.catalog-card .card-media video,
.catalog-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.catalog-card:hover .card-media video,
.catalog-card:hover .card-media img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(201,168,76,0.92);
  color: #0a0a0a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.catalog-card .card-body {
  padding: 20px 22px 22px;
}

.card-sub {
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  font-weight: 700;
}

.catalog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.catalog-card .card-tagline {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-cta::after {
  content: '→';
  transition: transform 0.25s;
}

.catalog-card:hover .card-cta::after {
  transform: translateX(5px);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.empty-state p { color: rgba(255,255,255,0.3); }

/* ===== INDEX – CATEGORY SHOWCASE CARDS ===== */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.cat-showcase-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.cat-showcase-card video,
.cat-showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.cat-showcase-card:hover video,
.cat-showcase-card:hover img {
  transform: scale(1.07);
}

.cat-showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.9) 0%,
    rgba(0,0,0,0.45) 45%,
    rgba(0,0,0,0.08) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 26px;
  transition: background 0.35s;
}

.cat-showcase-card:hover .cat-showcase-overlay {
  background: linear-gradient(to top,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0.55) 45%,
    rgba(0,0,0,0.15) 100%
  );
}

.cat-showcase-icon {
  font-size: 2rem;
  margin-bottom: 6px;
  line-height: 1;
}

.cat-showcase-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.cat-showcase-overlay p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 18px;
}

.cat-showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  width: fit-content;
  letter-spacing: 0.5px;
  transition: background 0.25s, transform 0.25s;
}

.cat-showcase-card:hover .cat-showcase-btn {
  background: var(--gold-light);
  transform: translateX(4px);
}

.cat-product-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(201,168,76,0.85);
  color: #0a0a0a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.detail-wrapper {
  padding: 50px 0 90px;
  background: var(--dark-2);
}

/* ===== TOP LAYOUT: MEDIA + INFO ===== */
.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  margin-bottom: 70px;
}

@media (max-width: 920px) {
  .detail-top { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== STICKY MEDIA COLUMN ===== */
.detail-media {
  position: sticky;
  top: 96px;
}

.main-media {
  border-radius: 12px;
  overflow: hidden;
  background: #0d0d0d;
  aspect-ratio: 16/10;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.main-media video,
.main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumbs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.media-thumb {
  width: 82px;
  height: 62px;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
  background: #0d0d0d;
  flex-shrink: 0;
  opacity: 0.65;
}

.media-thumb video,
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.media-thumb.active,
.media-thumb:hover {
  border-color: var(--gold);
  opacity: 1;
}

/* ===== PRODUCT INFO PANEL ===== */
.detail-info {
  color: #fff;
}

.detail-sku {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.detail-name {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.13;
  margin-bottom: 16px;
  color: #fff;
}

.detail-tagline {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 22px;
  font-style: italic;
}

.detail-desc {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ===== KEY FEATURES ===== */
.detail-features {
  margin-bottom: 30px;
}

.detail-features h4 {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.detail-features ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
}

.detail-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.detail-enquire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 38px;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.detail-enquire:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201,168,76,0.32);
}

/* ===== DETAIL SECTIONS ===== */
.detail-section {
  margin-bottom: 52px;
}

.detail-section-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== MODELS TABLE ===== */
.table-wrap { overflow-x: auto; }

.models-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 480px;
}

.models-table th {
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  padding: 12px 18px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.76rem;
  border-bottom: 2px solid rgba(201,168,76,0.25);
}

.models-table td {
  padding: 12px 18px;
  color: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.models-table tr:last-child td { border-bottom: none; }

.models-table tr:hover td {
  background: rgba(201,168,76,0.04);
  color: rgba(255,255,255,0.88);
}

/* ===== SPECS TABLE ===== */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.specs-table tr:last-child { border-bottom: none; }

.specs-table td {
  padding: 13px 18px;
  color: rgba(255,255,255,0.7);
  vertical-align: middle;
}

.specs-table td:first-child {
  color: var(--gold);
  font-weight: 700;
  width: 38%;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.specs-table tr:nth-child(even) td {
  background: rgba(255,255,255,0.025);
}

/* ===== PDF DOWNLOADS ===== */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.pdf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 18px;
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
  text-align: center;
  cursor: pointer;
}

.pdf-card:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.06);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.pdf-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.pdf-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  line-height: 1.35;
}

.pdf-action {
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.no-content {
  color: rgba(255,255,255,0.3);
  font-style: italic;
  font-size: 0.9rem;
  padding: 16px 0;
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.25s;
  margin-bottom: 30px;
}

.back-link:hover { color: var(--gold); }

.back-link::before { content: '←'; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .category-cards { grid-template-columns: 1fr; }
  .catalog-grid   { grid-template-columns: 1fr; }
  .pdf-grid       { grid-template-columns: repeat(2, 1fr); }
  .page-hero      { padding: 110px 0 40px; }
  .detail-wrapper { padding: 30px 0 60px; }
}
