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

:root {
  --color-primary: #2c1810;
  --color-secondary: #8b6f47;
  --color-accent: #d4a574;
  --color-light: #f5f1ed;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #666666;
}

body {
  font-family: "Georgia", serif;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 3px;
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--color-secondary);
}

.cart-icon {
  position: relative;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}

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

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
  font-family: Arial, sans-serif;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(44, 24, 16, 0.4), rgba(44, 24, 16, 0.4)), url("images/hero-chocolate.jpg") center /
    cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 1px;
}

.cta-button {
  padding: 1rem 3rem;
  font-size: 1rem;
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.3s;
  font-family: Georgia, serif;
}

.cta-button:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.scroll-arrow {
  margin-top: 0.5rem;
  animation: bounce 2s infinite;
}

/* About Section */
.about {
  padding: 8rem 2rem;
  background: var(--color-light);
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.about-content h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
  font-weight: 300;
  letter-spacing: 1px;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.secondary-button {
  padding: 0.8rem 2.5rem;
  font-size: 0.95rem;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.3s;
  margin-top: 1rem;
  font-family: Georgia, serif;
}

.secondary-button:hover {
  background: var(--color-primary);
  color: white;
}

/* Products Section */
.products {
  padding: 8rem 2rem;
  background: var(--color-white);
}

.products-header {
  text-align: center;
  margin-bottom: 4rem;
}

.products-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  font-weight: 300;
  letter-spacing: 1px;
}

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

.products-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.product-card {
  background: white;
  overflow: hidden;
  transition: transform 0.3s;
}

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

.product-image {
  position: relative;
  overflow: hidden;
  height: 400px;
}

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

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 24, 16, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.add-to-cart {
  padding: 1rem 2rem;
  background: white;
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: all 0.3s;
  font-family: Georgia, serif;
}

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

.product-info {
  padding: 2rem;
  text-align: center;
}

.product-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  font-weight: 400;
}

.product-info p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.price {
  font-size: 1.3rem;
  color: var(--color-secondary);
  font-weight: bold;
}

/* Contact Section */
.contact {
  padding: 8rem 2rem;
  background: var(--color-light);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  font-weight: 300;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-item p {
  color: var(--color-text-light);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: Georgia, serif;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* Footer */
.footer {
  background: var(--color-primary);
  color: white;
  padding: 4rem 2rem 2rem;
}

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

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

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

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}

/* Cart Modal */
.cart-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.cart-modal.active {
  display: flex;
}

.cart-content {
  background: white;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.cart-header h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.close-cart {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color 0.3s;
}

.close-cart:hover {
  color: var(--color-primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.empty-cart {
  text-align: center;
  color: var(--color-text-light);
  padding: 2rem;
}

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

.cart-item-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--color-primary);
}

.cart-item-price {
  color: var(--color-secondary);
  font-weight: bold;
}

.remove-item {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.remove-item:hover {
  color: #e74c3c;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.checkout-button {
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 2px;
  transition: background 0.3s;
  font-family: Georgia, serif;
}

.checkout-button:hover {
  background: var(--color-secondary);
}

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content h2,
  .products-header h2,
  .contact-info h2 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
