/* ============================================================
   PRODUK – produk.css
   Gaya: Profesional, Katalog Kelas Enterprise, Bersih
   ============================================================ */

/* ── Nav active state ── */
.prod-nav-active {
  color: #e21a1a !important;
  font-weight: 600 !important;
}

/* ── Wrapper umum ── */
.prod-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HERO PRODUK
   ============================================================ */
.prod-hero {
  position: relative;
  height: 380px;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.prod-hero-bg {
  position: absolute;
  inset: 0;
}

.prod-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.prod-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 44, 78, 0.85); /* Dark blue overlay */
}

.prod-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 24px;
}

.prod-hero-content h1 {
  font-family: 'Noto Sans Display', sans-serif;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.prod-hero-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.prod-breadcrumb {
  background: #f7f8fa;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 0;
}

.prod-breadcrumb .prod-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #777;
}

.prod-breadcrumb a {
  color: #0d2c4e;
  font-weight: 500;
  transition: color 0.2s;
}

.prod-breadcrumb a:hover {
  color: #e21a1a;
}

.prod-breadcrumb .sep {
  font-size: 10px;
  color: #ccc;
}

/* Detail page breadcrumb specific */
.prod-bc-detail {
  background: #fff;
  border-bottom: none;
  padding: 20px 0;
  margin-top: 60px; /* offset for fixed header */
}

/* ============================================================
   KATALOG PRODUK (Grid & Sidebar)
   ============================================================ */
.prod-catalog {
  padding: 60px 0 80px;
}

.prod-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

/* Sidebar */
.prod-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ps-widget h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0d2c4e;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

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

.ps-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #555;
  font-size: 14.5px;
  transition: color 0.2s;
}

.ps-list a:hover {
  color: #e21a1a;
}

.ps-list .ps-active {
  color: #e21a1a;
  font-weight: 600;
}

.ps-count {
  font-size: 13px;
  color: #999;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 12px;
}

.ps-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 14.5px;
  color: #555;
}

.ps-checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #e21a1a;
}

/* Main Area */
.pm-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 14px;
  color: #666;
}

.pm-sort select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  outline: none;
  cursor: pointer;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pm-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pm-card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  border-color: #ddd;
  transform: translateY(-4px);
}

.pm-card-img {
  padding: 32px 24px;
  background: #fafafa;
  text-align: center;
  position: relative;
}

.pm-card-img img {
  width: 100%;
  max-width: 160px;
  height: auto;
  transition: transform 0.4s ease;
}

.pm-card:hover .pm-card-img img {
  transform: scale(1.08);
}

.pm-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pm-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.pm-badge.wizsense { background: #e3f2fd; color: #1565c0; }
.pm-badge.wizmind { background: #f3e5f5; color: #7b1fa2; }
.pm-badge.project { background: #fff3e0; color: #e65100; }

.pm-model {
  font-family: 'Noto Sans Display', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #0d2c4e;
  margin-bottom: 8px;
}

.pm-desc {
  font-size: 13.5px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 24px;
  flex: 1;
}

.pm-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #f7f8fa;
  color: #0d2c4e;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
  border: 1px solid #e8e8e8;
}

.pm-btn:hover {
  background: #e21a1a;
  color: #fff;
  border-color: #e21a1a;
}

/* Pagination */
.pm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pm-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
  transition: all 0.2s;
}

.pm-page:hover {
  border-color: #0d2c4e;
  color: #0d2c4e;
}

.pm-page.active {
  background: #0d2c4e;
  color: #fff;
  border-color: #0d2c4e;
}

/* ============================================================
   DETAIL PRODUK 
   ============================================================ */
.pd-overview {
  padding: 20px 0 60px;
}

.pd-grid {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 64px;
}

/* Gallery */
.pd-main-img {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  margin-bottom: 16px;
}

.pd-main-img img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.pd-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.pd-badge.wizsense { background: #e3f2fd; color: #1565c0; }

.pd-thumb-list {
  display: flex;
  gap: 12px;
}

.pd-thumb {
  width: 80px;
  height: 80px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.pd-thumb.active {
  border: 2px solid #e21a1a;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Info */
.pd-info {
  padding-top: 10px;
}

.pd-model {
  font-family: 'Noto Sans Display', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #0d2c4e;
  margin-bottom: 8px;
}

.pd-title {
  font-size: 20px;
  font-weight: 500;
  color: #555;
  margin-bottom: 24px;
}

.pd-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.pd-features-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.pd-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: #333;
  line-height: 1.6;
}

.pd-features-list li i {
  color: #e21a1a;
  font-size: 16px;
  margin-top: 3px;
}

/* Tech icons row */
.pd-tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.tech-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  background: #fff;
}

.tech-icon strong { font-size: 14px; }

/* Actions */
.pd-actions {
  display: flex;
  gap: 16px;
}

.pd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 4px;
  transition: background 0.2s;
}

.pd-btn-primary:hover { background: #1daa61; }

.pd-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f7f8fa;
  color: #0d2c4e;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  transition: all 0.2s;
}

.pd-btn-secondary:hover {
  background: #0d2c4e;
  color: #fff;
  border-color: #0d2c4e;
}

/* ============================================================
   TABS SECTION
   ============================================================ */
.pd-tabs-section {
  padding: 0 0 80px;
}

.pd-tabs-nav {
  display: flex;
  gap: 40px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 40px;
}

.pd-tab-btn {
  background: transparent;
  border: none;
  padding: 0 0 16px 0;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.pd-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e21a1a;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.pd-tab-btn:hover { color: #0d2c4e; }
.pd-tab-btn.active { color: #0d2c4e; }
.pd-tab-btn.active::after { transform: scaleX(1); }

.pd-tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.pd-tab-pane.active {
  display: block;
}

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

/* Specification Tables */
.pd-spec-group {
  margin-bottom: 48px;
}

.pd-spec-title {
  font-size: 20px;
  font-weight: 700;
  color: #0d2c4e;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #e21a1a;
}

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

.pd-spec-table th,
.pd-spec-table td {
  padding: 16px 24px;
  border: 1px solid #e8e8e8;
  font-size: 14.5px;
  line-height: 1.6;
}

.pd-spec-table th {
  width: 30%;
  background: #f7f8fa;
  color: #444;
  font-weight: 600;
  text-align: left;
}

.pd-spec-table td {
  color: #555;
  background: #fff;
}

/* Accessories Tab */
.pd-acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.pd-acc-card {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
}

.pd-acc-card i {
  font-size: 32px;
  color: #999;
  margin-bottom: 16px;
}

.pd-acc-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0d2c4e;
  margin-bottom: 4px;
}

.pd-acc-card p {
  font-size: 13px;
  color: #777;
}

/* Downloads Tab */
.pd-dl-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-dl-item {
  display: flex;
  align-items: center;
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  transition: all 0.2s;
}

.pd-dl-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: #0d2c4e;
}

.pd-dl-icon {
  font-size: 32px;
  color: #e21a1a;
  margin-right: 20px;
}

.pd-dl-text flex {
  flex: 1;
}

.pd-dl-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0d2c4e;
  margin-bottom: 4px;
}

.pd-dl-text span {
  font-size: 13px;
  color: #888;
}

.dl-action {
  margin-left: auto;
  font-size: 20px;
  color: #0d2c4e;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .prod-layout {
    grid-template-columns: 240px 1fr;
    gap: 32px;
  }
  .pm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pd-grid {
    grid-template-columns: 350px 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  /* Layout Catalog - Mobile App Style */
  .prod-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Sidebar becomes a horizontal scrolling pill menu */
  .prod-sidebar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
  }
  .prod-sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome */
  }
  
  /* Hide the AI Technology checkboxes on mobile to save space */
  .prod-sidebar .ps-widget:nth-child(2) {
    display: none;
  }
  
  .ps-widget {
    flex: 0 0 auto;
    width: 100%;
  }
  
  .ps-widget h3 {
    display: none; /* Hide 'Kategori Produk' title */
  }
  
  .ps-list {
    flex-direction: row;
    gap: 8px;
  }
  
  .ps-list a {
    padding: 8px 18px;
    background: #f0f2f5;
    border-radius: 20px;
    white-space: nowrap;
    font-size: 13.5px;
    border: 1px solid transparent;
  }
  
  .ps-list .ps-active {
    background: #0d2c4e;
    color: #fff;
    font-weight: 500;
  }
  
  .ps-list .ps-count {
    display: none; /* Hide count on mobile */
  }

  /* Layout Detail */
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pd-main-img {
    padding: 40px 24px;
  }
  .pd-main-img img {
    max-width: 320px;
  }
  
  /* Tabs Detail */
  .pd-tabs-nav {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 8px;
  }
  .pd-tab-btn {
    text-align: left;
    padding: 16px 20px;
    border-radius: 6px;
  }
  .pd-tab-btn::after {
    display: none;
  }
  .pd-tab-btn.active {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: #e21a1a;
  }
  
  /* Table Detail */
  .pd-spec-table th, .pd-spec-table td {
    display: block;
    width: 100%;
  }
  .pd-spec-table th {
    border-bottom: none;
    padding-bottom: 8px;
    background: #f0f2f5;
  }
  .pd-spec-table td {
    border-top: none;
    padding-top: 8px;
  }
}

@media (max-width: 640px) {
  /* Padding Adjustments */
  .prod-catalog {
    padding: 32px 0 60px;
  }
  .pd-overview {
    padding: 0 0 32px;
  }
  .pd-tabs-section {
    padding: 0 0 48px;
  }

  /* Hero Catalog */
  .prod-hero {
    height: 180px; /* Much smaller on mobile */
  }
  .prod-hero-content h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .prod-hero-content p {
    font-size: 13px;
    display: none; /* Hide description on mobile hero to save space */
  }

  /* Breadcrumb */
  .prod-breadcrumb .prod-wrap {
    flex-wrap: wrap;
    line-height: 1.6;
    padding: 8px 24px;
  }
  .prod-bc-detail {
    margin-top: 56px;
  }

  /* Catalog Main - 2 Column Grid! */
  .pm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pm-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .pm-toolbar p {
    font-size: 13px;
  }
  .pm-sort {
    width: 100%;
  }
  .pm-sort select {
    width: 100%;
    padding: 10px;
    background: #f7f8fa;
    border: none;
    border-radius: 6px;
  }
  
  /* Compact Product Cards for 2-col */
  .pm-card-img {
    padding: 16px 12px;
  }
  .pm-card-img img {
    max-width: 120px;
  }
  .pm-card-body {
    padding: 12px;
  }
  .pm-badge {
    font-size: 9px;
    padding: 3px 6px;
    margin-bottom: 8px;
    border-radius: 3px;
  }
  .pm-model {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.3;
  }
  .pm-desc {
    display: none; /* Remove bulky text on mobile */
  }
  .pm-btn {
    padding: 8px;
    font-size: 11.5px;
    background: #0d2c4e; /* Solid button */
    color: #fff;
    border: none;
    margin-top: auto; /* Push to bottom */
  }
  .pm-btn:hover {
    background: #e21a1a;
  }

  /* Detail Page Info */
  .pd-model {
    font-size: 24px;
  }
  .pd-title {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .pd-desc {
    font-size: 14px;
    padding-bottom: 16px;
    margin-bottom: 24px;
  }
  .pd-features-list li {
    font-size: 13.5px;
  }
  
  /* Tech Icons */
  .pd-tech-icons {
    gap: 8px;
    margin-bottom: 32px;
  }
  .tech-icon {
    font-size: 11px;
    padding: 6px 10px;
  }
  .tech-icon strong {
    font-size: 12px;
  }

  /* Buttons */
  .pd-actions {
    flex-direction: column;
    gap: 12px;
  }
  .pd-btn-primary, 
  .pd-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  /* Detail Tabs Content */
  .pd-dl-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .dl-action {
    margin-left: 0;
    align-self: flex-end;
  }
  .pd-acc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pd-acc-card {
    padding: 20px 12px;
  }
}

@media (max-width: 400px) {
  .pd-thumb {
    width: 60px;
    height: 60px;
    padding: 8px;
  }
  .pd-spec-title {
    font-size: 18px;
  }
  .pm-card-img img {
    max-width: 100px;
  }
}
