/* =========================================================
   Wieport Product Content Hub • extracted from index.html
   Kept in sync with index.html by the build pipeline.
   ========================================================= */

:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --soft: #f1f2f4;
  --text: #17181b;
  --muted: #686c75;
  --line: #e1e3e8;
  --ink: #000;
  --primary: #c31830;
  --primary-dark: #79101e;
  --success: #14804a;
  --radius: 20px;
  --shadow: 0 14px 38px rgba(21, 24, 32, 0.08);
  --max: 1380px;

  /* Brand canonical names (inlined from downloads/design-tokens.css).
           Used by the icon-category dots and any future brand-aligned
           component. Local --primary / --primary-dark / --success stay
           untouched to avoid touching a wide blast radius. */
  --brand-primary: #c31830;
  --brand-primaryDark: #7d0e1d;
  --brand-ink: #172033;
  --feedback-success: #14804a;
  --feedback-warning: #b54708;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}
button,
input {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--max);
  margin: auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-weight: 850;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}
.brand i {
  color: var(--primary);
  font-style: normal;
}
.brand img {
  height: 35px;
  margin-top: 10px;
  margin-bottom: -5px;
}
.tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  margin-left: auto;
}
.tab {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.tab.active,
.tab:hover {
  background: #17181b;
  color: #fff;
}
/* --- mobile menu toggle (hidden on desktop) --- */
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text, #172033);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: #f1f3f7;
  outline: 2px solid var(--primary, #c31830);
  outline-offset: 2px;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.hero {
  background:
    radial-gradient(circle at 78% 20%, #070707 0, transparent 26%),
    linear-gradient(135deg, #1a1a1a, #090909 52%, #130204);
  color: #fff;
  padding: 90px 90px 72px;
}
.hero-inner {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: end;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
h1 {
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.97;
  letter-spacing: -0.02em;
  margin: 22px 0;
  max-width: 1050px;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 760px;
}
.hero-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #181818;
  border-radius: 24px;
  backdrop-filter: blur(12px);
}
.hero-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.shell {
  max-width: var(--max);
  margin: auto;
  padding: 34px 24px 90px;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin: 26px 0;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.045em;
  margin: 0;
  line-height: 4.5rem;
}
.section-head p {
  max-width: 620px;
  color: var(--muted);
  margin: 0;
}
.stat-grid,
.token-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat,
.token,
.download {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.stat strong {
  font-size: 2rem;
  display: block;
}
.stat span,
.token p,
.download p {
  color: var(--muted);
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.principle {
  background: #17181b;
  color: #fff;
  border-radius: 24px;
  padding: 26px;
  min-height: 180px;
}
.principle span {
  color: var(--muted);
  font-weight: 800;
}
.principle h3 {
  font-size: 1.35rem;
  margin: 40px 0 8px;
}
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.search {
  flex: 1;
  min-width: 260px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 15px;
}
.filter {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}
.filter.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.module-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.module-card.hidden {
  display: none;
}
.module-visual {
  aspect-ratio: 1/1;
  background: #eef0f3;
  overflow: hidden;
}
.module-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.module-content {
  padding: 20px;
}
.module-top {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.pill {
  background: #f7e8ea;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 9px;
  border-radius: 999px;
}
.question {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}
.module-content h3 {
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  margin: 15px 0 8px;
}
.module-content p {
  color: var(--muted);
}
dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 8px;
  font-size: 0.9rem;
}
dt {
  font-weight: 800;
}
dd {
  margin: 0;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}
summary {
  cursor: pointer;
  font-weight: 750;
}
.detail-copy {
  margin-top: 12px;
}
code {
  display: block;
  background: #17181b;
  color: #f7f7f7;
  padding: 14px;
  border-radius: 12px;
  white-space: normal;
  padding-bottom: 35px;
}
.copy,
.btn {
  border: 0;
  border-radius: 12px;
  background: #292f36;
  color: #fff;
  padding: 10px 13px;
  font-weight: 750;
  cursor: pointer;
  margin-top: 10px;
  position: absolute;
  bottom: 10px;
  right: 10px;
}
.btn-1 {
  border: 0;
  border-radius: 12px;
  background: #292f36;
  color: #fff;
  padding: 10px 13px;
  font-weight: 750;
  cursor: pointer;
  margin-top: 10px;
}
.copy.done {
  background: var(--success);
}
.copy-icon {
  width: 14px;
  height: 14px;
  display: block;
}
.design-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}
.design-block h3 {
  font-size: 1.7rem;
  margin-top: 0;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.swatch {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.color {
  height: 110px;
}
.swatch-info {
  padding: 12px;
  font-size: 0.85rem;
}

/* === Logo section =====================================================
   Mirrors the .swatches + .swatch tile pattern with a 3-column grid:
   each tile has a .logo-stage (visual) on top and a .logo-info (text +
   download link) below. .logo-stage--inverse uses a CSS filter so the
   black SVG reads as white on the Wieport red backdrop. */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.logo-tile {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.logo-stage {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
}
.logo-stage--color {
  background: #fff;
}
/* The stand-alone "rood op lichte ondergrond" tile was replaced by
   .logo-stage--ink (white-on-dark) so the older .logo-stage--black rule
   is no longer needed and was removed to keep CSS honest. */
.logo-stage--inverse {
  background: var(--surface);
}
.logo-stage--ink {
  background: var(--ink);
}
.logo-stage--ink > img {
  filter: brightness(0) invert(1);
}
.logo-stage-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.logo-stage-lockup__wordmark {
  height: 28px;
  filter: brightness(0) invert(1);
}
.logo-stage-lockup__beeldmerk {
  height: 38px;
}

/* The lockup combines a (filter-inverted) wordmark with the pre-coloured
   beeldmerk on the Wieport-red backdrop. The wordmark <img> is
   filter-inverted (black source on a transparent background reads as
   white). The beeldmerk <img> is NOT filtered; supply that file
   pre-coloured in white-on-red (white strokes/fills on a transparent
   background). */
.logo-stage img {
  max-width: 170px;
  max-height: auto;
  width: auto;
  height: auto;
}
.logo-info {
  padding: 12px;
  font-size: 0.85rem;
}
.logo-info strong {
  display: block;
}
.logo-info p {
  margin: 4px 0 8px;
}
.logo-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 6px;
  border-radius: 999px;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--line);
}
.logo-download:hover {
  background: rgba(195, 24, 48, 0.08);
}
.logo-download:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.logo-download svg {
  width: 14px;
  height: 14px;
  display: block;
}
.logo-rules {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.logo-rules strong {
  color: var(--ink);
  display: inline-block;
  margin-right: 6px;
}
.type-sample {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.type-display {
  font-size: 3.6rem;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
}
.type-heading {
  font-size: 2rem;
  letter-spacing: -0.04em;
  font-weight: 750;
}

.icon-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  background: #fff;
}
.icon-item img {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
}
.icon-item small {
  display: block;
  color: var(--muted);
}
.download a {
  display: inline-flex;
  margin-top: 12px;
  background: #17181b;
  color: #fff;
  padding: 10px 13px;
  border-radius: 11px;
  font-weight: 750;
}
.download a.external {
  background: #fff;
  color: #17181b;
  border: 1px solid var(--line);
}
.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  counter-increment: step;
}
.step:before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}
.step h3 {
  margin: 22px 0 8px;
}
.note {
  background: #eaf1ff;
  border-left: 5px solid #3760ff;
  padding: 18px;
  border-radius: 12px;
  margin: 22px 0;
}
footer {
  max-width: var(--max);
  margin: auto;
  padding: 0 24px 50px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
footer span {
  font-size: 0.85rem;
}
@media (max-width: 1000px) {
  .lightbox-shell {
    width: 95% !important;
  }
  .lightbox-caption {
    right: 15px !important;
    left: unset !important;
  }
  .lightbox-hint {
    display: none !important;
  }
  .lightbox-dots {
    padding: 16px 10px 16px !important;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-grid,
  .token-grid,
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles,
  .workflow {
    grid-template-columns: 1fr 1fr;
  }
  .section-head h2 {
    line-height: 2.5rem !important;
  }
  .shell {
    padding: 0px 24px 50px !important;
  }
  .search {
    min-width: 100% !important;
  }
  .principle h3 {
    margin: 12px 0 8px !important;
  }
  footer {
    padding: 0 24px 24px !important;
  }
}
@media (max-width: 650px) {
  /* --- hamburger menu --- */
  .topbar-inner {
    position: relative;
    flex-wrap: nowrap;
  }
  .menu-toggle {
    display: flex;
  }
  .tabs {
    position: absolute;
    top: calc(100% + 12px);
    left: 12px;
    right: 12px;
    width: auto;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    display: none;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 19, 30, 0.16);
    max-height: calc(100vh - 80px);
    overflow: auto;
    z-index: 60;
  }
  .tabs.open {
    display: flex;
    animation: menu-in 0.18s ease;
  }
  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .tab {
    width: 100%;
    text-align: left;
    border-radius: 12px;
    padding: 12px 14px;
  }

  /* --- hero responsive --- */
  .hero {
    padding: 56px 20px 48px;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .hero-card {
    padding: 20px;
  }

  .module-grid,
  .stat-grid,
  .token-grid,
  .download-grid,
  .principles,
  .workflow {
    grid-template-columns: 1fr;
  }
  .swatches {
    grid-template-columns: 1fr 1fr;
  }
  .logo-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }
  h1 {
    font-size: clamp(2.5rem, 11vw, 3.4rem);
    margin: 16px 0;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 44px 16px 40px;
  }
  .hero-card {
    padding: 16px;
  }
  .eyebrow {
    font-size: 0.7rem;
  }
  h1 {
    font-size: clamp(2.1rem, 12vw, 2.6rem);
  }
  .hero p {
    font-size: 1rem;
  }
}

.full-details {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 0;
}
.full-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 2px;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}
.full-details summary::-webkit-details-marker {
  display: none;
}
.full-details summary:after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  font-size: 1.1rem;
}
.full-details[open] summary:after {
  content: "−";
}
.full-details-content {
  padding: 14px 0 2px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 9px 14px;
  margin-bottom: 18px;
}
.detail-grid strong {
  color: var(--text);
}
.detail-grid span {
  color: var(--muted);
}
.guideline-list {
  margin: 8px 0 18px;
  padding-left: 20px;
}
.guideline-list li {
  margin: 7px 0;
  color: var(--muted);
}
.example-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.good-box,
.avoid-box {
  border-radius: 14px;
  padding: 14px;
}
.good-box {
  background: #edfdf3;
  border: 1px solid #abefc6;
}
.avoid-box {
  background: #fff1f0;
  border: 1px solid #fecdca;
}
.good-box strong {
  color: #14804a;
}
.avoid-box strong {
  color: #b42318;
}
.prompt-block {
  margin-top: 16px;
  position: relative;
}
.prompt-block code {
  margin-top: 8px;
}
@media (max-width: 650px) {
  .detail-grid,
  .example-pair {
    grid-template-columns: 1fr;
  }
}
/* ================================
         Floor Mat • product blueprint showcase
         ================================= */
.fm-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 12px;
}
.fm-pick {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  cursor: pointer;
}
.fm-pick:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(21, 24, 32, 0.14);
  border-color: #cfd5df;
}
.fm-pick-photo {
  aspect-ratio: 4/3;
  background: #eef0f3;
  overflow: hidden;
}
.fm-pick-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.fm-pick:hover .fm-pick-photo img {
  transform: scale(1.06);
}
.fm-pick-body {
  padding: 18px 20px 22px;
}
.fm-pick-pill {
  display: inline-block;
  background: #f7e8ea;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fm-pick-body h3 {
  font-size: 1.3rem;
  margin: 14px 0 6px;
  letter-spacing: -0.03em;
}
.fm-pick-body p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}
.fm-pick-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 14px;
}
.fm-pick-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.fm-pick:hover .fm-pick-link svg {
  transform: translateX(4px);
}

/* Product blueprint section */
.fm-product {
  margin: 60px 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.fm-product-head {
  margin-bottom: 22px;
}
.fm-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
}
.fm-product h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
  margin: 10px 0 8px;
}
.fm-product-lede {
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 12px;
}
.fm-product-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.fm-tag {
  background: #17181b;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
}
.fm-tag.warn {
  background: var(--primary);
  color: #fff;
}

/* Mock layouts */
.fm-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.fm-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.fm-mock-media {
  aspect-ratio: 1/1;
  background: #eef0f3;
  position: relative;
  overflow: hidden;
}
.fm-mock-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fm-mock-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(23, 24, 27, 0.86);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}
.fm-mock-body {
  padding: 16px 20px 20px;
}
.fm-mock-q {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.fm-mock-body h4 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.fm-mock-body p {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.fm-mock details {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
}
.fm-mock details summary {
  cursor: pointer;
  font-weight: 750;
  font-size: 0.85rem;
  color: var(--primary-dark);
  list-style: none;
}
.fm-mock details summary::-webkit-details-marker {
  display: none;
}
.fm-mock details summary:after {
  content: "+";
  margin-left: 8px;
  font-weight: 800;
}
.fm-mock details[open] summary:after {
  content: "−";
}
.fm-mock details .fm-detail {
  margin-top: 8px;
}
.fm-mock details dl {
  margin: 0 0 8px;
}
.fm-mock details dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.fm-mock details dd {
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.fm-mock details .fm-prompt-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #17181b;
  color: #f3f3f3;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
}
.fm-mock details .fm-prompt-row button {
  background: #fff;
  color: #17181b;
  border: 0;
  padding: 6px 9px;
  border-radius: 8px;
  font-weight: 750;
  font-size: 0.72rem;
  cursor: pointer;
}

/* Productie-export: iedere blueprint-tegel wordt op 1080 × 1080 opgebouwd. */
body.fm-export .topbar,
body.fm-export > .hero,
body.fm-export #floor-mats > .section-head,
body.fm-export .fm-picker,
body.fm-export .fm-product-head,
body.fm-export .fm-mock-body,
body.fm-export #floor-mats > .section-head ~ .fm-compare,
body.fm-export .fm-checklist,
body.fm-export #floor-mats > .note,
body.fm-export footer {
  display: none;
}
body.fm-export .shell {
  max-width: 648px;
  padding: 24px;
}
body.fm-export .panel {
  display: none;
}
body.fm-export #floor-mats {
  display: block;
}
body.fm-export .fm-product {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}
body.fm-export .fm-mock-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}
body.fm-export .fm-mock.fm-export-hidden,
body.fm-export .fm-product.fm-export-hidden {
  display: none;
}
body.fm-export .fm-mock {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.fm-export .fm-mock-media {
  width: 600px;
  height: 600px;
  aspect-ratio: auto;
}

/* Hero mock spotlight */
.fm-hero-spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 55%,
    rgba(255, 255, 255, 0.65) 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

/* USP overlay chips (Belangrijkste voordelen) */
.fm-usps {
  position: absolute;
  inset: auto 14px 14px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fm-usp {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 9px 11px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(21, 24, 32, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fm-usp::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

/* Specifications grid */
.fm-specs {
  position: absolute;
  inset: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: end;
}
.fm-spec {
  background: rgba(23, 24, 27, 0.92);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.3;
  backdrop-filter: blur(10px);
}
.fm-spec strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.fm-spec span {
  color: rgba(255, 255, 255, 0.65);
  display: block;
  margin-top: 2px;
}

/* Lifestyle caption */
.fm-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  color: #fff;
  padding: 28px 16px 14px;
  border-radius: 14px;
  font-weight: 750;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

/* Video mock */
.fm-time {
  position: absolute;
  right: 14px;
  top: 14px;
  background: rgba(23, 24, 27, 0.86);
  color: #fff;
  font-weight: 750;
  font-size: 0.74rem;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.fm-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.fm-play span {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  box-shadow: 0 14px 38px rgba(21, 24, 32, 0.28);
}
.fm-play svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

/* Compatibility badges */
.fm-badges {
  position: absolute;
  inset: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-content: center;
}
.fm-badge {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 10px 8px;
  font-weight: 850;
  font-size: 0.78rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(21, 24, 32, 0.12);
  color: var(--text);
}
.fm-badge span {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-top: 2px;
}

/* Install / scenarios */
.fm-grid-3 {
  position: absolute;
  inset: 14px;
  display: grid;
  gap: 9px;
}
.fm-grid-3.scen {
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
}
.fm-grid-3.install {
  grid-template-columns: repeat(3, 1fr);
}
.fm-tile {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.25;
  box-shadow: 0 6px 18px rgba(21, 24, 32, 0.12);
}
.fm-tile small {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fm-tile strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-top: 6px;
  display: block;
}
.fm-step {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 11px 12px;
  position: relative;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 6px 18px rgba(21, 24, 32, 0.12);
}
.fm-step-num {
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 0.72rem;
}

/* IP rating badge */
.fm-ip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(23, 24, 27, 0.95);
  color: #fff;
  font-weight: 850;
  padding: 18px 26px;
  border-radius: 999px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  backdrop-filter: blur(10px);
  text-align: center;
}
.fm-ip small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Compare table */
.fm-compare {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fm-compare-col {
  padding: 26px;
  border-right: 1px solid var(--line);
}
.fm-compare-col:last-child {
  border-right: 0;
  background: #f8f9fb;
}
.fm-compare-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.fm-compare-head h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 0;
}
.fm-compare-dim {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 850;
  color: var(--muted);
  margin: 18px 0 6px;
  display: block;
}
.fm-compare ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.fm-compare li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
}
.fm-compare li:first-child {
  border-top: 0;
}
.fm-compare li strong {
  font-weight: 800;
}
.fm-compare-pos {
  color: var(--success);
  font-weight: 850;
}
.fm-compare-neg {
  color: var(--muted);
  font-weight: 750;
}
.fm-compare-recommended {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  margin-left: 8px;
}

/* Production checklist */
.fm-checklist {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.fm-check-col {
  padding: 22px 22px 26px;
  border-right: 1px solid var(--line);
}
.fm-check-col:last-child {
  border-right: 0;
}
.fm-check-col h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.fm-check-list {
  display: grid;
  gap: 9px;
}
.fm-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--soft);
  border-radius: 12px;
  font-size: 0.88rem;
}
.fm-check strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}
.fm-check-tag {
  font-size: 0.62rem;
  font-weight: 850;
  padding: 3px 7px;
  border-radius: 999px;
  background: #edfdf3;
  color: #14804a;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fm-check-tag.warn {
  background: #fff1f0;
  color: #b42318;
}

/* Anchor offset (so sticky topbar doesn't cover headings) */
.fm-product {
  scroll-margin-top: 86px;
}

@media (max-width: 1100px) {
  .fm-picker {
    grid-template-columns: repeat(2, 1fr);
  }
  .fm-mock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fm-compare {
    grid-template-columns: 1fr 1fr;
  }
  .fm-compare-col:nth-child(2) {
    border-right: 0;
  }
  .fm-compare-col:nth-child(1),
  .fm-compare-col:nth-child(3) {
    border-right: 1px solid var(--line);
  }
  .fm-compare-col:nth-child(3) {
    border-right: 0;
  }
  .fm-checklist {
    grid-template-columns: 1fr 1fr;
  }
  .fm-check-col:nth-child(2) {
    border-right: 0;
  }
}
@media (max-width: 650px) {
  .fm-picker,
  .fm-mock-grid {
    grid-template-columns: 1fr;
  }
  .fm-compare,
  .fm-checklist {
    grid-template-columns: 1fr;
  }
  .fm-compare-col,
  .fm-check-col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .fm-compare-col:last-child,
  .fm-check-col:last-child {
    border-bottom: 0;
  }
}
/* ============================================
         Iconen library • categorised + click-to-copy
         ============================================ */
.icon-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.icon-chip:hover {
  border-color: #cfd5df;
  color: var(--text);
}
.icon-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
/* === icon-categories shell (horizontal layout) ============================
   Six `.icon-category` sections stack vertically by default. Wrap them in a
   responsive grid so they flow side-by-side: 3 columns on desktop (~1380px
   shell), 2 on tablets, 1 on mobile. `align-items: start` keeps each
   column's height equal to its own content (algemeen has 19 tiles, auto has
   9 — without this, algemeen would stretch the others vertically).
   Each column keeps its internal `.icon-grid` (auto-fit minmax(96px, 132px))
   so tile wrapping inside a column continues to work as before.
   ======================================================================== */
#iconGridHost {
  display: flex;
  gap: 32px;
  align-items: start;
  flex-direction: column;
  overflow-x: auto;
}
.icon-category {
  margin-top: 0;
}
@media (max-width: 700px) {
  /* On phones and narrow tablets, drop the 320px column min so the
     grid collapses to a single column instead of overflowing the
     viewport horizontally. */
  #iconGridHost {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.icon-category header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.icon-cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(195, 24, 48, 0.08);
}
.icon-cat-count {
  margin-left: auto;
  background: var(--soft);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 999px;
  min-width: 30px;
  text-align: center;
}
.icon-cat-count:empty {
  visibility: hidden;
}
.icon-category[data-category="auto"] .icon-cat-dot {
  background: var(--brand-primary);
}
.icon-category[data-category="fiets"] .icon-cat-dot {
  background: var(--feedback-success);
}
.icon-category[data-category="printer"] .icon-cat-dot {
  background: #2563eb;
}
.icon-category[data-category="camera"] .icon-cat-dot {
  background: var(--feedback-warning);
}
.icon-category[data-category="protector"] .icon-cat-dot {
  background: var(--brand-primaryDark);
}
.icon-category[data-category="algemeen"] .icon-cat-dot {
  background: var(--brand-ink);
  box-shadow: 0 0 0 4px rgba(23, 24, 27, 0.08);
}
.icon-category h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.icon-item {
  appearance: none;
  font: inherit;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 6px 12px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  position: relative;
}
.icon-item img {
  width: 26px;
  height: 26px;
  margin: 0 auto 6px;
  display: block;
}
.icon-item small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.icon-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(21, 24, 32, 0.1);
}
.icon-item:hover small {
  color: var(--primary-dark);
}
.icon-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.icon-item.is-hidden {
  display: none;
}
.icon-item.copied {
  border-color: var(--success);
  background: #edfdf3;
  box-shadow: 0 12px 28px rgba(20, 128, 74, 0.16);
}
.icon-item.copied small {
  color: var(--success);
}
.icon-category.is-empty {
  display: none;
}
/* Hero visibility: only on Overzicht, restored via main.shell padding */
.hero {
  display: none;
}
body.has-hero .hero {
  display: block;
}

/* === icon-custom marker ================================================
   On the Design systems tab, every Wieport-only icon (i.e. an icon that
   has NO equivalent in the Lucide library) gets the `icon-custom` class
   via app.js. The user looks for these tiles to find unique Wieport-only
   artwork that must be hand-drawn, not swapped to a canonical Lucide SVG.
   ====================================================================== */
.icon-item[data-icon-src] {
  position: relative;
}
.icon-item.icon-custom {
  background: #dbeafe !important; /* light blue */
  border-color: #93c5fd !important;
  box-shadow: inset 0 0 0 1px #93c5fd;
}
.icon-item.icon-custom::after {
  content: "Custom";
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #bfdbfe;
  color: #1e3a8a;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}
.icon-item:not(.icon-custom)::after {
  content: "Lucide";
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #f3f4f6;
  color: #4b5563;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 1;
}

/* === icon-clip ========================================================
   Renders one cell of the Wieport monoline sprite (40 cells across 8
   rows × 5 columns on a 1254×1254 PNG). Each tile sets data-row,
   data-col and inline --col/--row so background-position shifts the
   full sprite so only the matching cell is visible. */
.icon-clip {
  display: block;
  width: 28px;
  height: 28px;
  background: url("../icons/wieport-monoline-icons.png") no-repeat;
  background-size: 500% 800%;
  background-position: calc(var(--col, 0) * -20%) calc(var(--row, 0) * -12.5%);
}

/* === Iconen picker (new modular shell) =====================================
   Styles added when the Iconen design-block was replaced by a data-driven
   renderer (manifest in assets/scripts/icon-manifest.js).  Class list:
     .icon-pills    — chip filter row (Alle, Auto, Fiets, …)
     .icon-chip     — single chip button
     .icon-toolbar  — wraps search input + counter
     .icon-counter  — text "N / M iconen"
     .icon-empty    — "Geen iconen gevonden" message
     .is-hidden     — per-button hide flag (set by picker IIFE)
     .copied        — transient status on click-to-copy
   ========================================================================== */
.icon-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px 0;
}
.icon-chip {
  appearance: none;
  border: 1px solid var(--border, #dfe6ef);
  background: #ffffff;
  color: inherit;
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.icon-chip:hover {
  border-color: var(--primary, #c31830);
  color: var(--primary, #c31830);
}
.icon-chip.active {
  background: var(--primary, #c31830);
  border-color: var(--primary, #c31830);
  color: #ffffff;
}
.icon-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px 0;
}
.icon-toolbar input[type="search"] {
  flex: 1;
  appearance: none;
  border: 1px solid var(--border, #dfe6ef);
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  color: inherit;
}
.icon-toolbar input[type="search"]:focus {
  outline: none;
  border-color: var(--primary, #c31830);
  box-shadow: 0 0 0 3px rgba(195, 24, 48, 0.12);
}
.icon-counter {
  font-size: 0.85rem;
  color: var(--ink-soft, #5a6273);
  white-space: nowrap;
}
.icon-empty {
  margin: 24px 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-soft, #5a6273);
}
.icon-grid .is-hidden {
  display: none;
}
.icon-grid .icon-item.copied {
  border-color: var(--feedback-success, #14804a);
  box-shadow: 0 0 0 1px var(--feedback-success, #14804a);
}

/* === icon-grid layout (canonical rule lives here) ===========================
   Replaces the earlier `.icon-grid { repeat(8, 1fr) }` block which produced
   eight stretched-across-the-shell columns on wide viewports. `auto-fit
   minmax(96px, 132px)` gives a calmer 6–8 tiles per row, capped per-track
   so items stop pulling into a single line. `min-height: 108px` keeps every
   tile the same height so the row reads cleanly.
   =========================================================================== */
.icon-grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.icon-item {
  min-height: 120px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.icon-item img,
.icon-item svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.icon-item small {
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 1000px) {
  .icon-grid {
    grid-template-columns: repeat(auto-fit, minmax(96px, 132px));
  }
}
@media (max-width: 650px) {
  /* On phones we collapse to 3 columns of fixed width so the user
     doesn't get a single 96px column. */
  .icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .icon-item {
    min-height: 92px;
  }
}
/* ============================================================
   Producten tab + lightbox slideshow dialog
   ============================================================ */

/* --- card grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 24px;
}
.product-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #dfe6ef);
  border-radius: 20px;
  overflow: hidden;
  display: block;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(23, 32, 51, 0.1);

  outline: none;
}
.product-card:active {
  transform: translateY(0);
}
.product-card-media {
  position: relative;
  background: #f0f2f6;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-card-media img,
.product-card:focus-visible .product-card-media img {
  transform: scale(1.04);
}
/* zoeken/filteren op de Producten-tab */
.product-count {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--muted, #686c75);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.product-empty {
  margin: 4px 0 0;
  padding: 22px 20px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--muted, #686c75);
  font-size: 14.5px;
  text-align: center;
}
.product-empty[hidden] {
  display: none;
}
.product-card.hidden {
  display: none;
}

/* vast productnummer, linksboven op de kaart */
.product-card-num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.product-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 64px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  background: linear-gradient(
    to top,
    rgba(15, 19, 30, 0.82),
    rgba(15, 19, 30, 0)
  );
}
.product-card-name {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.product-card-ean {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.product-card-open {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--ink, #172033);
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.16);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}
.product-card-open svg {
  width: 17px;
  height: 17px;
  margin-left: 2px;
}
.product-card:hover .product-card-open,
.product-card:focus-visible .product-card-open {
  background: #fff;
  color: var(--primary, #c31830);
  transform: scale(1.04);
}

.product-card-link {
  position: absolute;
  top: 14px;
  right: 65px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--ink, #172033);
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.16);
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}
.product-card-link svg {
  width: 28px;
  height: 28px;
}
.product-card-link:hover,
.product-card-link:focus-visible {
  background: #fff;
  color: var(--primary, #c31830);
  transform: scale(1.04);
  /* outline: 2px solid var(--primary, #c31830);
  outline-offset: 2px; */
}
.product-card-link[hidden] {
  display: none;
}

.product-card-download {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--ink, #172033);
  box-shadow: 0 4px 14px rgba(23, 32, 51, 0.16);
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}
.product-card-download svg {
  width: 17px;
  height: 17px;
}
.product-card-download:hover,
.product-card-download:focus-visible {
  background: #fff;
  color: var(--primary, #c31830);
  transform: scale(1.04);
  outline: none;
}
.product-card-download.busy {
  opacity: 0.55;
  pointer-events: none;
}

.icon-image {
  width: 28px !important;
  height: 28px !important;
}

/* --- lightbox dialog --- */
dialog#lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  max-width: min(1080px, 96vw);
  max-height: 96vh;
  width: 100%;
  margin: auto;
}
dialog#lightbox::backdrop {
  background: rgba(15, 19, 30, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
dialog#lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-shell {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 96vh;
  width: 65%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #eef0f4;
}
.lightbox-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}
.lightbox-product {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink, #172033);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-counter {
  font-size: 12px;
  color: var(--muted, #686c75);
  font-variant-numeric: tabular-nums;
}
.lightbox-close {
  border: 1px solid #dfe6ef;
  background: #fff;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink, #172033);
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  border-color: var(--primary, #c31830);
  color: var(--primary, #c31830);
  outline: none;
}
.lightbox-close svg {
  width: 18px;
  height: 18px;
}
.lightbox-figure {
  margin: 0;
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-caption {
  position: absolute;
  left: 80px;
  bottom: 14px;
  background: rgba(45, 61, 94, 0.85);
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #dfe6ef;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink, #172033);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: var(--primary, #c31830);
  color: var(--primary, #c31830);
  outline: none;
}
.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.lightbox-prev {
  left: 12px;
}
.lightbox-next {
  right: 12px;
}
.lightbox-nav svg {
  width: 20px;
  height: 20px;
}
.lightbox-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 14px 12px 6px;
}
.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4dae3;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.lightbox-dot:hover,
.lightbox-dot:focus-visible {
  outline: none;
  background: #aab2c0;
}
.lightbox-dot[aria-current="true"] {
  background: var(--primary, #c31830);
  transform: scale(1.4);
}
.lightbox-hint {
  margin: 0;
  padding: 4px 16px 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted, #686c75);
}
.lightbox-hint kbd {
  font-family: inherit;
  font-size: 11px;
  background: #f1f3f7;
  border: 1px solid #dfe6ef;
  border-radius: 4px;
  padding: 1px 6px;
}

/* --- responsive --- */
@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-nav {
    width: 38px;
    height: 38px;
  }
  .lightbox-prev {
    left: 6px;
  }
  .lightbox-next {
    right: 6px;
  }
  .lightbox-image {
    max-height: 60vh;
  }
}
