/* ==========================================================================
   MAK LIGHTING - PRODUCT DETAIL STYLESHEET (SU316)
   Visual Source of Truth: design/page-con.png
   White Architectural Content Body with Dark Header & Footer
   ========================================================================== */

:root {
  --pd-bg-white: #ffffff;
  --pd-bg-subtle: #f8fafc;
  --pd-border: #e2e8f0;
  --pd-border-hover: #cbd5e1;
  --pd-text-main: #0f172a;
  --pd-text-muted: #475569;
  --pd-text-gray: #64748b;
  --pd-primary: #2563eb;
  --pd-primary-hover: #1d4ed8;
  --pd-primary-light: #eff6ff;
  --pd-primary-border: #bfdbfe;
}

/* Base Body Color on Product Detail Page */
body.product-detail-page {
  background-color: var(--pd-bg-white);
  color: var(--pd-text-main);
}

/* Site Header (Always Dark on Product Detail Page) */
.product-detail-page .site-header {
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .product-detail-page .site-header {
    padding: 12px 0;
  }
}

/* Breadcrumbs Bar */
.breadcrumbs-bar {
  padding-top: 96px;
  padding-bottom: 14px;
  background-color: var(--pd-bg-white);
  border-bottom: 1px solid var(--pd-border);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--pd-text-gray);
  flex-wrap: wrap;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs-item a {
  color: var(--pd-text-gray);
  transition: color var(--transition-fast);
}

.breadcrumbs-item a:hover {
  color: var(--pd-primary);
}

.breadcrumbs-separator {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.breadcrumbs-item.active {
  color: var(--pd-text-main);
  font-weight: 600;
}

/* Product Detail Main Section */
.product-detail-section {
  padding: 36px 0 70px;
  background-color: var(--pd-bg-white);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Left Column: Media Slider & Tabs
   -------------------------------------------------------------------------- */
.product-media-col {
  display: flex;
  flex-direction: column;
}

/* Main Interactive Viewer */
.main-image-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--pd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  user-select: none;
  touch-action: pan-y;
}

.slide-image-track {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

/* Expand Button */
.btn-expand-img {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.btn-expand-img:hover {
  background: var(--pd-primary);
  border-color: var(--pd-primary);
  transform: scale(1.08);
}

/* Slide Prev/Next Navigation Buttons */
.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 4;
}

.slide-nav-btn.slide-prev {
  left: 12px;
}

.slide-nav-btn.slide-next {
  right: 12px;
}

.slide-nav-btn:hover {
  background: var(--pd-primary);
  border-color: var(--pd-primary);
  transform: translateY(-50%) scale(1.08);
}

/* Slide Dots Indicator */
.slide-dots-indicator {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 4;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.25s ease;
  cursor: pointer;
}

.slide-dot.active {
  background: #38bdf8;
  width: 18px;
  border-radius: 10px;
}

/* Thumbnails Strip */
.thumbnails-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.55fr;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 34px;
}

.thumb-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid var(--pd-border);
  background: var(--pd-bg-white);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.thumb-item.wide-thumb {
  aspect-ratio: auto;
  height: 100%;
}

.thumb-item:hover {
  border-color: #94a3b8;
  transform: translateY(-2px);
}

.thumb-item.active {
  border-color: var(--pd-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Tabs Section
   -------------------------------------------------------------------------- */
.product-tabs-container {
  border-top: 1px solid var(--pd-border);
  padding-top: 24px;
}

.tabs-nav-bar {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--pd-border);
  margin-bottom: 24px;
}

.tab-nav-btn {
  background: transparent;
  color: var(--pd-text-gray);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
  text-transform: uppercase;
}

.tab-nav-btn:hover {
  color: var(--pd-text-main);
}

.tab-nav-btn.active {
  color: var(--pd-primary);
}

.tab-nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background-color: var(--pd-primary);
}

.tab-content-panel {
  display: none;
  animation: fadeInTab 0.25s ease forwards;
}

.tab-content-panel.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Description Tab Layout */
.tab-desc-layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: start;
}

.tab-desc-text {
  font-size: 0.92rem;
  color: var(--pd-text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.tab-desc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-desc-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--pd-text-main);
}

.tab-desc-features li::before {
  content: '•';
  color: var(--pd-primary);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

.tab-dimensions-box {
  background: var(--pd-bg-subtle);
  border: 1px solid var(--pd-border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tab-dimensions-box img {
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.tab-dimensions-box span {
  font-size: 0.75rem;
  color: var(--pd-text-gray);
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

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

.specs-table td {
  padding: 12px 14px;
  font-size: 0.88rem;
}

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

.specs-table td:last-child {
  color: var(--pd-text-main);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Right Column: Meta, Badges, Summary & Downloads (page-con.png)
   -------------------------------------------------------------------------- */
.product-info-col {
  display: flex;
  flex-direction: column;
}

.product-category-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pd-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title-large {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--pd-text-main);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.product-subtitle-tag {
  font-size: 1.1rem;
  color: var(--pd-text-muted);
  font-weight: 400;
  margin-bottom: 24px;
}

/* 4 Circular Spec Badges */
.spec-badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--pd-border);
}

.spec-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spec-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--pd-primary);
  color: var(--pd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 8px;
  background: var(--pd-primary-light);
}

.spec-badge-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pd-text-main);
  margin-bottom: 2px;
}

.spec-badge-desc {
  font-size: 0.7rem;
  color: var(--pd-text-gray);
  line-height: 1.25;
}

/* Product Summary Paragraph */
.product-summary-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 30px;
}

/* Downloads Section */
.downloads-block {
  display: flex;
  flex-direction: column;
}

.downloads-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--pd-text-main);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--pd-bg-white);
  border: 1px solid var(--pd-border);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.download-item-row:hover {
  background: var(--pd-primary-light);
  border-color: var(--pd-primary-border);
  transform: translateX(3px);
}

.download-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.download-file-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--pd-primary-light);
  border: 1px solid var(--pd-primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pd-primary);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.download-item-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pd-text-main);
}

.download-item-meta {
  font-size: 0.75rem;
  color: var(--pd-text-gray);
  margin-top: 1px;
}

.download-action-btn {
  color: var(--pd-primary);
  transition: transform var(--transition-fast);
  display: flex;
  align-items: center;
}

.download-item-row:hover .download-action-btn {
  transform: translateY(2px);
}

/* ==========================================================================
   3. RESPONSIVE MOBILE & TABLET (Ultra-smooth & standard layout)
   ========================================================================== */
@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tab-desc-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .thumbnails-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 4px;
  }

  .thumbnails-strip::-webkit-scrollbar {
    display: none;
  }

  .thumb-item {
    flex: 0 0 76px;
    height: 76px;
    scroll-snap-align: start;
  }

  .thumb-item.wide-thumb {
    flex: 0 0 100px;
  }

  .spec-badges-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 576px) {
  .breadcrumbs-bar {
    padding-top: 85px;
    padding-bottom: 12px;
  }

  .breadcrumbs-list {
    font-size: 0.78rem;
    gap: 6px;
  }

  .product-detail-section {
    padding: 20px 0 40px;
  }

  .product-title-large {
    font-size: 2rem;
  }

  .product-subtitle-tag {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .main-image-viewer {
    aspect-ratio: 1 / 0.85;
    border-radius: 6px;
  }

  .slide-nav-btn {
    width: 34px;
    height: 34px;
  }

  .slide-nav-btn.slide-prev {
    left: 8px;
  }

  .slide-nav-btn.slide-next {
    right: 8px;
  }

  .thumb-item {
    flex: 0 0 64px;
    height: 64px;
  }

  .thumb-item.wide-thumb {
    flex: 0 0 88px;
  }

  .tabs-nav-bar {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 18px;
    margin-bottom: 18px;
  }

  .tabs-nav-bar::-webkit-scrollbar {
    display: none;
  }

  .tab-nav-btn {
    font-size: 0.82rem;
    padding-bottom: 10px;
  }

  .spec-badges-row {
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .download-item-row {
    padding: 10px 14px;
  }

  .download-item-name {
    font-size: 0.88rem;
  }
}

/* --------------------------------------------------------------------------
   Small Mobile Devices Breakpoint (<= 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
  .breadcrumbs-bar {
    padding-top: 78px;
    font-size: 0.74rem;
  }

  .product-title-large {
    font-size: 1.7rem;
  }

  .product-subtitle-tag {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .main-image-viewer {
    aspect-ratio: 1 / 0.9;
  }

  .thumb-item {
    flex: 0 0 56px;
    height: 56px;
  }

  .thumb-item.wide-thumb {
    flex: 0 0 76px;
  }

  .tab-desc-text {
    font-size: 0.85rem;
  }

  .tab-desc-features li {
    font-size: 0.82rem;
  }

  .spec-badge-icon {
    width: 40px;
    height: 40px;
    font-size: 0.72rem;
  }

  .spec-badge-title {
    font-size: 0.78rem;
  }

  .spec-badge-desc {
    font-size: 0.66rem;
  }

  .product-summary-text {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .download-item-row {
    padding: 9px 12px;
  }

  .download-item-name {
    font-size: 0.84rem;
  }

  .download-item-meta {
    font-size: 0.7rem;
  }
}

/* ==========================================================================
   4. FOOTER HOMEPAGE SYNCHRONIZATION GUARANTEE
   ========================================================================== */
.site-footer {
  background: #020304 !important;
  color: #ffffff !important;
}

.site-footer .footer-copy-text {
  color: #64748b !important;
}

.site-footer .footer-bottom-links a {
  color: #64748b !important;
}

.site-footer .footer-bottom-links a:hover {
  color: #ffffff !important;
}

