/* Root styles */
:root {
  --color-bg: #faf6f2;
  --color-primary: #e8cfc6;
  --color-accent: #dcaea2;
  --color-dark: #1a1a1a;
  --color-light: #ffffff;
  --color-gold: #cba15c;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
#header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--color-light);
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

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

nav a:hover {
  color: var(--color-accent);
}

.cart-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon {
  width: 24px;
  height: 24px;
  color: var(--color-dark);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: var(--color-accent);
  color: var(--color-light);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  border: none;
}

.primary-btn {
  background-color: var(--color-dark);
  color: var(--color-light);
}

.primary-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-light);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 6rem;
  background-color: var(--color-bg);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 450px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.hero-image {
  flex: 1 1 400px;
  text-align: center;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Bestsellers Section */
.bestsellers-section {
  padding: 4rem 0;
  background-color: var(--color-light);
}

.bestsellers-section h2 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin-bottom: 2rem;
}

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

.product-card {
  background-color: var(--color-bg);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

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

.product-img {
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 500;
  margin-bottom: 1rem;
}

.add-to-cart {
  background-color: var(--color-accent);
  color: var(--color-light);
  width: 100%;
}

.add-to-cart:hover {
  background-color: var(--color-dark);
}

/* About Section */
.about-section {
  padding: 4rem 0;
  background-color: var(--color-bg);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.about-image {
  flex: 1 1 350px;
}

.about-image img {
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.about-content {
  flex: 1 1 450px;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
}

/* Subscribe Section */
.subscribe-section {
  padding: 4rem 0;
  background-color: var(--color-light);
  text-align: center;
}

.subscribe-content h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.subscribe-content p {
  margin-bottom: 2rem;
}

#subscribe-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

#subscribe-form input[type="email"] {
  padding: 0.75rem 1rem;
  border-radius: 30px;
  border: 1px solid #ddd;
  min-width: 250px;
  font-size: 1rem;
}

#subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
}

#subscribe-form button {
  padding: 0.75rem 2rem;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background-color: var(--color-bg);
  border-top: 1px solid #eee;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: 1rem 1.5rem;
  border-radius: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .about-container {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
