/* ==========================================================================
   HEERAWATI CATEGORY & PRODUCT DETAIL PAGE STYLES
   Clean, Modern, Responsive, 100% Interconnected Architecture
   ========================================================================== */

/* Core Layout Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 1. CATEGORY HERO BANNER */
.cat-page-hero {
  position: relative;
  background: linear-gradient(135deg, #090e1a 0%, #172033 100%);
  padding: 60px 0 50px;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 3px solid #DC483C;
}

.cat-page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-bg.png') center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
}

.cat-page-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.cat-badge {
  display: inline-block;
  background: rgba(220, 72, 60, 0.2);
  border: 1px solid rgba(220, 72, 60, 0.4);
  color: #ff8579;
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.cat-page-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 14px;
}

.cat-page-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cat-breadcrumbs {
  font-size: 0.88rem;
  color: #94a3b8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-breadcrumbs a {
  color: #ffffff;
  transition: color 0.2s;
}

.cat-breadcrumbs a:hover {
  color: #DC483C;
}

.cat-breadcrumbs span.sep {
  color: #64748b;
}

/* 2. CATEGORY SWITCHER BAR (CHIPS) */
.cat-chips-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 70px;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cat-chips-wrapper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.cat-chip-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.cat-chip-item:hover, .cat-chip-item.active {
  background: #DC483C;
  color: #ffffff;
  border-color: #DC483C;
  box-shadow: 0 4px 10px rgba(220, 72, 60, 0.25);
}

/* 3. PRODUCT GRID & CARDS */
.category-main-content {
  padding: 60px 0 80px;
  background: #ffffff;
}

.prod-grid-count-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.prod-grid-count {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.prod-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(220, 72, 60, 0.15);
  border-color: #DC483C;
}

.prod-card-thumb {
  height: 240px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.prod-card-thumb a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.prod-card-thumb img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain !important;
  transition: transform 0.35s ease;
  display: block;
}

.prod-card:hover .prod-card-thumb img {
  transform: scale(1.05);
}

.prod-card-body {
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prod-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #DC483C;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.prod-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
  margin-bottom: 12px;
  min-height: 48px;
}

.prod-card-title a {
  color: #111827;
}

.prod-card-title a:hover {
  color: #DC483C;
}

.prod-card-features {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.prod-card-feature-pill {
  font-size: 0.72rem;
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.prod-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.prod-card-actions .btn-details {
  flex: 1;
  background: #DC483C;
  color: #ffffff;
  text-align: center;
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
}

.prod-card-actions .btn-details:hover {
  background: #b83328;
}

.prod-card-actions .btn-quote-icon {
  background: #25D366;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.prod-card-actions .btn-quote-icon:hover {
  background: #1eb757;
  transform: scale(1.05);
}

/* 4. PRODUCT DETAIL PAGE STYLES */
.prod-detail-wrapper {
  padding: 60px 0 80px;
  background: #ffffff;
}

.prod-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.prod-gallery-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  position: sticky;
  top: 90px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.prod-gallery-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  cursor: zoom-in;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prod-gallery-main:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.prod-gallery-main img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  margin: 0 auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.08));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.prod-gallery-main:hover img {
  transform: scale(1.02);
}

.prod-zoom-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.prod-gallery-main:hover .prod-zoom-badge {
  background: #d97706;
  border-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

/* ==========================================================================
   PRODUCT IMAGE LIGHTBOX / IMAGEBOX MODAL
   ========================================================================== */
.hwt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hwt-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.hwt-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

.hwt-lightbox-dialog {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 95vw;
  max-height: 94vh;
  width: auto;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.75);
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hwt-lightbox.active .hwt-lightbox-dialog {
  transform: scale(1);
}

.hwt-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(30, 41, 59, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hwt-lightbox-title {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75vw;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hwt-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hwt-lightbox-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hwt-lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.hwt-lightbox-btn-close {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
  padding: 7px 14px;
  font-size: 15px;
  font-weight: 700;
}

.hwt-lightbox-btn-close:hover {
  background: #b91c1c;
  border-color: #dc2626;
}

.hwt-lightbox-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090e17;
  overflow: auto;
  max-height: calc(94vh - 120px);
}

.hwt-lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hwt-lightbox-img-wrap img {
  max-width: 90vw;
  max-height: calc(90vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: #ffffff;
  display: block;
}

.hwt-lightbox-footer {
  padding: 10px 20px;
  background: rgba(30, 41, 59, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 12px;
  text-align: center;
}

.prod-badges-strip {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.prod-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.prod-badge-item i {
  color: #DC483C;
  font-size: 1.1rem;
}

.prod-info-box h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  margin-bottom: 12px;
}

.prod-meta-strip {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.prod-category-tag {
  background: rgba(220, 72, 60, 0.1);
  color: #DC483C;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.prod-sku {
  font-size: 0.85rem;
  color: #64748b;
}

.prod-desc-lead {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 25px;
}

.prod-features-list {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.prod-features-list h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.prod-features-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prod-features-list li {
  font-size: 0.88rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-features-list li i {
  color: #25D366;
  font-size: 0.85rem;
}

.prod-action-box {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.btn-inquire-now {
  background: #DC483C;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(220, 72, 60, 0.35);
  transition: all 0.25s ease;
}

.btn-inquire-now:hover {
  background: #b83328;
  transform: translateY(-2px);
}

.btn-whatsapp-inquire {
  background: #25D366;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-whatsapp-inquire:hover {
  background: #1eb757;
  transform: translateY(-2px);
}

/* 5. TECH SPECS TABLE */
.specs-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.specs-section h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111827;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.specs-table th, .specs-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  border-bottom: 1px solid #e2e8f0;
}

.specs-table th {
  width: 35%;
  background: #f8fafc;
  color: #1e293b;
  font-weight: 600;
  text-align: left;
}

.specs-table td {
  color: #475569;
}

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

/* 6. RELATED PRODUCTS SECTION */
.related-prods-section {
  padding: 60px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
  .prod-detail-grid {
    grid-template-columns: 1fr;
  }
  .prod-gallery-box {
    position: static;
  }
  .prod-features-list ul {
    grid-template-columns: 1fr;
  }
  .cat-page-title {
    font-size: 1.9rem;
  }
}
