* {
  font-family: 'apple-system-ui', 'Segoe UI', sans-serif;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow-y: auto;
}

.featured-product-content {
  text-align: center;
  color: white;
  padding: 30px;
  transform: translateY(0);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 10;
}

.featured-product-content h2 {
 font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.featured-product-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.9);
  font-weight:300;
  line-height: 1.4;
}
/* Specialized Slider with Peek Effect */
.specialized-slider-container {
  width: 100%;
  background-color: #000;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.specialized-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 500px;
  overflow: hidden;
  padding: 0 60px;
}

.specialized-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 500%;
  height: 100%;
  position: relative;
}

.specialized-slide {
  flex: 0 0 calc(100vw - 120px);
  max-width: 1400px;
  height: 100%;
  position: relative;
  margin: 0 10px;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}

.specialized-slide.active {
  z-index: 2;
}

.specialized-slide-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.specialized-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.specialized-slide-content {
  color: white;
  z-index: 3;
  padding: 20px;
}

.specialized-slide-content h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.specialized-slide-content p {
  font-size: clamp(14px, 2vw, 18px);
  opacity: 0.9;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.specialized-prev-btn,
.specialized-next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: white;
  backdrop-filter: blur(10px);
}

.specialized-prev-btn {
  left: 15px;
}

.specialized-next-btn {
  right: 15px;
}

.specialized-prev-btn:hover,
.specialized-next-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.specialized-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.specialized-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.specialized-dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.3);
}

.specialized-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .specialized-slider-wrapper {
    height: 400px;
    padding: 0 50px;
  }

  .specialized-slide {
    flex: 0 0 calc(100vw - 100px);
    margin: 0 5px;
  }

  .specialized-prev-btn,
  .specialized-next-btn {
    width: 40px;
    height: 40px;
  }

  .specialized-prev-btn {
    left: 10px;
  }

  .specialized-next-btn {
    right: 10px;
  }

  .specialized-slide-content h2 {
    font-size: clamp(24px, 6vw, 36px);
  }

  .specialized-slide-content p {
    font-size: clamp(12px, 3vw, 16px);
  }
}

@media (max-width: 480px) {
  .specialized-slider-wrapper {
    height: 350px;
    padding: 0 40px;
  }

  .specialized-slide {
    flex: 0 0 calc(100vw - 80px);
    margin: 0 3px;
  }

  .specialized-slider-dots {
    padding: 20px 0;
  }

  .specialized-dot {
    width: 10px;
    height: 10px;
  }

  .specialized-prev-btn,
  .specialized-next-btn {
    width: 35px;
    height: 35px;
  }

  .specialized-prev-btn {
    left: 5px;
  }

  .specialized-next-btn {
    right: 5px;
  }
}

/* Enhanced Animations - Matching UAV.php */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

.rotate-in {
  opacity: 0;
  transform: rotate(-10deg) scale(0.9);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rotate-in.animate {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Featured Products Section - Matching UAV.php */
.featured-products-section {
  padding: 10px 0;
  background-color: white !important;
}

.featured-products-section .container {
  max-width: 100%;
  padding: 0 5px;
}

.featured-product-card {
  position: relative;
  height: 450px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: none;
  transform: translateY(0) scale(1);
}

.featured-product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 153, 0, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5;
}

.featured-product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.featured-product-card:hover::after {
  opacity: 1;
}

.featured-product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  transition: all 0.4s ease;
  padding: 20px;
  box-sizing: border-box;
}

.featured-product-card:hover .featured-product-image {
  filter: brightness(1.05) contrast(1.02);
  transform: scale(1.1);
}

.featured-product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-product-card:hover .featured-product-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.featured-product-buttons {
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

/* Product Showcase Section Styles - Matching UAV.php */
.product-showcase-section {
    padding: 0;
    background-color: white !important;
    margin-top: 60px;
    margin-bottom: 0;
  }

  .product-card {
    position: relative;
    height: 350px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    transform: translateY(0) scale(1);
  }

  .product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 153, 0, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
  }

  .product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
  }

  .product-card:hover::after {
    opacity: 1;
  }

  .product-card-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 30px;
    z-index: 4;
    color: white;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .product-title {
    color:white;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
  }

  .product-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    line-height: 1.4;
    transition: transform 0.3s ease;
  }

  .product-learn-more {
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border-color: rgba(255, 255, 255, 0.9);
  }

  .product-learn-more:hover {
    background: rgba(255, 153, 0, 0.9);
    color: white;
    border-color: rgba(255, 153, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.3);
  }

  .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.5s ease;
  }

  .product-card:hover .product-image {
    transform: scale(1.1);
  }

  /* Description End Styling - Matching UAV.php */
  .desc_end {
    text-align: center;
    padding: 50px;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
    font-family: MistralD;
    color: rgb(255,153,0);
    line-height: 1.1;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 40px 20px;
  }

  .desc_end::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #ff9500, #ffb347);
    border-radius: 15px 15px 0 0;
  }

  .desc_end.animate {
    animation: textGlow 2s ease-in-out;
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes textGlow {
    0%, 100% {
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }
    50% {
      text-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
    }
  }

  /* Background images for each card */
  .video-production-bg {
    background-image: url('../../assets/images/delivery.jpg');
    background-color: #f8f8f8;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
  }

  .enterprise-bg {
    background-image: url('../../assets/images/d2.png');
    background-color: #f8f8f8;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
  }

  .agriculture-bg {
    background-image: url('../../assets/images/b1_3.png');
    background-color: #f8f8f8;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    
    opacity: 1;
  }

  .illuminator-bg {
    background-image: url('../../assets/images/illuminator1.jpg');
    background-color: #f8f8f8;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
  }

  .tower-scanner-bg {
    background-image: url('../../assets/images/tower_imaging.jpg');
    background-color: #f8f8f8;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
  }

  .pressure-washer-bg {
    background-image: url('../../assets/images/pressurewasher.jpeg');
    background-color: #f8f8f8;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
  }

  /* Responsive design for featured products */
  @media (max-width: 992px) {
    .featured-products-section .container {
      max-width: 100%;
      padding: 0 5px;
    }

    .featured-product-card {
      height: 350px;
      margin-bottom: 10px;
    }
  }

  @media (max-width: 768px) {
    .featured-products-section {
      padding: 10px 0 0 0;
    }

    .featured-products-section .container {
      max-width: 100%;
      padding: 0 5px;
    }

    .featured-product-card {
      height: 380px;
    }

    .featured-product-content h2 {
      font-size: clamp(1.5rem, 5vw, 2.2rem);
      margin-bottom: 12px;
    }

    .featured-product-content p {
      font-size: clamp(0.9rem, 3vw, 1.1rem);
      margin-bottom: 20px;
    }

    .featured-product-buttons {
      gap: 10px;
    }

    .product-card {
      height: 350px;
    }
  }

  @media (max-width: 576px) {
    .featured-product-card {
      height: 400px;
    }

    .featured-product-image {
      padding: 20px;
    }

    .featured-product-content {
      padding: 25px 20px;
    }

    .featured-product-content h2 {
      font-size: clamp(1.6rem, 7vw, 2.2rem);
      margin-bottom: 12px;
      letter-spacing: 1px;
    }

    .featured-product-content p {
      font-size: clamp(1rem, 4.5vw, 1.3rem);
      margin-bottom: 18px;
    }

    .featured-product-buttons {
      flex-direction: column;
      gap: 10px;
    }

    .product-card {
      height: 300px;
    }

    #washer {
      font-size: 14px;
    }

    #illuminator {
      font-size: 20px;
    }
  }

  /* Modal Styles - Exact match to screenshot */
  .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
  }

  /* Responsive modal size */
  .modal-dialog.modal-dialog-centered {
    max-width: 90vw !important;
    width: 90vw !important;
    max-height: 85vh !important;
  }

  /* Responsive modal row height */
  .modal-row {
    height: 70vh !important;
    max-height: 70vh !important;
  }

  /* Responsive modal image height */
  .modal-product-bg {
    min-height: 40vh !important;
    height: 100% !important;
  }

  .modal-content {
    border-radius: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    background-color: white;
    width: 100%;
    margin: 0 auto;
    max-height: 85vh;
    height: 70vh;
  }

  .modal-dialog {
    max-width: 90vw !important;
    width: 90vw !important;
    margin: 7.5vh auto !important;
    position: relative !important;
    height: auto;
    display: flex;
    align-items: flex-start;
  }

  .modal-body {
    padding: 0 !important;
  }

  .modal-specs-container {
    padding: clamp(25px, 5vw, 50px);
    background-color: #222;
    color: white;
    height: 100%;
    overflow-y: auto;
  }

  #modal-product-title {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: clamp(15px, 3vw, 30px);
    text-transform: uppercase;
    color: rgb(255,153,0);
    letter-spacing: 0.5px;
  }

  #modal-product-subtitle {
    display: none;
  }

  #modal-product-specs p {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    color: #ccc;
    margin-bottom: clamp(15px, 3vw, 25px);
  }

  #modal-product-specs h5 {
    font-size: clamp(16px, 2.5vw, 18px);
    color: white;
    font-weight: 600;
    margin-top: clamp(15px, 2vw, 20px);
    margin-bottom: clamp(15px, 2vw, 20px);
  }

  .specs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .spec-item {
    display: flex;
    flex-direction: row;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    margin-bottom: 0;
    position: relative;
    padding-left: clamp(10px, 2vw, 15px);
  }

  .spec-item:before {
    content: "•";
    position: absolute;
    left: 0;
    color: white;
  }

  .spec-item span {
    color: #ccc;
    font-weight: normal;
  }

  .modal-image-container {
    height: 100%;
    background-color: white;
    overflow: hidden;
    position: relative;
  }

  .carousel.slide {
    height: 100%;
    width: 100%;
  }

  .carousel-inner {
    height: 100%;
    width: 100%;
  }

  .carousel-item {
    height: 100%;
    width: 100%;
  }

  .modal-product-bg {
    height: 100%;
    min-height: 40vh;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
  }

  /* Carousel specific styles - Modern Professional */
  .carousel-image {
    height: 100%;
    min-height: 40vh;
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Pinch zoom support */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
  }

  .carousel-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 153, 0, 0), rgba(255, 153, 0, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
  }

  .carousel-image:hover {
    transform: scale(1.02);
    filter: brightness(1.05) contrast(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }

  .carousel-image:hover::before {
    opacity: 1;
  }

  .carousel-image:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Direct image elements in carousel */
  .carousel-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block !important;
    margin: 0 auto;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 5%;
    opacity: 0.8;
  }

  .carousel-control-prev:hover,
  .carousel-control-next:hover {
    opacity: 1;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
  }

  .carousel-indicators {
    bottom: 20px;
  }

  .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
  }

  .carousel-indicators button.active {
    background-color: rgba(255, 153, 0, 0.8);
    border-color: rgba(255, 153, 0, 1);
  }

  /* Ensure the background images are visible in the modal */
  .modal-product-bg.video-production-bg,
  .modal-product-bg.enterprise-bg,
  .modal-product-bg.agriculture-bg {
    background-image: url('../../assets/images/d1.png');
  }

  .modal-product-bg.enterprise-bg {
    background-image: url('../../assets/images/d2.png');
  }

  .modal-product-bg.agriculture-bg {
    background-image: url('../../assets/images/d3.png');
  }

  .btn-close {
    opacity: 0.8;
    padding: 1rem;
    box-shadow: none;
    z-index: 1050;
    filter: invert(1);
    color: black;
  }

  .btn-close:hover {
    opacity: 1;
  }

  /* Ensure modal layout stays consistent across all screen sizes */
  .modal-row {
    display: flex;
    flex-direction: row;
    height: 70vh;
    max-height: 70vh;
    margin: 0 !important;
  }

  .modal-col-left {
    width: 40%;
    height: 100%;
    background-color: #222;
    overflow-y: auto;
  }

  .modal-col-right {
    width: 60%;
    height: 100%;
    background-color: white;
  }



  /* Mobile adjustments for screens under 480px */
  @media (max-width: 480px) {
    .modal-dialog {
      width: 95vw !important;
      max-width: 95vw !important;
      margin: 2.5vh auto !important;
      height: auto !important;
    }

    .modal-content {
      height: auto !important;
      max-height: 95vh !important;
      overflow: hidden !important;
    }

    .modal-row {
      flex-direction: column;
      height: auto !important;
      max-height: none !important;
      min-height: 0 !important;
    }

    .modal-col-left,
    .modal-col-right {
      width: 100% !important;
      height: auto !important;
      min-height: 0 !important;
    }

    .modal-col-left {
      flex: 0 0 auto;
    }

    .modal-col-right {
      flex: 1 1 auto;
      min-height: 45vh;
      display: flex;
      align-items: center;
      background-color: white !important;
    }

    .modal-image-container {
      width: 100% !important;
      height: 45vh !important;
      background-color: white !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }

    /* Main image for mobile */
    #modal-main-image {
      max-width: 100% !important;
      max-height: 45vh !important;
      object-fit: contain !important;
      display: block !important;
      margin: 0 auto !important;
      visibility: visible !important;
      opacity: 1 !important;
      z-index: 10 !important;
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .modal-specs-container {
      padding: 20px !important;
    }

    /* Enhanced pinch zoom for mobile */
    .carousel-image {
      touch-action: none !important;
      overflow: visible !important;
      transform-origin: center center !important;
    }

    /* Disable carousel touch events on mobile */
    .carousel.slide {
      touch-action: pan-y !important;
    }

    .carousel-inner {
      touch-action: none !important;
    }
  }

/* Desktop styles */
    .modal-dialog.modal-dialog-centered {
      max-width: 1600px !important; /* Decreased from 1800px */
      width: 95% !important;
    }
    .modal-content {
      max-width: 1600px !important; /* Decreased from 1800px */
      width: 100% !important;
    }
    .modal-row {
      height: 680px !important; /* Decreased from 750px */
      display: flex;
      flex-direction: row;
    }
    .modal-product-bg {
      min-height: 500px !important; /* Decreased from 550px */
    }
    .modal-col-left {
      width: 40%;
      height: 100%;
    }
    .modal-col-right {
      width: 60%;
      height: 100%;
    }

    /* Force styles to override Bootstrap */
    @media (min-width: 576px) {
      .modal-dialog {
        max-width: 1600px !important; /* Decreased from 1800px */
      }
    }

    /* Responsive styles for mobile devices */
    @media (max-width: 991px) {
      .modal-dialog.modal-dialog-centered {
        width: 95% !important;
        margin: 10px auto !important;
      }
      .modal-row {
        height: 680px !important;
        flex-direction: row;
      }
      .modal-col-left {
        width: 40% !important;
      }
      .modal-col-right {
        width: 60% !important;
      }
      .modal-product-bg {
        min-height: 500px !important;
      }
      .modal-specs-container {
        padding: 20px !important;
      }
    }

    /* Custom close button styles */
    .modal-close-btn {
      position: absolute;
      right: 15px;
      top: 15px;
      z-index: 1050;
      width: 30px;
      height: 30px;
      background-color: rgba(0, 0, 0, 0.5);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .modal-close-btn:before,
    .modal-close-btn:after {
      content: '';
      position: absolute;
      width: 18px;
      height: 2px;
      background-color: white;
      transition: all 0.3s ease;
    }

    .modal-close-btn:before {
      transform: rotate(45deg);
    }

    .modal-close-btn:after {
      transform: rotate(-45deg);
    }

    .modal-close-btn:hover {
      background-color: rgb(255, 153, 0);
      transform: rotate(90deg);
    }

    /* Small mobile devices */
    @media (max-width: 576px) {
      .modal-dialog.modal-dialog-centered {
        width: 95% !important;
        margin: 5px auto !important;
      }
      .modal-row {
        height: 500px !important;
        flex-direction: row;
      }
      .modal-col-left {
        width: 40% !important;
      }
      .modal-col-right {
        width: 60% !important;
      }
      .modal-product-bg {
        min-height: 400px !important;
      }
      .modal-specs-container {
        padding: 15px !important;
      }
      #modal-product-title {
        font-size: 24px !important;
        margin-bottom: 10px !important;
      }
      #modal-product-specs p {
        font-size: 12px !important;
        line-height: 1.3 !important;
      }
      #modal-product-specs h5 {
        font-size: 14px !important;
        margin-top: 10px !important;
        margin-bottom: 8px !important;
      }
      .spec-item {
        font-size: 12px !important;
        padding-left: 10px !important;
        margin-bottom: 3px !important;
      }
      .specs-list {
        gap: 3px !important;
      }
      .modal-close-btn {
        right: 10px !important;
        top: 10px !important;
        width: 25px !important;
        height: 25px !important;
      }
      .modal-close-btn:before,
      .modal-close-btn:after {
        width: 15px !important;
      }
    }

    /* Extra small devices */
    @media (max-width: 375px) {
      .modal-row {
        height: 400px !important;
      }
      .modal-product-bg {
        min-height: 350px !important;
      }
      #modal-product-title {
        font-size: 18px !important;
        margin-bottom: 10px !important;
      }
      .modal-specs-container {
        padding: 10px !important;
      }
      #modal-product-specs p {
        font-size: 10px !important;
        margin-bottom: 8px !important;
      }
      #modal-product-specs h5 {
        font-size: 12px !important;
        margin-top: 8px !important;
        margin-bottom: 6px !important;
      }
      .spec-item {
        font-size: 10px !important;
        margin-bottom: 2px !important;
      }
      .specs-list {
        gap: 2px !important;
      }
    }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff6b35, #ff9500);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ff9500, #ffb347);
}

