/* ===== JK INNOVATION - Product Detail Page Styles ===== */
:root {
  --jk-navy: #1B2A4A;
  --jk-navy-light: #2A3F6A;
  --jk-navy-dark: #0F1A30;
  --jk-steel: #4A5568;
  --jk-steel-light: #718096;
  --jk-steel-muted: #A0AEC0;
  --jk-gold: #D4A543;
  --jk-gold-light: #E8C675;
  --jk-gold-dark: #B8892F;
  --jk-white: #FFFFFF;
  --jk-bg: #F7FAFC;
  --jk-bg-warm: #FFFDF7;
  --jk-border: #E2E8F0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(27,42,74,0.08);
  --shadow-md: 0 4px 12px rgba(27,42,74,0.12);
  --shadow-lg: 0 8px 30px rgba(27,42,74,0.16);
  --shadow-xl: 0 16px 50px rgba(27,42,74,0.2);
  --max-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--jk-steel);
  background: var(--jk-white);
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(27,42,74,0.97);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jk-logo { height: 36px; color: var(--jk-white); }
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.nav-back:hover { color: var(--jk-gold); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-right a {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.nav-right a:hover { color: var(--jk-gold); }

/* ===== PRODUCT HERO ===== */
.product-hero {
  padding: 8rem 0 3rem;
  background: linear-gradient(135deg, var(--jk-navy-dark) 0%, var(--jk-navy) 100%);
  color: var(--jk-white);
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(212,165,67,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,165,67,0.04) 0%, transparent 50%);
}
.product-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}
.product-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--jk-steel-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover { color: var(--jk-gold); }
.breadcrumb .sep { color: var(--jk-steel-muted); }
.breadcrumb .current { color: var(--jk-gold); }
.product-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.product-hero h1 .gold { color: var(--jk-gold); }
.product-hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 700px;
  line-height: 1.7;
}
.hero-tags {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(212,165,67,0.12);
  border: 1px solid rgba(212,165,67,0.25);
  border-radius: 100px;
  color: var(--jk-gold-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
}
.hero-tag i { font-size: 0.75rem; }

/* ===== GALLERY SECTION ===== */
.gallery-section {
  padding: 4rem 0;
  background: var(--jk-bg);
}
.gallery-section .section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--jk-navy);
  margin-bottom: 2rem;
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--jk-white);
  border: 1px solid var(--jk-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--jk-gold);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item .caption {
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--jk-navy);
  background: var(--jk-white);
  border-top: 1px solid var(--jk-border);
}
.gallery-item .zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(27,42,74,0.7);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .zoom-icon { opacity: 1; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { background: rgba(212,165,67,0.4); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  white-space: nowrap;
}
.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== PRODUCT INFO ===== */
.product-info {
  padding: 4rem 0;
}
.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.info-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--jk-navy);
  margin-bottom: 1rem;
}
.info-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--jk-steel);
}
.spec-list {
  list-style: none;
  margin-top: 1.5rem;
}
.spec-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--jk-border);
  font-size: 0.95rem;
}
.spec-list li i {
  color: var(--jk-gold);
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
}
.spec-list li strong {
  color: var(--jk-navy);
  font-weight: 600;
  min-width: 140px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 3rem 0 4rem;
}
.cta-box {
  background: linear-gradient(135deg, var(--jk-navy-dark) 0%, var(--jk-navy) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  color: var(--jk-white);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(212,165,67,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.cta-box .container { position: relative; z-index: 2; }
.cta-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cta-box p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.btn-primary {
  background: var(--jk-gold);
  color: var(--jk-navy-dark);
}
.btn-primary:hover {
  background: var(--jk-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212,165,67,0.4);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-outline {
  background: transparent;
  color: var(--jk-white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: var(--jk-gold);
  color: var(--jk-gold);
  transform: translateY(-2px);
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RELATED PRODUCTS ===== */
.related-section {
  padding: 4rem 0;
  background: var(--jk-bg);
}
.related-section .section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--jk-navy);
  margin-bottom: 2rem;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.related-card {
  background: var(--jk-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--jk-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: block;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--jk-gold);
}
.related-card .card-icon {
  height: 120px;
  background: linear-gradient(135deg, var(--jk-navy) 0%, var(--jk-navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(212,165,67,0.3);
}
.related-card .card-body {
  padding: 1rem 1.25rem;
}
.related-card .card-body h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--jk-navy);
  margin-bottom: 0.25rem;
}
.related-card .card-body p {
  font-size: 0.82rem;
  color: var(--jk-steel-light);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--jk-navy-dark);
  color: var(--jk-steel-muted);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner p { font-size: 0.85rem; }
.footer-inner a {
  color: var(--jk-gold);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-inner a:hover { color: var(--jk-gold-light); }

/* ===== SPEC TABLE ===== */
.spec-table-section {
  padding: 4rem 0;
  background: var(--jk-bg);
}
.spec-table-section .section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--jk-navy);
  margin-bottom: 0.5rem;
  text-align: center;
}
.spec-table-section .section-subtitle {
  text-align: center;
  color: var(--jk-steel-light);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.spec-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--jk-border);
  box-shadow: var(--shadow-md);
  background: var(--jk-white);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.spec-table thead {
  background: linear-gradient(135deg, var(--jk-navy-dark) 0%, var(--jk-navy) 100%);
}
.spec-table thead th {
  padding: 1rem 1.25rem;
  color: var(--jk-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--jk-gold);
}
.spec-table tbody tr {
  border-bottom: 1px solid var(--jk-border);
  transition: background 0.2s;
}
.spec-table tbody tr:hover {
  background: rgba(212, 165, 67, 0.04);
}
.spec-table tbody tr:last-child {
  border-bottom: none;
}
.spec-table td {
  padding: 0.9rem 1.25rem;
  vertical-align: top;
  line-height: 1.6;
}
.spec-table td:first-child {
  font-weight: 600;
  color: var(--jk-navy);
  white-space: nowrap;
}
.spec-table .highlight-row {
  background: rgba(212, 165, 67, 0.06);
}
.spec-table .weight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  background: rgba(27, 42, 74, 0.06);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--jk-navy);
}
.spec-table .includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spec-table .includes-list li {
  padding: 0.15rem 0;
  font-size: 0.85rem;
  color: var(--jk-steel);
}
.spec-table .includes-list li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--jk-gold);
  margin-right: 0.5rem;
  font-size: 0.7rem;
}
.spec-table .type-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--jk-gold);
  color: var(--jk-navy-dark);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.spec-table .type-badge--alt {
  background: var(--jk-navy);
  color: var(--jk-white);
}

/* Size selector tabs */
.size-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.size-tab {
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--jk-border);
  border-radius: 100px;
  background: var(--jk-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--jk-steel);
  cursor: pointer;
  transition: all 0.3s;
}
.size-tab:hover {
  border-color: var(--jk-navy);
  color: var(--jk-navy);
}
.size-tab.active {
  background: var(--jk-navy);
  color: var(--jk-white);
  border-color: var(--jk-navy);
}

/* Info box highlight */
.info-highlight {
  padding: 1.25rem 1.5rem;
  background: var(--jk-bg-warm);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212,165,67,0.2);
  margin-top: 1.5rem;
}
.info-highlight h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--jk-navy);
  margin-bottom: 0.5rem;
}
.info-highlight h4 i {
  color: var(--jk-gold);
  margin-right: 0.5rem;
}
.info-highlight p {
  font-size: 0.9rem;
  color: var(--jk-steel);
  line-height: 1.6;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 2rem 1.5rem; }
  .nav-right { display: none; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .related-grid { grid-template-columns: 1fr; }
  .lightbox-nav { display: none; }
}
