:root {
  --sz-paper: #f7f5ef;
  --sz-surface: #fffefa;
  --sz-ink: #242922;
  --sz-muted: #515950;
  --sz-line: #e1e3d7;
  --sz-green: #354536;
  --sz-green-hover: #26362a;
  --sz-radius: 20px;
  --sz-display: Georgia, "Times New Roman", serif;
}

body {
  background: var(--sz-paper);
  color: var(--sz-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid #6c4734;
  outline-offset: 3px;
}

header.sz-header, header:has(> .sz-nav) {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 34px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 16px max(24px, calc((100vw - 1200px) / 2));
  background: var(--sz-surface);
  color: var(--sz-ink);
  border-bottom: 1px solid var(--sz-line);
}

header.sz-header > .brand, header:has(> .sz-nav) > .brand {
  padding: 0;
  color: var(--sz-green);
  font: 700 clamp(24px, 3.4vw, 31px)/1.12 var(--sz-display);
  text-decoration: none;
  white-space: nowrap;
}

header .sz-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0;
  margin: 0;
}

header .sz-nav :is(a, summary) {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sz-ink);
  border-radius: 8px;
  padding: 7px 10px;
  font: 620 15px/1.15 system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

header .sz-nav :is(a:hover, a[aria-current="page"], summary:hover) {
  color: var(--sz-green-hover);
  background: #e9eee3;
}

.sz-nav-more { position: relative; }
.sz-nav-more > summary { list-style: none; }
.sz-nav-more > summary::-webkit-details-marker { display: none; }
.sz-nav-more > summary::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.sz-nav-drop {
  position: absolute;
  z-index: 8;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  min-width: 172px;
  gap: 2px;
  padding: 7px;
  background: var(--sz-surface);
  border: 1px solid var(--sz-line);
  border-radius: 13px;
  box-shadow: 0 12px 30px #2429221c;
}

.sz-nav-more:not([open]) .sz-nav-drop { display: none; }

main > .sz-home-hero {
  padding: 0;
  margin-top: 16px;
}

.sz-home-hero {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto clamp(25px, 3vw, 38px);
  background: #eef0e6;
  overflow: hidden;
  border: 1px solid var(--sz-line);
  border-radius: var(--sz-radius);
}

.sz-home-hero-copy {
  min-width: 0;
  padding: clamp(24px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sz-home-hero h1, #kategorie .section-head h2,
.sz-featured h2, .sz-category h1, .catalog-main:has(.sz-hub-section) h1 {
  margin: 0;
  color: var(--sz-ink);
  font-family: var(--sz-display);
  font-weight: 500;
  letter-spacing: -.035em;
}

.sz-home-hero h1 { max-width: 13ch; font-size: clamp(38px, 5vw, 66px); line-height: 1.02; }
.sz-home-hero p { max-width: 42ch; margin: 15px 0 21px; color: var(--sz-muted); font-size: 16px; line-height: 1.55; }
.sz-home-hero-media { min-width: 0; margin: 0; min-height: 340px; }
.sz-home-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
}

.sz-home-hero #search-form.sz-search {
  width: 100%;
  max-width: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  margin: 0;
  padding: 4px;
  background: var(--sz-surface);
  border: 1px solid #cbd2c4;
  border-radius: 13px;
  box-shadow: none;
}

.sz-home-hero #search-form.sz-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--sz-ink);
  border-radius: 8px;
  font: 400 16px/1.4 system-ui, sans-serif;
}

.sz-home-hero #search-form.sz-search button,
.sz-category .catalog-button,
.sz-featured .catalog-button,
.sz-card .catalog-button {
  color: white;
  background: var(--sz-green);
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  box-shadow: none;
}

.sz-home-hero #search-form.sz-search button {
  min-height: 42px;
  padding: 8px 16px;
  margin: 0;
  font: 650 14px/1 system-ui, sans-serif;
}

.sz-home-hero #search-form.sz-search button:hover,
.sz-category .catalog-button:hover,
.sz-featured .catalog-button:hover,
.sz-card .catalog-button:hover { background: var(--sz-green-hover); color: #fff; }

.sz-home-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 16px;
}

.sz-home-links a { color: var(--sz-green); font-weight: 620; font-size: 14px; text-underline-offset: 3px; }

main > #kategorie { padding-block: 8px 20px; }
#kategorie .section-head { margin: 0 0 13px; }
#kategorie .section-head h2, .sz-featured h2 { font-size: clamp(28px, 3.1vw, 41px); }
.sz-home-categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sz-home-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 53px;
  padding: 12px 15px;
  background: var(--sz-surface);
  color: var(--sz-ink);
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--sz-line);
  border-radius: 12px;
}
.sz-home-categories a:hover { border-color: #8e9b86; background: #eff2e9; }
.sz-home-categories a > span { margin-left: 9px; color: #536650; }
.sz-home-all { margin: 13px 0 0; }
.sz-home-all a { color: var(--sz-green); text-underline-offset: 3px; font-weight: 650; }

.sz-category { max-width: 1200px; }
.sz-category h1 { font-size: clamp(39px, 5vw, 62px); line-height: 1.05; }
.sz-category .sz-lead { color: var(--sz-muted); max-width: 64ch; margin: 12px 0 18px; line-height: 1.55; }
.sz-category .sz-category-switch {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  margin: 12px 0 16px;
  padding: 3px 3px 9px;
  scrollbar-width: thin;
}
.sz-category .sz-category-switch a {
  flex: 0 0 auto;
  color: var(--sz-green);
  border: 1px solid var(--sz-line);
  background: var(--sz-surface);
  padding: 8px 12px;
  border-radius: 99px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
}
.sz-category .sz-category-switch a[aria-current="page"] { background: var(--sz-green); color: white; }
.sz-filter-panel {
  margin: 0 0 15px;
  background: var(--sz-surface);
  border: 1px solid var(--sz-line);
  border-radius: 14px;
}
.sz-filter-panel > summary { padding: 13px 15px; cursor: pointer; color: var(--sz-green); font-weight: 680; }
.sz-filter-panel .sz-filters { margin: 0; border: 0; padding: 1px 15px 13px; box-shadow: none; }
.sz-filter-panel .sz-fine { margin: 0; padding: 0 15px 13px; color: var(--sz-muted); }
.sz-category .sz-results { margin: 0 0 13px; color: var(--sz-muted); }
.sz-category .sz-results strong { color: var(--sz-ink); }

.sz-category .sz-product-grid, .sz-featured .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.sz-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0;
  padding: 0;
  background: var(--sz-surface);
  border: 1px solid var(--sz-line);
  border-radius: 15px;
  box-shadow: none;
}
.sz-card .sz-card-photo {
  display: grid;
  min-width: 0;
  align-items: center;
  aspect-ratio: 4 / 3;
  padding: 12px;
  background: #fff;
  border-radius: 14px 14px 0 0;
}
.sz-card .sz-card-photo img { width: 100%; height: 100%; max-height: none; min-height: 0; object-fit: contain; }
.sz-card .sz-card-content {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 14px 14px;
}
.sz-card .sz-card-brand { color: var(--sz-muted); font-size: 12px; margin: 0 0 4px; }
.sz-card .sz-card-title {
  color: var(--sz-ink);
  font: 680 clamp(16px, 1.8vw, 19px)/1.27 system-ui, sans-serif;
  margin: 0;
  overflow-wrap: anywhere;
}
.sz-card .sz-card-title a { text-decoration: none; color: inherit; }
.sz-card .sz-card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sz-card .sz-card-facts { margin: 5px 0 0; color: var(--sz-muted); font-size: 13px; min-height: 0; }
.sz-card .sz-card-offer { width: 100%; padding-top: 7px; margin-top: auto; }
.sz-card .sz-card-offer .price { margin: 0; display: block; color: var(--sz-green); font: 750 19px/1.24 system-ui, sans-serif; }
.sz-card .product-merchant { color: var(--sz-muted); font-size: 12px; line-height: 1.35; display: block; margin: 3px 0 7px; }
.sz-card .catalog-button { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 11px; font-size: 13px; margin: 0; }

.sz-detail-guide { border-color: var(--sz-line); background: var(--sz-surface); }
.sz-detail-guide h2 { font-family: var(--sz-display); font-weight: 500; }
.catalog-main:has(.product-detail) .product-detail { background: var(--sz-surface); border-color: var(--sz-line); }

.catalog-main .hd-product { min-width: 0; }
.catalog-main .hd-photo img { display: block; max-width: 100%; height: auto; object-fit: contain; }

@media (max-width: 780px) {
  header.sz-header, header:has(> .sz-nav) { padding: 12px 16px; gap: 4px 16px; }
  header .sz-nav { gap: 4px; }
  header .sz-nav :is(a, summary) { padding: 7px 8px; }
  .sz-home-hero { grid-template-columns: minmax(0, 1fr); }
  .sz-home-hero-copy { padding: clamp(20px, 5.5vw, 42px); }
  .sz-home-hero-media { min-height: 0; height: clamp(170px, 44vw, 300px); }
  .sz-home-hero h1 { max-width: 18ch; }
  .sz-category .sz-product-grid, .sz-featured .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  header.sz-header, header:has(> .sz-nav) { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 11px 5px; }
  header .sz-nav { width: 100%; justify-content: space-between; }
  header .sz-nav :is(a, summary) { font-size: 14px; }
  .sz-home-hero h1 { font-size: clamp(35px, 9vw, 47px); }
  .sz-home-hero p { margin: 10px 0 14px; }
  .sz-home-hero-media { height: clamp(156px, 41vw, 228px); }
  .sz-home-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sz-home-categories a { min-height: 48px; padding: 8px 10px; font-size: 14px; line-height: 1.25; }

  .sz-category .sz-product-grid, .sz-featured .product-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .sz-product-grid .sz-card, .sz-featured .sz-card { display: grid; grid-template-columns: minmax(86px, 36%) minmax(0, 1fr); }
  .sz-card .sz-card-photo { aspect-ratio: auto; border-radius: 14px 0 0 14px; padding: 7px; }
  .sz-card .sz-card-photo img { max-height: 145px; }
  .sz-card .sz-card-content { padding: 10px 9px 10px 0; }
  .sz-filter-panel .sz-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sz-filter-panel .sz-filters label:first-child { grid-column: 1 / -1; }
  .sz-filter-panel .sz-filters :is(input, select) { min-width: 0; width: 100%; }
}


/* Category navigation on the storefront homepage */
header.sz-home-header .sz-categories-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 6px 12px;
  color: var(--sz-green);
  background: #edf0e7;
  border: 1px solid #dce2d5;
  border-radius: 10px;
  font: 650 14px/1.2 system-ui, sans-serif;
  text-decoration: none;
}

.sz-menu-icon {
  width: 16px;
  height: 12px;
  border-block: 2px solid currentColor;
  position: relative;
}

.sz-menu-icon::after {
  content: "";
  position: absolute;
  inset: 3px 0 auto;
  border-top: 2px solid currentColor;
}

.sz-categories-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  box-sizing: border-box;
  width: min(410px, 100%);
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--sz-ink);
  background: var(--sz-surface);
  border: 0;
  border-left: 1px solid var(--sz-line);
  box-shadow: -12px 0 40px #24292226;
}

.sz-categories-dialog[open] {
  animation: sz-categories-enter 200ms ease-out both;
}

.sz-categories-dialog::backdrop {
  background: #1d251d65;
}

@keyframes sz-categories-enter {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sz-categories-dialog[open] { animation: none; }
}

body:has(.sz-categories-dialog[open]) { overflow: hidden; }

.sz-categories-heading {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  background: var(--sz-surface);
  border-bottom: 1px solid var(--sz-line);
}

.sz-categories-heading h2 {
  margin: 0;
  color: var(--sz-green);
  font: 500 29px/1.12 var(--sz-display);
}

.sz-categories-heading form { margin: 0; }

.sz-categories-heading button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  color: var(--sz-green);
  background: #edf0e7;
  border: 0;
  border-radius: 10px;
  font: 400 26px/1 system-ui, sans-serif;
  cursor: pointer;
}

.sz-categories-list { padding: 10px 18px 24px; }
.sz-category-branch { border-bottom: 1px solid var(--sz-line); }

.sz-category-branch > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 49px;
  padding: 6px 8px;
  color: var(--sz-green);
  font: 670 16px/1.2 system-ui, sans-serif;
  list-style: none;
  cursor: pointer;
}

.sz-category-branch > summary::-webkit-details-marker { display: none; }

.sz-category-branch > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.sz-category-branch[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.sz-category-branch[open] > summary { background: #edf0e7; border-radius: 8px; }

.sz-category-branch ul {
  margin: 6px 0 9px 12px;
  padding: 0 0 0 8px;
  list-style: none;
  border-inline-start: 1px solid #ced7c9;
}

header .sz-categories-dialog a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 9px;
  color: var(--sz-ink);
  border-radius: 8px;
  text-decoration: none;
  font: 520 15px/1.25 system-ui, sans-serif;
}

header .sz-categories-dialog a:hover { background: #edf0e7; }
header .sz-categories-dialog .sz-categories-all { margin-top: 12px; font-weight: 670; }

.sz-card .sz-card-title a {
  text-decoration: underline;
  text-decoration-color: #c0c9bd;
  text-underline-offset: 3px;
}

.sz-card .sz-card-offer .catalog-button { min-height: 44px; }

.sz-featured .product-grid > .sz-card,
.product-grid.sz-product-grid > .sz-card {
  padding: 0;
  overflow: hidden;
}

.fg-grid > .sz-card { border: 1px solid var(--sz-line); border-radius: 15px; overflow: hidden; }

@media (max-width: 780px) {
  header.sz-home-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  header.sz-home-header .sz-categories-toggle { grid-column: 2; grid-row: 1; }
  header.sz-home-header .sz-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; }
  .product-grid.sz-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .product-grid.sz-product-grid { grid-template-columns: minmax(0, 1fr); }
  #momenti-featured .product-grid > .sz-card,
  .product-grid.sz-product-grid > .sz-card,
  .fg-grid > .sz-card {
    display: grid;
    grid-template-columns: minmax(86px, 36%) minmax(0, 1fr);
    gap: 0;
  }
}

