/* ================= General Reset ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================= Header ================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #eeee;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2a9d8f;
} */
header .logo {
  width:50px;
  height:50px;
  font-weight: 700;
  color: #2a9d8f;
}
header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav a:hover {
  color: #2a9d8f;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= Hero Section ================= */
.hero {
  height: 100vh;
  background: url('images/hero-bg.jpg') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(38,70,83,0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeInUp 1.5s ease forwards;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: #e76f51;
  color: #fff;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ================= Product Grid ================= */
.products {
  padding: 4rem 2rem;
  text-align: center;
}

.products h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #264653;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.product-grid.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.product-card img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.product-card .price {
  font-weight: bold;
  color: #e76f51;
  font-size: 1.1rem;
}

/* ================= About & Contact Sections ================= */
.about, .contact {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #222222;
}
.about p {
  color: white;
}
.image-container {
  display: flex;
  justify-content: space-between; /* evenly spaces the images */
  align-items: center;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  gap: 2rem; /* optional gap between images */
  max-width: 1200px;
  margin: auto;
}

.image-item {
  width: 30%; /* each image takes roughly 1/3 of container */
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-item:hover {
  transform: scale(1.05);
}

/* Responsive: stack images on smaller screens */
@media (max-width: 768px) {
  .image-item {
    width: 100%;
    margin-bottom: 1.5rem;
  }
}
.container {
  max-width: 900px;
  margin: auto;
}

.about h2, .contact h2 {
  color: #264653;
  margin-bottom: 1rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: auto;
}

.contact input, .contact textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact button {
  background: #2a9d8f;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact button:hover {
  background: #21867a;
}
/* ================= Featured Carousel ================= */
.featured {
  padding: 4rem 2rem;
  text-align: center;
  background: #f0f4f8;
}

.featured h2 {
  font-size: 2rem;
  color: #264653;
  margin-bottom: 2rem;
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease-in-out;
}

.carousel-card {
  min-width: 250px;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex-shrink: 0;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.carousel-card img {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.carousel-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.carousel-card .price {
  color: #e76f51;
  font-weight: bold;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(38,70,83,0.8);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: #2a9d8f;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Responsive Carousel */
@media (max-width: 768px) {
  .carousel-card {
    min-width: 200px;
  }
}


/* ================= Footer ================= */
footer {
  text-align: center;
  padding: 2rem;
  background: #264653;
  color: #fff;
  margin-top: 4rem;
}

/* ================= Animations ================= */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: -100%;
    background: #fff;
    width: 200px;
    padding: 1rem;
    gap: 1rem;
    transition: right 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  header nav ul.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
    color: #333;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
/* Product Detail Page */
.product-detail {
  padding: 4rem 2rem;
  text-align: center;
}

.product-detail-card {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-detail-card img {
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
}

.product-detail-info {
  flex: 1;
  text-align: left;
}

.product-detail-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-detail-info .price {
  color: #e76f51;
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-detail-info p {
  margin-bottom: 1.5rem;
}

.product-detail-info .btn {
  display: inline-block;
}
.product-card-link, .carousel-card-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.product-card-link:hover .product-card,
.carousel-card-link:hover .carousel-card {
  transform: translateY(-5px) scale(1.02);
}
