*, ::before, ::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  color: #1a1a1a;
}
.header {
  background: linear-gradient(135deg, #0D1B3E 0%, #1a3a6b 50%, #1565C0 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header h1 { font-size: 18px; font-weight: 700; }
.header .subtitle { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.header-actions { display: flex; gap: 8px; }
.btn {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.search-bar {
  padding: 12px 16px;
  background: white;
  position: sticky;
  top: 76px;
  z-index: 9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.search-bar input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}
.search-bar input:focus { border-color: #1565C0; }
.filters {
  display: flex;
  gap: 6px;
  padding: 8px 16px 4px;
  overflow-x: auto;
  white-space: nowrap;
  background: white;
  scrollbar-width: none;
  border-bottom: 1px solid #eee;
}
.filters::-webkit-scrollbar { display: none; }
.filter-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: white;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  color: #555;
}
.filter-pill:hover { border-color: #1565C0; color: #1565C0; }
.filter-pill.active { background: #1565C0; color: white; border-color: #1565C0; }
.role-badge {
  text-align: center;
  font-size: 11px;
  padding: 6px;
  color: #888;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}
.role-badge strong { color: #1565C0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 12px 16px 80px;
}
.product-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.card-img-wrap {
  height: 140px;
  overflow: hidden;
  background: #f5f5f5;
}
.card-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body { padding: 12px 14px 14px; }
.card-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 2px; line-height: 1.3; }
.card-empresa { font-size: 11px; color: #888; margin-bottom: 2px; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.card-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #e8edf5;
  color: #1565C0;
  font-weight: 600;
}
.card-prices { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pvp-price {
  font-size: 22px;
  font-weight: 800;
  color: #1565C0;
}
.pvp-sugerido {
  font-size: 12px;
  color: #888;
  text-decoration: line-through;
}
.admin-prices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}
.admin-price-item {
  text-align: center;
}
.admin-price-item .label {
  font-size: 9px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
}
.admin-price-item .value {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.admin-price-item .value.green { color: #2e7d32; }
.admin-price-item .value.orange { color: #e65100; }
.no-price {
  font-size: 12px;
  color: #aaa;
  font-style: italic;
}
.empty-msg {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}
.empty-msg .icon { font-size: 48px; margin-bottom: 12px; }
.catalogo-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: #999;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .header { flex-direction: column; text-align: center; }
}

/* === Product Card Link === */
.product-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}
.product-card-link .product-card {
  transition: transform 0.2s, box-shadow 0.2s;
}
.product-card-link:hover .product-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card-link:active .product-card {
  transform: scale(0.98);
}
