:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --ink: #1d2521;
  --muted: #5f6862;
  --line: #d9d1c4;
  --panel: #fffdf8;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --warm: #d97706;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: var(--accent-dark);
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  padding: 18px 0 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-links a,
.today-link,
.product-actions a,
.pagination button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}

.quick-links a:first-child,
.product-actions a.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.search,
.filter {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 14px;
}

.status-row p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.product {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.product-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee7dc;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.product-image-empty {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(217, 119, 6, 0.12)),
    #f4eee4;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e6f3ef;
  color: var(--accent-dark);
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 800;
}

.product h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

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

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
}

.product-actions a {
  flex: 1 1 138px;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.7);
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pagination button {
  cursor: pointer;
}

.pagination button[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.footer {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }

  .toolbar,
  .grid {
    grid-template-columns: 1fr;
  }

  .status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .today-link {
    width: 100%;
  }
}
