/* The cart (markup from server/shop/render.js, so these styles are global, all under .cart). */
  .cart-page { padding-top: clamp(40px, 7vw, 96px); }
  .cart-intro { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 64px); }
  .cart-intro .label { margin: 0; color: var(--ink-2); }

  .cart-flag {
    margin: 0 0 28px;
    padding: 14px 20px;
    border-radius: 0;
    background: var(--paper-2);
    font-size: var(--t-small);
  }
  .cart-demo { margin: 0 0 20px; color: var(--ink-2); }

  .cart {
    display: grid;
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  @media (min-width: 900px) {
    .cart { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); }
    .cart-checkout { position: sticky; top: 96px; }
  }

  /* Lines */
  .cart-head {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink-2);
  }
  .cart-lines { container-type: inline-size; min-width: 0; }
  .cart-lines ul { list-style: none; margin: 0; padding: 0; }
  .cart-line {
    --t1: #ecedea;
    --t2: #f3f2ef;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    grid-template-areas: 'thumb info amount' 'thumb controls controls';
    gap: 10px 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
  }
  @container (min-width: 600px) {
    .cart-line {
      grid-template-columns: 84px minmax(0, 1fr) auto 96px;
      grid-template-areas: 'thumb info controls amount';
      align-items: center;
    }
  }
  .cart-thumb {
    grid-area: thumb;
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 0;
    overflow: hidden;
  }
  .cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* No coloured block behind the product (Dimi, 30 Nov 2026: the tint read as a red square on a
     phone): the rendered tube and the cut-outs (PNG) stand whole on the paper of the page, a photo
     melts into it (multiply). */
  .cart-thumb .cart-tube, .cart-thumb img[src$='.png'] { object-fit: contain; padding: 8px 0; mix-blend-mode: normal; }
  .cart-line:hover .cart-thumb img { transform: scale(1.04); }
  .cart-info { grid-area: info; min-width: 0; }
  .cart-title { font: 400 17px/1.3 var(--serif); text-decoration: none; }
  .cart-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  /* The mood word small and italic above the name, as on the product cards. */
  .cart-mood { display: block; margin-bottom: 4px; font: italic 400 13px/1 var(--serif); letter-spacing: 0.06em; color: var(--ink-2); }
  .cart-name { display: block; }
  .cart-variant { margin: 6px 0 0; color: var(--ink-2); }
  .cart-unit { margin: 4px 0 0; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .cart-controls { grid-area: controls; display: flex; align-items: center; gap: 18px; margin-top: 4px; }
  @container (min-width: 600px) { .cart-controls { margin-top: 0; } }
  .cart-amount { grid-area: amount; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

  .cart-qty {
    display: inline-flex;
    align-items: center;
    border-radius: 0;
    background: var(--glass-strong);
  }
  .cart-qty button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font: 300 16px/1 var(--sans);
    cursor: pointer;
    transition: background 0.3s ease;
  }
  .cart-qty button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.6); }
  .cart-qty button:disabled { color: var(--line-strong); cursor: default; }
  .cart-count { min-width: 22px; text-align: center; font-size: var(--t-small); font-variant-numeric: tabular-nums; }
  .cart-remove button {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--ink-2);
    cursor: pointer;
  }
  .cart-remove button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

  .cart-note { margin: 18px 0 0; font-size: var(--t-small); color: var(--ink-2); }
  .cart-continue { margin: 16px 0 0; text-align: center; }
  .cart-continue a { display: inline-block; padding-block: 14px; color: var(--ink-2); }
  .cart-empty-link a { display: inline-block; padding-block: 14px; }

  /* Subtotal panel: a quiet neutral field (Dimi, 30 Nov 2026: no colour of the first tea, which read
     as red on a phone); delivery is chosen on /winkel/afrekenen. */
  .cart-checkout { padding: clamp(28px, 3vw, 40px); border-radius: 0; background: var(--paper-2); }
  .cart-sum { margin: 0; display: grid; gap: 10px; }
  .cart-sum > div { display: flex; justify-content: space-between; gap: 16px; }
  .cart-sum > div[hidden] { display: none; }
  .cart-sum dt { color: var(--ink-2); font-size: 14px; }
  .cart-sum dd { margin: 0; font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
  .cart-total { align-items: baseline; }
  .cart-total dt { color: var(--ink); font: 400 var(--t-micro)/1.4 var(--sans); letter-spacing: var(--track-caps); text-transform: uppercase; }
  .cart-total dd { font: 400 28px/1.1 var(--serif); }
  .cart-free { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
  .cart-vat { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
  .cart-pay { width: 100%; justify-content: center; margin-top: 24px; padding-block: 17px; }

  /* Empty */
  .cart--empty { display: block; padding-block: 24px 40px; }
  .cart-empty { color: var(--ink-2); }
  .cart-empty-link { margin: 28px 0 0; }

  /* Motion: lines surface from a light blur one after the other; the total rises through the glass. */
  @media (prefers-reduced-motion: no-preference) {
    .cart-line { animation: cart-surface 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
    .cart-checkout { animation: cart-glass 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
    .cart-total dd { animation: cart-surface 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }
    .cart-empty, .cart-flag:not([hidden]) { animation: cart-surface 1s cubic-bezier(0.22, 1, 0.36, 1) both; }
    :root[data-stil] :is(.cart-line, .cart-checkout, .cart-total dd, .cart-empty, .cart-flag) { animation: none; }
    @keyframes cart-surface {
      from { opacity: 0; filter: blur(10px); transform: translateY(8px); }
    }
    @keyframes cart-glass {
      from { opacity: 0; filter: blur(18px); transform: translateY(16px) scale(0.985); }
    }
  }