/* Reset and fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #FFF;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(images/cup-2619216_1920.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  z-index: -1;
}
/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: gold;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  position: relative;
}

.nav a::after {
  content: "";
  height: 2px;
  width: 0;
  background: gold;
  position: absolute;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav a:hover {
  color: #ae8757;
}

.nav a:hover::after {
  width: 100%;
}

/* ICON AREA STYLE */
.icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.icon-link i {
  font-size: 28px;
  color: black;
  transition: transform 0.4s, color 0.4s;
  animation: popIn 1s ease forwards;
}

.cart-count {
  position: absolute;
  top: 8px;
  right: 0px;
  background: red;
  color: white;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-weight: bold;
  display: none; /* Hidden initially if 0 */
}

.icon-link {
  position: relative;
}

/* Make icons hover stylish */
.icon-link i:hover {
  transform: scale(1.2) rotate(10deg);
  color: gold; /* gold color on hover */
}

/* Pop in animation on page load */
@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  80% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('https://images.unsplash.com/photo-1524182576065-3de977adf6c0') no-repeat center/cover;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 20px;
  margin-top: 10px;
}

/* Products Section */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 10px;
}

.product {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 20px;
}

.product:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px gold;
}

.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.scroll-btn {
  padding: 10px 20px;
  background-color: #c9a86b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.scroll-btn:hover {
  background-color: #a88347;
}

#coffee, #tea {
  margin-top: 60px;
  transition: opacity 0.8s ease;
}

.product h2 {
  margin-top: 20px;
  font-size: 22px;
  color: white;
}

.product p {
  margin: 10px 20px;
  font-size: 16px;
  color: #bbb;
}

.product-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  padding-bottom: 20px;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px gold;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card h2 {
  margin-top: 20px;
  font-size: 22px;
  color: white;
}

.product-card p {
  margin: 10px 20px;
  font-size: 16px;
  color: #bbb;
}

.btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: #ae8757;
  color: black;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: white;
  color: black;
}

/* Footer */
.footer {
  background: #000;
  text-align: center;
  padding: 20px;
  color: white;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .nav {
    margin: 15px 0;
    gap: 15px;
    flex-direction: column;
  }

  .nav a {
    font-size: 16px;
  }

  .icons {
    justify-content: center;
    gap: 15px;
  }

  .icon-link i {
    font-size: 24px;
  }

  /* Hero Section */
  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  /* Products Section */
  .products {
    padding: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .product img {
    height: 180px;
  }

  .product h2 {
    font-size: 20px;
  }

  .product p {
    font-size: 14px;
  }

  /* Footer */
  .footer {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  /* Smaller screens */
  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .products {
    padding: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .product img {
    height: 160px;
  }

  .product h2 {
    font-size: 18px;
  }

  .product p {
    font-size: 12px;
  }

  .footer {
    font-size: 10px;
    padding: 10px;
  }
}
