/**
 * c0zinha - E-commerce de Utensílios Domésticos
 * Estilos principais do site
 */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores principais */
  --primary: #1ABC9C;
  --primary-dark: #16a085;
  --primary-light: #48d1b5;
  --accent: #E07A5F;
  --accent-dark: #c96a51;
  
  /* Neutros */
  --background: #FAFAFA;
  --foreground: #1a1a1a;
  --muted: #f5f5f5;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Espaçamentos */
  --radius: 12px;
  --container-max: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== UTILITÁRIOS ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--background);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--primary);
}

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

.cart-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.cart-btn:hover {
  color: var(--primary);
}

.cart-btn svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: none;
  padding: 0.5rem;
  color: var(--muted-foreground);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  color: var(--muted-foreground);
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--primary);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, var(--muted) 0%, var(--background) 50%, var(--muted) 100%);
  overflow: hidden;
}

.hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-decoration-1 {
  position: absolute;
  top: 80px;
  right: 40px;
  width: 288px;
  height: 288px;
  background: rgba(26, 188, 156, 0.05);
  border-radius: 50%;
  filter: blur(48px);
}

.hero-decoration-2 {
  position: absolute;
  bottom: 80px;
  left: 40px;
  width: 384px;
  height: 384px;
  background: rgba(224, 122, 95, 0.05);
  border-radius: 50%;
  filter: blur(48px);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(26, 188, 156, 0.1);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle {
  position: relative;
  width: 384px;
  height: 384px;
  background: linear-gradient(135deg, rgba(26, 188, 156, 0.2), rgba(224, 122, 95, 0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emoji {
  font-size: 9rem;
}

.hero-floating {
  position: absolute;
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

.hero-floating-1 {
  top: 16px;
  right: 16px;
}

.hero-floating-2 {
  bottom: 32px;
  left: 0;
  animation-delay: 0.5s;
}

.hero-floating-3 {
  top: 50%;
  right: -32px;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== CATEGORIAS ===== */
.categories {
  padding: 5rem 0;
  background: var(--background);
}

.categories-header {
  text-align: center;
  margin-bottom: 3rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .category-image {
  transform: scale(1.05);
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.category-count {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* ===== PRODUTOS ===== */
.products {
  padding: 5rem 0;
  background: rgba(26, 188, 156, 0.03);
}

.products-header {
  text-align: center;
  margin-bottom: 3rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.product-image-container {
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.75rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.product-action-btn:hover {
  background: var(--primary);
  color: white;
}

.product-action-btn svg {
  width: 18px;
  height: 18px;
}

.product-content {
  padding: 1rem;
}

.product-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
}

.product-prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

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

.product-original-price {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.product-add-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.product-add-btn:hover {
  background: var(--primary-dark);
}

.products-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ===== OFERTAS ===== */
.offers {
  padding: 5rem 0;
  background: var(--background);
}

.offer-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 3rem;
  margin-bottom: 4rem;
}

.offer-decoration-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.offer-decoration-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: translate(-50%, 50%);
}

.offer-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.offer-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.offer-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.offer-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.offer-visual {
  display: flex;
  justify-content: center;
}

.offer-emoji {
  font-size: 9rem;
}

/* Benefícios */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(26, 188, 156, 0.05);
  border-radius: var(--radius);
  transition: background 0.3s ease;
}

.benefit-card:hover {
  background: rgba(26, 188, 156, 0.1);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: rgba(26, 188, 156, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefit-title {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.benefit-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--foreground);
  color: white;
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem 0 1.5rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-links a:hover {
  color: white;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .categories-grid,
  .products-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .offer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .offer-visual {
    display: none;
  }
  
  .offer-title {
    font-size: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 1rem auto;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .categories-grid,
  .products-grid,
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .category-content {
    padding: 1rem;
  }
  
  .category-title {
    font-size: 1rem;
  }
  
  .product-image {
    height: 150px;
  }
}
