/*--------------------------------------------------------------
# Products Catalog & Showcase Styling
--------------------------------------------------------------*/

/* Fix Header Overlap on Inner Pages */
.breadcrumbs {
  margin-top: 80px;
  padding: 24px 0;
  background: linear-gradient(135deg, #f0f6fa 0%, #fbfdfe 100%);
  border-bottom: 1px solid #dce8f0;
}

.breadcrumbs h2 {
  font-size: 26px;
  font-weight: 700;
  color: #2f4d5a;
  margin: 0;
  letter-spacing: -0.3px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol li {
  color: #687f8f;
}

.breadcrumbs ol li a {
  color: #67b0d1;
  font-weight: 600;
  transition: color 0.2s;
}

.breadcrumbs ol li a:hover {
  color: #2f4d5a;
}

.breadcrumbs ol li + li {
  padding-left: 10px;
}

.breadcrumbs ol li + li::before {
  display: inline-block;
  padding-right: 10px;
  color: #9cb1c0;
  content: "/";
}

/* Category Filter Tabs */
.product-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
}

.product-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: #f1f6f9;
  padding: 6px;
  border-radius: 50px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.product-tab-btn {
  border: none;
  background: transparent;
  color: #556877;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 20px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.product-tab-btn:hover {
  color: #67b0d1;
}

.product-tab-btn.active {
  background: #67b0d1;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(103, 176, 209, 0.4);
}

/* Page Intro Hero Banner (Full-Width End-to-End) */
.page-intro-banner, .page-intro-banner [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}
.page-intro-banner {
  width: 100%;
  background: linear-gradient(135deg, #1b323e 0%, #233e4d 50%, #294b5d 100%);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 3px solid #67b0d1;
  border-radius: 0 !important;
  padding: 44px 0;
  margin-bottom: 0;
  color: #ffffff;
  position: relative;
  box-shadow: 0 8px 24px rgba(15, 28, 36, 0.12);
}

.page-intro-banner h1 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.page-intro-banner p {
  color: #cde0ec;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.page-intro-banner strong {
  color: #ffffff;
}

.hero-category-tag {
  display: inline-block;
  background: rgba(103, 176, 209, 0.16);
  color: #8fd5f5;
  border: 1px solid rgba(103, 176, 209, 0.4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0;
  margin-bottom: 12px;
}

.hero-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #edf5fa;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 0;
  transition: all 0.2s ease;
}

.hero-feature-badge i {
  color: #67b0d1;
  font-size: 14px;
}

.page-intro-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 0 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

/* Division & Section Headers */
.product-division-header {
  margin: 40px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce6ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.product-division-title {
  font-size: 22px;
  font-weight: 700;
  color: #2f4d5a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-division-title i {
  color: #67b0d1;
  font-size: 26px;
}

.product-division-badge {
  font-size: 12.5px;
  padding: 5px 13px;
  border-radius: 20px;
  background: #eaf4f9;
  color: #2b7a9f;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Modern Professional Product Card */
.product-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5edf2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 25px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(47, 77, 90, 0.11);
  border-color: #67b0d1;
}

/* Card Media / Image Container */
.product-card-img-wrap {
  background: linear-gradient(135deg, #fcfdfe 0%, #f4f8fb 100%);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 195px;
  min-height: 195px;
  max-height: 195px;
  position: relative;
  border-bottom: 1px solid #edf2f6;
  overflow: hidden;
}

.product-card-img-wrap.industrial-wrap {
  padding: 0;
  height: 205px;
  min-height: 205px;
  max-height: 205px;
}

.product-card-img-wrap.industrial-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img-wrap.industrial-wrap img {
  transform: scale(1.05);
}

.product-card-img {
  max-width: 90%;
  max-height: 165px;
  object-fit: contain;
  transition: transform 0.35s ease;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.07));
}

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

/* Badges */
.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
}

.badge-knx {
  background: #11628d;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3.5px 8px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(17, 98, 141, 0.25);
}

.badge-dali {
  background: #3949ab;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3.5px 8px;
  border-radius: 5px;
}

.badge-tag {
  background: #ffffff;
  color: #4b6272;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3.5px 8px;
  border-radius: 5px;
  border: 1px solid #dce5ec;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.badge-highlight {
  background: #e74c3c;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3.5px 8px;
  border-radius: 5px;
}

/* Card Body */
.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-model-code {
  font-size: 11.5px;
  font-weight: 700;
  color: #67b0d1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 17px;
  font-weight: 700;
  color: #2f4d5a;
  line-height: 1.35;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: #627685;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Feature List (Compact & Clean) */
.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  flex-grow: 1;
}

.product-features li {
  font-size: 12.5px;
  color: #4b6172;
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}

.product-features li i {
  color: #67b0d1;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Spec Pills Strip */
.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding-top: 8px;
  border-top: 1px dashed #e8f0f4;
}

.spec-pill {
  font-size: 11px;
  font-weight: 600;
  background: #f2f7fa;
  color: #3b586d;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e1ecf2;
}

/* Card Footer */
.product-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #dce6ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-inquire {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eaf4f9;
  color: #2b7a9f;
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.25s ease;
  border: 1px solid #cce4f0;
  text-decoration: none;
}

.btn-inquire:hover {
  background: #67b0d1;
  color: #ffffff !important;
  border-color: #67b0d1;
}

.product-availability {
  font-size: 11.5px;
  font-weight: 600;
  color: #27ae60;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Postcard Button */
.postcard__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #67b0d1;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 22px;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: 15px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(103, 176, 209, 0.35);
  text-decoration: none;
}

.postcard__btn:hover {
  background: #2f4d5a;
  color: #ffffff !important;
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(47, 77, 90, 0.3);
}

.postcard .column-list {
  display: inline-block;
  vertical-align: top;
  margin-right: 20px;
}

/* Switch Palette Preview */
.switch-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.palette-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2.5px 8px;
  border-radius: 10px;
  background: #edf3f7;
  color: #3b5062;
  font-weight: 500;
}

/* Hardware Box */
.hardware-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5edf2;
  padding: 25px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.hardware-category-box {
  background: #fbfcfe;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.hardware-category-box h5 {
  font-size: 14.5px;
  font-weight: 700;
  color: #2f4d5a;
  margin-bottom: 6px;
}

.hardware-code-tag {
  display: inline-block;
  background: #edf5fa;
  color: #2f698b;
  border: 1px solid #d4e7f3;
  font-size: 11px;
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 2px 3px 2px 0;
}

/* Enhanced Navbar Dropdown */
.navbar .dropdown ul {
  border-radius: 8px;
  border: 1px solid #eef2f6;
  box-shadow: 0 10px 30px rgba(47, 77, 90, 0.15);
  min-width: 270px;
}

.navbar .dropdown ul li {
  min-width: 270px;
  position: relative;
}

.navbar .dropdown ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
}

.navbar .dropdown ul a i {
  font-size: 13px;
  color: #8da4b3;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: 100%;
  visibility: hidden;
  opacity: 0;
  margin-left: 2px;
  border-radius: 8px;
}

.navbar .dropdown .dropdown:hover > ul {
  visibility: visible;
  opacity: 1;
  top: 0;
}

@media (max-width: 991px) {
  .breadcrumbs {
    margin-top: 70px;
  }
  .page-intro-banner, .page-intro-banner [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}
.page-intro-banner {
    padding: 25px 20px;
  }
  .product-tabs {
    border-radius: 20px;
  }
  .product-tab-btn {
    padding: 7px 14px;
    font-size: 12.5px;
  }
  .navbar-mobile .dropdown ul {
    position: static;
    display: none;
    margin: 8px 15px;
    padding: 6px 0;
    box-shadow: none;
    border: 1px solid #e4edf3;
    border-radius: 6px;
    background: #f8fafc;
  }
  .navbar-mobile .dropdown .dropdown-active {
    display: block !important;
  }
  .navbar-mobile .dropdown .dropdown ul {
    position: static;
    left: 0;
    margin-left: 15px;
    background: #ffffff;
  }
}

/*--------------------------------------------------------------
# Product Card Image Lightbox Modal & Zoom Cue
--------------------------------------------------------------*/
.product-card-img-wrap,
.page-intro-img,
.postcard__img_link {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card-img-wrap img {
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-img-wrap img,
.product-card-img-wrap:hover img {
  transform: scale(1.04);
}

.product-card-img-wrap::after {
  content: "\f62c";
  font-family: "bootstrap-icons" !important;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(27, 50, 62, 0.78);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.product-card:hover .product-card-img-wrap::after,
.product-card-img-wrap:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Fullscreen Responsive Image Lightbox Modal */
.product-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.product-image-modal.active {
  opacity: 1;
  visibility: visible;
}

.product-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 25, 33, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

/* Close Button with Cross (Top-Right Screen Floating) */
.product-modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #1b323e;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  z-index: 1000000;
}

.product-modal-close:hover {
  background: #67b0d1;
  color: #ffffff;
  transform: rotate(90deg) scale(1.08);
}

.product-modal-content {
  position: relative;
  z-index: 2;
  width: 90vw;
  max-width: 850px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  pointer-events: none;
}

.product-image-modal.active .product-modal-content {
  transform: scale(1);
}

.product-modal-img-wrap {
  width: 100%;
  max-width: 100%;
  display: block;
  text-align: center;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  box-sizing: border-box;
  pointer-events: auto;
  min-width: 0;
}

#productModalImg {
  display: block;
  margin: 0 auto;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: 68vh !important;
  object-fit: contain;
  user-select: none;
  box-sizing: border-box;
}

.product-modal-caption {
  margin-top: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  max-width: 100%;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.3px;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .product-modal-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .product-modal-content {
    width: 92vw;
    max-width: 92vw;
  }
  .product-modal-img-wrap {
    padding: 8px;
  }
  #productModalImg {
    max-height: 60vh;
  }
  .product-modal-caption {
    font-size: 13px;
    margin-top: 8px;
  }
}


/*--------------------------------------------------------------
# Light but Noticeable Horizontal Line After Cards
--------------------------------------------------------------*/
.product-section-divider {
  border: none !important;
  border-top: 1px solid #dce6ed !important;
  margin: 45px auto 40px auto !important;
  width: 100% !important;
  opacity: 1 !important;
}

.postcard-divider {
  border: none !important;
  border-top: 1px solid #dce6ed !important;
  margin: 35px auto !important;
  width: 100% !important;
  opacity: 1 !important;
}
