/* css/components.css */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section-spacing {
  padding: var(--space-xl) 0;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-bg);
  backdrop-filter: blur(16px); /* Frosted glass */
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
}

.main-nav a {
  margin: 0 var(--space-sm);
  font-size: var(--font-small);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.main-nav a:hover {
  color: var(--color-text-muted);
}

.header-actions button {
  margin-left: var(--space-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.header-actions button:hover {
  transform: translateY(-2px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 100px; /* Pill shape */
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

/* NEW: Add to Cart Button Outline & Hover State */
.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
  
  /* The Visual Upgrade: High-res image with a subtle fade at the bottom */
  background-image: 
    linear-gradient(to bottom, rgba(250, 249, 246, 0.4), rgba(250, 249, 246, 1)), 
    url('https://images.unsplash.com/photo-1556228578-0d85b1a4d571?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  
  /* A slight animation so it fades in beautifully */
  animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-size: var(--font-h3);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

/* --- Grid & Cards --- */
.section-title {
  font-size: var(--font-h2);
  margin-bottom: var(--space-md);
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
}

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

/* NEW: Image Zoom Hover Effects */
.product-image-wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden; /* Keeps the zoom inside the box */
  margin-bottom: var(--space-sm);
}

.product-image {
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* (Preserved for fallback) */
.product-image-placeholder {
  height: 250px;
  background: #f0f0f0;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-surface);
  padding: var(--space-xl) 0 var(--space-lg);
}

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

.footer-col h3, .footer-col h4 {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  display: block;
  color: #A0A0A0;
  margin-bottom: var(--space-xs);
  transition: var(--transition-smooth);
}

.footer-col a:hover {
  color: var(--color-surface);
}

/* ========================================== */
/* MOBILE RESPONSIVENESS (< 768px)            */
/* ========================================== */
@media (max-width: 768px) {
  .product-grid {
      grid-template-columns: 1fr;
      gap: 24px;
  }
  
  .footer-grid {
      grid-template-columns: 1fr;
      gap: 32px;
      text-align: center;
  }

  /* Adjust the AI panel to fit phone screens */
  .ai-panel {
      width: 90vw;
      max-width: 400px;
      height: 70vh;
      bottom: 80px; 
      right: 5vw;
  }

  /* Ensure the hero text fits on smaller screens */
  .hero-title {
      font-size: 2.5rem;
  }
}