.Product {
  margin: 2% 0%;
}

.Product .product_header_holder {
  margin-top: 30px;
}
.Product .Adv_banner {
  margin: 30px -12px 30px;
}
.Product .product_header_holder .section-heading-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Parent Class Wrapper to isolate styles */
.Product .custom-sort-container {
  margin-left: auto;
  width: fit-content;
  margin-bottom: 20px;
}

/* Dropdown Toggle Button Customization */
.Product .custom-sort-container .btn-light.dropdown-toggle {
  background-color: #f5f5f5 !important;
  border: none !important;
  color: #333333;
  padding: 10px 20px;
  font-size: 16px;
  gap: 20px;
  display: flex;
  align-items: center;
  border-radius: 4px 4px 0 0;
  box-shadow: none !important;
}
/* Dropdown Text Styles */
.Product .custom-sort-container .sort-label {
  color: #555555;
}

.Product .custom-sort-container .sort-value {
  font-weight: 500;
  color: #212529;
}

/* Customizing the Bootstrap Chevron Arrow */
.Product .custom-sort-container .btn-light.dropdown-toggle::after {
  display: inline-block;
  margin-left: 12px;
  vertical-align: middle;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  transition: transform 0.2s ease-in-out;
}

/* Rotate arrow when menu opens */
.Product .custom-sort-container .show .btn-light.dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Dropdown Menu Customization */
.Product .custom-sort-container .dropdown-menu {
  background-color: #ffffff;
  border: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 0 !important;
  padding: 4px 0;
  min-width: 100%;
}

/* Individual Dropdown Items */
.Product .custom-sort-container .dropdown-item {
  color: #212529;
  font-weight: 400;
  padding: 10px 16px;
  font-size: 15px;
  background-color: transparent;
  transition: background-color 0.15s ease;
}
/* Hover and Focus States */
.Product .custom-sort-container .dropdown-item:hover,
.Product .custom-sort-container .dropdown-item:focus {
  background-color: #f8f9fa;
  color: #212529;
}

/* Highlight Selected/Active Option styling */
.Product .custom-sort-container .dropdown-item.active-item {
  font-weight: 600;
  background-color: #f1f3f5;
  color: #212529;
}
.Product .custom-pagination {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
}
.Product .pagination-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #2d2d2d;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}
.Product .pagination-btn:hover {
  background: #ee4823;
}
.Product .pagination-btn.active {
  background: #ee4823;
}
.Product .pagination-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

@media (min-width: 0px) and (max-width: 1199px) {
  .Product .product_header_holder .section-heading-wrapper {
    margin-bottom: 16px;
  }
  .Product .product_header_holder {
    margin-top: 15px;
  }
}

@media (min-width: 992px) {
  .Product .mobile_filter_btn {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  .filter_offcanvas .offcanvas-header {
    position: relative;
    padding: 0 !important;
  }
  .filter_offcanvas .offcanvas-header .custom-close-btn {
    position: absolute;
    top: 4px;
    right: 12px;
    border: none;
    background: none;
    font-size: 22px;
    color: #ffffff;
    cursor: pointer;
  }
  .Product .custom-sort-container {
    margin-bottom: 0;
  }
  .Product .custom-sort-container .btn-light.dropdown-toggle {
    padding: 6px 12px;
    font-size: 15px;
    gap: 9px;
  }
  .Product .product_top_actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  .Product .mobile_filter_btn {
    background: #ee4823 !important;
    border: none !important;
    padding: 4px 11px !important;
    font-weight: 400;
    font-size: 15px;
  }
  .Product .filter_offcanvas {
    width: 320px !important;
  }
  .Product .filter_offcanvas .offcanvas-header {
    border-bottom: 1px solid #eee;
  }
  .Product .filter_offcanvas .offcanvas-body {
    padding: 15px;
  }
  .Product .product_header_holder .section-heading-wrapper {
    flex-wrap: wrap;
  }
  .Product .product_header_holder .section-heading-wrapper .section-heading {
    font-size: 16px;
    margin-bottom: 0px;
  }
  .Product .product_header_holder .section-heading-wrapper .section-subheading {
    font-size: 13px;
  }
  .Product .custom-pagination {
    margin: 25px 0;
  }
}
