/* Warehouse CSS - Scoped to .warehouse-page */
/* V1 Logic: Inherited from warehouse estore styles */

/* Banner Section */
.warehouse-page .slider.banner-home {
  margin-bottom: 20px;
}

.warehouse-page .slider.banner-home .swiper {
  position: relative;
}

.warehouse-page .slider.banner-home .swiper-slide {
  position: relative;
}

.warehouse-page .slider-background {
  color: #111;
  background-color: #e0a800;
  border-color: #d39e00;
  padding: 5px 10px !important;
  margin-top: 5px;
  border-radius: 5px;
}

.warehouse-page .slider-background .banner {
  display: block;
  width: 100%;
  height: auto;
}

.warehouse-page .slider-background .banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Hide Swiper Navigation and Pagination in banner carousel */
.warehouse-page .banner-carousel-wrapper .swiper-button-next,
.warehouse-page .banner-carousel-wrapper .swiper-button-prev {
  display: none !important;
}

.warehouse-page .banner-carousel-wrapper .swiper-pagination {
  display: none !important;
}

/* Hide Swiper Navigation and Pagination in ads carousel */
.warehouse-page .ads-carousel-wrapper .swiper-button-next,
.warehouse-page .ads-carousel-wrapper .swiper-button-prev {
  display: none !important;
}

.warehouse-page .ads-carousel-wrapper .swiper-pagination {
  display: none !important;
}

/* Forwarder Shipper Ads Section */
.warehouse-page .forwarder-shipper {
  margin-top: 20px;
}

/* Left Sidebar Styles */
.warehouse-page .left-sidebar {
  /* padding: 15px; */
  background: #f8f9fa;
  border-radius: 8px;
}

.warehouse-page .tool-select {
  position: relative;
  margin-left: auto;
  text-align: right;
}

.warehouse-page .tool-select select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  background-color: #ff6f00;
  font-weight: 700;
  color: #fff;
  width: 180px;
  text-align: center;
}

.warehouse-page .left-sidebar h2.widget-title {
  font-size: 1.6rem;
  /* font-weight: 600; */
  margin-bottom: 0.75rem;
  color: #333;
  color: #0064d3;
}

/* Filter Widget Styles */
.warehouse-page .widget-sidebar {
  margin-bottom: 1.5rem;
}

.warehouse-page .widget-sidebar .btn--menutoggle {
    color: #FFF;
    display: none;
    padding: 0.5em;
    border: 1px solid rgb(0, 100, 211);
    background: rgb(0, 100, 211);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.warehouse-page .widget-sidebar .btn--menutoggle i {
  float: right;
}

.warehouse-page .widget-sidebar ul.widget-content {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.warehouse-page .widget-sidebar ul.widget-content li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.warehouse-page .widget-sidebar ul.widget-content li:last-child {
  border-bottom: none;
}

/* Radio/Checkbox Input Styles */
.warehouse-page .left-sidebar input[type="radio"],
.warehouse-page .left-sidebar input[type="checkbox"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 16px;
  height: 16px;
  margin-right: 8px !important;
  vertical-align: middle !important;
  border: 1px solid #938f8f;
  border-radius: 50%;
  position: relative;
}

.warehouse-page .left-sidebar label {
  cursor: pointer;
  margin-bottom: 0;
  font-weight: normal;
}

.warehouse-page .left-sidebar label h3 {
  display: inline;
  font-size: 1.4rem;
  font-weight: normal;
  margin: 0;
}

/* Remove filter button */
.warehouse-page .remove_checked {
  float: right;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.2rem;
}

.warehouse-page .remove_checked:hover {
  color: #c82333;
}

/* Product/Warehouse Item Styles */
.warehouse-page .product-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
}

.warehouse-page .product-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Advertisement Item Highlight */
.warehouse-page .advertisement-item {
  border: 2px solid #ffc107;
  background: #fffbf0;
}

.warehouse-page .adv-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.warehouse-page .adv-highlight {
  position: relative;
}

/* Product Head */
.warehouse-page .product-head {
  padding-bottom: 10px;
  /* border-bottom: 1px solid #eee; */
  margin-bottom: 15px;
}

.warehouse-page .product-head h2 {
  font-size: 1.6rem;
  margin: 0;
  color: #007bff;
  text-transform: capitalize;
}

.warehouse-page .product-head h2:hover {
  text-decoration: underline;
}

/* Product Body */
.warehouse-page .product-body {
  margin-bottom: 15px;
}

.warehouse-page .product-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-height: 150px;
}

.warehouse-page .product-detail {
  margin: 0;
}

.warehouse-page .product-detail dt {
  font-weight: 600;
  color: #666;
  font-size: 1.3rem;
  margin-bottom: 5px;
  text-transform: capitalize;
}

.warehouse-page .product-detail dd {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 5px;
  text-transform: capitalize;
}

.warehouse-page .product-detail dd h3 {
  font-size: 0.95rem;
  font-weight: normal;
  margin: 0;
}

/* Company Info */
.warehouse-page .img-container {
  display: flex;
  align-items: center;
}

.warehouse-page .img-container img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

/* Info Popup */
.warehouse-page .popup.ion-ios-information-outline {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
  color: #6c757d;
}


/* Top Filter Search */
.warehouse-page .search-option {
  background: #f8f9fa;
  /* padding: 15px; */
  /* border-radius: 8px; */
  margin-bottom: 20px;
}

.warehouse-page .search-option input[type="text"] {
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 11px 1rem;
  font-size: 14px;
}
.warehouse-page .search-option input::placeholder{
  color: #ccc;
}
.warehouse-page .search-option button {
  border-radius: 4px;
  width: 100%;
  height: 45px;
}

/* Mobile Filter Button */
.warehouse-page .btn-filter-responsive {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none;
}

/* Sticky Header */
.warehouse-page .sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.warehouse-page .pagination-wrapper {
  margin-top: 30px;
}

.warehouse-page .pagination {
  justify-content: center;
}

/* Empty State */
.warehouse-page .link-filter-suggesst {
  display: inline-block;
  padding: 5px 15px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.warehouse-page .link-filter-suggesst:hover {
  background: #007bff;
  color: #fff !important;
  border-color: #007bff;
}

/* Buying Request Button */
.warehouse-page .btn-buying-request {
  color: #111;
  background-color: #e0a800;
  border-color: #d39e00;
  padding: 10px 20px !important;
  margin-top: 10px;
  border-radius: 5px;
  display: inline-block;
  text-decoration: none;
}

.warehouse-page .btn-buying-request:hover {
  background-color: #d39e00;
  color: #000;
}

/* Banner Styles - V1 warehouse/banners.tpl equivalent */
.warehouse-page .banner-home {
  margin-bottom: 20px;
}

.warehouse-page .banner-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.warehouse-page .banner-carousel-wrapper .swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.warehouse-page .banner-carousel-wrapper .swiper-pagination {
  bottom: 15px;
}

.warehouse-page .banner-carousel-wrapper .swiper-button-next,
.warehouse-page .banner-carousel-wrapper .swiper-button-prev {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.warehouse-page .banner-carousel-wrapper .swiper-button-next:after,
.warehouse-page .banner-carousel-wrapper .swiper-button-prev:after {
  font-size: 16px;
}

/* Advertisement Banner Styles */
.warehouse-page .forwarder-shipper {
  margin-bottom: 20px;
}

.warehouse-page .ads-carousel-wrapper {
  position: relative;
}

.warehouse-page .ads-carousel-wrapper .swiper-slide {
  height: auto;
}

.warehouse-page .ads-carousel-wrapper .swiper-slide img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.warehouse-page .ads-carousel-wrapper .swiper-slide img:hover {
  transform: scale(1.05);
}

.warehouse-page .ads-carousel-wrapper .swiper-pagination {
  bottom: -25px;
}

.warehouse-page .ads-carousel-wrapper .swiper-button-next,
.warehouse-page .ads-carousel-wrapper .swiper-button-prev {
  color: #007bff;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.warehouse-page .ads-carousel-wrapper .swiper-button-next:after,
.warehouse-page .ads-carousel-wrapper .swiper-button-prev:after {
  font-size: 12px;
}

/* Menu Toggle Styles - Inherited from logistics pattern */
.warehouse-page .nav--main ul {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  list-style: none;
}

.warehouse-page .nav--main ul li {
  margin: 0;
  padding: 0;
  display: block;
}

.warehouse-page .btn--menutoggle {
  color: #FFF;
  display: block;
  padding: 0.5em;
  background: rgb(13, 120, 239);
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.warehouse-page a.btn--menutoggle-active {
  background: rgb(13, 120, 239);
}

.warehouse-page .nav--responsive {
  display: none;
}

.warehouse-page .nav--main h2 {
  display: block;
}
.btn-filter-responsive{
  display: none;
}
.warehouse-page .nav--main h3 {
  font-size: 0.813rem;
  margin-bottom: 0;
}

/* Responsive Menu Toggle - Mobile & Tablet (up to 991px) */
@media only screen and (max-width: 991px) {
  .warehouse-page .left-sidebar{
    margin-bottom: 20px;
  }
  .warehouse-page .pagination-info {
    margin-bottom: 10px;
  }
  .warehouse-page .widget-sidebar .btn--menutoggle{
    display: block;
    color: #fff !important;
  }

  .warehouse-page .nav--main h2,
  .warehouse-page .nav--main .widget-title {
    display: none !important;
  }

  .warehouse-page .btn-filter-responsive {
    display: block;
  }



  .warehouse-page .product-detail dt,
  .warehouse-page .product-detail dd {
    font-size: 0.85rem;
  }

  .warehouse-page .banner-carousel-wrapper .swiper-slide img {
    max-height: 200px;
  }

  .warehouse-page .ads-carousel-wrapper .swiper-slide img {
    height: 60px;
  }

  .warehouse-page .banner-carousel-wrapper .swiper-button-next,
  .warehouse-page .banner-carousel-wrapper .swiper-button-prev {
    width: 35px;
    height: 35px;
  }
}

/* Responsive Menu Toggle - Desktop (992px and up) */
@media only screen and (min-width: 992px) {
  .warehouse-page .nav--main ul li {
    display: inline-block;
    margin-right: 1em;
    width: 100%;
  }

  .warehouse-page a.btn--menutoggle {
    display: none;
  }

  .warehouse-page .nav--main .nav--responsive {
    display: block;
  }
}

/* Custom Popup for Help */
.warehouse-page .custom-pop {
  position: relative;
}

.warehouse-page .custom-pop .popup {
  position: absolute;
  margin: -1px -1px 0 0;
}

.warehouse-page .custom-pop .content-popup {
  display: none;
  z-index: 9999;
  position: absolute;
  right: 0;
  bottom: 16px;
  min-width: 172px;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 4px;
}


/* Active Items Tracking (V1 Logic) */
.warehouse-page .product-item.active {
  animation: fadeInUp 0.5s ease;
}

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

/* Table Styles for Popup */
.warehouse-page .content-popup table {
  margin-bottom: 0;
}

.warehouse-page .content-popup table td,
.warehouse-page .content-popup table th {
  line-height: 1.0rem;
  padding: 5px;
}
.warehouse-page .custom-tool {
  position: absolute;
  right: 0;
  top: -26px;
  /* transform: translateY(-50%); */
  color: #6c757d;
  cursor: pointer;
}

/* Ion Icons Tooltip Styles - Using Ionicons CDN */

.warehouse-page .popup {
  position: relative;
  display: inline-block;
  cursor: help;
  /* color: #6c757d; */
  font-size: 11px;
  margin-left: 5px;
  vertical-align: middle;
  visibility: visible;
  pointer-events: auto;
}

.warehouse-page .popup:hover {
  color: #007bff;
}

.warehouse-page .popup .help-icon {
  font-size: 12px;
  font-weight: bold;
  vertical-align: middle;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  /* background: #6c757d; */
  color: #b4b1b1;
  transition: all 0.3s ease;
  border: 1px solid #b4b1b1;
}

.warehouse-page .popup:hover .help-icon {
  background: #ff6f00;
  color: white;
}

.warehouse-page .popup:hover .content-popup {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #605e5e;
}

.warehouse-page .content-popup {
  font-size: 14px;
  position: absolute;
  padding: 4px;
  right: 0;
  /* background: #ff6f00; */
  border: 1px solid #b4b1b1;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 9999;
  display: none;
  min-width: 200px;
  /* max-width: 300px; */
  /* color: white; */
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: #fff;
  text-align: left;
}
.warehouse-page .title-leftsibar{
  margin-bottom: 25px;
}
.warehouse-page .select2-container--default .select2-selection--single{
  height: 45px;
  border: 1px solid #ced4da;
}
.warehouse-page .select2-container .select2-selection--single .select2-selection__rendered{
  font-weight: 400;
}
.select2-search.select2-search--dropdown{
  display: block !important;
    padding: 4px !important;
    background: #ffff;
    border: 1px solid #ccc;
    border-bottom: none;
}
.select2-container .select2-dropdown .select2-search input{
  border: 1px solid #aaa !important;
  padding-left: 8px !important;
  border:1px solid #d8d5d5 !important;
  width: 100% !important;
}
.select2-results {
  display: block;
  margin-top: 0 !important;
}
.warehouse-page .btn-warehouse-nomal{

  padding: 4px 10px !important;
  border-radius: 5px;
  color: #868e96;
  background-color: transparent;
  background-image: none;
  border: 1px solid #868e96;
  margin-right: 5px;
}
.warehouse-page  .auction-item .popup {
  position: relative;
  cursor: pointer;
}
.warehouse-page .exclamation-icon{
  font-size: 12px;
  font-weight: bold;
  vertical-align: middle;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  /* background: #6c757d; */
  color: #b4b1b1;
  transition: all 0.3s
ease;
  border: 1px solid #b4b1b1;
}
.warehouse-page  .product-body{
  margin-bottom: 10px;
}
.warehouse-page  .product-detail dd h3 {
  font-size: 14px;
  font-weight: normal;
  margin: 0;
  color: #212529;
}
.warehouse-page .contact-supplier, .warehouse-page  .btn-login-contact{
  border: 1px solid #0064d3;
  border-radius: 3px;
  background-color: #0064d3;
  color: #FFF;
  padding: 5px 10px;
}
.warehouse-page  .btn-login-contact{
  margin-right: 10px;
}
.warehouse-page .btn-view-detail{
    border: 1px solid #868e96;
    border-radius: 3px;
    /* background-color: #868e96; */
    color: #868e96;
    padding: 5px 10px;
    padding: 5px 10px;
    margin: 0 10px;
}
/* Pagination Styles */
.warehouse-page .logistics-pagination .pagination-info {
  font-size: 1.4rem;
}

.warehouse-page.logistics-pagination .pagination {
  margin: 0;
}

.warehouse-page .logistics-pagination .page-link {
  padding: 0.375rem 0.75rem;
  font-size: 1.4rem;
  border-color: #dee2e6;
  color: #0064d3;
}

.warehouse-page .logistics-pagination .page-item.active .page-link {
  background-color: #0064d3;
  border-color: #0064d3;
  color: white;
}

.warehouse-page .logistics-pagination .page-item.disabled .page-link {
  color: #6c757d;
  background-color: #fff;
  border-color: #dee2e6;
}
.warehouse-page .left-sidebar input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background-color: #0064d3; /* xanh */
  border-radius: 50%;
}
.warehouse-page .logistics-pagination .page-link:hover {
  color: #0056b3;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}
.verify-company {
  color: #0064d3;
}
.warehouse-page .product-item:hover{
  box-shadow: 0 4px 0px #ff7519;
  border-color: #ff7519 !important;
}
.warehouse-page .box-line{
  justify-content: space-between !important;
}

.warehouse-page .avatarUrl-href > img  {
  width: 4rem;
    height: 4rem;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    border-radius: .8rem;
    border: 0.1rem solid var(--bd-gray);
}

/* Advertisement styling for warehouse2 */
.warehouse-page .homes-prod-item.advertisement-item {
  border: 2px solid #ffc107;
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
  position: relative;
}

.warehouse-page .homes-prod-item.advertisement-item.featured-ad {
  border-color: #dc3545;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.warehouse-page .adv-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.warehouse-page .adv-badge .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Pagination styling for warehouse2 */
.warehouse-page .page-numbers.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.warehouse-page .page-numbers.current {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

.warehouse-page .promotion-page-see form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.warehouse-page .promotion-page-see input[type="text"] {
  width: 60px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}
.warehouse-page  .support-cate-dropdown{
  max-height: 300px;
  overflow-y: auto;
}
.warehouse-page .support-cate-dropdown.maxBot{
  top:100% !important;
  bottom: unset !important;
}
.warehouse-page  .homes-prod-item .inner .box-line .val-big {
  font-size: 1.2rem;
  position: relative;
}
