/* list and grid */
#productsContainer.list-view .product-item {
  flex: 0 0 100%;
  max-width: 100%;
}

.product-item a {
    position: relative;
}

#productsContainer.list-view .col-md-3 {
  flex: 0 0 100%;
  max-width: 100%;
}

#productsContainer.list-view .card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border: none;
}

#productsContainer.list-view .card .product-image {
  width: 160px;
  flex-shrink: 0;
}

#productsContainer.list-view .card .product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

#productsContainer.list-view .card-body {
  flex: 1;
  padding: 0;
}

#productsContainer.list-view .card-title {
  /* font-size: 1.1rem; */
  font-size: 20px;
  margin-bottom: 8px;
}
/* list and grid */
/* main */
.productsFilter {
    border-right: 1px solid #e7e7e7;
    margin-top: 1.5rem;
}
#productsMain {
    border-top: 1px solid #e7e7e7;
}
@media (max-width: 768px) {
    .productsFilter {
        display: none;
    }
}
/* card-title chỉ hiện 2 dòng khi quá dài */
.card-title {
  /* display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis; */
  font-size: 20px;
}
/* main */
/* pagination */
.custom-pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    gap: 8px;
    margin-top: 20px;
}

.custom-pagination li {
    display: inline-block;
}

.custom-pagination li a,
.custom-pagination li span {
    width: 36px;
    height: 36px;
    line-height: 36px;
    display: inline-block;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background-color: transparent;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-size: 14px;
}

.custom-pagination li a:hover {
    background-color: #eee;
}

.custom-pagination li.disabled span {
    color: #aaa;
    background-color: #f5f5f5;
    border-color: #eee;
    cursor: not-allowed;
}
/* pagination */
/* ============================== Category ============================== */
/* Category pagination */
.custom-pagination-brown li.active span {
    background-color: #b4886b;
    color: white;
    border-color: #b4886b;
}
.custom-pagination-blue li.active span {
    background-color: #2dc0c4;
    color: white;
    border-color: #2dc0c4;
}
.custom-pagination-orange li.active span {
    background-color: #e85a1c;
    color: white;
    border-color: #e85a1c;
}
/* Category pagination */
.product-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
}
#productsContainer.list-view .card .product-image {
  width: 200px !important;
  flex-shrink: 0 !important;
}
@media (max-width: 768px) {
  .product-image img {
    height: 230px !important;
    padding: 8px !important;
  }

  .card {
    padding: 8px;
  }

  .card-body {
    padding: 8px 0;
  }

  .row.g-4 {
    --bs-gutter-y: 0.75rem !important;
    --bs-gutter-x: 0.5rem !important;
  }

  .product-title, .product-price, .rating {
    font-size: 14px;
  }
}