/* Deur- en Raambeslag — design system
   Palette afgeleid van logo: antraciet + oranje greep */

:root {
  --ink: #1c1c1c;
  --ink-muted: #5c5c5c;
  --accent: #e85d18;
  --accent-hover: #c94c10;
  --paper: #ffffff;
  --surface: #f1f3f5;
  --surface-deep: #e4e8ec;
  --line: #d0d5db;
  --success: #1f6b4a;
  --shadow-soft: 0 12px 40px rgba(28, 28, 28, 0.08);

  --font-display: "Barlow", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 2px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
.h-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ——— Utility ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Anchor buttons must beat generic link styles (e.g. .prose a, footer links) */
a.btn,
a.btn:visited,
a.btn:hover,
a.btn:active,
a.btn:focus {
  text-decoration: none;
}
a.btn-primary,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus,
a.btn-dark,
a.btn-dark:visited,
a.btn-dark:hover,
a.btn-dark:active,
a.btn-dark:focus {
  color: #fff;
}
a.btn-ghost,
a.btn-ghost:visited,
a.btn-ghost:hover,
a.btn-ghost:active,
a.btn-ghost:focus {
  color: var(--ink);
}
a.btn-secondary,
a.btn-secondary:visited,
a.btn-secondary:hover,
a.btn-secondary:active,
a.btn-secondary:focus {
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ——— Top bar ——— */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 36px;
  padding-block: 0.35rem;
}

.topbar a:hover {
  color: #fff;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
}

@media (max-width: 720px) {
  .topbar-links {
    display: none;
  }
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}

.nav a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 220px;
  padding: 0.55rem 0.85rem;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.search:focus-within {
  background: var(--paper);
  border-color: var(--ink);
}

.search input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  color: var(--ink);
}

.search svg,
.icon-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}

.cart-count {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.menu-toggle {
  display: none;
}

/* Mobile nav drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 95;
  width: min(20rem, 88vw);
  height: 100%;
  background: var(--paper, #fff);
  color: var(--ink, #1c1c1c);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  animation: mobile-nav-in 0.22s ease;
}
@keyframes mobile-nav-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.mobile-nav-head strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.mobile-nav-links {
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  overflow: auto;
  flex: 1;
}
.mobile-nav-links a {
  display: block;
  padding: 0.85rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: inherit;
  text-decoration: none;
}
.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible {
  background: var(--surface, #f1f3f5);
  outline: none;
}
.mobile-nav-links a[aria-current="page"] {
  background: var(--surface, #f1f3f5);
  box-shadow: inset 3px 0 0 var(--accent, #e85d18);
}
.mobile-nav-foot {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--line, #e5e7eb);
}
body.nav-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .search {
    display: none;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .logo img {
    height: 44px;
  }
}

@media (min-width: 961px) {
  .mobile-nav,
  .mobile-nav-backdrop {
    display: none !important;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: hero-zoom 18s var(--ease) forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.78) 0%, rgba(12, 12, 12, 0.42) 48%, rgba(12, 12, 12, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 12, 12, 0.55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5rem);
  max-width: 36rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-brand {
  margin-bottom: 1.25rem;
  display: inline-flex;
}

.hero-brand img {
  height: clamp(96px, 14vw, 140px);
  width: auto;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.85rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.125rem;
  max-width: 30rem;
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Trust strip ——— */
.trust {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.trust-list .mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .trust-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .trust-list {
    grid-template-columns: 1fr;
  }
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-head p {
  margin: 0;
  max-width: 34rem;
}

.section-link {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.section-link:hover {
  color: var(--accent);
}

.section-muted {
  background: var(--surface);
}

/* ——— Categories ——— */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 10, 0.78) 100%);
  z-index: 1;
}

.cat:hover img {
  transform: scale(1.06);
}

.cat-label {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
}

.cat-label span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.cat-label small {
  opacity: 0.8;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat {
    min-height: 220px;
  }
}

/* ——— Product grid ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: rise 0.7s var(--ease) both;
}

.product:nth-child(2) {
  animation-delay: 0.05s;
}
.product:nth-child(3) {
  animation-delay: 0.1s;
}
.product:nth-child(4) {
  animation-delay: 0.15s;
}
.product:nth-child(5) {
  animation-delay: 0.2s;
}
.product:nth-child(6) {
  animation-delay: 0.25s;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  background: var(--surface);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.product:hover .product-media img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.55rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-brand {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}

.product-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.product-price small {
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 0.25rem;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— Split / USP ——— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: 480px;
  background: var(--ink);
  color: #fff;
}

.split-media {
  min-height: 320px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}

.split-copy h2 {
  color: #fff;
}

.split-copy p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
}

.split-points {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.split-points li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.75rem;
  align-items: start;
  color: rgba(255, 255, 255, 0.88);
}

.split-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ——— Brands ——— */
.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  opacity: 0.72;
}

.brand-pill {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand img {
  height: clamp(88px, 12vw, 112px);
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 22rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ——— PLP ——— */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

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

.plp-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.filters {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.filter-group h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  cursor: pointer;
}

.filter-group input {
  accent-color: var(--accent);
}

.plp-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.plp-toolbar select {
  min-height: 42px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

@media (max-width: 860px) {
  .plp-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .filters {
    grid-template-columns: 1fr;
  }
}

/* ——— PDP ——— */
.pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
}

.pdp-gallery {
  display: grid;
  gap: 0.75rem;
}

.pdp-main {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  overflow: hidden;
}

.pdp-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.pdp-thumbs button {
  border: 1px solid var(--line);
  padding: 0;
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
}

.pdp-thumbs button[aria-current="true"] {
  border-color: var(--ink);
}

.pdp-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-info .product-brand {
  margin-bottom: 0.35rem;
}

.pdp-price {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  margin: 1rem 0;
}

.pdp-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.pdp-specs {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pdp-specs div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.pdp-specs dt {
  color: var(--ink-muted);
}

.option-row {
  margin-bottom: 1.25rem;
}

.option-row span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.swatches {
  display: flex;
  gap: 0.5rem;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid var(--line);
  cursor: pointer;
}

.swatch[aria-checked="true"] {
  outline-color: var(--ink);
  outline-offset: 2px;
}

.qty-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.qty {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.qty button {
  width: 36px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.qty input {
  width: 48px;
  border: 0;
  text-align: center;
  outline: none;
}

.pdp-assurances {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

@media (max-width: 860px) {
  .pdp {
    grid-template-columns: 1fr;
  }
}

/* ——— Platform advice page ——— */
.advice {
  max-width: 780px;
}

.advice h1 {
  margin-bottom: 0.75rem;
}

.verdict {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.4rem;
  background: color-mix(in srgb, var(--accent) 10%, white);
  border-left: 4px solid var(--accent);
}

.verdict strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare th {
  font-family: var(--font-display);
  font-weight: 700;
  background: var(--surface);
}

.compare td:nth-child(2) {
  color: var(--success);
  font-weight: 600;
}

.palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}

.swatch-block {
  min-height: 96px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

.swatch-block.light {
  color: var(--ink);
  border: 1px solid var(--line);
}

@media (max-width: 640px) {
  .palette {
    grid-template-columns: 1fr 1fr;
  }
}



/* ——— Dense shop upgrades ——— */
.header-cta {
  display: none;
}
@media (min-width: 1100px) {
  .header-cta {
    display: inline-flex;
    min-height: 42px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }
}

.quick-cats {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.quick-cats::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip:hover, .chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.chip em {
  font-style: normal;
  opacity: 0.65;
  font-weight: 500;
}

.promo-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}
.promo {
  position: relative;
  min-height: 180px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.promo > * { position: relative; z-index: 1; }
.promo h3 {
  color: #fff;
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}
.promo p {
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}
.promo .btn { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.88rem; align-self: start; }
@media (max-width: 860px) {
  .promo-strip { grid-template-columns: 1fr; }
}

.product-grid {
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.85rem !important; }
}

.product {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.65rem 0.65rem 0.85rem;
  gap: 0.65rem !important;
}
.product-media {
  aspect-ratio: 1 / 1 !important;
  margin: -0.65rem -0.65rem 0;
}
.product-meta { padding: 0 0.15rem; }
.product-title { font-size: 0.95rem !important; min-height: 2.5em; }
.product-price { font-size: 1rem !important; }
.product-price .was {
  margin-left: 0.35rem;
  color: var(--ink-muted);
  font-weight: 500;
  text-decoration: line-through;
  font-size: 0.88rem;
}
.product-foot {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0 0.15rem;
}
.stock {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}
.stock.low { color: #a15c00; }
.rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.rating strong { color: var(--ink); letter-spacing: 0.02em; }
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.4rem;
}
.product-actions .btn {
  min-height: 40px;
  padding: 0.45rem 0.4rem;
  font-size: 0.78rem;
}
@media (max-width: 520px) {
  .product-actions { grid-template-columns: 1fr; }
  .product-title { font-size: 0.88rem !important; min-height: 0; }
}

.usp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.usp {
  padding: 1.25rem 1.1rem;
  background: var(--paper);
  border-top: 3px solid var(--accent);
}
.usp h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.usp p { margin: 0; font-size: 0.92rem; }
@media (max-width: 860px) {
  .usp-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .usp-row { grid-template-columns: 1fr; }
}

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 0;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 0.35rem; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }

.sticky-cta {
  display: none;
}
@media (max-width: 860px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0.5rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
  }
  body { padding-bottom: 78px; }
}

.plp-count { font-weight: 600; color: var(--ink); }
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 1.25rem;
}
.filter-chips .chip { padding: 0.4rem 0.75rem; font-size: 0.82rem; }

.buybox-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.1rem;
  margin: 1rem 0 1.25rem;
}
.buybox-panel .stock { margin-bottom: 0.75rem; }
.delivery-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.related-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 2.5rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.subnav-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.subnav-cats a {
  display: block;
  padding: 0.85rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
}
.subnav-cats a small {
  display: block;
  margin-top: 0.2rem;
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.8rem;
}
.subnav-cats a:hover { border-color: var(--ink); }
@media (max-width: 720px) {
  .subnav-cats { grid-template-columns: 1fr 1fr; }
}

.rating { display:flex; align-items:center; gap:0.35rem; font-size:0.8rem; color:var(--ink-muted); margin:0.15rem 0; }
.rating strong { color:#d4a017; letter-spacing:0.02em; font-weight:600; }
.stock { font-size:0.8rem; font-weight:600; color:var(--success); }
.stock.low { color:#a15c00; }
.product-price .was { margin-left:0.35rem; color:var(--ink-muted); font-weight:500; text-decoration:line-through; font-size:0.88rem; }
.header-cta { display:none; }
@media (min-width: 1100px) {
  .header-cta { display:inline-flex; min-height:42px; padding:0.55rem 1rem; font-size:0.88rem; }
}
.product-title a:hover { color: var(--accent); }
.chip.is-active, .chip.active { border-color:var(--ink); background:var(--ink); color:#fff; }
.plp-count { font-weight:600; }
.buy-panel {
  border:1px solid var(--line);
  background:var(--surface);
  padding:1.15rem;
  margin:1rem 0 1.25rem;
}
.buy-panel .btn { width:100%; }
.buy-row { display:grid; grid-template-columns:110px 1fr; gap:0.6rem; margin-bottom:0.75rem; }
.qty {
  display:flex; border:1px solid var(--line); background:#fff;
}
.qty button { width:40px; border:0; background:transparent; cursor:pointer; font-size:1.1rem; }
.qty input { width:100%; border:0; text-align:center; outline:none; }
.ship-note { font-size:0.9rem; color:var(--ink-muted); margin:0.75rem 0 0; }
.pdp-extras {
  display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; margin-top:1rem;
}
.pdp-extras div {
  border:1px solid var(--line); padding:0.85rem; font-size:0.9rem;
}
.pdp-extras strong { display:block; font-family:var(--font-display); margin-bottom:0.2rem; }
@media (max-width:640px){ .pdp-extras{grid-template-columns:1fr;} .buy-row{grid-template-columns:1fr;} }
.specs-table { width:100%; border-collapse:collapse; margin:1rem 0 1.5rem; font-size:0.95rem; }
.specs-table th, .specs-table td { text-align:left; padding:0.7rem 0.4rem; border-bottom:1px solid var(--line); }
.specs-table th { color:var(--ink-muted); font-weight:500; width:40%; }
.product-foot { display:flex; flex-direction:column; gap:0.45rem; margin-top:auto; }
.product-actions { display:grid; grid-template-columns:1fr 1.25fr; gap:0.4rem; }
.product-actions .btn { min-height:40px; padding:0.45rem 0.5rem; font-size:0.78rem; }
@media (max-width:520px){ .product-actions{grid-template-columns:1fr;} }
.product-media { display:block; }
.product-title a { color:inherit; }

/* ——— Restored shared components ——— */
.header-cta { display: none; }
@media (min-width: 1100px) {
  .header-cta {
    display: inline-flex;
    min-height: 42px;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }
}

.stock {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  margin: 0;
}
.stock.low { color: #a15c00; }

.cta-band {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 0;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 0.35rem; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0; }

.sticky-cta {
  display: none;
}
@media (max-width: 860px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 0.5rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(0,0,0,0.08);
  }
  body { padding-bottom: 78px; }
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
.specs-table th,
.specs-table td {
  text-align: left;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.specs-table th {
  color: var(--ink-muted);
  font-weight: 500;
  width: 40%;
}

/* ——— Shared page chrome ——— */
.page-lead {
  max-width: 40rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}
.page-hero h1 {
  margin-bottom: 0.6rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.btn-block + .btn-block {
  margin-top: 0.5rem;
}
.text-btn {
  margin-top: 0.55rem;
  border: 0;
  background: none;
  color: var(--ink-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
}
.text-btn:hover { color: var(--ink); }
.section-head.compact { margin-bottom: 1rem; }
.section-head.compact h2 { font-size: 1.25rem; margin: 0; }

/* ——— Cart ——— */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 1.75rem;
  align-items: start;
}
.cart-main { display: grid; gap: 1rem; }
.cart-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.cart-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-info h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0.1rem 0 0.35rem;
  line-height: 1.25;
}
.cart-info h2 a:hover { color: var(--accent); }
.cart-meta {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.cart-side {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
  align-content: start;
}
.cart-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}
.cart-summary {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.25rem;
}
.cart-summary h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
}
.summary-list { margin: 0 0 1rem; }
.summary-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.summary-list dt { color: var(--ink-muted); }
.summary-list .free { color: var(--success); font-weight: 600; }
.summary-list .total {
  border-bottom: 0;
  padding-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.summary-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}
.coupon {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-display);
}
.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
}
.coupon input {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  background: #fff;
  font: inherit;
  font-family: var(--font-body);
  font-weight: 400;
}
.summary-trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.summary-trust li {
  padding-left: 1.1rem;
  position: relative;
}
.summary-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.cart-upsell {
  margin-top: 0.5rem;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  background: var(--surface);
}
.upsell-grid { display: grid; gap: 0.75rem; }
.upsell-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.6rem;
}
.upsell-item img {
  width: 52px;
  height: 64px;
  object-fit: cover;
}
.upsell-item h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
}
.upsell-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.sticky-cta-cart {
  grid-template-columns: 1fr 1.2fr;
}
.sticky-total {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sticky-total small {
  color: var(--ink-muted);
  font-size: 0.75rem;
}
.sticky-total strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-side {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: stretch;
    align-items: center;
  }
}

/* ——— Content pages ——— */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
  gap: 2rem;
  align-items: start;
}
.content-body { max-width: 46rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}
.prose p { color: var(--ink-muted); }
.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--ink-muted);
}
.prose li { margin-bottom: 0.4rem; }
.prose a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}
.info-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}
.info-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.contact-form {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 35%, white);
  border-color: var(--ink);
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 3rem;
  border: 1px solid var(--line);
  margin-bottom: 0.55rem;
  background: var(--paper);
  color: var(--ink-muted);
}
.steps li strong { color: var(--ink); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.9rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}
.faq {
  border: 1px solid var(--line);
  margin-bottom: 0.5rem;
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.faq p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--ink-muted);
}
.content-aside {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.15rem;
}
.content-aside h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
.content-aside p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.aside-links {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.aside-links a { text-decoration: underline; }
.aside-cta {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.aside-cta strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-aside { position: static; }
  .info-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ——— Brands page ——— */
.brand-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.brand-feature {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.brand-feature:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.brand-mark.sm {
  width: 52px;
  height: 52px;
  font-size: 1.25rem;
}
.brand-feature-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.15rem 0 0.35rem;
}
.brand-feature-body p {
  margin: 0 0 0.35rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.brand-cats {
  font-size: 0.88rem !important;
}
.text-link {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.brand-feature:hover .text-link { color: var(--accent); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.brand-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: border-color 0.2s var(--ease);
}
.brand-card:hover { border-color: var(--ink); }
.brand-card-body {
  display: grid;
  gap: 0.15rem;
}
.brand-card-body strong {
  font-family: var(--font-display);
  font-size: 1rem;
}
.brand-card-body small {
  color: var(--ink-muted);
  font-size: 0.85rem;
}
.brand-card-body em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}
.letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
}
.letter:hover,
.letter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.brand-index {
  display: grid;
  gap: 1.5rem;
}
.brand-letter h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.brand-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.brand-index-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.brand-index-list a:hover { border-color: var(--ink); }
.brand-index-list strong {
  font-family: var(--font-display);
}
.brand-index-list span {
  color: var(--ink-muted);
  font-size: 0.88rem;
  text-align: right;
}

@media (max-width: 960px) {
  .brand-feature-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .brand-grid { grid-template-columns: 1fr; }
  .brand-feature { grid-template-columns: 64px 1fr; }
  .brand-mark { width: 52px; height: 64px; font-size: 1.5rem; }
  .brand-index-list { grid-template-columns: 1fr; }
}

/* ——— Configurator ——— */
.config-section { padding-top: 0; }
.config-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 2rem;
  align-items: start;
}
.config-controls {
  display: grid;
  gap: 1.25rem;
}
.config-step {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.15rem 1.2rem 1.25rem;
}
.config-step-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
}
.config-step-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.15rem;
}
.config-step-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.step-num {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  outline: 1px solid var(--line);
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
  flex: 0 0 36px;
  box-sizing: border-box;
}
.swatch.is-active {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.swatch-light {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.option-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.option-cards-3 { grid-template-columns: repeat(3, 1fr); }
.option-card {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  font: inherit;
}
.option-card strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.15rem;
}
.option-card span {
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.option-card.is-active {
  border-color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.config-summary {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.2rem;
}
.config-summary h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.85rem;
}
.config-summary-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.config-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.config-summary-list span { color: var(--ink-muted); }
.config-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
}
.config-price-row strong { font-size: 1.45rem; }
.config-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}
.config-actions { margin: 0; }
.config-actions .btn { flex: 1; justify-content: center; }
.config-feedback {
  margin: 0.75rem 0 0;
  color: var(--success);
  font-weight: 600;
  font-size: 0.92rem;
}

.config-preview-pane {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  display: grid;
  gap: 1rem;
}
.config-preview-frame {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
}
.config-preview-label {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ——— Realistic door preview ——— */

/* Segmented tabs + product cards in configurator */
.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.seg-tab {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
}
.seg-tab.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: #fff;
}
#grip-grid.product-grid,
#plate-grid.product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
}
@media (max-width: 720px) {
  #grip-grid.product-grid,
  #plate-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
.product-card {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.55rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.product-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 40% 30%, #3a3a3a, #111 70%);
  overflow: hidden;
}
.product-card-thumb img {
  /* Abspos so max-% resolves against the thumb box — tall AND wide stay fully visible */
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center;
}
/* Plate thumbs: boxes square (rozet) / 2× tall (schild) */
#plate-grid {
  --plate-thumb-sq: 104px; /* square unit for round/square rozetten */
  --plate-content-max: 88%;
}
#plate-grid .product-card-thumb {
  width: 100%;
  aspect-ratio: auto;
  height: var(--plate-thumb-sq);
  margin-inline: auto;
}
#plate-grid .product-card[data-cat="rozet"] .product-card-thumb {
  /* Square box that fills the card width like other thumbs */
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
#plate-grid .product-card[data-cat="schild"] .product-card-thumb {
  /* Rectangular shields: twice the square height; width stretches with card */
  width: 100%;
  height: calc(var(--plate-thumb-sq) * 2);
  aspect-ratio: auto;
  --plate-content-max: 72%;
}
#plate-grid .product-card-thumb img {
  max-width: var(--plate-content-max);
  max-height: var(--plate-content-max);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.35rem;
}
.filter-chips .chip {
  cursor: pointer;
}
.filter-count {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: var(--ink-muted, #666);
}
.filter-empty {
  margin: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--ink-muted, #666);
}
.combo-intro {
  grid-column: 1 / -1;
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  color: var(--ink-muted, #666);
}
.combo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.combo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 6px;
}
.combo-card:hover { border-color: #9aa3ad; }
.combo-card.is-active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.combo-card.is-calibrated:not(.is-active) {
  border-color: #6a8f74;
}
.combo-thumbs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: radial-gradient(circle at 40% 30%, #3a3a3a, #111 70%);
  padding: 0.4rem 0.5rem;
  min-width: 92px;
  height: 64px;
}
.combo-thumbs img {
  height: 100%;
  width: auto;
  max-width: 44px;
  object-fit: contain;
}
.combo-body {
  display: grid;
  gap: 0.25rem;
}
.combo-body strong {
  font-size: 0.88rem;
  line-height: 1.25;
}
.combo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.combo-badge {
  display: inline-flex;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  background: #e8ecf0;
  color: #334;
}
.combo-badge.is-current {
  background: var(--ink);
  color: #fff;
}
.combo-badge.is-calibrated {
  background: #dcecdf;
  color: #2f6b3a;
}
.combo-price {
  font-size: 0.86rem;
  font-weight: 600;
}
.product-card strong {
  display: block;
  font-family: var(--font-display, inherit);
  font-size: 0.88rem;
  line-height: 1.25;
  min-height: 2.4em;
}
.product-card > span { color: var(--ink-muted, #666); font-size: 0.82rem; }
.product-card.is-active {
  border-color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.door-stage {
  aspect-ratio: 3 / 4.1;
  background:
    radial-gradient(ellipse at 50% 20%, #f2f5f8 0%, transparent 55%),
    linear-gradient(180deg, #e8edf1 0%, #d0d8e0 100%);
  display: grid;
  place-items: center;
  padding: 1.4rem 1.1rem 1.6rem;
  overflow: hidden;
}
.door-scene {
  position: relative;
  width: min(88%, 300px);
  height: 100%;
}
.door-wall {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.2) 0 1px,
      transparent 1px 22px
    ),
    linear-gradient(180deg, #f5f7f9, #e2e8ee);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.04);
}
.door-frame {
  position: absolute;
  inset: 3.5% 6.5% 2.5%;
  pointer-events: none;
  z-index: 1;
}
.door-frame span {
  position: absolute;
  background:
    linear-gradient(180deg, #d8dee4, #a8b2bc 55%, #929ca6);
  box-shadow:
    3px 4px 10px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(0,0,0,0.12);
}
.frame-top { left: 0; right: 0; top: 0; height: 15px; z-index: 2; }
.frame-bottom { left: 0; right: 0; bottom: 0; height: 13px; }
.frame-left { left: 0; top: 0; bottom: 0; width: 15px; }
.frame-right { right: 0; top: 0; bottom: 0; width: 15px; }

.door-leaf {
  position: absolute;
  inset: 6.5% 11% 5.5%;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.16), transparent 12%, transparent 88%, rgba(0,0,0,0.1)),
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 28%, rgba(0,0,0,0.12)),
    var(--door);
  box-shadow:
    0 24px 44px rgba(0,0,0,0.3),
    0 6px 14px rgba(0,0,0,0.2),
    inset 0 0 0 1px rgba(0,0,0,0.22);
  z-index: 2;
}
.door-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    repeating-linear-gradient(
      92deg,
      transparent 0 7px,
      rgba(0,0,0,0.07) 7px 8px
    );
  pointer-events: none;
}
.door-panel-inset {
  position: absolute;
  left: 11%;
  right: 11%;
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow:
    inset 0 0 0 5px rgba(255,255,255,0.05),
    inset 0 0 22px rgba(0,0,0,0.1),
    0 2px 4px rgba(0,0,0,0.08),
    0 1px 0 rgba(255,255,255,0.14);
}
.door-panel-inset.top { top: 9%; height: 27%; }
.door-panel-inset.bottom { bottom: 9%; height: 27%; }

/* Hinges: separate leaf + pin with own shadows */
.hinge {
  position: absolute;
  left: -4px;
  width: 14px;
  height: 30px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  z-index: 4;
}
.hinge span {
  display: block;
  border-radius: 2px;
  background:
    linear-gradient(90deg, #6f757c, #c5c9ce 42%, #8a9198);
  box-shadow:
    2px 3px 7px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.4);
}
.hinge::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d0d4d8, #5f666d);
  box-shadow: 1px 2px 4px rgba(0,0,0,0.35);
}
.hinge-1 { top: 12%; }
.hinge-2 { top: 45%; }
.hinge-3 { top: 76%; }

/* Hardware: single mount origin = exact center of rosette */
.hardware {
  --hw-edge: 9%;
  --rosette-w: 38px;
  --rosette-h: 38px;
  --mount: calc(var(--rosette-w) / 2);
  --knob-size: 34px;
  position: absolute;
  top: 47%;
  right: var(--hw-edge);
  left: auto;
  transform: translateY(-50%);
  width: 118px;
  height: 118px;
  z-index: 5;
  pointer-events: none;
}
.door-stage[data-side="left"] .hardware {
  right: auto;
  left: var(--hw-edge);
}
.door-stage[data-side="left"] .hinge {
  left: auto;
  right: -4px;
}
.door-stage[data-side="left"] .hinge span {
  background: linear-gradient(270deg, #6f757c, #c5c9ce 42%, #8a9198);
}

.hw-rosette {
  position: absolute;
  top: 50%;
  width: var(--rosette-w);
  height: var(--rosette-h);
  transform: translateY(-50%);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.32), transparent 40%, rgba(0,0,0,0.3)),
    var(--finish);
  box-shadow:
    0 3px 6px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.32),
    inset 0 -2px 3px rgba(0,0,0,0.2);
  z-index: 2;
}
.door-stage[data-side="right"] .hw-rosette { right: 0; }
.door-stage[data-side="left"] .hw-rosette { left: 0; }

.hardware[data-rosette="square"] .hw-rosette { border-radius: 3px; }
.hardware[data-rosette="round"] .hw-rosette { border-radius: 50%; }
.hardware[data-rosette="round"] .hw-screw { display: none; }
.hardware[data-rosette="long"] {
  --rosette-w: 32px;
  --rosette-h: 96px;
}
.hardware[data-rosette="long"] .hw-rosette { border-radius: 3px; }
.hardware[data-rosette="long"] .hw-keyhole { display: block; }
.hardware[data-rosette="long"] .hw-screw-bl,
.hardware[data-rosette="long"] .hw-screw-br { bottom: 6px; top: auto; }

.hw-screw {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.45), rgba(0,0,0,0.45));
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.hw-screw-tl { top: 5px; left: 5px; }
.hw-screw-tr { top: 5px; right: 5px; }
.hw-screw-bl { bottom: 5px; left: 5px; }
.hw-screw-br { bottom: 5px; right: 5px; }
.hw-keyhole {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 7px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 50% 50% 2px 2px;
  background: #111;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.15),
    0 2px 4px rgba(0,0,0,0.35);
}
.hw-keyhole::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #111;
}

/* Mount origin = geometric center of the rosette */
.hw-mount {
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 4;
}
.door-stage[data-side="right"] .hw-mount { right: var(--mount); }
.door-stage[data-side="left"] .hw-mount { left: var(--mount); }




.hw-handle {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  line-height: 0;
  z-index: 4;
  color: var(--finish);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.35));
}
.hardware[data-type="l"] .hw-handle-l { display: block; }
.hardware[data-type="u"] .hw-handle-u { display: block; }
.hardware[data-type="ton"] .hw-handle-ton { display: block; }
.hardware[data-type="knop"] .hw-handle-knop { display: block; }

.hw-svg { display: block; overflow: visible; }

/*
  SVG mount anchors (viewBox coords):
  L   (18, 48) in 120×56
  U   (18, 14) in 120×64
  Ton (18, 44) in 130×56
  Place that point on the rose center; mirror on the right.
*/
.hw-handle-l { transform-origin: 18px 48px; }
.hw-handle-u { transform-origin: 18px 14px; }
.hw-handle-ton { transform-origin: 18px 44px; }

.door-stage[data-side="left"] .hw-handle-l {
  transform: translate(-18px, -48px);
}
.door-stage[data-side="right"] .hw-handle-l {
  transform: translate(-18px, -48px) scaleX(-1);
}
.door-stage[data-side="left"] .hw-handle-u {
  transform: translate(-18px, -14px);
}
.door-stage[data-side="right"] .hw-handle-u {
  transform: translate(-18px, -14px) scaleX(-1);
}
.door-stage[data-side="left"] .hw-handle-ton {
  transform: translate(-18px, -44px);
}
.door-stage[data-side="right"] .hw-handle-ton {
  transform: translate(-18px, -44px) scaleX(-1);
}

/* Knob unchanged — round, centered on rose */
.hw-handle-knop {
  width: var(--knob-size);
  height: var(--knob-size);
  transform: translate(-50%, -50%);
  filter: none;
}
.hw-knob {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.42), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.2), transparent 50%, rgba(0,0,0,0.3)),
    var(--finish);
  box-shadow:
    0 3px 6px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.32);
}

.option-cards-2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 960px) {
  .door-stage { aspect-ratio: 1 / 1.15; max-height: 460px; }
}
@media (max-width: 560px) {
  .option-cards-2 { grid-template-columns: 1fr; }
}

.preview-caption {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.15rem;
}
.preview-caption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.preview-caption span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.config-tips {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1rem 1.1rem;
}
.config-tips h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.55rem;
}
.config-tips ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.config-tips li { margin-bottom: 0.35rem; }

@media (max-width: 960px) {
  .config-layout { grid-template-columns: 1fr; }
  .config-preview-pane { position: static; order: -1; }
  .door-stage { aspect-ratio: 1 / 1.05; max-height: 420px; }
  .option-cards-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .option-cards { grid-template-columns: 1fr; }
}

/* ——— Cookie banner (concept) ——— */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
  background: rgba(28, 28, 28, 0.96);
  color: #f5f5f5;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
}
.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner-copy {
  flex: 1 1 18rem;
  min-width: 0;
}
.cookie-banner-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.cookie-banner-copy p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.88);
  max-width: 46rem;
}
.cookie-banner-copy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.cookie-banner .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
.cookie-banner .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.85rem;
}
.footer-legal a:hover { color: #fff; }
.legal-notice {
  margin: 1rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.legal-notice strong { color: var(--ink); }
@media (max-width: 720px) {
  .cookie-banner { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0)); }
}

/* ——— Fit helper / set builder / montage (PDP) ——— */
.fit-helper {
  margin: 0.85rem 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--surface, #f5f5f5);
}
.fit-helper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.fit-helper-head strong { font-family: var(--font-display); }
.fit-helper-toggle {
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.fit-options {
  display: grid;
  gap: 0.75rem;
}
.fit-options fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.fit-options legend {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-muted, #555);
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.seg-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.seg-btn.is-active,
.seg-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.fit-measure {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-muted, #555);
}
.fit-measure ol { margin: 0 0 0.5rem 1.1rem; padding: 0; }
.fit-measure-tip { margin: 0; }
.fit-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted, #555);
}
.set-builder {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
}
.set-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.set-builder-head strong { font-family: var(--font-display); }
.set-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.45rem;
}
.set-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  cursor: pointer;
}
.set-line em { font-style: normal; font-weight: 600; }
.set-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.75rem;
  font-family: var(--font-display);
}
.set-total strong { font-size: 1.25rem; }
.set-note {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted, #666);
}
.montage-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: center;
}
.montage-copy ol { margin: 0.75rem 0 1rem 1.1rem; color: var(--ink-muted, #555); }
.video-poster {
  aspect-ratio: 16 / 10;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.5rem;
  background:
    linear-gradient(160deg, rgba(28,28,28,0.55), rgba(28,28,28,0.75)),
    radial-gradient(circle at 40% 30%, #3a3a3a, #111 70%);
  color: #fff;
  border: 1px solid var(--line);
}
.play-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: var(--accent);
  font-size: 1rem;
}
.video-poster p { margin: 0; font-family: var(--font-display); font-weight: 600; }
.video-poster small { display: block; font-weight: 400; opacity: 0.85; }

/* PLP technical filters + set cards */
.product.is-set {
  outline: 1px solid var(--ink);
}
.product-tag.is-set {
  background: var(--ink);
  color: #fff;
}
.filter-hint {
  font-size: 0.8rem;
  color: var(--ink-muted, #666);
  margin: 0 0 0.75rem;
}

/* Past-op-mijn-deur */
.upload-drop {
  border: 1px dashed var(--line);
  background: var(--surface, #f5f5f5);
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
}
.upload-drop.is-active { border-color: var(--accent); background: #fff; }
.upload-drop strong { display: block; font-family: var(--font-display); margin-bottom: 0.35rem; }
.upload-drop input[type="file"] { display: none; }
.upload-preview {
  display: none;
  margin-top: 1rem;
  max-width: 16rem;
}
.upload-preview.is-visible { display: block; }
.upload-preview img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.fit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.fit-step {
  border: 1px solid var(--line);
  padding: 0.9rem;
  background: #fff;
}
.fit-step span {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

/* Zakelijk dashboard cards */
.b2b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
.b2b-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.1rem 1rem;
}
.b2b-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}
.b2b-card p {
  margin: 0 0 0.85rem;
  color: var(--ink-muted, #555);
  font-size: 0.92rem;
}
.reorder-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.75rem 0 1rem;
}
.reorder-table th,
.reorder-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.reorder-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); }
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.project-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 860px) {
  .montage-block,
  .fit-steps,
  .b2b-grid { grid-template-columns: 1fr; }
}

/* Aliases matching markup class names */
.fit-helper-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.fit-helper-head strong { font-family: var(--font-display); }
.fit-helper-toggle {
  border: 0; background: none; color: var(--accent); font: inherit; font-weight: 600;
  text-decoration: underline; cursor: pointer; padding: 0;
}
.fit-options { display: grid; gap: 0.75rem; }
.fit-measure { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--ink-muted, #555); }
.fit-measure-tip { margin: 0; }
.fit-status { margin: 0.75rem 0 0; font-size: 0.88rem; color: var(--ink-muted, #555); }
.set-builder-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.65rem; }
.set-builder-head strong { font-family: var(--font-display); }
.set-badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 0.2rem 0.45rem;
}
.set-line {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.55rem; align-items: center;
  padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; cursor: pointer;
}
.set-line em { font-style: normal; font-weight: 600; }
.set-note { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--ink-muted, #666); }
.montage-copy ol { margin: 0.75rem 0 1rem 1.1rem; color: var(--ink-muted, #555); }
.montage-video .video-poster, .video-poster {
  aspect-ratio: 16 / 10; display: grid; place-content: center; text-align: center; gap: 0.5rem;
  background: linear-gradient(160deg, rgba(28,28,28,0.55), rgba(28,28,28,0.75)), radial-gradient(circle at 40% 30%, #3a3a3a, #111 70%);
  color: #fff; border: 1px solid var(--line);
}
.play-badge {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: var(--accent); font-size: 0.85rem;
}
.filter-hint { font-size: 0.8rem; color: var(--ink-muted, #666); margin: 0 0 0.5rem; }
.product.is-set { box-shadow: inset 0 0 0 1px var(--ink); }
.product-tag.is-set { background: var(--ink); color: #fff; }
.product-spec { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--ink-muted, #666); }
.fit-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1.25rem 0;
}
.fit-step {
  border: 1px solid var(--line); padding: 0.9rem; background: #fff;
}
.fit-step span {
  display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.45rem;
}
.fit-step strong { display: block; font-family: var(--font-display); margin-bottom: 0.25rem; }
.fit-step p { margin: 0; font-size: 0.9rem; color: var(--ink-muted, #555); }
.upload-drop {
  display: block; border: 1px dashed var(--line); background: var(--surface, #f5f5f5);
  padding: 1.5rem 1.25rem; text-align: center; cursor: pointer; margin-bottom: 1rem;
}
.upload-drop strong { display: block; font-family: var(--font-display); margin-bottom: 0.35rem; }
.upload-drop span { display: block; font-size: 0.88rem; color: var(--ink-muted, #666); }
.upload-drop input[type="file"] { display: none; }
.upload-drop.is-active { border-color: var(--accent); background: #fff; }
.upload-preview { display: none; margin: 0 0 1rem; max-width: 16rem; }
.upload-preview.is-visible { display: block; }
.upload-preview img { width: 100%; height: auto; border: 1px solid var(--line); }
.form-note { margin-top: 0.75rem; color: var(--ink-muted, #555); font-size: 0.9rem; }
@media (max-width: 860px) {
  .fit-steps { grid-template-columns: 1fr; }
}


/*
  Hardware composition:
  - Origin (0,0) = spindle on the door
  - Each asset has mount {x,y} in 0..1 (hole or neck)
  - Images are shifted so their mount lands on the origin
  - Right side = scaleX(-1) on the whole group (alignment stays)
*/
.hardware {
  --hw-edge: 12%;
  --plate-w: 28px;
  --plate-h: 28px;
  --grip-w: 70px;
  --plate-mx: 0.5;
  --plate-my: 0.5;
  --grip-mx: 0.07;
  --grip-my: 0.5;
  --cal-x: 0px;
  --cal-y: 0px;
  --set-y: 0px;
  position: absolute;
  top: 42%;
  right: var(--hw-edge);
  left: auto;
  width: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
  transform: translateY(calc(-50% + var(--set-y))) scaleX(-1); /* default: right door */
}
.door-stage[data-side="left"] .hardware {
  right: auto;
  left: var(--hw-edge);
  transform: translateY(calc(-50% + var(--set-y)));
}
.door-stage {
  overflow: visible;
}
.door-leaf, .door-scene {
  overflow: visible;
}

.hw-plate-img,
.hw-grip-img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.hw-plate-img {
  width: var(--plate-w);
  height: var(--plate-h);
  object-fit: contain;
  z-index: 2;
  transform: translate(
    calc(var(--plate-mx) * -100%),
    calc(var(--plate-my) * -100%)
  );
}
.hardware[data-plate-cat="schild"] .hw-plate-img {
  width: auto;
  height: var(--plate-h);
}

.hw-grip-img {
  width: var(--grip-w);
  height: auto;
  z-index: 4;
  transform: translate(
    calc(var(--grip-mx) * -100% + var(--cal-x)),
    calc(var(--grip-my) * -100% + var(--cal-y))
  );
}
.hardware[data-view="front"] .hw-grip-img {
  width: 32px;
}
.hardware[data-grip="knop-02-ovaal-goud"] .hw-grip-img,
.hardware[data-grip="knop-03-ovaal-hout"] .hw-grip-img {
  width: 40px;
}
.hardware[data-grip="knop-05-facet"] .hw-grip-img {
  width: 28px;
}

/* Beslagkleur: PNG’s zijn zilver — tint via CSS-filter (geen SVG) */
.hw-plate-img,
.hw-grip-img,
#config-layout .product-card-thumb img,
#config-layout .combo-thumbs img {
  transition: filter 0.2s ease;
}
#config-layout[data-finish="zilver"] .hw-plate-img,
#config-layout[data-finish="zilver"] .hw-grip-img,
.door-stage[data-finish="zilver"] .hw-plate-img,
.door-stage[data-finish="zilver"] .hw-grip-img,
#config-layout[data-finish="zilver"] .product-card-thumb img,
#config-layout[data-finish="zilver"] .combo-thumbs img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
#config-layout[data-finish="goud"] .hw-plate-img,
#config-layout[data-finish="goud"] .hw-grip-img,
.door-stage[data-finish="goud"] .hw-plate-img,
.door-stage[data-finish="goud"] .hw-grip-img,
#config-layout[data-finish="goud"] .product-card-thumb img,
#config-layout[data-finish="goud"] .combo-thumbs img {
  filter:
    sepia(0.72)
    saturate(2.35)
    hue-rotate(-12deg)
    brightness(1.06)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
#config-layout[data-finish="wit"] .hw-plate-img,
#config-layout[data-finish="wit"] .hw-grip-img,
.door-stage[data-finish="wit"] .hw-plate-img,
.door-stage[data-finish="wit"] .hw-grip-img,
#config-layout[data-finish="wit"] .product-card-thumb img,
#config-layout[data-finish="wit"] .combo-thumbs img {
  filter:
    grayscale(1)
    brightness(1.9)
    contrast(0.92)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}
#config-layout[data-finish="zwart"] .hw-plate-img,
#config-layout[data-finish="zwart"] .hw-grip-img,
.door-stage[data-finish="zwart"] .hw-plate-img,
.door-stage[data-finish="zwart"] .hw-grip-img,
#config-layout[data-finish="zwart"] .product-card-thumb img,
#config-layout[data-finish="zwart"] .combo-thumbs img {
  filter:
    brightness(0.2)
    contrast(1.2)
    saturate(0)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

/* Hide legacy SVG handles if still in DOM */
.hw-handle, .hw-rosette, .hw-mount { display: none !important; }


/* Mobile hardware scale (must follow base .hardware vars) */
@media (max-width: 720px) {
  .config-preview-pane {
    position: sticky;
    top: calc(var(--header-h, 64px) + 8px);
    z-index: 5;
  }
  .door-stage { max-height: 340px; }
  .hardware {
    --plate-w: 24px;
    --plate-h: 24px;
    --grip-w: 56px;
  }
  #grip-grid.product-grid,
  #plate-grid.product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .door-stage { max-height: 300px; }
  .hardware {
    --plate-w: 22px;
    --plate-h: 22px;
    --grip-w: 48px;
    --hw-edge: 10%;
  }
}

/* TEMP calibration panel — later verwijderen */
.cal-panel {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #9aa3ad;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: auto;
}
.cal-panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  margin-bottom: 8px;
}
.cal-panel-head strong {
  font-size: 0.9rem;
}
.cal-panel-head span {
  font-size: 0.75rem;
  color: #5c6670;
}
.cal-pair {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #2a3238;
  word-break: break-all;
}
.cal-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .cal-layout {
    grid-template-columns: 1fr;
  }
}
.cal-block {
  padding: 10px;
  border: 1px solid #d5dbe1;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
}
.cal-block-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1c2429;
}
.cal-block-hint {
  margin: 2px 0 8px;
  font-size: 0.72rem;
  color: #5c6670;
}
.cal-set-btns {
  display: flex;
  gap: 6px;
}
.cal-set-btns .cal-btn {
  flex: 1;
  min-height: 44px;
  font-size: 1.25rem;
}
.cal-pad {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  grid-template-rows: repeat(3, 40px);
  gap: 4px;
  justify-content: start;
  margin-bottom: 0;
}
.cal-btn {
  appearance: none;
  border: 1px solid #7a848e;
  background: #f3f5f7;
  color: #1c2429;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  min-width: 40px;
  min-height: 40px;
  position: relative;
  z-index: 2;
}
.cal-btn:hover { background: #e6eaee; }
.cal-btn:active { background: #d4dae0; }
.cal-btn[data-cal="up"] { grid-column: 2; grid-row: 1; }
.cal-btn[data-cal="left"] { grid-column: 1; grid-row: 2; }
.cal-btn[data-cal="right"] { grid-column: 3; grid-row: 2; }
.cal-btn[data-cal="down"] { grid-column: 2; grid-row: 3; }
.cal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
}
.cal-meta select {
  margin-left: 6px;
  padding: 2px 6px;
}
.cal-meta code {
  font-size: 0.78rem;
  color: #2a3238;
}
.cal-zoom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 0.82rem;
}
.cal-zoom-row .cal-btn {
  min-width: 44px;
  min-height: 44px;
  font-size: 1.35rem;
  font-weight: 600;
  flex: 1;
}
.cal-zoom-row code {
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #2a3238;
}
.cal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cal-status {
  margin: 8px 0 0;
  font-size: 0.78rem;
}
@media (max-width: 860px) {
  .cal-panel {
    margin-bottom: 88px; /* clear sticky-cta */
  }
}

/* ——— Klantenservice-chat ——— */
.chat-widget {
  --chat-z: 75;
}
.chat-launcher {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  z-index: var(--chat-z);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(232, 93, 24, 0.35);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.chat-launcher:hover { background: var(--accent-hover); }
.chat-launcher-icon { font-size: 1.1rem; line-height: 1; }
.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
  z-index: var(--chat-z);
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(32rem, calc(100vh - 6rem));
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: #fff;
}
.chat-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}
.chat-status {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.1rem;
}
.chat-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}
.chat-messages {
  padding: 0.85rem;
  overflow-y: auto;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  background: var(--surface);
  min-height: 12rem;
}
.chat-msg {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.chat-msg.is-user {
  justify-self: end;
  background: #fff4ed;
  border-color: rgba(232, 93, 24, 0.25);
}
.chat-msg.is-agent {
  border-color: rgba(31, 107, 74, 0.35);
  background: #eef7f1;
}
.chat-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
}
.chat-msg p { margin: 0; font-size: 0.9rem; color: var(--ink); }
.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem 0;
  background: #fff;
}
.chat-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.chat-chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-form input {
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  font: inherit;
  min-width: 0;
}
.chat-send {
  min-height: 42px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}
.chat-note {
  margin: 0;
  padding: 0.45rem 0.85rem 0.65rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
  background: #fff;
  border-top: 1px dashed var(--line);
}
.topbar .js-chat-open {
  color: rgba(255, 255, 255, 0.82);
}
.topbar .js-chat-open:hover { color: #fff; }
@media (max-width: 860px) {
  .chat-launcher {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0));
  }
  .chat-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    bottom: calc(9.5rem + env(safe-area-inset-bottom, 0));
    max-height: min(28rem, calc(100vh - 11rem));
  }
}

/* ——— WooCommerce shop layout ——— */
.shop-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.shop-filters .filter-widget {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.shop-filters .filter-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products li.product {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.75rem;
  margin: 0;
}
.woocommerce ul.products li.product a img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--accent);
  color: #fff !important;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--accent-hover);
  color: #fff !important;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
