:root {
  --deep-dark: #220901;
  --bright-orange: #f6aa1c;
  --strong-orange: #bc3908;
  --dark-red: #621708;
  --beige: #f5f5dc;
  --white: #fff;
  --light-gray: #e0e0e0;
  --header-button-hover-bg: rgba(246, 170, 28, 0.15);
  --primary-font: "Playfair Display", serif;
  --secondary-font: "Inter", sans-serif;
}

/* ESTILOS BASE */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--beige);
  margin: 0;
  font-family: var(--secondary-font), sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--deep-dark);
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* BARRA DE PROGRESSO */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--bright-orange);
  width: 0%;
  z-index: 3000;
  transition: width 0.1s linear;
}

/* HEADER */
.header {
  background-color: var(--deep-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem; /* Alterado para Mobile First */
  min-height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  width: 130px;
  height: auto;
  transition: transform 0.2s ease-out;
}
.header-logo:hover {
  transform: scale(1.05);
}

.header-icon {
  width: 2rem;
  height: 2rem;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header button, .header a {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header button:hover, .header a:not(.header-left a):hover {
  background-color: var(--header-button-hover-bg);
}

.header-cart-btn {
  position: relative;
}

.carrinho-quantidade {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--strong-orange);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.header-welcome {
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1rem;
  background: rgba(246, 170, 28, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
}

/* MENU LATERAL */
.main-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: var(--deep-dark);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.main-menu-overlay.menu-open {
  transform: translateX(0);
}

.menu-content {
  padding: 5rem 2rem 2rem;
}

.menu-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--bright-orange);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}
.menu-close-btn:hover {
  color: var(--strong-orange);
  transform: rotate(90deg);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-item-link a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.menu-item-link a:hover {
  color: var(--bright-orange);
  transform: translateX(5px);
}
.menu-item-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--bright-orange);
  transition: width 0.3s ease-out;
}
.menu-item-link a:hover::after {
  width: 70%;
}

.menu-item-action {
  margin-top: 1rem;
  text-align: center;
}

.menu-action-link {
  display: block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.login-btn {
  background: var(--strong-orange);
  color: var(--white);
}
.login-btn:hover {
  background: var(--bright-orange);
  color: var(--deep-dark);
}

.cart-btn {
  background: none;
  color: var(--bright-orange);
  border: 2px solid var(--bright-orange);
}
.cart-btn:hover {
  background: var(--bright-orange);
  color: var(--deep-dark);
}

.logout-btn {
  background: var(--dark-red);
  color: var(--white);
}
.logout-btn:hover {
  background: var(--strong-orange);
}

/* CONTEÚDO PRINCIPAL E SEÇÕES */
.main-section, .products-section, .about-section, .team-section, .mvv-section {
  padding: 3rem 1rem; /* Alterado para Mobile First */
}

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

.section-title {
  font-family: var(--primary-font);
  font-size: 2.2rem; /* Alterado para Mobile First */
  font-weight: 700;
  color: var(--strong-orange);
  text-align: center;
  margin-bottom: 3rem;
}

/* BOTÃO DE AÇÃO PRINCIPAL (CTA) */
.main-cta {
  display: inline-block;
  background-color: var(--strong-orange);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  width: fit-content;
}

.main-cta:hover {
  background-color: var(--bright-orange);
  color: var(--deep-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(246, 170, 28, 0.3);
}

/* SEÇÃO HERO (INÍCIO) */
.main-section {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--deep-dark);
}

.main-title {
  font-family: var(--primary-font);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 700;
  color: var(--strong-orange);
  margin-bottom: 1rem;
}

.main-subtext {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
  color: var(--dark-red);
}

/* SEÇÃO DE PRODUTOS */
.products-section {
  background-color: var(--bright-orange);
}
.products-section .section-title {
  color: var(--deep-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
  justify-items: center;
}

.product-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card article {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

.product-image {
  margin-bottom: 1rem;
}
.product-image img {
  max-width: 100px;
  height: auto;
}

.product-title {
  font-family: var(--primary-font);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.product-description {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.product-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--strong-orange);
  margin: 0.5rem 0;
}

.product-stock {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.product-stock.in-stock {
  color: #2e7d32;
}

.purchase-button {
  font-family: var(--secondary-font);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: auto;
  background: linear-gradient(135deg, var(--strong-orange), var(--dark-red));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(188, 57, 8, 0.5);
}
.purchase-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(98, 23, 8, 0.7);
}

/* SEÇÃO SOBRE */
.about-description {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--dark-red);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.about-description strong {
  color: var(--strong-orange);
}

/* SEÇÃO EQUIPE */
.team-section {
  background-color: var(--beige);
  color: var(--deep-dark);        
}

.team-section .section-title {
  color: var(--strong-orange);    
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem 2rem;
  list-style: none;
  padding: 0;
  text-align: center;
}

.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--strong-orange);
  margin: 0 auto 1rem;
  display: flex; 
  align-items: center; 
  justify-content: center;
}

.avatar-placeholder {
  font-family: var(--primary-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.member-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--deep-dark); 
}

.member-role {
  color: var(--dark-red); 
  font-style: italic;
}

/* SEÇÃO MVV */
.mvv-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.mvv-item {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(34, 9, 1, 0.08);
  border-left: 5px solid var(--strong-orange);
}
.mvv-title {
  font-family: var(--primary-font);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.mvv-description {
  font-size: 1.2rem;
  line-height: 1.8;
}
.mvv-values {
  list-style-type: none;
  padding-left: 0;
}
.mvv-values li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
}
.mvv-values li::before {
  content: "•";
  color: var(--bright-orange);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 0.5rem;
}

/* FOOTER */
.footer {
  background-color: var(--deep-dark);
  color: var(--light-gray);
  padding: 4rem 2rem 0;
  font-size: 0.9rem;
  position: relative; 
  z-index: 10;        
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  gap: 3rem;
  flex-direction: column; /* Adicionado para Mobile First */
  align-items: center; /* Adicionado para Mobile First */
  text-align: center; /* Adicionado para Mobile First */
}

.footer-brand-social {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-family: var(--primary-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bright-orange);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  flex: 2;
  justify-content: flex-start;
}

.footer-links-group > div {
    min-width: 150px;
}

.footer-links-group ul {
  list-style: none;
  padding: 0;
}

.footer-links-group li {
  margin-bottom: 0.75rem;
}

.footer-links-group a, .footer-links-group address {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.2s;
  font-style: normal;
}

.footer-links-group a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-social-icons ul {
  display: flex;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
}

.footer-social-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.footer-social-icons a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 170, 28, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem; /* Adicionado para Mobile First */
  padding: 1.5rem 0;
  font-size: 0.875rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: column; /* Adicionado para Mobile First */
}

.footer-bottom a {
  color: var(--bright-orange);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* ANIMAÇÕES DE SCROLL */
.scroll-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* FEEDBACK TOAST (Notificação) */
.feedback-toast {
  position: fixed;
  top: 100px; 
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999; 
  font-family: var(--secondary-font);
  font-weight: 600;
  opacity: 0;
  animation: fadeInOut 5s ease-in-out forwards;
}

.feedback-toast.feedback-sucesso {
  background-color: #2e7d32; 
  color: var(--white);
}

.feedback-toast.feedback-erro {
  background-color: var(--dark-red);
  color: var(--white);
}

@keyframes fadeInOut {
  0% {
    top: 80px; 
    opacity: 0;
  }
  10% {
    top: 100px; 
    opacity: 1;
  }
  90% {
    top: 100px; 
    opacity: 1;
  }
  100% {
    top: 80px; 
    opacity: 0;
  }
}

/* TABLETS (a partir de 768px) */
@media (min-width: 768px) {
  .header {
    padding: 0 2rem;
  }

  .main-section, .products-section, .about-section, .team-section, .mvv-section {
    padding: 5rem 2rem;
  }

  .main-title {
    max-width: 80%;
  }

  .section-title {
    font-size: 3rem;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    flex-direction: row; /* Reverte para o padrão desktop */
    align-items: flex-start; /* Reverte para o padrão desktop */
    text-align: left;
  }
  
  .footer-bottom {
    flex-direction: row; /* Reverte para o padrão desktop */
    gap: 1rem; /* Reverte para o padrão desktop */
  }
}


/* DESKTOPS PEQUENOS (a partir de 992px) */
@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}


/* DESKTOPS LARGOS (a partir de 1200px) */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .team-grid {
      grid-template-columns: repeat(6, 1fr);
  }
}