p {
  color: #002910;
}

.sign-in-btn {
  background-color: #3CA400;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-right: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  animation: slideIcons 0.8s ease-out forwards;
}

.sign-in-btn:hover {
  background-color: #0e3f00;
  transform: translateY(-3px);
}
/* Product Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #121212;
  margin: 5% auto;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: slideUp 0.4s ease;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: none;
  user-select: none;
  z-index: 1001;
}

.close:hover {
  color: #555;
  transform: none;
}

/* Product Modal Specific Styles */
.product-modal-content {
  width: 80%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

.product-detail-container {
  display: flex;
  flex-wrap: wrap;
}

.product-detail-image {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-detail-info {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

#product-detail-title {
  font-size: 28px;
  margin-bottom: 15px;
  color: #fff;
}

#product-detail-price {
  font-size: 24px;
  color: #0e3f00;
  margin-bottom: 20px;
  font-weight: bold;
}

#product-detail-description {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #b0b0b0;
}

#product-detail-category {
  display: inline-block;
  padding: 5px 15px;
  background-color: #2a2a2a;
  border-radius: 15px;
  margin-bottom: 25px;
  color: #3CA400;
  font-size: 14px;
}

.product-detail-actions {
  display: flex;
  gap: 15px;
}

.add-to-cart-btn, .buy-now-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn {
  background-color: #2a2a2a;
  color: #fff;
  border: 2px solid #0e3f00;
}

.add-to-cart-btn:hover {
  background-color: #0e3f00;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.buy-now-btn {
  background: linear-gradient(90deg, #0e3f00, #3CA400);
  color: #fff;
}

.buy-now-btn:hover {
  background: linear-gradient(90deg, #3CA400, #0e3f00);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

/* Modal animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .product-detail-container {
    flex-direction: column;
  }
  
  .product-modal-content {
    width: 95%;
  }
}
/* Make sure you adjust the nav-icons display to accommodate the new button */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideIcons 0.8s ease-out forwards;
}
.sign-in-btn {
  background-color: #3CA400;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-right: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  animation: slideIcons 0.8s ease-out forwards;
}

.sign-in-btn:hover {
  background-color: #00a382;
  transform: translateY(-3px);
}

/* Make sure you adjust the nav-icons display to accommodate the new button */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  animation: slideIcons 0.8s ease-out forwards;
}
/* Hero Section with Multiple Background Images */
.hero {
  height: 500px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  overflow: hidden; /* Ensure images don't overflow */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  z-index: -1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Lighter overlay for better visibility */
}

/* Remove the .active class as we'll use animations instead */

.hero-bg-1 {
  background-image: url("../image.main/a.jpg");
  animation: fadeInOut 15s infinite;
}

.hero-bg-2 {
  background-image: url("../image.main/b.jpg");
  animation: fadeInOut 15s infinite 5s; /* 5s delay */
}

.hero-bg-3 {
  background-image: url("../image.main/c.jpg");
  animation: fadeInOut 15s infinite 10s; /* 10s delay */
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
  }
  16%, 33% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Keep the existing hero content styles */
.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  position: relative;
  z-index: 1;
}
.hero .btn {
  position: relative;
  z-index: 1;
}
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #effff1;
  color: #f0f0f0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: #ffffff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #3CA400;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: slideLogo 0.8s ease-out forwards;
}

@keyframes slideLogo {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.logo:hover {
  transform: scale(1.05);
}

.logo span {
  color: #3CA400;
}

.nav-links {
  display: flex;
  list-style: none;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nav-links li {
  margin-left: 25px;
  opacity: 0;
  animation: slideInNav 0.5s ease forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInNav {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-links a {
  color: #3CA400;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0e3f00;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: slideIcons 0.8s ease-out forwards;
}

@keyframes slideIcons {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.cart-icon, .user-icon {
  font-size: 20px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.cart-icon:hover, .user-icon:hover {
  transform: scale(1.2);
  color: #0e3f00;
}

.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #3CA400;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.cart-icon:hover .cart-count {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("/api/placeholder/1200/500") center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
}

.btn {
  display: inline-block;
  background-color: #0e3f00;
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #145b00;
  transform: translateY(-3px);
}

/* Featured Products */
.featured {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: #00ab3e;
}

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

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

.product-card:hover {
  transform: translateY(-10px);
}

.product-img {
  height: 200px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-price {
  font-size: 22px;
  color: #3CA400;
  margin-bottom: 15px;
  font-weight: bold;
}

.product-actions {
  display: flex;
  justify-content: space-between;
}

.add-to-cart {
  background-color: #3CA400;
  padding: 8px 15px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-to-cart:hover {
  background-color: #00a382;
  transform: translateY(-3px);
}

.buy-now {
  background-color: #0e3f00;
  padding: 8px 15px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.buy-now:hover {
  background-color: #145b00;
  transform: translateY(-3px);
}

/* Categories */
.categories {
  padding: 60px 0;
  background-color: #f3fffa;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.category-card {
  height: 200px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.category-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s ease;
}

.category-card:hover .category-bg {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
  z-index: 2;
  transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
  background: linear-gradient(to bottom, rgba(108, 92, 231, 0.4), rgba(0, 0, 0, 0.8));
}

.category-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: bold;
  color: white;
  z-index: 3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease;
  text-align: center;
  width: 100%;
}

/* Update the hover effect since we're changing the base transform */
.category-card:hover .category-name {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Newsletter */
.newsletter {
  padding: 60px 0;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content p {
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
  background-color: #2d2d2d;
  color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.newsletter-form input:focus {
  background-color: #3d3d3d;
  outline: none;
}

.newsletter-form button {
  padding: 12px 20px;
  background-color: #0e3f00;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #145b00;
  transform: translateX(3px);
}

/* Footer */
footer {
  background-color: #1a1a1a;
  padding: 40px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #0e3f00;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #0e3f00;
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #b0b0b0;
  font-size: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #0e3f00;
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #b0b0b0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #1e1e1e;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  animation: modalFade 0.3s;
}

@keyframes modalFade {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.close:hover {
  color: #fff;
  transform: rotate(90deg);
}

.cart-modal-title {
  margin-bottom: 20px;
  text-align: center;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

.cart-item-info {
  display: flex;
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
}

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

.cart-item-name {
  font-weight: bold;
}

.cart-item-price {
  color: #3CA400;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
}

.quantity-btn {
  background-color: #333;
  border: none;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quantity-btn:hover {
  background-color: #555;
}

.quantity-input {
  width: 40px;
  text-align: center;
  margin: 0 5px;
  background-color: #2d2d2d;
  border: none;
  color: white;
  padding: 3px;
  border-radius: 3px;
}

.remove-item {
  color: #ff6b6b;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

.remove-item:hover {
  color: #ff4f4f;
  transform: scale(1.2);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: #3CA400;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.checkout-btn:hover {
  background-color: #00a382;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .navbar {
    flex-wrap: wrap;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 15px;
  }
  
  .nav-links li {
    margin: 0 10px;
  }
}
/* Enhanced Animations for MartStore Homepage */
/* Enhanced Animations for MartStore Homepage */

/* Product Card Animations */
.product-card {
  position: relative;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Stagger product card animations */
#featured-products .product-card:nth-child(1) { animation-delay: 0.1s; }
#featured-products .product-card:nth-child(2) { animation-delay: 0.2s; }
#featured-products .product-card:nth-child(3) { animation-delay: 0.3s; }
#featured-products .product-card:nth-child(4) { animation-delay: 0.4s; }
#featured-products .product-card:nth-child(5) { animation-delay: 0.5s; }
#featured-products .product-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section title animations */
.section-title {
  position: relative;
  overflow: hidden;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0e3f00, #3CA400);
  transform: translateX(-50%);
  animation: expandLine 1s 0.5s forwards;
}

@keyframes expandLine {
  from { width: 0; }
  to { width: 100px; }
}

/* Hero content animations */
.hero h1 {
  animation: glowText 3s ease-in-out infinite;
}

@keyframes glowText {
  0%, 100% {
    text-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(108, 92, 231, 0.8), 0 0 30px rgba(0, 184, 148, 0.5);
  }
}

/* Button hover effect enhancements */
.btn, .add-to-cart, .buy-now, .checkout-btn {
  position: relative;
  overflow: hidden;
}

.btn::before, .add-to-cart::before, .buy-now::before, .checkout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before, .add-to-cart:hover::before, .buy-now:hover::before, .checkout-btn:hover::before {
  left: 100%;
}

/* Category card animations */
.category-card {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

/* Stagger category animations */
.category-grid .category-card:nth-child(1) { animation-delay: 0.2s; }
.category-grid .category-card:nth-child(2) { animation-delay: 0.4s; }
.category-grid .category-card:nth-child(3) { animation-delay: 0.6s; }
.category-grid .category-card:nth-child(4) { animation-delay: 0.8s; }

.category-name {
  position: relative;
}

.category-name::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3CA400;
  transition: width 0.3s ease;
}

.category-card:hover .category-name::after {
  width: 100%;
}

/* Newsletter section animation */
.newsletter-form input, .newsletter-form button {
  transform: scale(0.95);
  animation: pulseForm 2s infinite alternate;
}

.newsletter-form button {
  animation-delay: 1s;
}

@keyframes pulseForm {
  from { transform: scale(0.95); }
  to { transform: scale(1); }
}

/* Scroll-triggered animations */
/* Add these classes via JavaScript */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer animation */
.footer-column {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.3s; }
.footer-column:nth-child(3) { animation-delay: 0.5s; }
.footer-column:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}