*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: radial-gradient(circle at top left, #f0f5ff, #ffffff 50%, #eef7ff);
  color: #0f172a;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
}

.app-header {
  text-align: center;
  padding: 12px 0 16px;
}

.app-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.app-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 800px) {
  .app-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

.controls {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(16px);
}

.voice-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .voice-row {
    flex-direction: column;
  }

  .voice-row .primary-btn,
  .voice-row .ghost-btn {
    width: 100%;
  }
}

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.primary-btn {
  background: radial-gradient(circle at top left, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.45);
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.ghost-btn {
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.ghost-btn:hover {
  background: #e2e8f0;
}

.ghost-btn:disabled,
.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.full-width {
  width: 100%;
}

.status-text {
  font-size: 0.86rem;
  margin-top: 10px;
  color: #64748b;
}

.status-text strong {
  color: #0f172a;
}

.example {
  display: inline-block;
  font-style: italic;
  color: #0f172a;
}

.or-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 0;
  color: #cbd5f5;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.or-separator::before,
.or-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148, 163, 184, 0.6),
    transparent
  );
}

.time-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

@media (max-width: 520px) {
  .time-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-group label {
  font-size: 0.86rem;
  color: #475569;
  font-weight: 500;
}

.field-group input {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 8px 10px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
  background: rgba(248, 250, 252, 0.9);
}

.field-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
  background: #ffffff;
}

.results {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(30, 64, 175, 0.8);
}

.results h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.results .status-text {
  color: #cbd5f5;
  margin-bottom: 10px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.9);
  display: flex;
  flex-direction: column;
}

.card-image-wrapper {
  position: relative;
  padding: 10px;
  background: radial-gradient(circle at top left, #0b1120, #020617);
}

.card-image-wrapper img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 23, 42, 0.7);
}

.stock-available {
  background: rgba(22, 163, 74, 0.18);
  color: #bbf7d0;
  border-color: rgba(22, 163, 74, 0.6);
}

.stock-unavailable {
  background: rgba(220, 38, 38, 0.18);
  color: #fecaca;
  border-color: rgba(220, 38, 38, 0.6);
}

.card-body {
  padding: 10px 11px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.manufacturer-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.8);
  font-size: 0.7rem;
}

.manufacturer-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
}

.price-main {
  font-weight: 600;
  color: #bfdbfe;
}

.price-sub {
  color: #9ca3af;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: #9ca3af;
}

.meta-pill {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.availability-note {
  font-size: 0.72rem;
  color: #e5e7eb;
  margin-top: 4px;
}

.app-footer {
  padding: 10px 2px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: #6b7280;
}

.app-footer a {
  color: #2563eb;
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .app-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}


