/* DroneX v91 — dots-only autoplay Catalog carousel and category-strip rhythm.
   Intentionally scoped to the homepage. Other sliders and templates unchanged. */
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel > .swiper-wrapper {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:stretch;
  grid-template-columns:none !important;
  grid-auto-flow:unset !important;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel .swiper-slide {
  flex-shrink:0 !important;
  min-width:0;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel.swiper-container-multirow > .swiper-wrapper {
  flex-wrap:nowrap !important;
}
/* If the Swiper library fails to load, the catalog is still a usable
   one-row horizontally scrollable product list, not an inaccessible grid. */
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel:not(.swiper-container-initialized) {
  overflow-x:auto !important;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel:not(.swiper-container-initialized) > .swiper-wrapper {
  gap:16px;
  transform:none !important;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel:not(.swiper-container-initialized) .swiper-slide {
  width:calc((100% - 48px)/4);
  flex:0 0 calc((100% - 48px)/4);
}
@media (max-width:991px) {
  .dx-theme.main_page #fn_products_tab .dx-home-product-carousel:not(.swiper-container-initialized) .swiper-slide {
    width:calc((100% - 32px)/3);
    flex-basis:calc((100% - 32px)/3);
  }
}
@media (max-width:767px) {
  .dx-theme.main_page #fn_products_tab .dx-home-product-carousel:not(.swiper-container-initialized) .swiper-slide {
    width:calc((100% - 16px)/2);
    flex-basis:calc((100% - 16px)/2);
  }
}
/* Restrict the non-JS fallback to horizontal scrolling, never a two-row grid. */
.dx-theme.main_page:not(.dx-js) #fn_products_tab .dx-home-product-carousel {
  overflow-x:auto !important;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
/* DroneX v93: the category section alone owns vertical spacing.  Keep the
   section borderless and avoid invisible tile offsets on all breakpoints. */
.dx-theme.main_page .dx-home-content > .dx-home-category-section {
  --dx-v87-home-category-gap:80px;
  margin:0 !important;
  padding-top:80px !important;
  padding-bottom:80px !important;
  border-top:none !important;
}
.dx-theme.main_page .dx-home-category-section > .dx-category-strip.container {
  border:0 !important;
  border-top:none !important;
  box-shadow:none !important;
}
.dx-theme.main_page .dx-home-category-section .dx-category-tile {
  border-top:0 !important;
  margin-top:0 !important;
  padding-top:0 !important;
  padding-bottom:0 !important;
  position:relative;
}
/* No top divider or cyan hover underline: only the existing icon lift remains. */
.dx-theme.main_page .dx-home-category-section .dx-category-tile::before {
  content:none !important;
  display:none !important;
}
@media (max-width:991px) {
 .dx-theme.main_page .dx-home-content > .dx-home-category-section {padding-top:60px !important;padding-bottom:60px !important;}
}
@media (max-width:575px) {
 .dx-theme.main_page .dx-home-content > .dx-home-category-section {padding-top:40px !important;padding-bottom:40px !important;}
 .dx-theme.main_page .dx-home-category-section .dx-category-tile {padding-top:0 !important;}
}

/* v91: Catalog ONLY. No arrows or visible scroll tracks; pagination dots
   remain interactive. Popular Products and product image galleries are unchanged. */
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel {
  padding:2px 2px 46px !important;
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel > .swiper-wrapper {
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel::-webkit-scrollbar,
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel > .swiper-wrapper::-webkit-scrollbar {
  display:none !important; width:0 !important; height:0 !important;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel .swiper-button-prev,
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel .swiper-button-next,
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel .swiper-scrollbar {
  display:none !important;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel.swiper-container-initialized {
  overflow:hidden !important;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel .swiper-pagination {
  display:flex !important;
  justify-content:center;
  align-items:center;
  gap:8px;
  left:0; right:0; width:100%;
  bottom:7px !important;
  pointer-events:auto;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel .swiper-pagination-bullet {
  cursor:pointer;
  margin:0 !important;
}
/* If scripts are unavailable, allow swipe/trackpad access without a visible
   scrollbar; hide nonfunctional dots until Swiper is actually initialized. */
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel:not(.swiper-container-initialized) .swiper-pagination {
  display:none !important;
}


/* DroneX v108 — Catalog pagination in normal document flow.
   The Swiper viewport clips slides only; pagination is a sibling below it.
   This creates a predictable visual gap and avoids fragile negative bottom offsets. */
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel-shell {
  position:relative;
  width:100%;
  margin:0;
  padding:0;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel {
  margin:0 !important;
  padding:2px 2px 0 !important;
  overflow:hidden !important;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel-shell > .dx-home-product-pagination {
  position:static !important;
  inset:auto !important;
  transform:none !important;
  width:100% !important;
  min-height:24px;
  margin:24px 0 0 !important;
  padding:0 !important;
  display:flex !important;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  pointer-events:auto;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel-shell > .dx-home-product-pagination.swiper-pagination-lock {
  display:none !important;
}
.dx-theme.main_page #fn_products_tab .dx-home-product-carousel-shell > .dx-home-product-pagination .swiper-pagination-bullet {
  margin:0 !important;
}
@media (max-width:767px) {
  .dx-theme.main_page #fn_products_tab .dx-home-product-carousel-shell > .dx-home-product-pagination {
    margin-top:18px !important;
  }
}
