@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --color-cream: #FDFBF7;
  --color-beige: #F2E8D5;
  --color-olive-dark: #4A5D23;
  --color-olive-light: #6B8E23;
  --color-wood: #3E2723;
  --color-gold: #D4AF37;
  --color-red: #C62828;
  --color-white: #FFFFFF;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-wood);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

/* Hero Section */
#hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-color: #2F1B15;
  /* Fallback dark wood color */
  background-image: url('hero_bg_v5.png');
  background-size: cover;
  background-position: center bottom;
  /* Aligns board */
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  /* Push content to bottom if needed, but image is main focus */
  justify-content: center;
}

/* Headline Area */
#headline {
  background-color: var(--color-beige);
  text-align: center;
  padding: 6rem 0 2rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
}

#headline h2 {
  font-size: 2.5rem;
  color: var(--color-wood);
  margin-bottom: 0.5rem;
}

#headline p {
  font-size: 1.1rem;
  color: #5D4037;
  margin-bottom: 2rem;
}

/* Navigation */
nav {
  background-color: var(--color-olive-dark);
  padding: 1rem 0;
  border-radius: 50px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
}

nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

#cart-icon {
  font-size: 0.8rem;
  /* Reset size for text */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a:hover {
  color: var(--color-gold);
}

/* Product Showcase */
#products {
  background-color: var(--color-cream);
  text-align: center;
}

#products h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: var(--color-wood);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: transparent;
  padding: 1rem;
  border-radius: 10px;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card img {
  width: 100%;
  max-width: 350px;
  border-radius: 15px;
  /* Gentle rounding */
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
}

.product-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-olive-dark);
  margin: 0.5rem 0;
}

.btn-buy {
  background-color: var(--color-olive-light);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
  border: none;
  font-family: var(--font-sans);
  cursor: pointer;
}

.btn-buy:hover {
  background-color: var(--color-olive-dark);
  transform: scale(1.05);
}

/* Features */
#features {
  background-color: #FDFBF7;
  padding: 4rem 0 6rem;
}

#features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-wood);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.feature-item svg {
  width: 64px;
  height: 64px;
  color: var(--color-olive-dark);
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-wood);
}

.feature-item p {
  font-size: 0.95rem;
  color: #6D4C41;
  max-width: 250px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-image: url('footer_wood_bg.png');
  background-size: 500px;
  /* Tiling pattern */
  color: white;
  padding: 4rem 0;
  position: relative;
}

/* Darken footer generic overlay if texture is too bright */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(40, 25, 15, 0.6);
  /* Tint */
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
  padding-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-icon {
  color: var(--color-gold);
  flex-shrink: 0;
}

.footer-copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s;
}

.social-icon-img:hover {
  transform: scale(1.1);
}

.newsletter input {
  padding: 0.8rem;
  border-radius: 5px;
  border: none;
  width: 70%;
  margin-right: 0.5rem;
}

.newsletter button {
  padding: 0.8rem;
  border-radius: 5px;
  border: none;
  background-color: var(--color-olive-light);
  color: white;
  cursor: pointer;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: row;
  /* Apply row layout */
  align-items: center;
  gap: 0.8rem;
  /* Space between text and bars */
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger-bars {
  display: flex;
  flex-direction: column;
}

.menu-label {
  color: var(--color-white);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--color-white);
  margin: 3px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  #headline h2 {
    font-size: 2rem;
  }

  /* Fix Hero Image on Mobile */
  /* [modified] Updated to v2 image, cover size, and increased height */
  #hero {
    background-image: url('hero_mobile_v2.jpg?v=2');
    background-size: cover;
    /* Changed from contain to cover to remove borders */
    background-repeat: no-repeat;
    background-position: center;
    height: 60vh;
    /* Increased height */
    min-height: 400px;
    /* Increased min-height */
  }

  /* Center "Carrinho de compras" text */
  #cart-icon {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
    z-index: 100;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-olive-dark);
    padding: 1rem 0;
    z-index: 99;
    border-radius: 0 0 10px 10px;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  nav ul li {
    text-align: center;
    margin: 0.5rem 0;
  }

  nav {
    border-radius: 10px;
    width: 90%;
    padding: 0.5rem 1rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Section Spacing */
  section {
    padding: 2rem 0;
  }

  .mobile-only-nav {
    display: block;
    /* Show on mobile */
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #1da34e;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
  margin-top: 2px;
  /* Visual adjustment */
}

/* Cart Styles */
.cart-badge {
  background-color: var(--color-red);
  color: white;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  position: relative;
  top: -10px;
  left: -5px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  width: 100%;
  max-width: 400px;
  background: var(--color-cream);
  height: 100%;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-overlay.open .cart-sidebar {
  transform: translateX(0);
}

.cart-header {
  padding: 1.5rem;
  background: var(--color-olive-dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.cart-header button {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-beige);
  padding-bottom: 1rem;
}

.cart-item-details h4 {
  font-size: 1rem;
  color: var(--color-wood);
}

.cart-item-details p {
  font-size: 0.9rem;
  color: var(--color-olive-light);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item-controls button {
  background: var(--color-beige);
  border: none;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

.cart-footer {
  padding: 1.5rem;
  background: var(--color-white);
  border-top: 1px solid var(--color-beige);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--color-wood);
}

.btn-checkout {
  width: 100%;
  background-color: #1aa74d;
  /* WhatsApp Green */
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-checkout:hover {
  background-color: #128C7E;
}

.empty-cart-msg {
  text-align: center;
  color: #6D4C41;
  margin-top: 2rem;
}

/* Checkout Form Styles */
.checkout-form {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.checkout-form.hidden {
  display: none;
}

.cart-items-container.hidden,
.cart-footer.hidden {
  display: none;
}

.checkout-form h3 {
  margin-bottom: 1.5rem;
  color: var(--color-wood);
}

.checkout-form input {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid var(--color-beige);
  border-radius: 5px;
  background-color: var(--color-white);
  font-family: var(--font-sans);
}

.checkout-form input:focus {
  outline: none;
  border-color: var(--color-olive-light);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-back {
  background-color: var(--color-wood);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  flex: 1;
}

.btn-back:hover {
  background-color: #2F1B15;
}

/* Recipes Section */
#recipes {
  background-color: var(--color-beige);
  padding: 5rem 0;
}

#recipes h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--color-wood);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.recipe-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.recipe-card h3 {
  color: var(--color-olive-dark);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.mobile-only-nav {
  display: none;
  /* Hidden by default on desktop */
}

.admin-login-link {
  color: var(--color-gold);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.admin-login-link:hover {
  opacity: 0.8;
}

/* History Section */
#history {
  background-color: var(--color-white);
  /* Contrast with recipe beige */
  padding: 5rem 0;
  text-align: center;
}

#history h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-wood);
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #5D4037;
  line-height: 1.8;
}

.story-content p {
  margin-bottom: 1.5rem;
}

.story-footer {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-olive-dark);
  font-weight: bold;
  margin-top: 2rem;
  font-style: italic;
}

.recipe-intro {
  font-style: italic;
  color: #5D4037;
  margin-bottom: 1rem;
}

.recipe-detail {
  font-size: 0.95rem;
  color: var(--color-wood);
}

.recipe-detail strong {
  color: var(--color-olive-dark);
}

.recipe-why {
  background-color: var(--color-cream);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-gold);
  font-size: 0.9rem;
  margin-top: auto;
  /* Push to bottom */
}
.map-responsive {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
}

.map-responsive iframe {
  width: 100%;
  border: 0;
  display: block;
}

