/* phần đầu gồm giỏ hngf logo menu  */
 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }


    .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;
}

        .product-badge.sale {
    background-color: #1998ff; /* cam */
}

.product-badge.exclusive {
    background-color: #8e44ad; /* tím */
}

.product-badge.limited {
    background-color: #16a085; /* xanh lá đậm */
}

.product-badge.bestseller {
    background-color: #d35400; /* cam sẫm */
}
        body {
        
            color: #333;
            line-height: 1.6;
        }
     display:sticky;
        /* Header */
        header {


 background-color: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
         
            width: 100%;
            top: 0;
            z-index: 1000;



   position: fixed;
   background-color: #f5f5f5;

            background-color: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
           top: 0;
              display:flex;
            width: 100%;
            top: 0;
            z-index: 1000;
        }
        .header-container {

            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;





            max-width: 1200px;
        display:flex;
        top:0;
            padding: 0 20px;
    text-align: center;
            justify-content: space-between;
            align-items: center;
            height: 80px;

        }
        .logo {
            font-size: 28px;
            font-weight: bold;
            color: #d4a373;
            text-decoration: none;
        }
        .logo span {
            color: #ea86b7;
        }
        nav {
            display: flex;
           /*align-items: center;*/
          
       
        }
        nav ul {
                  margin-top:  0;
            list-style: none;
            display: flex;
            gap: 30px;
        }
        nav a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: color 0.3s;
        }
  
        nav a:hover {
            color: #ea86b7;
        }
        .cart-icon {
            font-size: 20px;
            color: #333;
            position: relative;
            margin-left: 20px;
        }
        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ea86b7;
            color: white;
            font-size: 12px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }



/* chưa biết làm gì */


/* ================= TABLET ================= */
@media (max-width: 1024px) {
    .slide-btn {
        width: 34px;
        height: 34px;
    }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .hero {
        height: 260px;
    }

    .slide-btn {
        width: 32px;
        height: 32px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
    }
}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {
    .hero {
        height: 220px;
    }

    .slide-btn {
        width: 30px;
        height: 30px;
    }

    .hero-content {
        padding: 0 12px;
    }

    .hero-content .btn {
        padding: 8px 22px;
        font-size: 13px;
    }
}
/* chưa biết làm gì */
/*phần ảnh sile chạy */
 /* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HERO – GIỮ KHUNG CHỮ NHẬT */
.hero {
    width: 100%;
    aspect-ratio: 16 / 9;   /* 🔥 QUAN TRỌNG */
    max-height: 100vh;      /* không vượt quá màn hình */
    overflow: hidden;
}

/* SLIDER */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* VÙNG CHE */
.slides-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* SLIDES */
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

/* IMAGE */
.slides img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

/* BUTTON */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 45px;
    height: 45px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
}

.slide-btn.prev {
    left: 20px;
}

.slide-btn.next {
    right: 20px;
}

.slide-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* HERO CONTENT */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;

    text-align: center;
    color: #fff;
    max-width: 90%;
    padding: 0 15px;
}

.hero-content h1 {
    font-size: clamp(20px, 4vw, 44px);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: clamp(14px, 2.5vw, 18px);
    margin-bottom: 20px;
}

.hero-content .btn {
    padding: 12px 28px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
}


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HERO – GIỮ KHUNG CHỮ NHẬT */
.hero {
    width: 100%;
    aspect-ratio: 16 / 9;   /* 🔥 QUAN TRỌNG */
    max-height: 100vh;      /* không vượt quá màn hình */
    overflow: hidden;
}

/* SLIDER */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* VÙNG CHE */
.slides-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* SLIDES */
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

/* IMAGE */
.slides img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
}

/* BUTTON */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;

    width: 45px;
    height: 45px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
}

.slide-btn.prev {
    left: 20px;
}

.slide-btn.next {
    right: 20px;
}

.slide-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* HERO CONTENT */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;

    text-align: center;
    color: #fff;
    max-width: 90%;
    padding: 0 15px;
}

.hero-content h1 {
    font-size: clamp(20px, 4vw, 44px);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: clamp(14px, 2.5vw, 18px);
    margin-bottom: 20px;
}

.hero-content .btn {
    padding: 12px 28px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
}


/*mobile */
/* MOBILE: VẪN GIỮ KHUNG, KHÔNG FULL HEIGHT */
@media (max-width: 768px) {
    .hero {
        aspect-ratio: 21 / 9; /* giữ nguyên */
    }
}
/* phần hiển thị 3 ô */

    * {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}


/* THẺ CHA */
.feature-wrapper {
  display: flex;
  gap: 16px;
}

/* CARD */
.feature-card {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* BÊN TRONG */
.feature-left {
  display: flex;
  gap: 12px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.feature-label {
  display: inline-block;
  background: #ffe6f0;
  color: #ff2f92;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

.feature-content p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .feature-wrapper {
    flex-direction: column;
  }
}
/* phần hiển thị sản phẩm nổi bật và footer*/
#phandau {
  padding: 40px 10px 20px;
}
        /* Sản phẩm nổi bật */
        .featured-section {
            padding: 30px 20px;
            max-width: 1400px;
            margin: 0 auto;
           
        }
        .featured-title {margin-top:55px;
            text-align: center;
            font-size: 25px;
            margin-bottom: 20px;
            color: #d4a373;
             margin-top: 0;               /* bỏ khoảng trên */
        /* khoảng cách giữa tiêu đề và grid */

        }
        .featured-container {
           
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            display: flex;
            gap: 30px;
            padding-bottom: 10px;
        }
        .featured-container::-webkit-scrollbar {
            display: none;
        }
        .featured-grid {
          
            display: grid;
            grid-auto-flow: column;
            grid-auto-columns: calc((100% - 120px) / 5); /* 5 sản phẩm trên desktop */
            gap: 30px;
        }
        .featured-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
            scroll-snap-align: start;
        }
        .featured-card:hover {
            transform: translateY(-10px);
        }
        .featured-img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* luôn vuông */
    background-size: cover;
    background-position: center;
}
.featured-price {
    display: flex;
    flex-direction: column; /* KHÔNG reverse */
}


@media (max-width: 768px) {


    .featured-container {
        
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .featured-card {
        scroll-snap-align: start;
    }
}
.featured-container {
    scroll-behavior: smooth;
}

        .featured-info {
            padding: 20px;
        }
        .featured-info h3 {
            font-size: 18px;
            margin-bottom: 10px;
        }
        .featured-price {
            font-size: 22px;
            color: #ea86b7;
            font-weight: bold;
        }
        .featured-sale {
            font-size: 16px;
            color: #999;
            text-decoration: line-through;
            margin-left: 10px;
        }

        /* Category Section */
   
        .section-title {
            
            font-size: 36px;
            margin-bottom: 20px;
            color: #d4a373;
        }
        .category-tabs {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }
        .tab-btn {
            padding: 10px 25px;
            background: white;
            border: 2px solid #ea86b7;
            color: #ea86b7;
            border-radius: 30px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }
        .tab-btn.active, .tab-btn:hover {
            background: #ea86b7;
            color: white;
        }
        .product-grid {
            display: grid;
     
              grid-template-columns: repeat(5, 1fr); /* laptop: 4 sp / dòng */
            gap: 30px;
        }
        .product-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        .product-card:hover {
            transform: translateY(-10px);
        }
        .product-img {
            width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 10px;
            background-size: cover;
            background-position: center;
        }
        .product-info {
            padding: 20px;
        }
        .product-title {
            font-size: 18px;
            margin-bottom: 10px;
        }
        .description {
            font-size: 14px;
            color: #666;
            margin-bottom: 15px;
        }
        .price {
            font-size: 22px;
            color: #ea86b7;
            font-weight: bold;
        }
        .sale-price {
            font-size: 16px;
            color: #999;
            text-decoration: line-through;
            margin-left: 10px;
        }
        .add-to-cart {
            background-color: #d4a373;
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 5px;
            color: white;
            font-size: 16px;
            cursor: pointer;
        }
        .add-to-cart:hover {
            background-color: #c0935f;
        }

      
        /* Responsive */
        @media (max-width: 768px) {






           
            nav ul { display: none; flex-direction: column; width: 100%; text-align: center; margin-top: 20px; }
            nav.active ul { display: flex; }

            /* Sản phẩm nổi bật trên mobile: 2 sản phẩm/hàng + vuốt */
            .featured-grid {
                  grid-auto-columns: 50%; /* chính xác 2 ô full width */
           display: grid;
            gap: 10px;
                grid-auto-columns: calc((100% - 30px) / 1); /* 2 sản phẩm */
                gap: 10px;
            }
            .featured-img {
    width: 100%;
    aspect-ratio: 1 / 1;   /* luôn vuông */
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}
            .featured-container {


                 
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0; /* loại bỏ padding thừa */
        -webkit-overflow-scrolling: touch;
    

                 
      
            }

            .category-tabs {
                overflow-x: auto;
                white-space: nowrap;
                padding-bottom: 10px;
            }
            .product-grid {
                
        grid-template-columns: repeat(2, 1fr);
            }
           
        }

        /* Footer */
        /* Footer */
      footer {
            background-color: #2c2c2c;
            color: #ddd;
            padding: 60px 20px 20px;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }

        .footer-col h3 {
            color: #ea86b7;
            margin-bottom: 20px;
            font-size: 20px;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 10px;
        }

        .footer-col a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-col a:hover {
            color: #ea86b7;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            font-size: 20px;
            width: 40px;
            height: 40px;
            background: #444;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .copyright {
            text-align: center;
            padding-top: 40px;
            border-top: 1px solid #444;
            margin-top: 40px;
            color: #aaa;
        }  /* Footer */
      footer {
            background-color: #2c2c2c;
            color: #ddd;
            padding: 60px 20px 20px;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }

        .footer-col h3 {
            color: #ea86b7;
            margin-bottom: 20px;
            font-size: 20px;
        }

        .footer-col ul {
            list-style: none;
        }

        .footer-col ul li {
            margin-bottom: 10px;
        }

        .footer-col a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-col a:hover {
            color: #ea86b7;
        }

        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            font-size: 20px;
            width: 40px;
            height: 40px;
            background: #444;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .copyright {
            text-align: center;
            padding-top: 40px;
            border-top: 1px solid #444;
            margin-top: 40px;
            color: #aaa;
        }
/*hiển thị sản phẩm */

p.description{display:none;}
/*hiển thị 3 thư mục sản phẩm */

/* Section căn giữa nội dung */
.category-section {  
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* font đẹp */
}
/* Nút Xem tất cả */
.view-all-container {
    text-align:center;
    margin-top: 24px;
}

.view-all-btn {
    display: inline-block;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #007bff;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: #007bff;
    color: #fff;
}

.category-section {
   
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* font đẹp */
}

/* Grid sản phẩm */
.product-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px; 
}
            /* Desktop: hiển thị tất cả */
#grid-canvas .product-card,
#grid-khung .product-card,
#grid-bo .product-card{
    display: block; /* hoặc flex, grid tùy bạn */
}
#grid-canvas .sale-price,
#grid-khung .sale-price,
#grid-bo .sale-price{
    display: none; /* hoặc flex, grid tùy bạn */
}
/* Mobile: chỉ hiển thị 6 sản phẩm đầu */
@media (max-width: 768px) {
    @media (max-width: 768px) {
    #grid-canvas .product-card:nth-child(n+7),
    #grid-khung .product-card:nth-child(n+7),
    #grid-bo .product-card:nth-child(n+7) {
        display: none; /* ẩn từ sản phẩm thứ 7 trở đi */
    }
}

}
/*banner giữa sản phẩm */
.small-banner {
    width: 100%;
    max-width: 600px;          /* giới hạn chiều rộng */
    height: 120px;             /* giảm chiều cao */
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.small-banner img {
    width: 100%;
    height: 100%;              /* fill đầy khung */
    object-fit: cover;         /* ảnh co vừa khung, không méo */
    display: block;
}

                                /*điều hướng*/
.mobile-navbar {
        display: none; /* Ẩn mặc định (laptop) */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #ffffff, #ffffff);
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    
        padding: 0px 0;
        z-index: 999;
    }

    .mobile-menu {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-menu a {
        text-decoration: none;
        color: rgb(0, 0, 0);
        font-size: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        transition: 0.3s;
    }

    .mobile-menu a span {
        font-size: 20px;
    }

    .mobile-menu a:hover {
        transform: scale(1.1);
    }

    /* CHỈ HIỂN THỊ TRÊN MOBILE */
    @media (max-width: 768px) {
        .mobile-navbar {
            display: block;
        }
    }
