/* 
  SistemaSB — Design System 
  Baseado no Roadmap Estratégico (Verde Oliva & Terracota)
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #5C6B3A;
  --primary-dark: #4a5730;
  --primary-light: #8B9D6A;
  --secondary: #D4A574;
  --secondary-light: #E8D7C3;
  --accent: #D4A574;
  
  --bg-body: #F8F7F4;
  --text-main: #0F172A;
  --text-muted: #64748B;
  
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

/* --- Layout Utils --- */
.container-sb {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Header & Glassmorphism --- */
header.premium-header {
  background: rgba(92, 107, 58, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 8px 0;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.2s;
  max-width: 100%;
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards 0.4s;
}

.btn-hero {
  background-color: var(--secondary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
  opacity: 0;
  animation: fadeInUp 0.8s forwards 0.6s;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 165, 116, 0.6);
  background-color: #c49463;
}

/* --- About Section --- */
.section-about {
  padding: 3rem 1.25rem;
  background: white;
  border-radius: var(--radius-md);
  margin: 1rem;
  box-shadow: var(--shadow-sm);
  width: auto; /* Garante que a margem não empurre para fora */
}

.about-grid {
  display: grid;
  gap: 2rem;
}

.about-image {
  width: 100%;
  border-radius: var(--radius-md);
  object-cover: cover;
  box-shadow: var(--shadow-md);
}

.about-badge {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  display: block;
}

.about-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.about-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Category Tabs --- */
.cat-tabs-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
}

.cat-tabs-container::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  padding: 0.6rem 1.5rem;
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.cat-tab.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(92, 107, 58, 0.2);
}

/* --- Product Cards --- */
.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-info {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-main {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.8rem;
}

.product-image-wrapper {
  width: 120px;
  position: relative;
  background-color: #f0f0f0;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn-add-quick {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* --- FAQ Section --- */
.section-faq {
  padding: 3rem 1.5rem;
}

.faq-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
  transition: background 0.2s;
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

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

/* --- Responsive --- */
/* --- Modals & Drawers --- */
.modal-overlay {
  transition: opacity .25s ease;
}

.modal-overlay.hidden-op {
  opacity: 0;
  pointer-events: none;
}

.drawer {
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.drawer.closed {
  transform: translateY(100%);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.1s;
}

.qty-btn:active {
  transform: scale(0.9);
}

/* --- Legacy Compatibility --- */
.bg-primaria { background-color: var(--primary); }
.text-primaria { color: var(--primary); }
.border-primaria { border-color: var(--primary); }
.bg-secundaria { background-color: var(--secondary); }
.hover\:bg-primaria-dark:hover { background-color: var(--primary-dark); }
.cart-badge { min-width: 20px; height: 20px; border-radius: 10px; }

/* --- Responsive Layout --- */
@media (min-width: 640px) {
  .hero-title { font-size: 4rem; }
  .section-about { 
    margin: 3rem auto; 
    width: 100%;
    max-width: 640px;
  }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}
