:root {
  color-scheme: light;
  --ink: #223a32;
  --muted: #51655a;
  --paper: #faf7ef;
  --line: #d7b999;
  --menu-bg: #e9cfaf;
  --menu-card: #f8e9d5;
  --menu-nav: #f1dcc2;
  --forest: #233e34;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--menu-bg);
  background-image:
    repeating-linear-gradient(42deg, #76482508 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-42deg, #fff8eb30 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at 50% 0%, #f4dfc4, transparent 68%);
  color: var(--ink);
  font: 1rem/1.55 system-ui, sans-serif;
}
header {
  text-align: center;
  background-color: #efc09c;
  background-image: url("melekce-seftali.webp");
  background-position: center;
  background-size: cover;
  color: #442518;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  border-bottom: 4px solid #c99c63;
}
h2 { font-family: Georgia, serif; font-weight: normal; }
header h1 { margin: 0; }
.brand-sign {
  display: block;
  width: min(100%, 34rem);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 6px 12px #21160f90);
}
header p { margin: 1rem 0 0; font-size: .9rem; text-transform: uppercase; letter-spacing: .24em; }
nav { position: sticky; top: 0; z-index: 1; background: var(--menu-nav); border-bottom: 1px solid var(--line); }
nav ul { margin: 0 auto; max-width: 60rem; padding: .55rem .8rem; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .3rem; }
nav a { color: var(--ink); display: grid; place-items: center; height: 100%; min-height: 44px; border-radius: .6rem; padding: .35rem; text-align: center; text-decoration: none; line-height: 1.2; font-size: .9rem; font-weight: 650; }
nav a:hover, nav a:focus-visible { background: #e7c9a6; }
main { max-width: 60rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem) 3.5rem; }
section { padding-top: 2.1rem; scroll-margin-top: 5rem; }
h2 { margin: 0 0 .8rem; font-size: clamp(2rem, 6vw, 2.8rem); }
.products { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.empty-category { margin: 0; color: var(--muted); }
.photo-note { margin: 1rem 0 -1rem; color: var(--muted); font-size: .875rem; }
.products li {
  display: grid;
  grid-template-columns: clamp(5.5rem, 26vw, 8rem) minmax(0, 1fr);
  align-items: start;
  gap: .8rem;
  padding: .5rem;
  background: var(--menu-card);
  box-shadow: 0 2px 6px #67421e13;
  border: 1px solid var(--line);
  border-radius: .85rem;
}
.product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e5d9c8;
  border-radius: .5rem;
}
.product-info { align-self: center; padding: .2rem .4rem .2rem 0; overflow-wrap: anywhere; }
.products h3 { margin: 0; font-size: 1rem; }
.products p { margin: .3rem 0 0; color: var(--muted); }
.price { white-space: nowrap; font-weight: 650; }
@media (min-width: 660px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 600px) {
  nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  section { scroll-margin-top: 7.5rem; }

  header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-image: none;
    padding: clamp(2.4rem, 10vw, 3.6rem) 1rem 3.25rem;
  }

  header::before {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: -1;
    background: url("melekce-mobil-ust.webp") center / cover no-repeat;
    filter: blur(1.5px);
  }

  header .brand-sign {
    width: min(83%, 26rem);
  }
}

.products li:not(:has(.product-photo)) { grid-template-columns: minmax(0, 1fr); }
