/* Base - Minimalist Vitrine */
:root {
  --primary: #FF6600;
  /* Naranja Institucional */
  --secondary: #000000;
  --bg: #ffffff;
  --surface: #f9f9f9;
  --text: #111111;
  --text-muted: #666666;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.4;
}

/* Shipping Bar Dynamic - Elegant Corporate */
.shipping-bar {
  background: var(--secondary);
  /* Negro elegante */
  color: #fff;
  font-size: 0.75rem;
  /* Texto más fino y discreto */
  font-weight: 500;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  letter-spacing: 2px;
  /* Espaciado premium */
  border-bottom: 3px solid var(--primary);
  /* Línea Naranja identidad */
  position: relative;
  z-index: 200;
}

.shipping-content {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 40s linear infinite;
  /* Movimiento más lento y fluido */
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Header */
.site-header {
  padding: 1.5rem 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (min-width: 768px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 5%;
  }
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--primary);
}

.search-container {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 50px;
  background: var(--surface);
  font-size: 0.95rem;
  outline: none;
  transition: .2s;
}

.search-container input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.1);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

/* Grilla Vitrina */
.catalog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 3%;
  /* Menos padding lateral en general */
}

.product-grid {
  display: grid;
  /* En escritorio: tarjetas de ~240px */
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Optimización para Móviles (Android / iOS) */
@media (max-width: 600px) {
  .product-grid {
    /* Forzar 2 columnas en móviles para ver más productos (tipo app) */
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    /* Gap más pequeño para ganar espacio */
  }

  .catalog-container {
    padding: 1rem 10px;
    /* Aprovechar ancho de pantalla */
  }

  .product-details {
    padding: 0.8rem;
    /* Menos padding interno */
  }

  .product-name {
    font-size: 0.9rem;
    /* Texto un poco más compacto */
  }
}

/* Tarjeta Producto - Estilo Vitrina */
.product-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius);
  overflow: hidden;
  /* Sombra suave para levantar del fondo blanco */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: #eee;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-image-container {
  aspect-ratio: 1;
  background: #fff;
  /* Fondo blanco para resaltar producto */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 10px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
  /* Filtro sutil para homogeneizar */
  mix-blend-mode: multiply;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-details {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.product-info-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-code {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-name {
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  line-height: 1.3;
}

/* Botón Minimalista WhatsApp */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: .2s;
}

.whatsapp-btn:hover {
  border-color: #25D366;
  /* Verde WhatsApp */
  color: #25D366;
  background: #f0fff4;
}

.whatsapp-icon {
  fill: currentColor;
}

/* Empty State */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  color: #999;
}

.hidden {
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem;
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #f0f0f0;
  margin-top: 4rem;
}