* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-green: #10b981;
  --dark-green: #047857;
  --light-green: #d1fae5;
  --white: #ffffff;
  --dark-bg: #0f172a;
  --light-gray: #f3f4f6;
  --text-dark: #1f2937;
  --text-light: #6b7280;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

/* Header Styles */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-green);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-green);
}

.notify-btn {
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.notify-btn:hover {
  background-color: var(--dark-green);
}

/* Hero Section with Slider */
.hero {
  height: 500px;
  overflow: hidden;
  position: relative;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider {
  display: flex;
  height: 100%;
  animation: autoSlide 12s infinite;
}

.slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  font-size: 2rem;
  transition: 0.5s ease-in-out;
}

.slide-1 {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.slide-2 {
  background: linear-gradient(135deg, #059669 0%, #065f46 100%);
}

.slide-3 {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.slide h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes autoSlide {
  0% {
    transform: translateX(0);
  }
  33% {
    transform: translateX(-100%);
  }
  66% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0);
  }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--text-dark);
  border: none;
  padding: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  z-index: 100;
}

.slider-btn.prev {
  left: 2rem;
}

.slider-btn.next {
  right: 2rem;
}

.slider-btn:hover {
  background-color: var(--white);
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 100;
}

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

.dot.active {
  background-color: var(--white);
}

/* Announcement Section */
.announcement {
  background-color: var(--light-green);
  padding: 3rem 2rem;
  text-align: center;
}

.announcement-content h2 {
  font-size: 2.5rem;
  color: var(--dark-green);
  margin-bottom: 1rem;
}

.announcement-content p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.time-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-unit span {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--dark-green);
  display: block;
}

.time-unit p {
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* Featured Products Section */
.featured-products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

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

.product-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
  color: var(--text-dark);
}

.product-desc {
  padding: 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: bold;
  color: var(--primary-green);
  font-size: 1.1rem;
}

.save-btn {
  background-color: var(--light-green);
  border: 2px solid var(--primary-green);
  color: var(--dark-green);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.save-btn:hover {
  background-color: var(--primary-green);
  color: var(--white);
}

/* Categories Section */
.categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background-color: var(--light-gray);
}

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

.category-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.category-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.category-link {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.category-link:hover {
  color: var(--dark-green);
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.submit-btn {
  background-color: var(--white);
  color: var(--primary-green);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--light-gray);
}

.newsletter-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-light);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-green);
}

/* Notification Popup */
.notification-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.notification-popup.active {
  display: flex;
}

.popup-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.close-popup {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.popup-content h2 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.popup-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-content input {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 1rem;
}

.popup-content button {
  background-color: var(--primary-green);
  color: var(--white);
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-content button:hover {
  background-color: var(--dark-green);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

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

  .slide p {
    font-size: 1rem;
  }

  .slider-btn.prev,
  .slider-btn.next {
    padding: 0.5rem;
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .announcement-content h2 {
    font-size: 1.8rem;
  }

  .countdown {
    gap: 1rem;
  }

  .time-unit span {
    font-size: 1.8rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input,
  .submit-btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
