    
       
             .category-section {
            padding: 2px 10px;
            max-width: 1200px;
            margin: 25px auto;
        }
@media (max-width: 768px) {
a.logo{ 
     margin: 0 auto;
}
/*.menu-toggle{position: absolute;margin: 0 auto;
left:0;
margin-left: 10px;}*/
.cart-icon {display:flex;}
header {
        position: relative; /* hoặc static */
    }
}




.menu-toggle{display: none;}
.section-title{
      position: relative;
}
.section-title::before{
     content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background-color: rgb(121, 112, 112);
}
/* ================= MOBILE SLIDE MENU CLEAN ================= */
@media (max-width: 768px) {

    /* overlay */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 999;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }
header nav {
    padding-top: 0 !important;
}

    /* nav trượt */
    header nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 50%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1000;

        padding: 60px 16px 16px; /* 👈 menu bắt đầu sát trên */

        border-radius: 0 16px 16px 0;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);

        transition: left 0.35s ease;
    }

    header nav.active {
        left: 0;
    }

    /* menu list */
    header nav ul {
              margin-top: 70px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    
        padding: 0;
    }

    header nav ul li {
        list-style: none;
    }

    header nav ul li a {
        display: flex;
        align-items: center;
        gap: 12px;

        padding: 14px 16px;
        border-radius: 12px;

        background: #f8f8f8;
        color: #333;

        font-size: 16px;
        font-weight: 500;

        transition: 0.25s;
    }

    /* icon */
    header nav ul li:nth-child(1) a::before { content: "🏠"; }
    header nav ul li:nth-child(2) a::before { content: "🛍️"; }
    header nav ul li:nth-child(3) a::before { content: "🖼️"; }
    header nav ul li:nth-child(4) a::before { content: "🌸"; }
    header nav ul li:nth-child(5) a::before { content: "📞"; }

    header nav ul li a::before {
        font-size: 18px;
    }

    header nav ul li a:hover {
        background: #ffeef2;
        color: #c2185b;
        transform: translateX(6px);
    }

    /* toggle */
    .menu-toggle {
        display: block;
        position: absolute;
        left:0px;
        margin-left: 10px;
        z-index: 1100;
        font-size: 24px;
        cursor: pointer;
    }
    .cart-icon{
        position: absolute;
        right:0;
        margin-right: 10px;
    }

}
        
    .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: 6px 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;
  }
}




    .product-img {
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Giá mới */
.new-price {
    font-size: 18px;
    font-weight: bold;
    color: #e53935;
}

/* Rating sao */
.rating {
    color: #fbc02d;
    font-size: 14px;
    margin: 6px 0 10px;
}
/* % giảm trên trái */
.product-badge-sale {
    position: absolute;
    top: 8px;
    left: 8px;
    background: red;
    color: #fff;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 3;
}

/* Bán chạy / Mới dưới trái */
.product-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
    color: #fff;
    z-index: 3;
}

.product-badge.hot {
    background: orange;
}

.product-badge.new {
    background: green;
}

/* 5* dưới giá */
.product-stars {
    color: gold;
    font-size: 14px;
    margin-top: 4px;
}










    .banner-container{     position: relative; }
 .banner-wrapper {
  
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
}

/* banner item */
.banner-item { 
        flex: 0 0 calc(100% / 3 - 8px); /* 3 banner / màn */
        scroll-snap-align: start;
    }


.banner-item img {
border-radius:10px;
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.banner-item:hover {
    transform: translateY(-5px);
}

/* 📱 MOBILE */
@media (max-width: 768px) {
    .banner-wrapper {
      
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .banner-item {
        flex: 0 0 calc(100% / 2 - 10px); /* 3 banner / màn */
        scroll-snap-align: start;
    }

    .banner-wrapper::-webkit-scrollbar {
        display: none;
    }
}



/* 📱 MOBILE */
@media (max-width: 768px) {
    .slide-nav-left,
    .slide-nav-right {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}






.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;

    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 22px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trái / phải */
.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

    .cart-icon{
    position:relative;
    color:#333;
    font-size:22px;
}

.cart-count{
    position:absolute;
    top:-8px;
    right:-10px;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#ee4d2d;
    color:#fff;
    font-size:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
}
