/* ==========================================================================
   VISIONTEK – Product Category Page Stylesheet
   ========================================================================== */

:root {
  --orange: #f7901e;
  --orange-light: #ffaa43;
  --orange-dark: #c86d0b;
  --dark-bg: #0e0401;
  --body-bg: #ffffff;
  --card-border: rgba(247, 144, 30, 0.15);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base resets & tweaks for products page */
.products-body {
  background-color: var(--body-bg);
  color: #2c2c2c;
}

/* ──────────────────────────────────────────
   1. PRODUCTS HERO
   ────────────────────────────────────────── */
.products-hero {
  position: relative;
  height: 550px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 64px;
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.products-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.products-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 4, 1, 0.9) 0%, rgba(14, 4, 1, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
}

.products-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-label {
  color: var(--orange);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.6s forwards;
}

.hero-title {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.6s 0.2s forwards;
}

.hero-desc {
  color: #eaeaea;
  font-size: clamp(14px, 1.8vw, 18px);
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.6s 0.4s forwards;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, #e65c00 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(230, 92, 0, 0.3);
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.6s 0.6s forwards;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(230, 92, 0, 0.45);
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
}

.hero-btn svg {
  transition: transform 0.3s;
}

.hero-btn:hover svg {
  transform: translateX(5px);
}

/* ──────────────────────────────────────────
   2. PRODUCT CATEGORIES
   ────────────────────────────────────────── */
.categories-section {
  padding: 80px 24px;
  background-color: #ffffff;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.categories-section .section-title {
  padding-bottom: 20px;
}

.category-card {
  position: relative;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.category-card .pro-flex {
  background: #ffffff;
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 40px 30px 0px 30px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  /* flex-direction: column; */
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 270px;
}

.category-card .pro-flex::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.category-card .pro-flex:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
}

.category-card .pro-flex:hover::before {
  transform: scaleX(1);
}

.category-card .pro-flex.active {
  border-color: var(--orange);
  box-shadow: 0 15px 35px rgba(247, 144, 30, 0.15);
  background: linear-gradient(180deg, #ffffff 0%, rgba(247, 144, 30, 0.02) 100%);
}

.category-card .pro-flex.active::before {
  transform: scaleX(1);
}

.category-icon-wrapper {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  /* transition: var(--transition-smooth); */
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 9;
}

.category-card .pro-flex:hover .category-icon-wrapper,
.category-card .pro-flex.active .category-icon-wrapper {
  /*background: var(--orange);
  transform: scale(1.1);*/
}

.category-icon-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  /*transition: filter 0.3s;*/
}

.category-card:hover .category-icon-img,
.category-card.active .category-icon-img {
  /*filter: brightness(0) invert(1);*/
}

.category-product-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.category-card:hover .category-product-img {
  transform: scale(1.05);
}

.category-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.pro-flex {
  display: flex;
  gap: 30px;
  min-height: 250px;
}

.pro-flex .image-box {
  width: 47%;
}

.pro-flex .content-box {
  width: 60%;
}

.category-desc, .category-desc1 {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

.category-chevron {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
  opacity: 1;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}

.category-card.active .category-chevron {
  opacity: 1;
  transform: translateY(0);
}

.category-chevron svg {
  fill: var(--orange);
  width: 34px;
  height: 34px;
  animation: bounceSlow 2s infinite;
}

/* ──────────────────────────────────────────
   3. FEATURED PRODUCTS (CAROUSEL)
   ────────────────────────────────────────── */
.featured-section {
  padding: 60px 24px 80px;
  background-color: #fafafa;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
/*  display: none; */
  /* Controlled by JS */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.featured-section.show {
  /*display: block; */
  opacity: 1;
}

.featured-sub {
  font-size: 14px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.featured-desc {
  font-size: 15px;
  color: #666;
  max-width: 600px;
  margin: 12px auto 0;
  line-height: 1.6;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 40px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.product-slide {
  flex: 0 0 calc(20.333% - 16px);
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-slide:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(247, 144, 30, 0.4);
}

.product-slide.active {
  border: 2px solid var(--orange);
  background-color: #fffaf5;
  box-shadow: 0 10px 25px rgba(247, 144, 30, 0.12);
}

.slide-img-wrapper {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s;
}

.product-slide:hover .slide-img-wrapper {
  transform: scale(1.05);
}

.slide-product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.slide-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
  margin-bottom: 8px;
}

.slide-specs {
  font-size: 13px;
  color: #718096;
}

/* Nav buttons for carousel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  outline: none;
}

.carousel-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.carousel-btn.prev {
  left: -10px;
}

.carousel-btn.next {
  right: -10px;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ──────────────────────────────────────────
   4. PRODUCT DETAIL SECTION
   ────────────────────────────────────────── */
.detail-section {
  padding: 80px 24px;
  background-color: #ffffff;
  display: none;
  /* Controlled by JS */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.detail-section.show {
  display: block;
  opacity: 1;
}

.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 40px;
}

.detail-label {
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Left Column: Gallery & Thumbnails */
.detail-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-main-img-card {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.detail-main-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.thumbnail-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thumbnail-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
}

.thumbnail-track::-webkit-scrollbar {
  display: none;
  /* Safari and Chrome */
}

.thumb-card {
  flex: 0 0 70px;
  height: 70px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.thumb-card:hover,
.thumb-card.active {
  border-color: var(--orange);
  box-shadow: 0 4px 10px rgba(247, 144, 30, 0.15);
}

.thumb-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.thumb-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.thumb-nav-btn:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* Center Column: Text & Features */
.detail-info-col {
  display: flex;
  flex-direction: column;
  /*justify-content: center; */
}

.detail-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 8px;
}

.detail-specs {
  font-size: 15px;
  color: #718096;
  font-weight: 600;
  margin-bottom: 20px;
}

.detail-desc {
  font-size: 15px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 24px;
}

.features-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #2d3748;
}

.check-icon-wrap {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(247, 144, 30, 0.1);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon-wrap svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.download-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, #e65c00 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 10px;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 20px rgba(230, 92, 0, 0.2);
  margin-bottom: 6px;
  border: none;
  cursor: pointer;
}

.download-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(230, 92, 0, 0.35);
  background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
}

.download-size-info {
  font-size: 12px;
  color: #718096;
  text-align: center;
  max-width: 236px;
}

/* Right Column: Application Gallery */
.detail-app-gallery-col {
  display: flex;
  flex-direction: column;
}

.app-gallery-title {
  font-size: 13px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.app-grid-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 140px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.app-grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.app-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  transition: background 0.3s;
}

.app-grid-card:hover .app-grid-img {
  transform: scale(1.08);
}

.app-grid-card:hover .app-grid-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.85) 100%);
}

.app-grid-text {
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.products-hero {
    position: relative;
    height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 64px;
    height: 60vh;
}

/* ──────────────────────────────────────────
   5. KEYFRAME ANIMATIONS & HELPER CLASSES
   ────────────────────────────────────────── */
@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceSlow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (min-width: 1024px) {
.categories-grid {
  gap: 80px;
}
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .detail-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .product-slide {
    flex: 0 0 100%;
  }

  .carousel-container {
    padding: 0 20px;
  }

  .carousel-btn.prev {
    left: -15px;
  }

  .carousel-btn.next {
    right: -15px;
  }
}


     .video-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    z-index:9999;
    justify-content:center;
    align-items:center;
}

.video-content{
    position:relative;
    width:80%;
    max-width:900px;
}

.video-content video{
    width:100%;
    border-radius:10px;
}

.close-video{
    position:absolute;
    top:-40px;
    right:0;
    color:#fff;
    font-size:40px;
    cursor:pointer;
}

.category-card .pro-flex:hover .category-title, .category-card .pro-flex:hover .category-desc {
    color: #fff;
}

.category-card1 .pro-flex:hover .category-title, .category-card1 .pro-flex:hover .category-desc1 {
    color: #fff;
}