.product-page {
  padding-top: 80px;
  background-color: #f8f9fa;
  font-family: "avo"!important;
}

/* Filter Section */
.filter-section {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.filter-section h5 {
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 16px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-option {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-option:hover,
.filter-option.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-filter {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-filter:hover {
  background: #0056b3;
}

.btn-reset {
  background: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-reset:hover {
  background: #545b62;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc3545;
  color: #fff;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 2;
}

.product-info {
  padding: 15px;
}
.product-info a {
  text-decoration: none;
}
.product-image {
  position: relative;
  overflow: hidden;
}

.overlay-search {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 30, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 2;
  color: #fff;
}


.product-image:hover .overlay-search {
  opacity: 1;
}
.product-image img {
  display: block;
  width: 100%;
  height: 100%;              /* nếu khung cố định */
  object-fit: cover;         /* tránh méo ảnh */
  transition: transform 1s ease;
  will-change: transform;
}
.product-image:hover img {
  transform: scale(1.3);    /* zoom nhẹ khi hover */
}


.overlay-search i {
  pointer-events: none; /* Để bấm xuyên qua nếu muốn click vào card */
}
.product-title {
display: -webkit-box; 
  font-size: 16px;
  font-weight: normal;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.4;
  text-align: left;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden; 
}

.product-price { color: #e60023; font-weight: 700; font-size: 16px; }
.product-price del {
  color: #999;
  margin-left: 8px;
  font-size: 14px;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.btn-add-cart {
  flex: 1;
  background: #28a745;
  color: white;
  border: none;
  padding: 10px;
font-family: 'avo';
  border-radius: 5px;
font-weight:bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-add-cart:hover {
  background: #218838;
}

.btn-detail {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-detail:hover {
  background: #0056b3;
}

/* Pagination */
.pagination-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 5px;
}

.pagination li {
  margin: 0;
  background-color: white;
  border-radius: 5px;
}

.pagination a,
.pagination span {
  display: block;
  padding: 5px 10px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: #44b570;
  color: white;
  border-color: #44b570;
}

.pagination .active {
  background: #44b570;
  color: white;
  border-radius: 5px;
}
.pagination .active a {
  color: white;
}

.pagination .disabled {
  color: #6c757d;
  pointer-events: none;
  background: #f8f9fa;
}

/* Brand Slider */
.brand-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.brand-section h3 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 600;
}

.brand-slider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.brand-item:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.brand-item img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
}

/* Offcanvas Cart */
.offcanvas-cart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1050;
  overflow-y: auto;
}

.offcanvas-cart.show {
  right: 0;
}

.cart-header {
  background: #007bff;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h4 {
  margin: 0;
  font-size: 18px;
}

.cart-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.cart-body {
  padding: 20px;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #dee2e6;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.cart-item-price {
  color: #007bff;
  font-weight: 600;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 15px;
}

.btn-checkout {
  width: 100%;
  background: #28a745;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-checkout:hover {
  background: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-grid {
   grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
.product-image{
height:150px;
}
.product-title{
font-size:13px;
}
.btn-add-cart{
font-size: 12px;
}
.product-price{
font-size: 14px;
}
.product-price del {
    color: #999;
    margin-left: 0px;
margin-bottom:10px;
    font-size: 14px;
}
  .filter-options {
    flex-direction: column;
  }

  .filter-buttons {
    flex-direction: column;
  }

  .brand-slider {
    justify-content: center;
  }

  .brand-item {
    min-width: 100px;
  }

  .offcanvas-cart {
    width: 100%;
    right: -100%;
  }
}
.category-description {
margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.category-description ol{
margin-left:20px;
}
.category-description strong {
  font-weight: 600;   /* hoặc 700 nếu muốn đậm hơn */
  color: #222;        /* đậm màu hơn body */
}

/* Heading scale rõ ràng */
.category-description h1 {
  font-size: 20px;
  font-weight: 700;
}
.category-description h2 {
  font-size: 18px;
  font-weight: 600;
}
.category-description h3 {
  font-size: 16px;
  font-weight: 600;
}
.category-description h4 {
  font-size: 14px;
  font-weight: 500;
}
.category-description h5 {
  font-size: 12px;
  font-weight: 500;
}

.category-description h1,
.category-description h2,
.category-description h3,
.category-description h4,
.category-description h5 {
  margin: 15px 0 10px; /* top 15, bottom 10 */
  line-height: 1.4;
}
.category-description ul {     /* bỏ chấm (dot) */
  padding-left: 0;       /* bỏ khoảng thụt đầu dòng */
  margin-left:20px ;             /* tuỳ chỉnh, để gọn hơn */
}

.category-description li {
  margin-bottom: 8px;    /* cho các dòng cách nhau một chút */
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-actions {
    flex-direction: column;
  }

  .pagination a,
  .pagination span {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* test */

/* === OVERRIDE BỘ LỌC === */
.filter-section {
  display: flex;
  /* background: none !important; */
  padding: 20px !important;
}

.filter-section > h5 {
  white-space: nowrap !important;
  margin: 16px !important;
}

/* Container form */
.filter-section form#filterForm {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

/* Select và number-input */
.filter-section form#filterForm select.form-select,
.filter-section form#filterForm input[type="number"] {
  flex: 1 1 auto !important;
  min-width: 120px !important;
  height: 50px !important;
  border: 2px solid #ddd !important;
  border-radius: 0 !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  color: #333 !important;
  background-color: #fff !important;

  box-sizing: border-box !important;
  margin: 0 10px !important;
}

/* Ẩn spinner của number-input */
.filter-section form#filterForm input[type="number"]::-webkit-inner-spin-button,
.filter-section
  form#filterForm
  input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.filter-section form#filterForm input[type="number"] {
  -moz-appearance: textfield !important;
}

/* Dash giữa 2 ô số */
.filter-section form#filterForm > span {
  flex: 0 0 auto !important;
  margin: 0 8px !important;
  font-size: 14px !important;
  color: #666 !important;
  line-height: 40px !important;
}
/* Ẩn arrow gốc và vẽ arrow custom */
.filter-section select.form-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding: 0 32px 0 12px !important; /* chừa 32px bên phải cho arrow */
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  height: 40px !important;
  line-height: 40px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path fill='%23666' d='M0 0l5 6 5-6z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 10px 6px !important;
}

/* Ẩn arrow native trên IE/Edge */
.filter-section select.form-select::-ms-expand {
  display: none !important;
}

/* Ẩn pseudo icon cũ */
.overlay-search::before,
.overlay-search::after {
  display: none !important;
}

/* Thay bằng PNG */
.overlay-search {
  background: rgba(30, 30, 30, 0.55) url("/path/to/search-icon.png") center
    center no-repeat !important;
  background-size: 40px 40px !important; /* chỉnh kích thước icon */
}

/* ===== RESPONSIVE CHO FILTER-SECTION & OVERLAY-SEARCH ===== */

/* Tablet & small desktop (<= 992px) */
@media (max-width: 992px) {
  /* Filter-section chuyển sang cột, mỗi control full-width */
  .filter-section {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px !important;
    gap: 12px !important;
  }
  .filter-section > h5 {
    margin: 0 0 8px 0 !important;
  }
  .filter-section form#filterForm {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .filter-section form#filterForm select.form-select,
  .filter-section form#filterForm input[type="number"] {
    width: 100% !important;
    margin: 0 !important;
  }

  /* Overlay-search: icon nhỏ hơn */
  .overlay-search::before {
    width: 20px !important;
    height: 20px !important;
    border-width: 2px !important;
  }
  .overlay-search::after {
    width: 12px !important;
    height: 2px !important;
    top: 55% !important;
    left: 55% !important;
  }
}

/* Phablet & lớn mobile (<= 768px) */
@media (max-width: 768px) {
  .filter-section {
    padding: 12px !important;
    gap: 8px !important;
  }
  .filter-section > h5 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }
  .filter-section form#filterForm {
    gap: 8px !important;
  }
  .filter-section form#filterForm select.form-select,
  .filter-section form#filterForm input[type="number"] {
    height: 45px !important;
    padding: 0 10px !important;
  }

  .overlay-search::before {
    width: 18px !important;
    height: 18px !important;
    border-width: 2px !important;
  }
  .overlay-search::after {
    width: 10px !important;
    height: 2px !important;
    top: 53% !important;
    left: 53% !important;
  }
}

/* Mobile nhỏ (<= 480px) */
@media (max-width: 480px) {
  .filter-section {
    padding: 8px !important;
    gap: 6px !important;
  }
  .filter-section > h5 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }
  .filter-section form#filterForm {
    gap: 6px !important;
  }
  .filter-section form#filterForm select.form-select,
  .filter-section form#filterForm input[type="number"] {
    height: 40px !important;
    padding: 0 8px !important;
  }

  .overlay-search::before {
    width: 16px !important;
    height: 16px !important;
    border-width: 2px !important;
  }
  .overlay-search::after {
    width: 8px !important;
    height: 2px !important;
    top: 50% !important;
    left: 50% !important;
  }
}
