/* Home Banner Slider Styling */
.home-banner-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.home-banner-swiper {
  width: 100%;
  height: auto;
  position: relative;
}

.home-banner-swiper .swiper-slide {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4f4;
}

.home-banner-swiper .banner-slide-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 650px;
}

/* Swiper Navigation Buttons */
.home-banner-swiper .swiper-button-next,
.home-banner-swiper .swiper-button-prev {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-banner-swiper .swiper-button-next:after,
.home-banner-swiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.home-banner-swiper .swiper-button-next:hover,
.home-banner-swiper .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

/* Swiper Pagination Bullets */
.home-banner-swiper .swiper-pagination {
  bottom: 15px;
}

.home-banner-swiper .swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.5;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.home-banner-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 28px;
  border-radius: 5px;
  background: #ffffff;
}

/* Responsive adjustments for Banner */
@media (max-width: 991px) {
  .home-banner-swiper .banner-slide-img {
    max-height: 450px;
  }
}

@media (max-width: 768px) {
  .home-banner-slider-section {
    margin-bottom: 1.5rem;
  }
  .home-banner-swiper .banner-slide-img {
    max-height: 350px;
  }
  .home-banner-swiper .swiper-button-next,
  .home-banner-swiper .swiper-button-prev {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .home-banner-swiper .banner-slide-img {
    max-height: 250px;
  }
}

/* ==========================================
   Header Nav Dropdown Styling (Desktop)
   ========================================== */
.header--nav ul.menu-list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header--nav ul.menu-list > li {
  position: relative;
}

.header--nav ul.menu-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 28px;
  color: #4a565e;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.header--nav ul.menu-list > li > a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: #0878be;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.header--nav ul.menu-list > li > a:hover,
.header--nav ul.menu-list > li.has-dropdown:hover > a {
  color: #0878be;
}

.header--nav ul.menu-list > li > a:hover::after,
.header--nav ul.menu-list > li.has-dropdown:hover > a::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* FontAwesome dropdown arrow icon */
.header--nav .icon {
  font-size: 0.72rem;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.header--nav li.has-dropdown:hover > a .icon {
  transform: rotate(180deg);
}

/* Dropdown Submenu Container */
.header--nav .dp-content {
  position: absolute;
  top: calc(100% - 12px);
  left: 0;
  min-width: 210px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(220, 227, 232, 0.8);
  border-radius: 10px;
  padding: 8px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

/* Show Submenu on Hover */
.header--nav li.has-dropdown:hover > .dp-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header--nav .dp-content li {
  margin: 0;
  display: block;
}

.header--nav .dp-content li a {
  display: block;
  padding: 10px 18px;
  color: #33414d;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.header--nav .dp-content li a::after {
  display: none !important;
}

.header--nav .dp-content li a:hover {
  background: #f3f7f9;
  color: #0878be;
}

/* ==========================================
   Header Nav Dropdown Styling (Mobile)
   ========================================== */
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid #edf2f5;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: #232b31;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav .mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav .mobile-dp-toggle {
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav .mobile-dp-icon {
  font-size: 0.85rem;
  color: #232b31;
  transition: transform 0.3s ease;
}

.mobile-has-dropdown.is-open .mobile-dp-icon {
  transform: rotate(180deg);
}

.mobile-nav .mobile-dp-content {
  display: none;
  list-style: none;
  padding-left: 14px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 10px;
}

.mobile-has-dropdown.is-open .mobile-dp-content {
  display: block;
}

.mobile-nav .mobile-dp-content li {
  border-bottom: none;
}

.mobile-nav .mobile-dp-content a {
  padding: 10px 0;
  font-size: 0.92rem;
  color: #556370;
}

.mobile-nav .mobile-dp-content a:hover {
  color: #0878be;
}

/* ==========================================
   Product Page Banner Styling
   ========================================== */
.product-banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 2rem;
}

.product-banner-container {
  width: 100%;
  position: relative;
}

.product-banner-img {
  width: 100%;
  height: auto;
  min-height: 220px;
  display: block;
  object-fit: cover;
  max-height: 450px;
}

.product-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.product-banner-title {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

@media (max-width: 991px) {
  .product-banner-img {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .product-banner-section {
    margin-bottom: 1.5rem;
  }
  .product-banner-img {
    max-height: 260px;
  }
  .product-banner-title {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  }
}

@media (max-width: 480px) {
  .product-banner-img {
    max-height: 200px;
  }
}

/* ==========================================
   Product Page Bottom-Left Pagination Styling
   ========================================== */
.custom-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
}

.custom-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dce3e8;
  border-radius: 8px;
  color: #232b31;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.2s ease;
}

.custom-pagination .page-numbers:hover,
.custom-pagination .page-numbers.current {
  background: #0878be;
  color: #ffffff;
  border-color: #0878be;
}

.custom-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}
