/* ── Woonstijl Section ─────────────────────────────────────────── */
.woonstijl-categories {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.woonstijl-category-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.woonstijl-category-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.woonstijl-category-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg), var(--shadow-lg);
}

.woonstijl-category-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--surface);
}

.woonstijl-category-info {
  padding: 1rem 1.25rem;
}

.woonstijl-category-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.woonstijl-category-count {
  font-size: 0.8rem;
  color: var(--muted);
}

.woonstijl-category-arrow {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.25s ease;
}

.woonstijl-category-card:hover .woonstijl-category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Info button on category card ─────────────────────────────── */
.woonstijl-info-btn {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: background .2s, transform .15s;
  z-index: 2;
  flex-shrink: 0;
  padding: 0;
}

.woonstijl-info-btn svg {
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.woonstijl-info-btn:hover {
  background: rgba(0,0,0,.65);
  transform: scale(1.15);
}

/* ── Woonstijl info modal ──────────────────────────────────────── */
.woonstijl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(3px);
}

.woonstijl-modal-backdrop.hidden {
  display: none;
}

.woonstijl-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.woonstijl-modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .15s;
  padding: 0;
}

.woonstijl-modal-close:hover { background: rgba(0,0,0,.55); }

.woonstijl-modal-close svg { width: 16px; height: 16px; pointer-events: none; }

.woonstijl-modal-img-wrap {
  flex-shrink: 0;
  height: 220px;
  overflow: hidden;
}

.woonstijl-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.woonstijl-modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-y: auto;
}

.woonstijl-modal-group {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}

.woonstijl-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}

.woonstijl-modal-description p {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text-secondary, var(--muted));
  margin: 0 0 .85rem;
}

.woonstijl-modal-description p:last-child { margin-bottom: 0; }

.woonstijl-category-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ── Woonstijl: group headers ───────────────────────────────────── */

.woonstijl-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.woonstijl-group-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.woonstijl-group-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.woonstijl-group-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* ── Woonstijl: attribute pills ─────────────────────────────────── */

.woonstijl-style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.woonstijl-style-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  background: var(--surface3);
  color: var(--text-sec);
}

.woonstijl-style-pill.pill-neutral {
  background: var(--surface3);
  color: var(--text-sec);
}

.woonstijl-style-pill.pill-light {
  background: #f5f0e8;
  color: #7a6a50;
}

.woonstijl-style-pill.pill-dark {
  background: #e4e5e8;
  color: #42454d;
}

.woonstijl-style-pill.pill-cool {
  background: #e8eef5;
  color: #4a6080;
}

.woonstijl-style-pill.pill-warm {
  background: #f5ede4;
  color: #7a5030;
}

.woonstijl-style-pill.pill-vivid {
  background: rgba(45, 122, 79, 0.10);
  color: var(--accent);
}

/* Woonstijl products view */
.woonstijl-products-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.woonstijl-products-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.btn-back-small {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}
.btn-back-small svg { width: 14px; height: 14px; }
.btn-back-small:hover {
  color: var(--text-sec);
  border-color: var(--accent);
}

/* Woonstijl pair suggestions grid */
.woonstijl-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ── Brand filter bar ─────────────────────────────────────────── */
.product-brand-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.6rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
}

.product-brand-tab {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-sec);
  font-size: 12px;
  font-weight: 600;
  padding: 0.28rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  letter-spacing: 0.02em;
}
.product-brand-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.product-brand-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Scrollable products area ─────────────────────────────────── */
.product-brand-scroll {
  width: 100%;
  padding: 1rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-brand-section {
  width: 100%;
}

/* ── Brand section ────────────────────────────────────────────── */
.product-brand-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.product-brand-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.product-brand-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--surface3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.product-brand-section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.landing-load-more {
  display: block;
  width: 100%;
  margin-top: .75rem;
  padding: .5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.landing-load-more:hover {
  border-color: var(--accent);
  background: rgba(58,158,110,.05);
}
.landing-load-more.hidden { display: none; }

/* Sentinel to trigger lazy loading — works in both flex rows and CSS grids */
.landing-preset-sentinel {
  flex: 0 0 1px;
  grid-column: 1 / -1;
  height: 1px;
  visibility: hidden;
}

/* ── Brand products grid ──────────────────────────────────────── */
.product-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

/* Pair card — floor + curtain side by side */
.woonstijl-pair-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s;
}
.woonstijl-pair-card:hover {
  border-color: var(--accent);
}
.woonstijl-pair-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,158,110,0.15);
}

.pair-halves {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pair-half {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pair-half + .pair-half {
  border-left: 2px solid var(--bg);
}

.pair-half-images {
  display: flex;
  height: 100px;
  overflow: hidden;
}

/* Primary thumb (texture) takes 2/3, secondary (room scene) takes 1/3 */
.pair-thumb { object-fit: cover; min-width: 0; }
.pair-thumb-primary  { flex: 2; }
.pair-thumb-secondary { flex: 1; border-left: 1px solid var(--bg); }

.pair-half-info {
  padding: 0.45rem 0.55rem;
  border-top: 1px solid var(--border);
}
.pair-half-type {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.1rem;
}
.pair-half-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pair-half-code {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.1rem;
}

.pair-half-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.2rem;
}

.pair-half-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  background: var(--surface);
}
.pair-half-empty-label {
  font-size: 12px;
  color: var(--muted);
}

.woonstijl-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 0;
  text-align: center;
}

/* Keep old .woonstijl-product-card styles (used nowhere now but harmless) */
.woonstijl-product-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}

.woonstijl-product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.woonstijl-product-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,158,110,0.15);
}

.woonstijl-product-images {
  display: flex;
  flex-direction: row;
  height: 110px;
  overflow: hidden;
}

.woonstijl-product-thumb {
  flex: 2;
  object-fit: cover;
  background: var(--surface);
  cursor: zoom-in;
  transition: opacity .15s;
  min-width: 0;
}
.woonstijl-product-thumb:nth-child(2) {
  flex: 1;
  border-left: 2px solid var(--bg);
}
.woonstijl-product-thumb:hover { opacity: .85; }

.woonstijl-product-info {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border);
}

.woonstijl-product-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.woonstijl-product-code {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0.15rem;
}

.woonstijl-product-type {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.woonstijl-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Landing search ─────────────────────────────────────────── */
.landing-search-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.landing-search-icon {
  position: absolute;
  left: .75rem; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}
#landingSearch {
  width: 100%;
  padding: .65rem .75rem .65rem 2.5rem;
  font-size: .92rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
#landingSearch:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,158,110,.12);
}
#landingSearch::placeholder { color: var(--muted); }

.landing-tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.landing-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  padding: .5rem 1rem;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  letter-spacing: .03em;
}
.landing-tab:hover { color: var(--text-sec); }
.landing-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.landing-view { min-height: 200px; }

.landing-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.landing-column-title {
  font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--border);
}

.landing-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .6rem;
}

/* Wrapper that provides the right-edge scroll fade */
.preset-row-wrap {
  position: relative;
}

.preset-row-wrap::before,
.preset-row-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: .35rem;
  width: 3.5rem;
  pointer-events: none;
  transition: opacity .2s;
}

.preset-row-wrap::after {
  right: 0;
  background: linear-gradient(to right, transparent, var(--surface));
  opacity: 0;
}

.preset-row-wrap::before {
  left: 0;
  background: linear-gradient(to left, transparent, var(--surface));
  opacity: 0;
}

.preset-row-wrap.scrolled-start::before {
  opacity: 1;
}

.preset-row-wrap.scrolled-end::after {
  opacity: 1;
}

/* Horizontal scroll row variant used in direct-select brand sections */
.landing-preset-row {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
  padding-top: .25rem;
  padding-bottom: .35rem;
}

.landing-preset-row .landing-preset-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
}

.landing-preset-row .landing-preset-thumbs {
  height: 120px;
}

.landing-preset-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  min-width: 0;
}
.landing-preset-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,.13);
  transform: translateY(-2px) scale(1.02);
}
.landing-preset-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58,158,110,.2);
}
.landing-preset-card.selected:hover {
  box-shadow: 0 0 0 3px rgba(58,158,110,.2), 0 4px 14px rgba(0,0,0,.13);
  transform: translateY(-2px) scale(1.02);
}

.landing-preset-thumbs {
  display: flex;
  flex-direction: row;
  height: 80px;
  overflow: hidden;
}

/* First image (texture) gets 2/3 width, second (room scene) gets 1/3 */
.landing-preset-thumb {
  flex: 2;
  object-fit: cover;
  display: block;
  background: var(--surface);
  min-width: 0;
}
.landing-preset-thumb:nth-child(2) {
  flex: 1;
  border-left: 2px solid var(--bg);
}

.landing-preset-info {
  padding: .3rem .4rem;
  border-top: 1px solid var(--border);
}
.landing-preset-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.landing-preset-code {
  display: flex;
  align-items: center;
  gap: .15rem;
  font-size: 12px;
  color: var(--muted);
  margin-top: .1rem;
}
.landing-preset-brand {
  font-size: 12px;
  color: var(--muted);
  opacity: .7;
  margin-top: .1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Brand label on card is redundant inside a brand section */
.product-brand-section .landing-preset-brand { display: none; }

.landing-preset-palette {
  display: flex;
  gap: 2px;
  margin-top: .35rem;
}
.landing-preset-swatch {
  flex: 1;
  height: 5px;
  border-radius: 2px;
  min-width: 0;
}

.landing-preset-price {
  display: flex;
  align-items: baseline;
  gap: .15rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-top: .2rem;
}
.landing-preset-price-unit {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.landing-preset-link {
  display: inline-block;
  margin-top: .3rem;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .03em;
}
.landing-preset-link:hover { text-decoration: underline; }

.landing-preset-card.selected .landing-preset-name { color: var(--accent); }

/* Woonstijl groups */
.landing-style-group {
  margin-bottom: 1.25rem;
}
.landing-style-group-title {
  font-size: .82rem; font-weight: 700;
  text-transform: capitalize;
  color: var(--text);
  margin-bottom: .6rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
}
.landing-style-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem;
}
.landing-style-group-grid .landing-preset-card .landing-preset-type {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.landing-no-results {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  padding: 2rem 0;
  grid-column: 1 / -1;
}

/* Landing actions */
.landing-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.btn-skip {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: .55rem 1.2rem;
  font-size: .85rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-skip:hover {
  color: var(--text-sec);
  border-color: var(--border-l);
}

/* Back button on upload section */
.upload-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(var(--gap) * .9);
}
.upload-header-row h2 { margin-bottom: 0; }

.btn-back {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  padding: .35rem .7rem;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: all .2s;
}
.btn-back svg { width: 14px; height: 14px; }
.btn-back:hover {
  color: var(--text-sec);
  border-color: var(--accent);
}
