:root {
  color-scheme: light;
  --espresso: #17110e;
  --espresso-soft: #211713;
  --walnut: #2b1c16;
  --walnut-soft: #3b281f;
  --parchment: #f3ebdd;
  --ivory: #fff9ef;
  --paper: #fffdf8;
  --gold: #b88a46;
  --gold-dark: #8b6838;
  --champagne: #d8bd83;
  --fir: #193c32;
  --fir-light: #245143;
  --burgundy: #6a3037;
  --ink: #271e19;
  --muted: #73645b;
  --line: rgba(184, 138, 70, 0.3);
  --shadow: 0 24px 80px rgba(23, 17, 14, 0.16);
  --page-bg: var(--ivory);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--espresso);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 26%, rgba(184, 138, 70, 0.09), transparent 24rem),
    var(--page-bg);
}

.announcement {
  position: relative;
  z-index: 40;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 20px;
  background: var(--fir);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.announcement-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 0 4px rgba(216, 189, 131, 0.14);
}

.announcement-separator {
  color: var(--champagne);
}

.main-header {
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 30;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid rgba(216, 189, 131, 0.22);
  color: var(--ivory);
}

.inner-header {
  position: relative;
  top: auto;
  background:
    linear-gradient(110deg, rgba(43, 28, 22, 0.97), rgba(23, 17, 14, 0.99)),
    repeating-linear-gradient(90deg, var(--walnut) 0, var(--walnut) 24px, #221713 25px);
}

.brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
}

.brand-monogram {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--champagne);
  transform: rotate(45deg);
}

.brand-monogram i {
  font-family: var(--display);
  font-size: 17px;
  font-style: normal;
  letter-spacing: -0.04em;
  transform: rotate(-45deg);
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand small {
  color: rgba(255, 249, 239, 0.68);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: clamp(24px, 3.4vw, 54px);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 9px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--champagne);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.cart-button {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
  color: var(--ivory);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cart-button span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--champagne);
  font-size: 12px;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(900px, calc(100vh - 34px));
  align-items: center;
  padding: 150px clamp(24px, 7vw, 118px) 86px;
  background: var(--espresso);
  color: var(--ivory);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("/static/images/alpengold-hero.png");
  background-position: center;
  background-size: cover;
  filter: saturate(0.9) contrast(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(14, 9, 7, 0.97) 0%, rgba(14, 9, 7, 0.75) 38%, rgba(14, 9, 7, 0.08) 75%),
    linear-gradient(0deg, rgba(14, 9, 7, 0.72) 0%, transparent 38%, rgba(14, 9, 7, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 55vw);
  padding-top: 54px;
}

.kicker {
  margin: 0 0 22px;
  color: var(--champagne);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker.dark {
  color: var(--gold-dark);
}

.hero h1,
.section-heading h2,
.editorial-copy h2,
.delivery-title h2,
.launch-note h2,
.checkout-heading h1,
.success-page h1,
.error-page h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(72px, 8vw, 126px);
  letter-spacing: -0.055em;
  line-height: 0.72;
}

.hero h1 span {
  display: block;
  margin-top: 38px;
  color: var(--champagne);
  font-size: 0.58em;
  font-style: italic;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 530px;
  margin: 42px 0 0;
  color: rgba(255, 249, 239, 0.8);
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 14px 23px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);
  color: var(--espresso);
}

.button-gold:hover {
  background: var(--champagne);
}

.button-quiet {
  border-color: rgba(255, 249, 239, 0.32);
  background: rgba(23, 17, 14, 0.4);
  color: var(--ivory);
}

.button-quiet:hover {
  border-color: var(--champagne);
  color: var(--champagne);
}

.button-dark {
  background: var(--fir);
  color: var(--ivory);
}

.button-dark:hover {
  background: var(--fir-light);
}

.button-full {
  width: 100%;
}

.mockup-note {
  margin: 22px 0 0;
  color: rgba(255, 249, 239, 0.48);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.delivery-checker {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  bottom: 46px;
  z-index: 3;
  width: min(350px, 29vw);
  padding: 24px;
  border: 1px solid rgba(216, 189, 131, 0.3);
  background: linear-gradient(135deg, rgba(54, 37, 29, 0.97), rgba(23, 17, 14, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.checker-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.checker-heading > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--champagne);
}

.checker-heading div {
  display: flex;
  flex-direction: column;
}

.checker-heading small,
.delivery-checker > label {
  color: rgba(255, 249, 239, 0.58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.checker-heading strong {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
}

.delivery-checker > label {
  display: block;
  margin-bottom: 7px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 15px;
  color: var(--champagne);
  content: "⌄";
  pointer-events: none;
  transform: translateY(-58%);
}

.delivery-checker select {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(216, 189, 131, 0.3);
  border-radius: 0;
  padding: 13px 42px 13px 14px;
  background: rgba(255, 249, 239, 0.08);
  color: var(--ivory);
}

.delivery-checker select option {
  background: var(--walnut);
}

.checker-submit {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--gold);
  padding: 10px;
  background: transparent;
  color: var(--champagne);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checker-submit:hover {
  background: var(--gold);
  color: var(--espresso);
}

.checker-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 13px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.checker-result.success {
  color: #c8e5ce;
}

.checker-result.unavailable {
  color: #f2c7bf;
}

.checker-terms {
  margin: 4px 0 0 22px;
  color: rgba(255, 249, 239, 0.72);
  font-size: 10px;
  line-height: 1.45;
}

.trust-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--parchment);
}

.trust-ribbon > div {
  display: flex;
  min-height: 116px;
  align-items: center;
  gap: 18px;
  padding: 26px clamp(24px, 4vw, 60px);
  border-right: 1px solid var(--line);
}

.trust-ribbon > div:last-child {
  border-right: 0;
}

.trust-ribbon > div > span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 24px;
  font-style: italic;
}

.trust-ribbon p {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.trust-ribbon strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.section-pad {
  padding: clamp(82px, 9vw, 140px) clamp(24px, 6vw, 96px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 9vw;
  align-items: end;
}

.section-heading h2,
.editorial-copy h2,
.delivery-title h2,
.launch-note h2 {
  max-width: 780px;
  font-size: clamp(46px, 5.4vw, 78px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.section-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.55;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 50px 0 30px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.category-tabs a {
  border: 1px solid rgba(39, 30, 25, 0.16);
  padding: 9px 15px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 160ms ease;
}

.category-tabs a:hover,
.category-tabs a.active {
  border-color: var(--fir);
  background: var(--fir);
  color: var(--ivory);
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 70, 0.28);
  background: var(--parchment);
  box-shadow: 0 12px 40px rgba(43, 28, 22, 0.06);
  transition:
    box-shadow 200ms ease,
    transform 200ms ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.product-image,
.cart-thumb {
  background-color: var(--walnut);
  background-image: url("/static/images/alpengold-hero.png");
  background-repeat: no-repeat;
}

.product-image {
  position: relative;
  height: 290px;
  border-bottom: 1px solid var(--line);
  background-size: 205%;
  filter: saturate(0.92);
  transition: background-size 450ms ease;
}

.product-card:hover .product-image {
  background-size: 216%;
}

.product-image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(23, 17, 14, 0.68), transparent 46%),
    linear-gradient(120deg, rgba(216, 189, 131, 0.08), transparent 50%);
  content: "";
}

.art-almdudler {
  background-position: 78% 46%;
}

.art-veltliner {
  background-position: 70% 32%;
}

.art-graukaese {
  background-position: 48% 57%;
}

.art-germknoedel {
  background-position: 91% 74%;
}

.art-speckknoedel {
  background-position: 70% 78%;
}

.art-zirbeler {
  background-position: 58% 38%;
}

.product-badge,
.product-origin {
  position: absolute;
  z-index: 2;
  top: 17px;
  padding: 7px 10px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-badge {
  left: 17px;
  background: var(--ivory);
  color: var(--espresso);
}

.product-origin {
  right: 17px;
  border: 1px solid rgba(255, 249, 239, 0.46);
  background: rgba(23, 17, 14, 0.52);
  color: var(--ivory);
}

.product-body {
  padding: 27px;
}

.product-eyebrow {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.product-description {
  min-height: 76px;
  margin: 13px 0 18px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
}

.product-details {
  display: flex;
  min-height: 53px;
  flex-wrap: wrap;
  gap: 6px 15px;
  margin: 0;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.03em;
  list-style: none;
}

.product-details li::before {
  margin-right: 6px;
  color: var(--gold);
  content: "·";
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 21px;
}

.product-footer > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-footer > div strong {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.product-footer > div span {
  color: var(--muted);
  font-size: 9px;
}

.product-footer form {
  flex: 0 0 auto;
  margin: 0;
}

.product-footer button {
  display: flex;
  min-width: 112px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  padding: 11px 12px;
  background: var(--fir);
  color: var(--ivory);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-footer button:hover {
  background: var(--gold);
  color: var(--espresso);
}

.product-footer button span {
  font-size: 15px;
  line-height: 1;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(440px, 0.9fr);
  min-height: 760px;
  background: var(--espresso);
  color: var(--ivory);
}

.editorial-image {
  position: relative;
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 70px;
  background:
    linear-gradient(0deg, rgba(23, 17, 14, 0.82), transparent 48%),
    url("/static/images/alpengold-hero.png") center / cover;
}

.editorial-image::after {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(216, 189, 131, 0.38);
  content: "";
  pointer-events: none;
}

.editorial-image span,
.editorial-image strong {
  position: relative;
  z-index: 1;
}

.editorial-image span {
  color: var(--champagne);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.editorial-image strong {
  margin-top: 7px;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 74px);
  font-style: italic;
  font-weight: 500;
}

.editorial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(65px, 8vw, 125px);
  background:
    linear-gradient(rgba(43, 28, 22, 0.94), rgba(23, 17, 14, 0.98)),
    repeating-linear-gradient(90deg, transparent 0, transparent 17px, rgba(216, 189, 131, 0.03) 18px);
}

.editorial-copy h2 {
  font-size: clamp(46px, 4.7vw, 70px);
}

.editorial-copy > p:not(.kicker) {
  color: rgba(255, 249, 239, 0.64);
  font-size: 15px;
  line-height: 1.75;
}

.editorial-copy .editorial-lead {
  margin: 35px 0 0;
  color: rgba(255, 249, 239, 0.88);
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.55;
}

.signature {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid rgba(216, 189, 131, 0.22);
}

.signature span {
  color: var(--gold);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signature strong {
  font-family: var(--display);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
}

.delivery-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(184, 138, 70, 0.12), transparent 22rem),
    var(--page-bg);
}

.delivery-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: var(--line);
}

.delivery-steps article {
  min-height: 270px;
  padding: 37px;
  background: var(--parchment);
}

.delivery-steps article > span {
  display: block;
  margin-bottom: 44px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 28px;
  font-style: italic;
}

.delivery-steps h3 {
  margin: 0 0 13px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 600;
}

.delivery-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.delivery-banner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  margin-top: 24px;
  padding: 32px 38px;
  background: var(--fir);
  color: var(--ivory);
}

.delivery-banner > div {
  display: flex;
  flex-direction: column;
}

.delivery-banner small {
  color: var(--champagne);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.delivery-banner strong {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
}

.delivery-banner p {
  margin: 0;
  color: rgba(255, 249, 239, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.launch-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 10vw;
  align-items: center;
  padding: clamp(70px, 8vw, 110px) clamp(24px, 6vw, 96px);
  background: var(--burgundy);
  color: var(--ivory);
}

.launch-note h2 {
  max-width: 760px;
  font-size: clamp(42px, 4.8vw, 68px);
}

.launch-note > p {
  margin: 0;
  color: rgba(255, 249, 239, 0.75);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.6;
}

.footer {
  padding: 70px clamp(24px, 6vw, 96px) 28px;
  background:
    linear-gradient(rgba(23, 17, 14, 0.95), rgba(23, 17, 14, 1)),
    repeating-linear-gradient(90deg, var(--walnut) 0, var(--walnut) 25px, #221713 26px);
  color: var(--ivory);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
}

.footer-brand p {
  margin: 5px 0 0;
  color: rgba(255, 249, 239, 0.52);
  font-size: 12px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin: 60px 0 48px;
  padding: 45px 0;
  border-top: 1px solid rgba(216, 189, 131, 0.2);
  border-bottom: 1px solid rgba(216, 189, 131, 0.2);
}

.footer-columns > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-columns strong {
  margin-bottom: 4px;
  color: var(--champagne);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-columns span {
  color: rgba(255, 249, 239, 0.6);
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255, 249, 239, 0.42);
  font-size: 10px;
  line-height: 1.5;
}

/* Server-rendered cart and checkout. */

.inner-page {
  background:
    radial-gradient(circle at 86% 18%, rgba(184, 138, 70, 0.12), transparent 25rem),
    var(--page-bg);
}

.checkout-shell {
  width: min(1300px, calc(100% - 48px));
  min-height: 60vh;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) 0;
}

.checkout-narrow {
  width: min(1120px, calc(100% - 48px));
}

.checkout-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.checkout-heading .kicker {
  margin-bottom: 9px;
}

.checkout-heading h1,
.success-page h1,
.error-page h1 {
  font-size: clamp(52px, 7vw, 92px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.text-link {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gold);
  padding: 6px 0;
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 48px 0 42px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.checkout-progress li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 0 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.checkout-progress li:nth-child(2) {
  justify-content: center;
}

.checkout-progress li:nth-child(3) {
  justify-content: flex-end;
}

.checkout-progress span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(39, 30, 25, 0.25);
  border-radius: 50%;
  font-size: 10px;
}

.checkout-progress .active {
  color: var(--fir);
}

.checkout-progress .active span {
  border-color: var(--fir);
  background: var(--fir);
  color: var(--ivory);
}

.notice,
.error-summary {
  margin: -18px 0 28px;
  padding: 14px 17px;
  border-left: 3px solid var(--gold);
  background: rgba(184, 138, 70, 0.1);
  color: var(--ink);
  font-size: 13px;
}

.empty-cart {
  display: flex;
  min-height: 440px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--parchment);
  text-align: center;
}

.empty-cart > span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 23px;
  transform: rotate(45deg);
}

.empty-cart h2 {
  margin: 42px 0 8px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
}

.empty-cart p {
  margin: 0 0 24px;
  color: var(--muted);
}

.cart-layout,
.delivery-layout,
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.65fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}

.cart-lines {
  border-top: 1px solid var(--line);
}

.cart-line {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  width: 116px;
  height: 132px;
  border: 1px solid var(--line);
  background-size: 260%;
}

.cart-line-info {
  display: flex;
  flex-direction: column;
  padding-top: 2px;
}

.cart-line-info > p {
  margin: 0 0 4px;
  color: var(--gold-dark);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-line-info h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}

.cart-line-info > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.cart-line > strong {
  padding-top: 5px;
  font-family: var(--display);
  font-size: 21px;
}

.line-actions {
  display: flex;
  align-items: end;
  gap: 13px;
  margin-top: 18px;
}

.quantity-form {
  display: flex;
  align-items: center;
  border: 1px solid rgba(39, 30, 25, 0.16);
}

.quantity-form label {
  padding: 0 9px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quantity-form input {
  width: 48px;
  height: 34px;
  border: 0;
  border-left: 1px solid rgba(39, 30, 25, 0.16);
  padding: 5px;
  background: var(--paper);
  text-align: center;
}

.quantity-form button,
.remove-button {
  height: 34px;
  border: 0;
  padding: 0 11px;
  background: var(--fir);
  color: var(--ivory);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.remove-button {
  border-bottom: 1px solid var(--muted);
  padding: 0 2px;
  background: transparent;
  color: var(--muted);
}

.summary-card {
  position: sticky;
  top: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--parchment);
  box-shadow: 0 18px 60px rgba(23, 17, 14, 0.08);
}

.summary-card.compact {
  position: static;
}

.summary-card > .kicker {
  margin-bottom: 4px;
}

.summary-card > h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
}

.age-notice {
  margin-top: 20px;
  padding: 14px 15px;
  border-left: 3px solid var(--burgundy);
  background: rgba(106, 48, 55, 0.07);
}

.age-notice strong {
  color: var(--burgundy);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.age-notice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 13px;
}

.cart-summary dt,
.cart-summary dd {
  margin: 0;
}

.cart-summary dd {
  color: var(--ink);
  font-weight: 650;
  text-align: right;
}

.cart-summary .summary-total {
  margin-top: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
}

.summary-total dd {
  font-size: 23px;
}

.secure-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.delivery-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.field-row {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(39, 30, 25, 0.2);
  border-radius: 0;
  padding: 12px 13px;
  background: var(--paper);
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  border-color: var(--gold-dark);
}

.field-help,
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.4;
}

.field-help {
  color: var(--muted);
}

.field-error {
  color: #8b2d22;
}

.field-error.standalone {
  margin-top: -10px;
}

.delivery-condition-list {
  display: grid;
  border: 1px solid var(--line);
  background: var(--parchment);
}

.delivery-condition-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.42fr) 1fr;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.delivery-condition-list > div:last-child {
  border-bottom: 0;
}

.delivery-condition-list strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
}

.delivery-condition-list span {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.age-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px;
  border: 1px solid rgba(106, 48, 55, 0.23);
  background: rgba(106, 48, 55, 0.06);
  color: #5e4c47;
  font-size: 12px;
  line-height: 1.5;
}

.age-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--burgundy);
}

.privacy-note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid rgba(25, 60, 50, 0.18);
  background: rgba(25, 60, 50, 0.06);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.privacy-note strong {
  color: var(--fir);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-summary {
  display: flex;
  flex-direction: column;
  border-color: var(--burgundy);
  background: rgba(106, 48, 55, 0.07);
}

.error-summary strong {
  color: var(--burgundy);
}

.error-summary span {
  margin-top: 3px;
  color: var(--muted);
}

.payment-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.demo-ribbon {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--burgundy);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.demo-ribbon strong {
  margin-right: 9px;
  color: var(--champagne);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sumup-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(39, 30, 25, 0.13);
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(23, 17, 14, 0.1);
}

.sumup-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.sumup-topline span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sumup-topline strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.sumup-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 50px;
  font-weight: 600;
}

.sumup-card > p {
  max-width: 600px;
  margin: 11px 0 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-methods span {
  border: 1px solid rgba(39, 30, 25, 0.16);
  padding: 8px 11px;
  font-size: 9px;
  font-weight: 750;
}

.sumup-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}

.demo-payment-form {
  margin-top: 20px;
}

.demo-payment-form p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.success-header {
  display: flex;
  justify-content: center;
  padding: 30px;
  background: var(--espresso);
  color: var(--ivory);
}

.success-page {
  display: flex;
  min-height: calc(100vh - 104px);
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 70px 24px 100px;
  text-align: center;
}

.success-seal {
  display: grid;
  width: 90px;
  height: 90px;
  margin-bottom: 54px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--fir);
  font-size: 30px;
  transform: rotate(45deg);
}

.success-seal span {
  transform: rotate(-45deg);
}

.success-page .kicker {
  margin-bottom: 8px;
}

.success-page h1 {
  max-width: 820px;
}

.success-page > p:not(.kicker) {
  max-width: 660px;
  margin: 24px 0 34px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.6;
}

.confirmation-card {
  display: grid;
  width: min(540px, 100%);
  gap: 0;
  margin: 0 0 30px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: var(--parchment);
}

.confirmation-card > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.confirmation-card > div:last-child {
  border: 0;
}

.confirmation-card dt,
.confirmation-card dd {
  margin: 0;
}

.confirmation-card dt {
  color: var(--muted);
  font-size: 11px;
}

.confirmation-card dd {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
}

.error-page {
  display: flex;
  min-height: 70vh;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.error-page > span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 26px;
  font-style: italic;
}

.error-page .kicker {
  margin: 24px 0 10px;
}

.error-page > p:not(.kicker) {
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 1150px) {
  .main-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-content {
    width: min(690px, 70vw);
  }

  .delivery-checker {
    width: 320px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editorial {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-copy {
    padding: 70px 55px;
  }

  .delivery-banner {
    grid-template-columns: 1fr auto;
  }

  .delivery-banner > p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 820px) {
  .announcement-separator,
  .announcement-separator + span {
    display: none;
  }

  .main-header {
    top: 34px;
    padding: 18px 22px;
  }

  .inner-header {
    top: auto;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .cart-button {
    gap: 0;
    font-size: 0;
  }

  .cart-button span {
    font-size: 12px;
  }

  .hero {
    min-height: 930px;
    align-items: flex-start;
    padding: 175px 24px 290px;
  }

  .hero-image {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(14, 9, 7, 0.92) 0%, rgba(14, 9, 7, 0.62) 70%, rgba(14, 9, 7, 0.28)),
      linear-gradient(0deg, rgba(14, 9, 7, 0.95) 0%, rgba(14, 9, 7, 0.2) 54%, rgba(14, 9, 7, 0.52));
  }

  .hero-content {
    width: 100%;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(66px, 20vw, 96px);
  }

  .hero h1 span {
    margin-top: 27px;
  }

  .hero-copy {
    max-width: 560px;
    font-size: 20px;
  }

  .delivery-checker {
    right: 24px;
    bottom: 28px;
    left: 24px;
    width: auto;
  }

  .trust-ribbon {
    grid-template-columns: 1fr;
  }

  .trust-ribbon > div {
    min-height: 100px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .section-heading > p {
    max-width: 580px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 340px;
    background-size: 190%;
  }

  .editorial {
    grid-template-columns: 1fr;
  }

  .editorial-image {
    min-height: 580px;
    padding: 50px;
  }

  .editorial-copy {
    padding: 75px 34px;
  }

  .delivery-steps {
    grid-template-columns: 1fr;
  }

  .delivery-steps article {
    min-height: 220px;
  }

  .delivery-banner {
    grid-template-columns: 1fr;
  }

  .delivery-banner > p {
    grid-column: auto;
    grid-row: auto;
  }

  .launch-note {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cart-layout,
  .delivery-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .announcement {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .main-header {
    top: 38px;
  }

  .inner-header {
    top: auto;
  }

  .brand-monogram {
    width: 37px;
    height: 37px;
  }

  .brand-monogram i {
    font-size: 15px;
  }

  .brand strong {
    max-width: 190px;
    font-size: 15px;
    line-height: 1;
  }

  .hero {
    min-height: 980px;
    padding-top: 156px;
  }

  .hero h1 {
    font-size: 65px;
  }

  .hero h1 span {
    margin-top: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-copy {
    margin-top: 30px;
  }

  .mockup-note {
    display: none;
  }

  .section-pad {
    padding-block: 78px;
  }

  .section-heading h2,
  .editorial-copy h2,
  .delivery-title h2,
  .launch-note h2 {
    font-size: 44px;
  }

  .category-tabs {
    flex-wrap: nowrap;
    margin-right: -24px;
    overflow-x: auto;
    padding-right: 24px;
  }

  .category-tabs a {
    flex: 0 0 auto;
  }

  .product-image {
    height: 270px;
    background-size: 215%;
  }

  .product-body {
    padding: 23px;
  }

  .product-body h3 {
    font-size: 31px;
  }

  .product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .product-footer button {
    width: 100%;
    min-height: 44px;
  }

  .editorial-image {
    min-height: 480px;
    padding: 40px;
  }

  .delivery-steps article {
    padding: 30px;
  }

  .delivery-banner {
    padding: 28px 24px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-brand strong {
    font-size: 21px;
  }

  .checkout-shell,
  .checkout-narrow {
    width: min(100% - 32px, 1300px);
    padding-top: 60px;
  }

  .checkout-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-heading h1,
  .success-page h1,
  .error-page h1 {
    font-size: 50px;
  }

  .checkout-progress {
    margin: 35px 0;
  }

  .checkout-progress li {
    align-items: flex-start;
    flex-direction: column;
    font-size: 7px;
  }

  .checkout-progress li:nth-child(2) {
    align-items: center;
  }

  .checkout-progress li:nth-child(3) {
    align-items: flex-end;
  }

  .cart-line {
    grid-template-columns: 76px 1fr;
    gap: 14px;
  }

  .cart-thumb {
    width: 76px;
    height: 92px;
  }

  .cart-line > strong {
    grid-column: 2;
    margin-top: -10px;
  }

  .line-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .delivery-condition-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .quantity-form label {
    display: none;
  }

  .delivery-form,
  .summary-card {
    padding: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Appearance preference: server-selected, with a no-JavaScript system fallback. */

body.theme-dark {
  color-scheme: dark;
  --page-bg: #17110e;
  --paper: #211713;
  --parchment: #2b1c16;
  --ink: #fff9ef;
  --muted: #c7b8ab;
  --line: rgba(216, 189, 131, 0.28);
  --gold-dark: #d8bd83;
}

@media (prefers-color-scheme: dark) {
  body.theme-system {
    color-scheme: dark;
    --page-bg: #17110e;
    --paper: #211713;
    --parchment: #2b1c16;
    --ink: #fff9ef;
    --muted: #c7b8ab;
    --line: rgba(216, 189, 131, 0.28);
    --gold-dark: #d8bd83;
  }
}

body.theme-dark,
body.theme-system {
  accent-color: var(--gold);
}

body.theme-dark .age-check,
body.theme-dark .cart-line-info > span,
body.theme-dark .field input,
body.theme-dark .field select,
body.theme-dark .admin-form input,
body.theme-dark .admin-form select,
body.theme-dark .inline-settings input,
body.theme-dark .inline-settings select,
body.theme-dark .status-form select,
body.theme-dark .quantity-form input {
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  body.theme-system .age-check,
  body.theme-system .cart-line-info > span,
  body.theme-system .field input,
  body.theme-system .field select,
  body.theme-system .admin-form input,
  body.theme-system .admin-form select,
  body.theme-system .inline-settings input,
  body.theme-system .inline-settings select,
  body.theme-system .status-form select,
  body.theme-system .quantity-form input {
    color: var(--ink);
  }
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 18px;
}

.theme-toggle {
  margin: 0;
}

.theme-toggle fieldset {
  display: flex;
  margin: 0;
  border: 1px solid rgba(216, 189, 131, 0.32);
  padding: 2px;
}

.theme-toggle legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.theme-toggle button {
  min-height: 27px;
  border: 0;
  padding: 4px 7px;
  background: transparent;
  color: rgba(255, 249, 239, 0.64);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-toggle button:hover,
.theme-toggle button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--espresso);
}

.stock-status {
  margin: 13px 0 0;
  color: var(--fir);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-dark .stock-status {
  color: #9cc7b8;
}

@media (prefers-color-scheme: dark) {
  .theme-system .stock-status {
    color: #9cc7b8;
  }
}

.stock-status.low-stock {
  color: var(--gold-dark);
}

.stock-status.sold-out {
  color: var(--burgundy);
}

.product-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.product-footer button:disabled:hover {
  background: var(--fir);
  color: var(--ivory);
}

.line-availability {
  color: var(--fir) !important;
  font-weight: 700;
}

.theme-dark .line-availability {
  color: #9cc7b8 !important;
}

@media (prefers-color-scheme: dark) {
  .theme-system .line-availability {
    color: #9cc7b8 !important;
  }
}

.success-header {
  gap: 50px;
  justify-content: space-between;
  padding-inline: clamp(24px, 6vw, 96px);
}

/* Warenwirtschaft */

.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgba(184, 138, 70, 0.13), transparent 27rem),
    var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(216, 189, 131, 0.25);
  background:
    linear-gradient(110deg, rgba(43, 28, 22, 0.98), rgba(23, 17, 14, 0.99)),
    var(--espresso);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.16);
  color: var(--ivory);
}

.admin-header nav {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-header nav a:hover {
  color: var(--champagne);
}

.admin-header .theme-toggle {
  justify-self: end;
}

.admin-header .theme-toggle button {
  min-height: 38px;
  padding-inline: 11px;
  font-size: 12px;
}

.admin-content {
  width: calc(100% - clamp(32px, 4vw, 72px));
  margin: 0 auto;
  padding: clamp(42px, 5vw, 72px) 0 80px;
}

.admin-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 9vw;
  align-items: end;
}

.admin-title .kicker {
  margin-bottom: 8px;
}

.admin-title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.admin-title > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.admin-notice {
  margin: 35px 0 -10px;
  padding: 14px 18px;
  border-left: 3px solid var(--fir);
  background: rgba(25, 60, 50, 0.1);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 50px 0 24px;
  background: var(--line);
}

.metric-grid article {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: var(--parchment);
}

.metric-grid span {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-grid strong {
  margin: 5px 0 1px;
  font-family: var(--display);
  font-size: 52px;
  font-weight: 600;
}

.metric-grid small {
  color: var(--muted);
  font-size: 15px;
}

.metric-grid .metric-alert {
  background: rgba(106, 48, 55, 0.12);
}

.metric-alert strong {
  color: var(--burgundy);
}

.admin-panel {
  margin-top: 24px;
  padding: clamp(24px, 2.5vw, 40px);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 18px 60px rgba(23, 17, 14, 0.06);
  scroll-margin-top: 110px;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 30px;
}

.panel-heading .kicker {
  margin-bottom: 5px;
}

.panel-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.panel-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--parchment);
}

.admin-form label,
.inline-settings label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select,
.inline-settings input,
.inline-settings select,
.status-form select {
  min-width: 0;
  min-height: 60px;
  border: 1px solid rgba(39, 30, 25, 0.2);
  border-radius: 0;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
}

.admin-form-wide {
  grid-column: span 2;
}

.admin-form > .button {
  align-self: end;
}

.admin-form > .button,
.delivery-rule-form > .button {
  min-height: 60px;
  font-size: 14px;
  letter-spacing: 0.08em;
}

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

.delivery-rule-form {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px;
}

.delivery-rule-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.delivery-rule-title span {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.delivery-rule-title h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
}

.delivery-rule-form label {
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.035em;
}

.delivery-rule-form input {
  min-height: 60px;
  padding: 14px 16px;
  border-color: rgba(184, 138, 70, 0.48);
  font-size: 18px;
  font-weight: 650;
}

.delivery-rule-form > .button {
  min-height: 60px;
  font-size: 13px;
}

.delivery-rule-form > small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.inbound-form {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  margin-bottom: 28px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}

.admin-table th {
  padding: 14px 16px;
  background: var(--fir);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.admin-table td:last-child {
  border-right: 0;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover td {
  background: rgba(184, 138, 70, 0.06);
}

.admin-table td strong {
  color: var(--ink);
}

.admin-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.product-admin-table {
  min-width: 1100px;
}

.product-admin-table td:nth-child(2),
.product-admin-table td:nth-child(3),
.product-admin-table td:nth-child(4) {
  font-family: var(--display);
  font-size: 20px;
}

.low-row td {
  background: rgba(106, 48, 55, 0.06);
}

.warning-text {
  color: var(--burgundy) !important;
  font-family: var(--body);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inline-settings {
  display: grid;
  min-width: 780px;
  grid-template-columns: 100px 200px 100px 80px auto;
  gap: 10px;
  align-items: end;
}

.inline-settings label span {
  display: block;
}

.inline-settings .check-label {
  align-items: center;
  flex-direction: row;
  gap: 6px;
  min-height: 60px;
}

.inline-settings .check-label input {
  min-height: 0;
}

.inline-settings button,
.status-form button,
.receive-form button {
  min-height: 60px;
  border: 0;
  padding: 8px 12px;
  background: var(--fir);
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inbound-table-wrap {
  margin-top: 8px;
}

.inbound-table-wrap .admin-table {
  min-width: 980px;
}

.status-form {
  display: flex;
  min-width: 235px;
}

.status-form select {
  flex: 1;
}

.receive-form {
  margin-top: 6px;
}

.receive-form button {
  width: 100%;
  min-height: 34px;
  background: var(--gold);
  color: var(--espresso);
}

.status-pill {
  display: inline-block;
  padding: 6px 8px;
  background: var(--fir);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.positive {
  color: #2e765f !important;
  font-weight: 750;
}

.negative {
  color: #9b3934 !important;
  font-weight: 750;
}

@media (max-width: 1100px) {
  .admin-header {
    grid-template-columns: 1fr auto;
  }

  .admin-header nav {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-form,
  .inbound-form {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .delivery-rule-grid {
    grid-template-columns: 1fr;
  }

  .delivery-rule-form {
    grid-template-columns:
      minmax(150px, 0.6fr)
      repeat(2, minmax(190px, 1fr))
      minmax(190px, 0.75fr);
    align-items: end;
  }

  .delivery-rule-form > small {
    grid-column: 1 / -1;
  }

  .delivery-rule-title {
    align-self: stretch;
    padding: 5px 18px 5px 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .header-actions {
    gap: 8px;
  }

  .main-header .theme-toggle button {
    padding-inline: 4px;
    font-size: 6px;
  }

  .admin-content {
    width: calc(100% - 28px);
  }

  .admin-title {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metric-grid article {
    min-height: 130px;
    padding: 20px;
  }

  .metric-grid strong {
    font-size: 42px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .admin-form,
  .inbound-form {
    grid-template-columns: 1fr;
  }

  .delivery-rule-form {
    grid-template-columns: 1fr;
  }

  .delivery-rule-title,
  .delivery-rule-form > .button,
  .delivery-rule-form > small {
    grid-column: auto;
  }

  .admin-form-wide {
    grid-column: auto;
  }

  .admin-header .brand > span:last-child {
    display: none;
  }
}

@media (max-width: 410px) {
  .main-header .brand > span:last-child {
    display: none;
  }
}
