/* Hero section */
.hero {
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

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

.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 20px;
}

.carousel-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

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

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: white;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 20;
  width: 100%;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  background-color: #8B4513;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-size: 1.1rem;
  font-weight: bold;
  border: 2px solid #8B4513;
}

.btn:hover {
  background-color: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

/* Featured products */
.featured-products {
  padding: 4rem 0;
}

.featured-products h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: #8B4513;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card h3 {
  padding: 1.2rem 1.2rem 0.5rem;
  font-size: 1.4rem;
  color: #333;
}

.product-card p {
  padding: 0 1.2rem 1.2rem;
  color: #666;
}

/* About intro */
.about-intro {
  background-color: #f9f5f0;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 1rem;
}

.about-intro h2 {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  color: #8B4513;
}

.about-intro p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Store showcase */
.store-showcase {
  padding: 4rem 0;
  background-color: #fff;
}

.store-showcase h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.2rem;
  color: #8B4513;
}

.store-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.store-carousel-track {
  display: flex;
  width: calc(20% * 12); /* 20% per image * 12 images (6 real + 6 duplicates) */
  animation: scroll 30s linear infinite;
}

.store-carousel-slide {
  flex: 0 0 20%; /* 20% width (5 images visible at once) */
  padding: 0 10px;
  box-sizing: border-box;
}

.store-carousel-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move by 50% (6 images) */
  }
}

/* Responsive design */
@media (max-width: 1024px) {
  .carousel-container {
    height: 300px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .carousel-controls {
    padding: 0 10px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .store-carousel-track {
    width: calc(33.33% * 12); /* 33.33% per image * 12 images */
  }

  .store-carousel-slide {
    flex: 0 0 33.33%; /* 33.33% width (3 images visible at once) */
  }
}

@media (max-width: 768px) {
  .store-showcase {
    padding: 1rem 0;
    background-color: #fff;
  }
  /* About intro */
  .about-intro {
    background-color: #f9f5f0;
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 1rem;
  }

  /* Featured products */
  .featured-products {
    padding: 1rem 0;
  }

  .hero {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
  }

  .carousel-container {
    height: 300px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .carousel-controls {
    padding: 0 10px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .store-carousel-track {
    width: calc(50% * 12); /* 50% per image * 12 images */
  }

  .store-carousel-slide {
    flex: 0 0 50%; /* 50% width (2 images visible at once) */
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%); /* Move by 50% (6 images) */
    }
  }
}

@media (max-width: 480px) {
  .store-carousel-track {
    width: calc(100% * 12); /* 100% per image * 12 images */
  }

  .store-carousel-slide {
    flex: 0 0 100%; /* 100% width (1 image visible at once) */
  }
}
