/* Base: reset, page, type and the few shared building blocks (container, buttons, section heads, placeholders) */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* hidden always wins, also over components that set their own display */
[hidden] { display: none !important; }

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

a { color: var(--ink); }
a:hover { color: var(--cta); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

h1, h2, h3 { margin: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Text only brickzone can give (terms, legal wording), shown as [klammer] like the design until it's written; see App\View\Site\Dummy */
.placeholder {
  align-self: flex-start;
  padding: 0 6px;
  border: 1px dashed var(--placeholder-line);
  border-radius: var(--r-xs);
  color: var(--ink-3);
}

/* Text that differs between wide screens and phones */
.only-narrow { display: none; }

@media (max-width: 767px) {
  .only-wide { display: none; }
  .only-narrow { display: inline; }
}

/* Page width */
.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Section heading row: title (+ intro) on the left, a "see all" link on the right */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-head__text { display: flex; flex-direction: column; gap: 4px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: 34px;
  line-height: 1.15;
}

.section-intro { margin: 0; font-size: 15px; color: var(--ink-3); }

.section-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--cta);
  text-decoration: none;
}

@media (max-width: 767px) {
  .section-title { font-size: 26px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { color: #fff; filter: brightness(0.95); }

.btn--icon {
  width: var(--tap);
  padding: 0;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.btn--outline { min-height: 48px; padding: 0 24px; background: var(--surface); border: 1px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

/* Pressed toggles (wishlist heart, collection brick) turn red */
.btn--icon[aria-pressed="true"] { color: var(--cta); }
.btn--icon[aria-pressed="true"] svg { fill: currentColor; }

/* Pills used as tabs and quick filters */
.pill {
  flex-shrink: 0;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.pill[aria-selected="true"],
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.pill-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pill-row::-webkit-scrollbar { display: none; }

/*
 * Values the backend doesn't serve yet are rendered with data-dummy="…".
 * In dev they get a dashed outline so they're easy to spot; see App\View\Site\Dummy.
 */
body.show-dummies [data-dummy] { outline: 2px dashed #b14ad8; outline-offset: 2px; }
