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

:root {
  --bg: #f4efe7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #ff6b35;
  --primary-dark: #e85a24;
  --secondary: #0f766e;
  --border: rgba(31, 41, 55, 0.12);
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 53, 0.22), transparent 30%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.18), transparent 24%),
    linear-gradient(135deg, #fbf7f1 0%, #f4efe7 45%, #eef5f3 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(31, 41, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 41, 55, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
}

.app {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.badge {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--muted);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.panel {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.filter-panel {
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-title h2,
.section-title h2 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.panel-title span {
  color: var(--muted);
  font-size: 0.95rem;
}

.range-box {
  position: relative;
  padding: 28px 8px 12px;
}

.range-track {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9dde5, #d9dde5);
  overflow: hidden;
}

.range-track-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--range-left, 0%);
  width: var(--range-width, 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ffb36b);
}

.range-input {
  position: absolute;
  inset: 12px 0 auto;
  width: 100%;
  height: 36px;
  pointer-events: none;
  appearance: none;
  background: transparent;
  margin: 0;
}

.range-input::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
  cursor: pointer;
}

.range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
  cursor: pointer;
}

.range-input::-webkit-slider-runnable-track {
  height: 8px;
  background: transparent;
}

.range-input::-moz-range-track {
  height: 8px;
  background: transparent;
}

.range-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.value-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 41, 55, 0.08);
}

.value-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.value-card strong {
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.summary {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(15, 118, 110, 0.1));
  border: 1px solid rgba(255, 107, 53, 0.15);
}

.summary p {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.catalog-panel {
  padding: 24px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid rgba(31, 41, 55, 0.08);
  display: grid;
  gap: 12px;
  min-height: 170px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(31, 41, 55, 0.1);
  border-color: rgba(255, 107, 53, 0.25);
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.product-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price-row strong {
  font-size: 1.15rem;
}

.price-row span {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px dashed rgba(31, 41, 55, 0.16);
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

.product-card.hidden {
  display: none;
}

@media (max-width: 900px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .range-values {
    grid-template-columns: 1fr;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }
}
