.slider {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  height: 500px;
  background:#f5f5f5;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease;
}

.slide {
  width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay {
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.45); */

}

/* .content {
            position: absolute;
            inset: 50% 0 0 0;

            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            text-align: center;            
            color: white;
            z-index: 2;

            width: min(90%, 1200px);
            margin: auto;

            transform: translateY(-50px);
            
            padding: 20px;
        } */

.content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0px;
  /* cách đáy 0px */

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: white;
  z-index: 2;

  width: min(90%, 1200px);
  margin: auto;

  padding: 20px;
}

.content.animate {
  animation: fadeUp 0.8s ease forwards;
}

.content h1 {
  font-size: 60px;
  background: #ff6b00;
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  animation: fadeUp 1s;
}

.content p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: #ff6b00;
  font-size: 20px;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: 0.3s;
}

.btn:hover {
  background: #ff4500;
  transform: translateY(-3px);
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.2);
  color: rgb(255, 166, 0);
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  opacity: 0.5;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
  transform: scale(1.3);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
  }
}


@media(max-width:768px) {

  .slider {
    width: 100%;
    height: 350px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  .slide {
    width: 100%;
    height: 350px;
    position: relative;
    flex-shrink: 0;

  }

  .slide img {
    height: 350px;
    width: 100%;
    object-fit: contain;

  }

  .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
  }

  .content h1 {
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
  }

  .content p {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
  }

  .btn {
    padding: 10px 20px;
    font-size: 20px;
  }

  .nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .prev {
    left: 5px;
  }

  .next {
    right: 5px;
  }

  .dots {
    bottom: 15px;
    gap: 6px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

}

/* HERO */
.hero {
  min-height: 90vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
    url('https://images.unsplash.com/photo-1466692476868-aef1dfb1e735?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 40px;
}

.hero-content {
  max-width: 1000px;
}

.hero h1 {
  font-size: 58px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  margin-bottom: 35px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #6dff9b;
  color: #145c2b;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.3s;
}

.hero-btn:hover {
  transform: translateY(-3px);
  background: white;
}

/* SECTION */
section {
  padding: 40px 5%;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 40px;
  color: #1f7a3d;
  margin-bottom: 10px;
}

.section-title p {
  color: #666;
}

/* ================= GIỚI THIỆU ================= */

.about {
  /* background: #b7bb82; */
  background: #f1f5c3;  
  background-image: url("../img/bg2Copy.png");
  background-repeat: no-repeat;
  background-position:top left;
  background-size: 300px;
  padding: 60px 5%;
}

.about-container {
  max-width: 1300px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.about-left {
  flex: 2;
  min-width: 300px;
  /* margin-bottom:20px */
}

.about-left h1 {
  font-size: 58px;
  margin-bottom: 20px;
}

.about-left p,
.about-full p {
  font-size: 18px;
  line-height: 2;
  color: #333;
  margin-bottom: 20px;
}

.about-btn {
  display: inline-block;
  margin-top: 25px;
  background: #7f8551;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: bold;
}

.about-right {
  flex: 1;
  min-width: 300px;
  margin-bottom: 20px;
}

.about-right img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.about-full {
  /* max-width:1100px; */
  /* margin:80px auto 0; */
  /* padding:50px; */
  /* background:rgba(255,255,255,.35); */
  max-width: 1300px;
  margin: auto;
  /* backdrop-filter: blur(5px); */
  border-radius: 24px;
}

/* ================= Khuyến mãi ================= */
.hot-title {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 2rem;
  font-weight: 800;
  color: #e11d48;

  margin-bottom: 25px;
  padding-left: 14px;

  border-left: 5px solid #e11d48;
  position: relative;
}

.hot-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, #e11d48, #fb7185);
  border-radius: 999px;
}

.hot-icon {
  font-size: 1.8rem;
  animation: flicker 1.5s infinite;
}

@keyframes flicker {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* ================= DANH MỤC ================= */

.category-section {
  padding: 60px 5%;
}

.bg-hot {
  /* background: #e8e9da; */
  background:#f5f5f5;
  background-image: url("../img/leaves1-wo-bg.png");
  background-repeat: no-repeat;
  background-position:top right;
  background-size: 300px;
}

.bg-light {
  background: #f1f5c3;  
  background-image: url("../img/bg2.png");
  background-repeat: no-repeat;
  background-position:left bottom;
  background-size:300px;
  /* opacity: 0.08; */
}

.bg-green {
  background: #f5f5f5; 
  background-image: url("../img/leaves1-wo-bg.png");
  background-repeat: no-repeat;
  background-position:top right;
  background-size: 300px;
}

.category-container {
  max-width: 1300px;
  margin: auto;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.category-title {
  font-size: 52px;
  font-weight: bold;
  /* color:#111827; */
  color: #111827;
}

.view-all-btn {
  background: #a3aa63;
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: bold;
}

/* ================= PRODUCTS ================= */

.product-grid {
  display: grid;
  padding: 20px;
  max-width: 1300px;
  margin: auto;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.product-name {
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
  min-height: 50px;
  color: #883600;
}

.product-price {
  font-size: 22px;
  color: #b45309;
  font-weight: bold;
  margin: 12px 0;
}

.buy-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #7f8551;
  color: white;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: bold;
}

.empty {
  font-size: 18px;
  color: #444;
}

.loading {
  font-size: 18px;
  color: #666;
}