:root {
  --primary: #8B5A2B;
  --secondary: #D4A76A;
  --light: #FFF9F0;
  --dark: #333;
  --gray: #777;
  --white: #fff;
  --black: #000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}

.promo-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo h1 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
}

.logo p {
  font-size: 12px;
  color: var(--gray);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.user-actions {
  display: flex;
  gap: 15px;
}

.user-actions a {
  color: var(--dark);
  font-size: 18px;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: var(--white);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 15px 0;
  border-top: 1px solid #eee;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--primary);
}

.hero {
  background: url('https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
  height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.categories {
  padding: 60px 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: var(--white);
  padding: 20px;
  text-align: center;
}

.category-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 10px;
}

.category-info a {
  color: var(--white);
  font-size: 14px;
}

.featured-products {
  padding: 60px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-image {
  position: relative;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.product-info {
  padding: 15px;
}

.product-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.product-desc {
  color: var(--gray);
  font-size: 14px;
  margin: 10px 0;
}

.product-price {
  font-weight: bold;
  margin: 15px 0;
  font-size: 18px;
}

.add-to-cart {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.add-to-cart:hover {
  background: var(--secondary);
}

.view-more-container {
  text-align: center;
  margin-top: 40px;
}

.view-more-btn {
  padding: 12px 30px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 30px;
}

.view-more-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.values {
  background: var(--light);
  padding: 60px 0;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 30px 15px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.value-card i {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 15px;
}

.value-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.newsletter {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 15px;
}

.newsletter p {
  margin-bottom: 30px;
  max-width: 600px;
  margin: 0 auto 30px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  background: var(--secondary);
  color: var(--white);
  border: none;
  padding: 0 25px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.footer {
  background: #222;
  color: #ddd;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-col p {
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: var(--white);
  font-size: 18px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding: 20px 0;
  text-align: center;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 24px;
}

.copyright {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 10px;
}

.legal-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.legal-links a {
  color: #aaa;
  font-size: 12px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: auto;
}

.modal-content {
  background: var(--white);
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  border-radius: 8px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
}

.cart-items-container {
  max-height: 400px;
  overflow-y: auto;
  margin: 20px 0;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.item-info {
  flex: 1;
}

.item-info h4 {
  margin-bottom: 5px;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 25px;
  height: 25px;
  border: 1px solid #ddd;
  background: var(--white);
  cursor: pointer;
}

.remove-item {
  background: none;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 16px;
}

.cart-total {
  text-align: right;
  font-weight: bold;
  font-size: 20px;
  margin: 20px 0;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.checkout-btn:hover {
  background: var(--secondary);
}

#checkout-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.submit-order {
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-order:hover {
  background: var(--secondary);
}

.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 5px;
  color: white;
  z-index: 1000;
  animation: slideIn 0.3s forwards;
}

.notification.info {
  background: #333;
}

.notification.success {
  background: #4CAF50;
}

.notification.error {
  background: #f44336;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.fade-out {
  animation: fadeOut 0.3s forwards;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    padding: 0;
  }
  
  .main-nav li {
    margin: 0;
    border-bottom: 1px solid #eee;
  }
  
  .main-nav a {
    display: block;
    padding: 12px 15px;
  }
  
  .hero h2 {
    font-size: 32px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    border-radius: 4px;
  }
  
  .newsletter-form button {
    margin-top: 10px;
  }
  
  .cart-item {
    flex-direction: column;
    text-align: center;
  }
  
  .item-actions {
    margin-top: 10px;
  }
}