
    .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

    @media (max-width: 768px) {
   .header-container{position: relative;
        }
        .menu-btn{
     /*       position: absolute;*/
     align-items: right;
            left:0 ;
            margin-bottom: 10px;
        }
        a.logo{
            margin:0 auto;
        }
    }

      
        .sidebar h3 {
    text-align: center;
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 12px 16px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    transition: 0.2s;
}

.category-list li:hover, .category-list li.active {
    background: #e0f7fa;
    font-weight: bold;
}

.price-filter {
    padding: 16px;
    border-top: 1px solid #ccc;
    margin-top: 20px;
}

.price-filter input {
    width: 40%;
    padding: 6px;
    margin: 4px 2px;
}

.price-filter button {
    padding: 6px 12px;
    cursor: pointer;
    background: #00796b;
    color: #fff;
    border: none;
    border-radius: 4px;
}
/* Overlay mờ khi mở menu mobile */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* dưới sidebar (1000) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

/* Khi menu mở → hiện overlay */
.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Optional: Khi mở menu, body không scroll */
body.menu-open {
    overflow: hidden;
}
     
     
    /* ===== DIV 1 TOOLBAR ===== */
.toolbar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #000;
  text-decoration: none;
}



/* Bên phải */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Đếm sản phẩm */
.product-count {
  font-size: 14px;
  color: #333;
}

/* Sort */
.sort select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}

/* MOBILE SORT ẨN TRÊN DESKTOP */
.sort-mobile {
  display: none;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* Ẩn breadcrumb + count */
.breadcrumb,
  .product-count {
    display: none;
  }

  /* Toolbar gọn */
  .toolbar {
    justify-content: flex-end;
  }

  /* Desktop sort ẩn */
  .sort-dropdown {
    display: none;
  }

  /* Mobile sort hiện */
  .sort-mobile {
    display: block;
    width: 100%;
  }
}



    .breadcrumb a{
        font-size: 17px;
    }
    span.new-price{display:block;}
  
    .product-stars{
        display: none;
    }

        
    .mobile-navbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #eee;
  z-index: 999;
}

.mobile-menu {
  display: flex;
  justify-content: space-around;
  padding: 0px 0;
}

.mobile-menu a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #666;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  transition: 0.2s;
}

.mobile-menu a span {
  font-size: 22px;
}

.mobile-menu a.active,
.mobile-menu a:hover {
  color: #000;
}

.mobile-menu a:active {
  transform: scale(0.95);
}

/* CHỈ HIỂN THỊ MOBILE */
@media (max-width: 768px) {
  .mobile-navbar {
    display: block;
  }
}


       .category-section {
         
            max-width: 1200px;
            margin: 0px auto;
        }
    * {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
}

/* ===== LAYOUT ===== */
.layout {
  min-height: 100vh;
  display: flex;
  position: relative;
}

/* ===== SIDEBAR (DIV 2) ===== */
.sidebar {
  width: 220px;
  background: #f5f5f5;
  border-right: 2px solid #000;
}

.sidebar-item {
  padding: 20px;
  border-bottom: 1px solid #000;
}

/* ===== CỘT PHẢI ===== */
.right h1{
     font-size: 27px;
     padding-left: 10px;
}
.right {
   
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* DIV 1 */
.top {
  display: flex;
  align-items: center;
  
}

.top-item {
  flex: 1;
  text-align: center;
  padding: 16px;
  border-left: 1px solid #000;
}

.menu-btn {
  display: none;
  padding: 10px;
  font-size: 22px;
  background: none;
  border: none;
}

/* DIV 3 */
.content {
  flex: 1;
  padding: 0px;
}

/* ===== OVERLAY ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 998;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .menu-btn {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -240px;
    height: 100vh;
    z-index: 999;
    transition: 0.3s ease;
  }

  .sidebar.active {
    left: 0;
  }

  .overlay.active {
    display: block;
  }
}
/*mmmmmmmmmmmmmmmmmmmmmmmmmmmm*/
   
    .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* tối đa 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px; /* giữ chiều cao cố định */
}
.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.old-price {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    opacity: 0.8;
}


.btn.add-to-cart {
    background: #ff6b81;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}
.btn.add-to-cart:hover {
    background: #ff3b5c;
    transform: translateY(-2px);
}

/**/
.price-filter {
    margin-top: 20px;
}

.range-wrapper{
    position:relative;
    height:40px;
}

.slider-track{
    position:absolute;
    top:16px;
    left:0;
    width:100%;
    height:5px;
    background:#ddd;
    border-radius:999px;
}

.range-wrapper input[type="range"]{
    position:absolute;
    width:100%;
    left:0;
    top:0;
    background:none;
    pointer-events:none;
    -webkit-appearance:none;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance:none;
    width:18px;
    height:18px;
    border-radius:50%;
    background:#b9edf1;
    border:2px solid #fff;
    cursor:pointer;
    pointer-events:auto;
}

#min-range{
    z-index:4;
}

#max-range{
    z-index:3;
}

.price-display {
    text-align: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #353333;
}

#filter-price-btn {
    width: 100%;
    border: none;
    padding: 10px;
    border-radius: 8px;
    background: #68dcff;
    color: white;
    cursor: pointer;
}

#filter-price-btn:hover {
    opacity: .9;
}
    /**/
    .pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 6px;
    transition: .3s;
}

.pagination button:hover {
    background: #f3f3f3;
}

.pagination button.active {
    background: #2c2b2b;
    color: #fff;
    border-color: #c9c9c9;
}

.pagination .page-nav {
    font-weight: bold;
}

    @media (max-width: 768px) {

    .sidebar {
        position: fixed;
        top: 0;
     

        overflow-y: auto;      /* cho phép vuốt lên xuống */
        -webkit-overflow-scrolling: touch;

        background: #fff;
        z-index: 1000;

        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

}
    .mobile-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    transform: translateY(0);
    opacity: 1;
    visibility: visible;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease,
        visibility 0.35s;
}

.mobile-navbar.hide {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
