/* ============================================
   TEMPLATE WEB - MAIN STYLES
   ============================================ */

/* CSS Variables */
:root {
  /* Colors */
  --color-bg: #FDFBF7;
  --color-bg-soft: #F5F0E8;
  --color-text: #4A3E37;
  --color-text-muted: #8B7E74;
  --color-accent: #A67C52;
  --color-accent-light: #D9C5B2;
  --color-white: #FFFFFF;
  --color-border: rgba(166, 124, 82, 0.15);
  
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 32px;
  --space-xxl: 64px;
  
  /* Effects */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 24px;
  --shadow-soft: 0 4px 20px rgba(74, 62, 55, 0.08);
  --shadow-card: 0 8px 24px rgba(74, 62, 55, 0.12);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-l);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-m) var(--space-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav {
  display: flex;
  gap: var(--space-l);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

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

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-text);
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xxl) var(--space-l);
  position: relative;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(166, 124, 82, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(166, 124, 82, 0.08) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-m);
}

.hero-title em {
  color: var(--color-accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-m);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: var(--color-white);
}

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

.btn-ghost {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-ghost:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-text);
}

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

/* Sections */
.section {
  padding: var(--space-xxl) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-l);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card-image {
  aspect-ratio: 4/5;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.product-card-body {
  padding: var(--space-m);
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-s);
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
}

.product-card-price-compare {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-left: var(--space-s);
}

.product-card-link {
  display: inline-block;
  margin-top: var(--space-m);
  color: var(--color-accent);
  font-weight: 500;
}

/* Categories */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-l);
}

.category-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-image {
  height: 120px;
  border-radius: var(--radius-s);
  margin-bottom: var(--space-m);
}

.category-card h3 {
  font-family: var(--font-display);
  margin-bottom: var(--space-xs);
}

.category-card p {
  color: var(--color-text-muted);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  color: var(--color-white);
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-s);
}

.cta-content p {
  margin-bottom: var(--space-l);
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-xxl) 0 var(--space-l);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand img {
  height: 60px;
  margin-bottom: var(--space-m);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-l);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Loading */
.loading {
  text-align: center;
  padding: var(--space-xxl);
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding-top: 100px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
