@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

:root {
  --primary-lemon: #D4FF00;
  --bg-slate-50: #F8FAFC;
  --card-white: #FFFFFF;
  --text-slate-900: #1E293B;
  --subtext-slate-500: #64748B;
  --shadow-glass: 0 10px 40px rgba(0, 0, 0, 0.04);
  --border-radius-main: 32px;
  --border-radius-card: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-slate-50);
  color: var(--text-slate-900);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .outfit {
  font-family: 'Outfit', sans-serif;
}

/* Header */
header {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.location-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-label {
  font-size: 12px;
  color: var(--subtext-slate-500);
  font-weight: 500;
}

.location-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-slate-900);
  display: flex;
  align-items: center;
  gap: 4px;
}

.location-name span.material-icons-round {
  color: var(--primary-lemon);
  font-size: 16px;
}

.round-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--card-white);
  border: 1px solid #E2E8F0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--subtext-slate-500);
  cursor: pointer;
  transition: all 0.3s ease;
}

.round-btn:hover {
  background-color: var(--bg-slate-50);
  transform: scale(1.05);
}

/* Main Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: var(--card-white);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-glass);
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}



/* Modal de Búsqueda */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-slate-50);
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-modal.active {
  display: block;
  opacity: 1;
}

.search-modal-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--card-white);
  border-radius: 50px;
  padding: 12px 24px;
  box-shadow: var(--shadow-glass);
}

.search-input-wrapper .search-icon {
  color: var(--subtext-slate-500);
  margin-right: 12px;
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: var(--text-slate-900);
  background: transparent;
}

#search-input::placeholder {
  color: #cbd5e1;
}

.product-img-container {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.product-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.restaurant-name-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-name-tag .restaurant-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--subtext-slate-500);
  letter-spacing: 1.2px;
}

.restaurant-name-tag .material-icons-round {
  font-family: 'Material Icons Round' !important;
  font-size: 14px;
  color: var(--subtext-slate-500);
}

.product-name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-desc {
  font-size: 11px;
  color: var(--subtext-slate-500);
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-slate-900);
}

.btn-primary {
  background-color: var(--text-slate-900);
  color: var(--primary-lemon);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  padding: 12px 24px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 10px;
  width: 100%;
}

.btn-primary:hover {
  background-color: #000;
  transform: scale(1.02);
}

/* Loader */
.loader {
  display: flex;
  justify-content: center;
  padding: 40px;
}
.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--bg-slate-50);
  border-top-color: var(--primary-lemon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}
