
/* ========================== */
/* Main Banner Slideshow (Top) */
/* ========================== */
.banner-slideshow-container {
    width: 100%;
    height: 80vh; /* Large full-screen effect */
    position: relative;
    overflow: hidden;
}

/* ========================== */
/* Promotions Slideshow (Smaller) */
/* ========================== */


/* ========================== */
/* Slides Wrapper (Common for both) */
/* ========================== */
.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Individual Slides */
.slide {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Active Slide */
.slide.active {
    opacity: 1;
}

/* Image Styling */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* === Section Titles === */
.section-title1 {
    text-align: center;
    font-size: 3rem;
    color: #ff6600;
    font-weight: bold;
    margin-bottom: 20px;
}


.banner-slideshow-container {
    margin-bottom: 5px; /* Adjust to reduce space */
}

/* Optionally, reduce margin on the section title */
.section-title1 {
    margin-top: 10px; /* Reduce space above title */
    margin-bottom: 10px; /* Reduce space below title */
}


/* ====== RESPONSIVE BREAKPOINTS FOR SLIDESHOWS====== */

/* Large Screens */
@media screen and (min-width: 1200px) {
    .banner-slideshow-container {
        height: 85vh;
         margin-bottom: 5px;
    }

}

/* Tablets */
@media screen and (max-width: 1024px) {
    .banner-slideshow-container {
        height: 70vh;
         margin-bottom: 5px;
    }

}

/* Mobile Devices */
@media screen and (max-width: 768px) {
    .banner-slideshow-container {
        height: 50vh;
         margin-bottom: 5px;
    }

}

/* Small Mobile Screens */
@media screen and (max-width: 480px) {
    .banner-slideshow-container {
        height: 40vh;
         margin-bottom: 5px;
    }
 
}


/* === QUOTE SECTION === */
.quote-section {
    width: 100%;
    background-color: #0000ff; /* Deep blue background */
    color: #ffffff; /* White text */
    padding: 60px 20px; /* Spacing for readability */
    text-align: center;
    margin-top: 50px; /* Adds gap between About Us and Quote section */
    margin-bottom: 20px;
}

/* CONTAINER */
.quote-container {
    max-width: 800px; /* Restricts width for better readability */
    margin: 0 auto;
    margin-top: 40px;
}

/* TITLE */
.quote-container h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* UNDERLINE */
.quote-line {
    width: 80px;
    height: 3px;
    background-color: #ffffff;
    margin: 0 auto 20px;
}

/* PARAGRAPH */
.quote-container p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* BUTTON */
.quote-btn {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.quote-btn:hover {
    background-color: #ffffff;
    color: #0000ff;
}

/* ===== RESPONSIVE DESIGN FOR QUOTE ===== */
@media screen and (max-width: 768px) {
    .quote-container h2 {
        font-size: 28px;
    }

    .quote-container p {
        font-size: 14px;
    }

    .quote-btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

@media screen and (max-width: 480px) {
    .quote-section {
        padding: 40px 15px;
    }

    .quote-container h2 {
        font-size: 24px;
    }

    .quote-btn {
        font-size: 14px;
        padding: 8px 18px;
    }
}



/* === Prevent Horizontal Scroll Globally === */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* === Section Titles === */
.section-title {
    text-align: center;
    font-size: 28px;
    color: #ff6600;
    font-weight: bold;
    margin-bottom: 20px;
}

/* === Sliders: Ensure Proper Spacing === */
.services-section {
    margin-bottom: 40px; /* Adds gap between service and brand sliders */
}

.brands-section {
    margin-bottom: 40px; /* Adds gap before the next section */
}

/* === SLIDER CONTAINERS === */
.slider-wrapper {
    width: 100%;
    max-width: 100vw; /* Prevent overflow beyond viewport */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: flex-start;
}

/* === SLIDER INNER CONTAINERS === */
.service-slides, .brand-slides {
    display: flex;
    flex-wrap: nowrap; /* Prevent stacking */
    gap: 10px; /* Reduce gap for smooth transitions */
    min-width: 100%; /* Ensures no gaps */
    animation: scrollLoop 15s linear infinite; /* Adjust speed dynamically */
}

/* === Prevent Slider Overflow === */
.service-slide, .brand-slide {
    display: inline-flex; /* Prevents vertical stacking */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 150px;
    text-align: center;
    overflow: hidden;
}

/* === Service Icon + Text === */
.service-slide img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-slide p {
    font-size: 14px;
    margin-top: 5px;
}

/* === Brand Logos === */
.brand-slide img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

/* === INFINITE SLIDER ANIMATION === */
@keyframes scrollLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); } /* Ensures a seamless wrap */
}

/* === MOBILE RESPONSIVENESS FIXES === */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .slider-wrapper {
        width: 100vw;
        overflow-x: hidden;
    }

    .services-section, .brands-section {
        margin-bottom: 30px; /* Reduce gap slightly for mobile */
    }

    .service-slides, .brand-slides {
        display: flex;
        flex-wrap: nowrap; /* Ensure no vertical stacking */
        animation-duration: 12s !important; /* Slower speed for mobile */
    }

    .service-slide img, .brand-slide img {
        width: 60px;
        height: auto;
    }

    .service-slide p {
        font-size: 12px;
    }
}

@media screen and (max-width: 768px) {
    #brand-slider {
        animation-duration: 200s !important; /* Slow down animation for mobile */
    }

    #service-slider {
        animation-duration: 40s !important; /* Adjust service slider speed */
    }

    #promotions-slider {
        animation-duration: 100s !important; /* Adjust promotions slider speed */
    }
}
/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

/* Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: white;
    cursor: pointer;
}

.scrolling-banner {
  background-color: #0078D7;
  overflow: hidden;
  padding: 10px 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-loop 20s linear infinite;
  position: relative;
}

.scrolling-text::after {
  content: attr(data-text);
  padding-left: 50px;
}
@keyframes scroll-loop {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.subcategory-slider {
  padding: 30px 20px;
}

.subcategory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.subcategory-header h3 {
  margin: 0;
  font-size: 20px;
  color: #333;
}

.subcategory-header a {
  font-size: 14px;
  color: #0078D7;
  text-decoration: none;
}

.subcategory-products-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.subcategory-products {
  display: flex;
  overflow-x: hidden;
  gap: 15px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  width: 100%;
  scroll-snap-type: x mandatory;
}

.subcategory-product-card {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  flex: 0 0 180px;
  max-width: 180px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  scroll-snap-align: center;
}

.subcategory-product-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}

.arrow {
  background-color: #0078D7;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

.arrow.left {
  margin-right: 10px;
}

.arrow.right {
  margin-left: 10px;
}

.subcategory-products.no-scroll {
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}


.arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Mobile View */
@media screen and (max-width: 768px) {
  .arrow {
    padding: 8px 12px;
    font-size: 18px;
  }

  .subcategory-products {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 10px 0;
  }

  .subcategory-product-card {
    flex: 0 0 80%;
    max-width: 80%;
  }

  .subcategory-products-wrapper {
    justify-content: center;
    align-items: center;
  }

  /* Add invisible spacers to center first/last items */
  .subcategory-products.mobile-center::before,
.subcategory-products.mobile-center::after {
  content: '';
  display: block;
  flex: 0 0 calc((100% - 80%) / 2); /* Centers the product */
  height: 1px; /* So it doesn’t affect height */
  pointer-events: none;
}

}
/* Desktop only: center if fewer than 10 */
@media screen and (min-width: 769px) {
  .subcategory-products.center-desktop {
    justify-content: center;
  }
}

/* === SALE PRODUCTS SLIDER STYLING === */
.sale-slider {
  background: linear-gradient(to right, #fff1f0, #ffeaea);
  padding: 30px 20px;
  border-top: 3px solid #ff4d4f;
  border-bottom: 3px solid #ff4d4f;
}

/* Header: title centered, view more on the right */
.sale-slider .subcategory-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  padding: 0 20px;
}

/* Title styling and centering */
.sale-slider .subcategory-header h3 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #d90429;
  font-size: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 0;
}

.sale-slider .subcategory-header h3::before {
  content: '🔥';
  margin-right: 10px;
  font-size: 28px;
}

/* View More link on the right */
.sale-slider .subcategory-header a {
  font-size: 14px;
  color: #0078D7;
  text-decoration: none;
  z-index: 1;
}

/* Product cards */
.sale-slider .subcategory-products-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.sale-slider .subcategory-products {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  width: 100%;

  /* Hides scrollbar on all modern browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE & Edge */
}

.sale-slider .subcategory-products::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}


.sale-slider .subcategory-product-card {
  background: #fff;
  border: 2px solid #ff4d4f;
  border-radius: 8px;
  padding: 10px;
  flex: 0 0 180px;
  max-width: 180px;
  text-align: center;
  scroll-snap-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: pointer;
}

.sale-slider .subcategory-product-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}

.sale-slider .subcategory-product-card div {
  font-size: 14px;
  color: #333;
}

.sale-slider .subcategory-product-card .price-line {
  color: gray;
  text-decoration: line-through;
  margin-right: 5px;
}

.sale-slider .sale-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: #d90429;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

/* Arrows */
.sale-slider .arrow {
  background-color: #d90429;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

.sale-slider .arrow.left {
  margin-right: 10px;
}

.sale-slider .arrow.right {
  margin-left: 10px;
}

/* Mobile tweaks */
@media screen and (max-width: 768px) {
  .sale-slider .subcategory-header h3 {
    font-size: 24px;
  }

  .sale-slider .arrow {
    padding: 8px 12px;
    font-size: 18px;
  }

  .sale-slider .subcategory-product-card {
    flex: 0 0 80%;
    max-width: 80%;
  }
}

#flash-sale-banner {
  position: relative;
  margin: 30px 0;
  height: 400px;
  overflow: hidden;
  display: none;
}

#flash-sale-banner img#flash-sale-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#flash-sale-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
}

#sale-end-date {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

#sale-ends {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

#sale-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

#sale-discount {
  font-size: 2rem;
  margin-bottom: 15px;
}

#flash-sale-content a {
  padding: 10px 20px;
  background: #d90429;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
}
