* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: darkolivegreen;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand h1 {
  color: #2d5a27;
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.nav-brand span {
  font-size: 0.8rem;
  color: #666;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a.hover {
  color: #2d5a27;
}
.nav-action {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-box {
  display: flex;
  background: #f5f5f5;
  border-radius: 25px;
  padding: 0.5rem;
}

.search-box input {
  border: none;
  background: none;
  padding: 0.5rem;
  outline: none;
  width: 200px;
}

.search-box button {
  background: #2d5a27;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 35px;
  cursor: pointer;
}

.cart-icon {
  background: #2d5a27;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.cart-icon:hover {
  background: #1e3a1a;
}

.cart-count {
  background: #e74c3c;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 150px 0 100px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-btn {
  background: #2d5a27;
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.hero-btn:hover {
  background: #1e3a1a;
  transform: translateY(-2px);
}

/* Categories Section */
.Categories {
  padding: 80px 0;
  background: #f8f9fa;
}

.Categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2d5a27;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.category-item {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.category-item:hover {
  transform: translateY(-10px);
}

.category-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.category-item h3 {
  color: #2d5a27;
  margin-bottom: 0.5rem;
}

.category-item p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.item-count {
  background: #2d5a27;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

/* Featured product */
.Featured {
  padding: 80px 0;
  background: white;
}

.Featured h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2d5a27;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid #2d5a27;
  background: white;
  color: #2d5a27;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: #2d5a27;
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: tranform 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
}

.product-badge.new {
  background: #27ae60;
  color: white;
}

.product-badge.limited {
  background: #e74c3c;
  color: white;
}

.product-badge.premium {
  background: #f39c12;
  color: white;
}

.product-badge.exclusive {
  background: #9b59b6;
  color: white;
}

.product-badge:not(.new):not(.limited):not(.premium):not(
    .product-badge.exclusive
  ) {
  background: #3498db;
  color: white;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2d5a27;
}

.seller {
  color: #666;
  font-size: 0.5rem;
  margin-bottom: 0.8rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.stars {
  color: #ffd700;
  font-size: 1.1rem;
}

.rating-count {
  color: #666;
  font-size: 0.9rem;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.current-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #e74c3c;
}

.original-price {
  text-decoration: line-through;
  color: #999;
}

.discount {
  background: #e74c3c;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

.shipping {
  color: #27ae60;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.add-to-cart {
  width: 100%;
  background: #2d5a27;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  transition: background 0.3s;
}

.add-to-cart:hover {
  background: #1e3a1a;
}

.quick-view {
  width: 100%;
  background: white;
  color: #2d5a27;
  border: 2px solid #2d5a27;
  padding: 10px;
  border-radius: 9px;
}

.quick-view:hover {
  background-color: #2d5a27;
  color: white;
}

/* Deal Section */
.Deals {
  padding: 80px 0;
  background: #2d5a27;
  color: white;
}

.Deals h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.deals-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.deal-timer {
  background: #e74c3c;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.deal-card.h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.deal-btn {
  background: white;
  color: #2d5a27;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s;
}

.deal-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.About {
  padding: 80px 0;
  background: #f8f9fa;
}

.About h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2d5a27;
}

.Features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  color: #2d5a27;
  margin-bottom: 1rem;
}
/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  transition: right 0.3s;
  z-index: 2000;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.cart-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
}

.cart-items {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  color: #2d5a27;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-weight: bold;
  color: #e74c3c;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #eee;
}

.cart-total {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.checkout-btn {
  width: 100%;
  background: #2d5a27;
  color: white;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
}

.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-details img {
  width: 100%;
  border-radius: 10px;
}

.product-detail h1 {
  color: #2d5a27;
  margin-bottom: 1rem;
}

.product-specs {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.product-specs h4 {
  color: #2d5a27;
}

.product-specs ul {
  list-style: none;
}

.product-specs li {
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1500;
}

.overlay.active {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .search-box input {
    width: 150px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .filter-bar {
    flex-direction: column;
    align-items: center;
  }
}
