/* Premium E-commerce Website CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #3a5a40;
  --primary-light: #588157;
  --secondary: #f8f9fa;
  --accent: #a3b18a;
  --gold: #dda15e;
  --text: #212529;
  --text-light: #6c757d;
  --white: #fff;
  --black: #000;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --glass: rgba(255, 255, 255, 0.8);
  --blur: 10px;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--secondary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Header Styles */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.header-icons {
  display: flex;
  gap: 1.5rem;
}

.icon-link {
  font-size: 1.2rem;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.icon-link:hover {
  color: var(--primary);
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(to right, var(--primary-light), var(--primary));
  color: var(--white);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: scale(1.05);
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}

.cta-btn.primary {
  background: var(--white);
  color: var(--primary);
}

.cta-btn.primary:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta-btn.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cta-btn.secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  padding: 4rem 0;
  background: var(--white);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--secondary);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  position: relative;
  color: var(--text);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

/* Product Sections */
.featured, .new-arrivals {
  padding: 5rem 0;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 2;
}

.product-badge.sale {
  background: #e74c3c;
}

.product-badge.bestseller {
  background: var(--gold);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-actions {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: bottom var(--transition);
}

.product-card:hover .product-actions {
  bottom: 0;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  color: var(--text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-size: 0.9rem;
}

.product-rating span {
  color: var(--text-light);
  margin-left: 0.5rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.current-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.old-price {
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.view-more {
  text-align: center;
  margin-top: 3rem;
}

.view-more-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
}

.view-more-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Categories Section */
.categories {
  padding: 5rem 0;
  background: var(--secondary);
}

.category-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  transition: all var(--transition);
}

.category-card:hover .category-info {
  background: linear-gradient(to top, rgba(58, 90, 64, 0.9), transparent);
}

.category-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.category-link {
  display: inline-block;
  color: var(--white);
  font-weight: 500;
  transition: all var(--transition);
}

.category-link i {
  margin-left: 0.3rem;
  transition: transform var(--transition);
}

.category-link:hover i {
  transform: translateX(5px);
}

/* Banner Section */
.banner {
  padding: 5rem 0;
  background: url('https://images.unsplash.com/photo-1607082350899-7e105aa886ae?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') center/cover no-repeat;
  position: relative;
  color: var(--white);
  text-align: center;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background: var(--white);
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

.testimonial-rating {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.testimonial-author p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Newsletter Section */
.newsletter {
  padding: 5rem 0;
  background: var(--primary-light);
  color: var(--white);
  text-align: center;
}

.newsletter-content h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

/* Footer Styles */
footer {
  background: var(--text);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-light);
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  opacity: 0.8;
  transition: all var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-light);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.contact-info i {
  margin-top: 5px;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .product-list, .category-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }
  
  .feature-list, .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    gap: 1rem;
  }
  
  .product-list, .category-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .product-list, .category-list, .feature-list, .footer-content {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
}