/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #f5f7f6;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= TOP BAR ================= */
.top-bar {
  background: #1f7a4f;
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ================= HEADER ================= */
.header {
  background: #fff;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f7a4f;
  font-size: 48px;
  font-weight: bold;
  text-decoration: none;
}

.logo img {
  width: 60px;
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* ================= BUTTONS ================= */
.btn-primary {
  background: #1f7a4f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.btn-secondary {
  background: #ff8c1a;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* ================= HERO ================= */
.hero {
  background: #e8f4ee;
  padding: 50px 0;
}

.hero-flex {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-text h1 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #1f7a4f;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #555;
}

.hero-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ================= SLIDER ================= */
/* Slider Section */
.slider-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.slider-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slides {
  display: flex;
  width: 500%;
  height: 450px;
  animation: slideAnimation 20s infinite;
}

.slide {
  width: 20%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots {
  text-align: center;
  padding: 20px 0;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
  transition: background 0.4s;
}

.dot:hover {
  background: #666;
}

@keyframes slideAnimation {
  0% { transform: translateX(0%); }
  16% { transform: translateX(0%); }
  20% { transform: translateX(-20%); }
  36% { transform: translateX(-20%); }
  40% { transform: translateX(-40%); }
  56% { transform: translateX(-40%); }
  60% { transform: translateX(-60%); }
  76% { transform: translateX(-60%); }
  80% { transform: translateX(-80%); }
  96% { transform: translateX(-80%); }
  100% { transform: translateX(0%); }
}

/* ================= PRODUCT GRID ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 15px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.add-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.category-badge {
  position: absolute;
  bottom: 100px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
}

/* ================= FLOATING MESSENGER ICON ================= */
.floating-icons {
  position: fixed;
  right: 12px;
  bottom: 120px;
  z-index: 1000;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e4e9ed, #d0d7d9);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn svg {
  width: 55px;
  height: 55px;
  fill: #fff;
}

/* ================= FOOTER ================= */
.footer {
  background: #1f7a4f;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
  }
  .slides {
    height: 300px;
  }
}

/* 🔥 MOBILE PRODUCT GRID + ICON */
@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 10px;
  }

  .product-image {
    height: 160px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-price {
    font-size: 16px;
  }

  .add-button {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  .category-badge {
    font-size: 12px;
    bottom: 80px;
  }

  .product-card:active {
    transform: scale(0.97);
  }

  .floating-icons {
    right: 8px;
    bottom: 100px;
  }

  .float-btn {
    width: 55px;
    height: 55px;
  }

  .float-btn svg {
    width: 27px;
    height: 27px;
  }
}
