:root {
  --orange: #ee4d2d;
  --orange-dark: #d73211;
  --cream: #fff8f3;
  --ink: #1f1a17;
  --muted: #6b5e57;
  --card: #ffffff;
  --line: #f0e4dc;
  --shadow: 0 8px 24px rgba(238, 77, 45, 0.08);
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 100% -10%, #ffe3d6 0%, transparent 55%),
    radial-gradient(90% 60% at 0% 0%, #fff1e8 0%, transparent 50%),
    var(--cream);
  color: var(--ink);
  line-height: 1.45;
  min-height: 100dvh;
}

.wrap {
  width: min(960px, 100% - 1.5rem);
  margin-inline: auto;
}

.site-header {
  padding: 1.35rem 0 0.75rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 0.85rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(var(--cream) 70%, transparent);
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover {
  border-color: #f5b9a8;
}

.chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 560px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f7efe9;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-discount {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
}

.card-body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange);
}

.cta {
  display: block;
  margin-top: 0.55rem;
  text-align: center;
  text-decoration: none;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: background 0.15s, transform 0.1s;
}

.cta:hover {
  background: var(--orange-dark);
}

.cta:active {
  transform: scale(0.98);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}

.site-footer {
  padding: 0.5rem 0 calc(1.5rem + var(--safe-b));
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}
