/* Pierlin storefront skin (DECISIONS 105): the approved prototype's styles.css (May 2026), ported
   1:1. Only the :root block changed: colours, radii and fonts come from the theme tokens
   (tenants/pierlin/theme/tokens.css) where a token exists, and the fonts are self-hosted by the
   theme (no Google Fonts). The last section neutralises the engine's base styles so the skin
   looks exactly like the prototype. */

:root {
  --bg: var(--td-color-bg);
  --bg-alt: #F4ECD9;
  --bg-deep: var(--td-color-dark);
  --ink: var(--td-color-text);
  --ink-soft: var(--td-color-text-muted);
  --ink-muted: #9C8A7C;
  --line: var(--td-color-border);

  --red: var(--td-color-brand);
  --red-deep: var(--td-color-brand-strong);
  --gold: var(--td-color-dark-accent);
  --gold-deep: #DA9A24;
  --green: var(--td-color-accent);
  --green-deep: #2D6E37;

  --accent: var(--red);
  --accent-deep: var(--red-deep);

  --radius-sm: 6px;
  --radius: var(--td-radius);
  --radius-lg: var(--td-radius-lg);
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(42, 31, 26, 0.06), 0 1px 1px rgba(42, 31, 26, 0.04);
  --shadow: 0 4px 14px rgba(42, 31, 26, 0.08), 0 1px 3px rgba(42, 31, 26, 0.05);
  --shadow-lg: 0 18px 40px rgba(42, 31, 26, 0.12), 0 4px 12px rgba(42, 31, 26, 0.06);

  --font-display: var(--td-font-display);
  --font-ui: var(--td-font-body);
  --font-mono: var(--td-font-mono);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 0 var(--accent-deep), 0 8px 18px rgba(214, 51, 64, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 0 var(--accent-deep), 0 12px 22px rgba(214, 51, 64, 0.3); }
.btn-secondary {
  background: var(--ink);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-tight { max-width: 1080px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.brand-logo {
  height: 44px;
  width: auto;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
}
.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  position: relative;
  color: var(--ink);
  transition: background 120ms ease;
}
.icon-btn:hover { background: var(--bg-alt); }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--bg);
}

/* Page chrome */
main { min-height: calc(100vh - 76px); }

.section {
  padding: 96px 0;
}
.section-tight { padding: 64px 0; }

/* Section heading combo */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  color: #E8DEC9;
  padding: 80px 0 32px;
  margin-top: 80px;
}
.site-footer h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9B68F;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9F8E70;
}

/* Image placeholder */
.imgph {
  background:
    repeating-linear-gradient(45deg, rgba(42,31,26,0.04) 0 8px, rgba(42,31,26,0.07) 8px 16px),
    var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-radius: var(--radius);
  text-align: center;
  padding: 16px;
  overflow: hidden;
}

/* Twine divider */
.twine {
  height: 8px;
  background-image: radial-gradient(circle, var(--ink-soft) 1.4px, transparent 1.6px);
  background-size: 14px 8px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.4;
}

/* Floating cakes anim */
@keyframes float-soft {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-14px) rotate(calc(var(--rot, 0deg) + 2deg)); }
}
.float {
  animation: float-soft var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Tier price badge - wax seal style */
.tier-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  padding: 4px 9px;
  border-radius: 999px;
}

/* Product card */
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.product-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.product-card-name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
  margin-top: 2px;
}
.product-card-meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.product-card-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
}
.price-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.add-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 120ms ease, background 120ms ease;
}
.add-btn:hover { background: var(--accent); transform: scale(1.08); }

.tag-row {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.chip-accent { background: var(--accent); color: #fff; }
.chip-gold { background: var(--gold); color: var(--ink); }
.chip-green { background: var(--green); color: #fff; }

/* Card variant: minimal */
.product-card.variant-minimal {
  background: transparent;
  border: none;
  border-radius: 0;
}
.product-card.variant-minimal:hover { box-shadow: none; transform: translateY(-2px); }
.product-card.variant-minimal .product-card-img { border-radius: var(--radius); }
.product-card.variant-minimal .product-card-body { padding: 14px 0 0; }

/* Card variant: framed */
.product-card.variant-framed {
  background: var(--bg-alt);
  border: 1px dashed var(--ink-soft);
}

/* Form inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(214,51,64,0.1);
}

/* Cart drawer */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(42,31,26,0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 460px;
  max-width: 100vw;
  background: var(--bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.drawer-foot {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.qty button {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--ink);
}
.qty button:hover { background: var(--bg-alt); }
.qty input {
  width: 36px;
  border: none;
  text-align: center;
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 600;
  outline: none;
}

/* Hero variants */
.hero-floating {
  position: relative;
  padding: 88px 0 120px;
  overflow: hidden;
}
.hero-stripe {
  background: var(--bg-deep);
  color: #F1E5CB;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.hero-magazine {
  padding: 64px 0 96px;
}

/* Magazine hero grid */
.mag-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Floating decoration positions */
.deco-cake {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff 0%, var(--bg-alt) 60%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  box-shadow: var(--shadow);
}

/* Category tile */
.cat-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: end;
  padding: 20px;
  cursor: pointer;
  transition: transform 200ms ease;
  border: 1px solid var(--line);
}
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.cat-tile-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.cat-tile-name {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
}
.cat-tile-count {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 999px;
  text-shadow: none;
}

/* Brand tile */
.brand-tile {
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
  transition: all 160ms ease;
}
.brand-tile:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Product grid */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.prod-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Filter sidebar */
.filter-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.filter-group h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-weight: 600;
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}
.filter-group label:hover { color: var(--accent); }
.filter-group input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-group label .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

/* Tier table */
.tier-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.tier-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 14px;
}
.tier-row:last-child { border-bottom: none; }
.tier-row.head {
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tier-row.active {
  background: rgba(245, 182, 66, 0.15);
}
.tier-row .price-col {
  font-family: var(--font-display);
  font-size: 18px;
  text-align: right;
}
.tier-row .save-col {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-deep);
  font-weight: 600;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1), opacity 200ms ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Recipe card */
.recipe-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.recipe-card-img { aspect-ratio: 5/4; }
.recipe-card-body { padding: 22px; }
.recipe-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

/* Step indicator */
.steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}
.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}
.step .num {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  background: #fff;
}
.step.active { color: var(--ink); }
.step.active .num { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.step.done .num { background: var(--green); color: #fff; border-color: var(--green); }
.step-bar {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Mini badge */
.kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-soft);
}

/* Subtle hover lift */
.lift { transition: transform 200ms ease, box-shadow 200ms ease; }
.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* Responsive */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .mag-grid { grid-template-columns: 1fr; }
}

/* --- Engine base styles, set back to the prototype's (browser defaults + its own rules) --- */
.td-main { max-width: none; margin: 0; padding: 0; }
h1 { font-size: 2em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.17em; }
h1, h2, h3 { color: inherit; font-weight: 400; }
a:hover { color: inherit; }
.site-footer a:hover { color: var(--gold); }
p:last-child { margin-bottom: 0; }

/* --- Engine data in the prototype's markup (additions, no new look) --- */
/* Category filters are links (server-side filtering); they keep the prototype's label look. */
.filter-group a.pl-filter { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--ink); }
.filter-group a.pl-filter:hover { color: var(--accent); }
.pl-check { width: 16px; height: 16px; border: 1.5px solid var(--ink-soft); border-radius: 3px; background: #fff; flex-shrink: 0; }
.pl-check.on { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px #fff; }
.filter-group a.pl-filter .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
/* Product photos (or the theme placeholder) fill the prototype's image boxes. */
.product-card-img img, .pl-photo img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
@media (max-width: 980px) {
  .pl-shop-grid, .pl-product-grid { grid-template-columns: 1fr !important; }
  .pl-cat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
/* The engine's product popup sits above the sticky header (z-index 100) and the drawer. */
.td-scrim { z-index: 220; background: rgba(42, 31, 26, 0.5); }
.td-modal { background: var(--bg); border-radius: var(--radius-xl); }
/* About and contact (pages-flow.jsx): the prototype's inline grids, as classes for phones. */
.pl-story { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.pl-contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.pl-stats { display: grid; gap: 24px; }
.pl-contact-value { font-family: var(--font-display); font-size: 22px; overflow-wrap: anywhere; }
.pl-contact-value a { color: inherit; text-decoration: none; }
.pl-contact-value a:hover { color: var(--accent); }
.pl-map { position: relative; display: flex; align-items: flex-end; min-height: 460px; border-radius: 20px; overflow: hidden; color: var(--ink); text-decoration: none; }
.pl-map-card { position: relative; margin: 24px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
@media (max-width: 980px) {
  .pl-story, .pl-contact { grid-template-columns: 1fr; gap: 32px; }
  .pl-story h2, .pl-story h1 { position: static !important; }
  .pl-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .pl-map { min-height: 320px; }
}
/* Long German words ("Geschäftsbedingungen") must not widen the footer columns on phones. */
.footer-grid > * { min-width: 0; }
.footer-grid a { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 560px) {
  .pl-cat-index { grid-template-columns: 1fr !important; }
}
/* Product grids in content blocks: columns from the item count (gridColumns, DECISIONS 103). */
.prod-grid.pl-cols { grid-template-columns: repeat(var(--pl-cols, 4), 1fr); }
@media (max-width: 980px) {
  .prod-grid.pl-cols { grid-template-columns: repeat(2, 1fr); }
}
/* The map below the contact form (prototype: a wide 21/8 tile). */
.pl-map-wide { min-height: 0; aspect-ratio: 21 / 8; }
@media (max-width: 980px) { .pl-map-wide { aspect-ratio: auto; min-height: 320px; } }
/* The contact form card (prototype ContactPage); Cloudflare's 300 px widget fits on phones. */
.pl-form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.pl-contact > * { min-width: 0; }
@media (max-width: 560px) { .pl-form-card { padding: 20px; } }
/* A stand-in price from the import (DECISIONS 117): always marked, never shown as the real one. */
.pl-sample { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #FFF1D6; color: #8A5A00; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; }
/* Recipe page (prototype SingleRecipePage): the inline grids as classes for phones. */
.pl-recipe-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.pl-recipe-body { display: grid; grid-template-columns: 1fr 380px; gap: 56px; }
@media (max-width: 980px) {
  .pl-recipe-hero, .pl-recipe-body { grid-template-columns: 1fr; gap: 32px; }
  .pl-recipe-body aside > div { position: static !important; }
}

/* Account area (DECISIONS 129): the prototype's account frame around the engine's content. The
   engine's panels, lists, tables and forms take the prototype's cards, type and buttons. */
.pl-account-tab {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px;
}
.pl-account-tab:hover { background: var(--bg-alt); }
.pl-account-tab[aria-current="page"] { background: var(--ink); color: var(--bg); }
.pl-account-body .td-page { max-width: none; margin: 0; padding: 0; }
.pl-account-body .td-page > h1 { display: none; }
.pl-account-body { min-width: 0; }
.pl-account-body .td-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 20px; box-shadow: none;
  overflow-x: auto;
}
.pl-account-body .td-panel h2 { font-family: var(--font-display); font-size: 24px; color: var(--ink); margin-bottom: 16px; }
.pl-account-body .td-done { border-color: var(--green); }
.pl-account-body .td-done h2 { color: var(--green); }
.pl-account-body .td-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pl-account-body .td-table th {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted);
  text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); font-weight: 500; white-space: nowrap;
}
.pl-account-body .td-table td { padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pl-account-body .td-table tr:last-child td { border-bottom: none; }
.pl-account-body .td-mono { font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pl-account-body .td-num { text-align: right; white-space: nowrap; }
.pl-account-body .td-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
}
.pl-account-body .td-button.td-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.pl-account-body .td-button.td-ghost:hover { border-color: var(--ink); }
.pl-account-body .td-small-btn { padding: 6px 12px; font-size: 13px; }
.pl-account-body .td-field input, .pl-account-body .td-field select, .pl-account-body .td-field textarea {
  border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 14px; font-size: 15px;
}
.pl-account-body .td-list { list-style: none; padding: 0; margin: 0 0 16px; }
.pl-account-body .td-list > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.pl-account-body .td-list > li:last-child { border-bottom: none; }
.pl-account-body .td-muted { color: var(--ink-soft); }
.pl-account-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pl-account-body a.td-button { text-decoration: none; }
@media (max-width: 1100px) {
  .pl-account-grid { grid-template-columns: 180px minmax(0, 1fr) !important; gap: 24px !important; }
}
@media (max-width: 820px) {
  .pl-account-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .pl-account-grid > nav { display: flex; gap: 6px; overflow-x: auto; }
  .pl-account-tab { width: auto; white-space: nowrap; margin-bottom: 0; }
  .pl-account-body .td-table { display: block; overflow-x: auto; }
}
