.home {
  background-color: #F8F9FA;
}

.hero-section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero-grid {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.25rem;
}

.hero-banner {
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.hero-banner-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  max-width: 300px;
  color: #1F2937;
  line-height: 1.2;
  transition: transform 0.3s;
}

.hero-banner:hover .hero-banner-title {
  transform: scale(1.05);
}

.hero-banner-desc {
  font-size: 1rem;
  color: #4B5563;
  max-width: 250px;
}

.promo-section {
  padding: 1rem 0 3rem;
  overflow: hidden;
  width: 100%;
}

.promo-grid {
  display: flex;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.promo-marquee-content {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem; /* Same as gap */
}

.promo-grid:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes marquee-reverse {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

.promo-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.promo-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1F2937;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.promo-link {
  font-size: 0.8rem;
  font-weight: bold;
  color: #4B5563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.categories-section {
  padding: 0 0 4rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1F2937;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.categories-marquee-container {
  overflow: hidden;
  width: 100%;
}

.categories-list {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee-reverse 30s linear infinite;
}

.categories-list:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.75rem));
  }
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  cursor: pointer;
  transition: all 0.2s;
}

.category-item:hover {
  transform: translateY(-4px);
}

.category-item:hover .category-img-wrapper {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.category-img-wrapper {
  width: 140px;
  height: 100px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
}

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

.category-name {
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

.products-section {
  padding: 0 0 4rem;
}

.products-section-alt {
  padding: 3rem 0;
  margin-bottom: 4rem;
}

.see-all-link {
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* Responsive Home Styles */
@media (max-width: 1024px) {
  .hero-banner {
    padding: 2.5rem 2rem;
    min-height: 280px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 2rem 1.5rem;
  }
  .hero-banner-title {
    font-size: 1.75rem;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }
  .products-section-alt {
    padding: 2rem 0;
    margin-bottom: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    min-height: 220px;
    padding: 1.5rem;
  }
  .hero-banner-title {
    font-size: 1.5rem;
    max-width: 100%;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }
}
