:root {
  font: 17px/1.5 Arial, Helvetica, sans-serif;
  --ink: #102e44;
  --paper: #fffaf1;
  --line: #d6d8d2;
  color: var(--ink);
  background: var(--paper);
}
* {box-sizing: border-box;}
body {margin: 0;}
a, button, input {font: inherit; color: inherit;}
a {text-underline-offset: 4px;}
button {cursor: pointer;}
header, main, footer {width: min(1160px, 92%); margin: auto;}
header {display: flex; align-items: center; justify-content: space-between; min-height: 76px; border-bottom: 1px solid var(--line); gap: 20px;}
.brand img {width: 155px; display: block;}
.brand.cat {padding: 6px 10px; background: #69394b; border-radius: 6px;}
.backlink, footer {font-size: .91rem;}
.backlink {text-decoration: none; font-weight: 650;}
.backlink:hover {text-decoration: underline;}
h1, h2, h3, p {margin: 0;}
footer {display: flex; flex-wrap: wrap; gap: 12px 22px; border-top: 1px solid var(--line); padding: 23px 0 40px;}
footer span {margin-right: auto;}
button:focus-visible, a:focus-visible {outline: 3px solid #447aac; outline-offset: 3px;}

#cartPage {
  --cart-ink: #102e44;
  --cart-accent: var(--cart-ink);
  --cart-tint: #e3edf0;
  --cart-muted: #485e6a;
  --cart-edge: #cfdcde;
  color: var(--cart-ink);
  padding-block: clamp(28px, 4.8vw, 68px) clamp(52px, 7vw, 96px);
  min-height: 58vh;
}
#cartPage.cat-cart {
  --cart-accent: #67354a;
  --cart-tint: #f0e4e8;
  --cart-edge: #e3d3d8;
}
.checkout-heading {margin-bottom: clamp(22px, 3.4vw, 44px);}
.checkout-heading h1, #cartPage h2, #cartPage h3 {line-height: 1.06; letter-spacing: -.05em; text-wrap: balance;}
.checkout-heading h1 {font-size: clamp(38px, 5.8vw, 76px);}
#cartPage h2 {font-size: clamp(24px, 2.65vw, 36px);}
#cartPage h3 {font-size: clamp(17px, 1.45vw, 21px);}
#intro:not(:empty) {max-width: 58ch; color: var(--cart-muted); margin-top: 10px;}
.checkout-steps {display: flex; gap: 6px; max-width: 35rem; list-style: none; padding: 0; margin: 0 0 clamp(18px, 2.6vw, 34px);}
.checkout-steps li {flex: 1; padding-bottom: 7px; font-size: .86rem; line-height: 1.35; border-bottom: 2px solid var(--cart-edge); color: var(--cart-muted);}
.checkout-steps [aria-current] {font-weight: 700; color: var(--cart-ink); border-color: var(--cart-accent);}
.layout {display: grid; grid-template-columns: minmax(0,1.42fr) minmax(265px,.8fr); gap: clamp(20px, 4vw, 60px); align-items: start;}
.products {list-style: none; padding: 0; margin: 0;}
.item {display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: clamp(12px, 1.8vw, 24px); align-items: start; padding: 17px 0; border-top: 1px solid var(--cart-edge);}
.item > img, .item > span {grid-column: 1; grid-row: 1 / span 2;}
.item-copy {grid-column: 2; grid-row: 1;}
.item:last-child {border-bottom: 1px solid var(--cart-edge);}
.item img {width: 92px; height: 96px; padding: 7px; object-fit: contain; border-radius: 13px; background: #fffefb;}
.item h3 a {text-decoration: none;}
.item h3 a:hover {text-decoration: underline;}
.pack {font-size: .89rem; color: var(--cart-muted); margin-top: 4px;}
.lineprice {grid-column: 3; grid-row: 1; font-variant-numeric: tabular-nums; white-space: nowrap;}
.editing, .actions {display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap;}
.item .editing {grid-column: 2 / -1; grid-row: 2; align-self: end; margin-top: -5px;}
.stepper {display: inline-flex; align-items: center; border: 1px solid var(--cart-edge); border-radius: 30px; background: #fffdf8;}
.stepper button, .remove, .link {min-height: 44px; border: 0; background: transparent;}
.stepper button {min-width: 44px; border-radius: 50%; font-size: 1.1rem;}
.stepper button:enabled:hover {background: var(--cart-tint);}
.stepper button:disabled {opacity: .38;}
.stepper output {min-width: 1.6em; text-align: center; font-variant-numeric: tabular-nums;}
.remove, .link {padding: 0 3px; text-decoration: underline; text-underline-offset: 3px; font-size: .86rem;}
.summary {position: sticky; top: 18px; padding: clamp(21px, 2.8vw, 36px); border-radius: 20px; background: var(--cart-tint);}
.summary dl {margin: 20px 0;}
.summary dl > div {display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-block: 7px;}
.summary dd {margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap;}
.summary .total {margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--cart-edge); font-size: 1.1rem; font-weight: 700;}
.solid, .secondary {display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid transparent; border-radius: 30px; font-weight: 650; text-decoration: none; text-align: center; line-height: 1.22;}
.solid {background: var(--cart-accent); color: #fffaf1;}
.solid:hover {filter: brightness(1.15);}
.secondary {border-color: currentColor; background: transparent;}
.summary .solid {width: 100%;}
.summary small, .test-note {display: block; font-size: .85rem; line-height: 1.42;}
.summary small {margin-top: 13px;}
.test-note {margin: 0 0 15px;}
.summary button.link {display: block; margin: 5px auto -6px;}
.actions {margin-top: 20px;}
.receipt {padding: 26px 0 8px;}
.delivery-data {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 18px 0 0;}
.delivery-data dt {color: var(--cart-muted); font-size: .86rem; font-weight: 650;}
.delivery-data dd {margin: 3px 0 0;}
.empty-cart {display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); align-items: center; border-radius: 22px; overflow: hidden; background: var(--cart-tint);}
.empty-copy {padding: clamp(24px, 4.5vw, 64px);}
.empty-copy h2 {max-width: 17ch;}
.empty-copy p {max-width: 39ch; margin-top: 12px; color: var(--cart-muted);}
.empty-photo {display: grid; place-items: center; align-self: stretch; padding: clamp(16px, 2vw, 26px); background: #fffdf6;}
.empty-photo img {width: min(100%, 290px); height: clamp(146px, 18vw, 240px); object-fit: contain;}
#feedback:not(:empty) {margin-top: 18px; font-weight: 650;}
@media (max-width: 850px) {
  .layout {grid-template-columns: minmax(0,1fr);}
  .summary {position: static;}
  .item-copy {min-width: 0; overflow-wrap: anywhere; hyphens: auto;}
}
@media (max-width: 720px) {
  header {min-height: 60px;}
  .brand img {width: 125px;}
  footer span {width: 100%;}
  .item {grid-template-columns: 68px minmax(0,1fr) auto; gap: 12px;}
  .item img {width: 68px; height: 76px;}
  .empty-cart {grid-template-columns: 1fr;}
  .empty-photo {order: -1; padding: 10px 18px;}
  .empty-photo img {height: 118px;}
  .empty-copy {padding: 23px;}
}
@media (max-width: 480px) {
  #cartPage {width: auto; margin-inline: 16px;}
  .checkout-heading h1 {hyphens: auto; overflow-wrap: anywhere;}
  .item {grid-template-columns: 68px minmax(0,1fr);}
  .item > img, .item > span {grid-area: 1 / 1 / 3;}
  .lineprice {grid-column: 2; grid-row: 2; font-size: .97rem;}
  .item .editing {grid-column: 1 / -1; grid-row: 3; justify-content: space-between; gap: 12px; margin-top: 0;}
  .item .remove {padding-inline: 8px;}
  .delivery-data {grid-template-columns: repeat(auto-fit,minmax(min(100%, 8.5rem),1fr)); gap: 12px;}
  .actions {align-items: stretch;}
  .empty-copy .actions > * {flex: 1 1 12rem;}
  .checkout-steps li {font-size: .82rem;}
}

#emptyActions[hidden] {display: none;}
html #cartPage.cart-is-empty .checkout-heading {
  padding: 0;
  border: 0;
  margin: 0 0 clamp(24px, 3vw, 40px);
  text-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  overflow: hidden;
  background: var(--cart-tint);
  border-radius: 20px;
}
.cart-is-empty .cart-heading-copy {padding: clamp(26px, 4vw, 52px); align-self: center;}
.cart-is-empty .checkout-heading::after {
  content: "";
  min-height: 200px;
  background: url("assets/probe-kostprobe.webp") center / cover no-repeat;
}
.cat-cart.cart-is-empty .checkout-heading::after {background-image: url("assets/katze-am-napf.webp");}
.cart-is-empty #headline {max-width: 14ch; font-size: clamp(34px, 4.5vw, 62px);}
.cart-is-empty #intro {max-width: 39ch;}
.cart-text-link {display: inline-flex; align-items: center; min-height: 44px; font-weight: 600;}
.cart-picks ul {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 24px); list-style: none; padding: 0; margin: 18px 0 0;
}
.cart-menu-link {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(62px, 7vw, 96px);
  align-items: end; gap: clamp(10px, 1.5vw, 20px); height: 100%; text-align: start;
  padding: 8px clamp(10px, 1.3vw, 18px); border-radius: 14px;
  background: #fffefa; color: var(--cart-ink); text-decoration: none;
}
.cart-menu-link:hover {background: var(--cart-tint);}
.cart-menu-link:focus-visible strong, .cart-menu-link:hover strong {text-decoration: underline;}
.cart-menu-link img {grid-area: 1 / 2; align-self: center; width: 100%; height: 67px; object-fit: contain;}
.cart-menu-link span {grid-area: 1 / 1; min-width: 0; display: grid; justify-items: start; gap: 2px;}
.cart-menu-link strong {line-height: 1.18; overflow-wrap: anywhere;}
.cart-menu-link small {font-size: .85rem; color: var(--cart-muted);}
.cart-menu-link b {font-size: .95rem; font-variant-numeric: tabular-nums;}
@media (max-width: 720px) {
  html #cartPage.cart-is-empty .checkout-heading {grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);}
  .cart-is-empty .cart-heading-copy {padding: 22px 18px;}
  .cart-is-empty .checkout-heading::after {min-height: 0;}
  .cart-is-empty .actions {gap: 2px 12px; margin-top: 12px;}
  .cart-picks ul {grid-template-columns: 1fr; gap: 6px; margin-top: 12px;}
  .cart-menu-link {grid-template-columns: minmax(0, 1fr) 64px; padding: 6px 12px; gap: 14px;}
  .cart-menu-link img {height: 54px;}
}
@media (max-width: 480px) {
  html #cartPage.cart-is-empty .checkout-heading {grid-template-columns: 1fr;}
  .cart-is-empty .checkout-heading::after {grid-row: 1; height: clamp(94px, 31vw, 145px); background-position: center 48%;}
  .cart-is-empty .cart-heading-copy {padding: 20px;}
  .cart-is-empty #headline {max-width: none; font-size: clamp(28px, 7.7vw, 36px);}
}
