/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f8f9fa;
  color: #343a40;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
  color: white;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(30, 58, 138, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-login,
.nav-whatsapp {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-login:hover,
.nav-whatsapp:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-1px);
}

.nav-login:focus,
.nav-whatsapp:focus {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #1e40af 100%);
  color: white;
  padding: 120px 0 80px;
  margin-top: 60px;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #60a5fa;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 5px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-placeholder {
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
  font-size: 1rem;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.btn:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
}

.btn-secondary {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-secondary:hover {
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Sections */
.featured-section,
.contact-section {
  padding: 80px 0;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #343a40;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f3f4;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.no-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #6c757d;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.stock-badge.low-stock {
  background: #dc3545;
  color: white;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1.2rem;
  color: #343a40;
  margin-bottom: 8px;
  font-weight: 600;
  line-height: 1.3;
}

.product-category {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #28a745;
}

.stock-info {
  font-size: 0.85rem;
  color: #6c757d;
}

.product-whatsapp-btn {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #1da851);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.product-whatsapp-btn:hover {
  background: linear-gradient(135deg, #1da851, #128c3a);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
}

.product-whatsapp-btn:focus {
  outline: 2px solid #25d366;
  outline-offset: 2px;
}

/* No Products */
.no-products {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.no-products p {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.contact-content {
  text-align: center;
}

.contact-content h2 {
  font-size: 2.5rem;
  color: #343a40;
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-content p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 40px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.contact-method {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.contact-method:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.contact-method:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.contact-icon {
  font-size: 2.5rem;
  width: 60px;
  text-align: center;
}

.contact-info h3 {
  font-size: 1.2rem;
  color: #343a40;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-info p {
  color: #6c757d;
  margin: 0;
}

.contact-method.whatsapp:hover {
  border-left: 4px solid #25d366;
}

.contact-method.phone:hover {
  border-left: 4px solid #007bff;
}

/* Footer */
.footer {
  background: #343a40;
  color: white;
  padding: 60px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #60a5fa;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #e9ecef;
}

.footer-section p {
  color: #adb5bd;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #60a5fa;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #495057;
  color: #adb5bd;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-placeholder {
    width: 250px;
    height: 250px;
    font-size: 6rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
  }
  
  .nav-actions {
    gap: 10px;
  }
  
  .nav-login,
  .nav-whatsapp {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
  
  .hero-section {
    padding: 100px 0 60px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-placeholder {
    width: 200px;
    height: 200px;
    font-size: 4rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .featured-section,
  .contact-section {
    padding: 60px 0;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .contact-method {
    padding: 20px;
    text-align: center;
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  /* Ensure all interactive elements are touch-friendly */
  .btn,
  .nav-login,
  .nav-whatsapp,
  .product-whatsapp-btn,
  .contact-method {
    min-height: 48px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding: 0 15px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    margin-bottom: 15px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .contact-content h2 {
    font-size: 1.8rem;
  }
  
  .contact-methods {
    grid-template-columns: 1fr;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hero-actions,
  .product-whatsapp-btn,
  .contact-section {
    display: none;
  }
  
  .hero-section {
    background: none;
    color: #343a40;
    margin-top: 0;
  }
  
  .product-card {
    break-inside: avoid;
    margin-bottom: 20px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #e9ecef;
  }
  
  .product-card,
  .contact-method,
  .no-products {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .section-header h2,
  .product-info h3 {
    color: #e9ecef;
  }
  
  .contact-section {
    background: linear-gradient(135deg, #2d3748, #4a5568);
  }
  
  .contact-content h2 {
    color: #e9ecef;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .btn,
  .contact-method,
  .product-image img {
    transition: none;
    animation: none;
  }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }
}

