/**
 * Printboard-tint bovenop theme-tokens + theme-surface-v12 (fase 3).
 * Actief via html[data-brand="printboard"]. Tint via data-brand-tint.
 *
 * theme-surface-v12 hardcode't Printics-blauw (--tv-accent, --gradient-primary,
 * --printics-primary). Gelijke specificiteit + deze file erna = teal wint.
 */

/* --- Teal (default) --- */
html[data-brand="printboard"][data-brand-tint="teal"],
html[data-brand="printboard"]:not([data-brand-tint]),
html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"][data-brand-tint="teal"],
html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"]:not([data-brand-tint]) {
  --printics-primary: #0d9488;
  --printics-primary-light: #2dd4bf;
  --printics-primary-dark: #0f766e;
  --printics-primary-rgb: 13, 148, 136;
  --printics-secondary: #14b8a6;
  --bs-primary: var(--printics-primary);
  --bs-primary-rgb: var(--printics-primary-rgb);
  --bs-link-color: var(--printics-primary);
  --bs-link-hover-color: var(--printics-primary-dark);

  --tv-bg-page: #e6f5f3;
  --tv-bg-card: #fbfdfe;
  --tv-bg-well: #dff3f0;
  --tv-border: rgba(15, 118, 110, 0.1);
  --tv-border-strong: rgba(15, 118, 110, 0.2);
  --tv-accent: #0d9488;
  --tv-accent-hover: #0f766e;
  --tv-accent-soft: rgba(13, 148, 136, 0.12);

  --gradient-primary: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  --gradient-primary-light: linear-gradient(135deg, rgba(13, 148, 136, 0.14) 0%, rgba(45, 212, 191, 0.1) 100%);
  --gradient-secondary-light: linear-gradient(135deg, rgba(20, 184, 166, 0.12) 0%, rgba(13, 148, 136, 0.08) 100%);

  --theme-page-root-bg: var(--tv-bg-page);
  --theme-page-body-bg: var(--tv-bg-page);
}

html[data-brand="printboard"][data-theme="dark"][data-brand-tint="teal"],
html[data-brand="printboard"][data-theme="dark"]:not([data-brand-tint]) {
  --printics-primary: #2dd4bf;
  --printics-primary-light: #5eead4;
  --printics-primary-dark: #14b8a6;
  --printics-primary-rgb: 45, 212, 191;
  --printics-secondary: #2dd4bf;
  --bs-primary: var(--printics-primary);
  --bs-primary-rgb: var(--printics-primary-rgb);
  --tv-accent: #2dd4bf;
  --tv-accent-hover: #5eead4;
  --tv-accent-soft: rgba(45, 212, 191, 0.16);
  --gradient-primary: linear-gradient(135deg, #0f766e 0%, #2dd4bf 100%);
}

/* --- Amber tint --- */
html[data-brand="printboard"][data-brand-tint="amber"],
html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"][data-brand-tint="amber"] {
  --printics-primary: #d97706;
  --printics-primary-light: #f59e0b;
  --printics-primary-dark: #b45309;
  --printics-primary-rgb: 217, 119, 6;
  --printics-secondary: #f59e0b;
  --bs-primary: var(--printics-primary);
  --bs-primary-rgb: var(--printics-primary-rgb);
  --bs-link-color: var(--printics-primary);
  --bs-link-hover-color: var(--printics-primary-dark);
  --tv-bg-page: #faf5eb;
  --tv-bg-well: #f5ead4;
  --tv-accent: #d97706;
  --tv-accent-hover: #b45309;
  --tv-accent-soft: rgba(217, 119, 6, 0.12);
  --gradient-primary: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  --gradient-primary-light: linear-gradient(135deg, rgba(217, 119, 6, 0.14) 0%, rgba(245, 158, 11, 0.1) 100%);
}

/* Primairy knoppen: theme-surface hardcode't BS-btn vars op Printics-blauw */
html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"] .btn-primary {
  --bs-btn-bg: var(--printics-primary);
  --bs-btn-border-color: var(--printics-primary);
  --bs-btn-color: #f8fffe;
  --bs-btn-hover-bg: var(--printics-primary-dark);
  --bs-btn-hover-border-color: var(--printics-primary-dark);
  --bs-btn-hover-color: #f8fffe;
  --bs-btn-active-bg: var(--printics-primary-dark);
  --bs-btn-active-border-color: var(--printics-primary-dark);
  background: var(--gradient-primary);
  border-color: var(--printics-primary);
  color: #f8fffe;
}

html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"] .btn-primary:hover,
html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"] .btn-primary:focus {
  background: var(--printics-primary-dark);
  border-color: var(--printics-primary-dark);
  color: #f8fffe;
  filter: none;
}

html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"] .btn-outline-primary {
  --bs-btn-color: var(--printics-primary-dark);
  --bs-btn-border-color: rgba(var(--printics-primary-rgb), 0.45);
  --bs-btn-hover-bg: var(--tv-accent-soft);
  --bs-btn-hover-color: var(--printics-primary-dark);
  --bs-btn-hover-border-color: var(--printics-primary);
  color: var(--printics-primary-dark);
  border-color: rgba(var(--printics-primary-rgb), 0.45);
}

html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"] .main-content {
  background: radial-gradient(ellipse 100% 54% at 50% -14%, rgba(13, 148, 136, 0.16), transparent),
    radial-gradient(ellipse 55% 42% at 100% 0%, rgba(20, 184, 166, 0.08), transparent),
    var(--tv-bg-page) !important;
}

html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"] footer.footer {
  background: linear-gradient(185deg, #e6f5f3 0%, #d5efeb 55%, #c5e8e3 100%) !important;
}

html[data-brand="printboard"]:not(.calc-fullscreen-app)[data-theme="light"] .navbar.scrolled {
  box-shadow: 0 1px 0 rgba(13, 148, 136, 0.1) !important;
}

/* Printboard landing — hergebruikt home-hero-unified, tint via data-brand */

html[data-brand="printboard"] .pb-home-hero.home-hero-unified {
  background: linear-gradient(
    145deg,
    #0f766e 0%,
    #0d9488 42%,
    #115e59 100%
  );
}

.pb-home-hero-sub {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.pb-home-paths-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.pb-home-paths .col-xl {
  flex: 1 1 0;
  max-width: 12.5rem;
}

@media (max-width: 1199.98px) {
  .pb-home-paths .col-xl {
    max-width: none;
  }
}

.pb-cat-card {
  min-height: 100%;
  cursor: pointer;
}

.pb-cat-card .home-path-title {
  font-size: 1.05rem;
}

.pb-cat-card-foot {
  min-height: 7.5rem;
}

.pb-cat-card-foot img {
  width: 100%;
  height: 7.5rem;
  object-fit: cover;
}

.pb-cat-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  margin: 0.75rem -1.25rem 0;
  background: linear-gradient(160deg, rgba(13, 148, 136, 0.12), rgba(15, 23, 42, 0.04));
  color: var(--printics-primary);
  font-size: 2rem;
  border-top: 1px solid var(--printics-gray-200, #e5e7eb);
}

.pb-home-band {
  padding: 3.25rem 0;
}

.pb-home-band--recycle {
  background: linear-gradient(
    180deg,
    rgba(13, 148, 136, 0.1) 0%,
    rgba(240, 253, 250, 0.95) 50%,
    var(--bs-body-bg, #fff) 100%
  );
}

html[data-theme="dark"] .pb-home-band--recycle {
  background: linear-gradient(
    180deg,
    rgba(45, 212, 191, 0.12) 0%,
    rgba(15, 23, 42, 0.6) 100%
  );
}

.pb-home-band--muted {
  background: var(--printics-gray-50, #f8fafc);
}

html[data-theme="dark"] .pb-home-band--muted {
  background: rgba(15, 23, 42, 0.55);
}

.pb-home-band--cta {
  padding: 3.5rem 0 4rem;
}

.pb-home-cta-lead {
  max-width: 32rem;
}

.pb-home-eyebrow {
  color: var(--printics-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.pb-home-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pb-home-points li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.45;
}

.pb-home-point-icon {
  flex: 0 0 2.4rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.14);
  color: var(--printics-primary);
  font-size: 1.15rem;
}

.pb-home-info-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="dark"] .pb-home-info-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.15);
}

.pb-home-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.12);
  color: var(--printics-primary);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

/* -------------------------------------------------------------------------- */
/* Shop: catalogus + productdetail (mobiel-first)                             */
/* -------------------------------------------------------------------------- */

/* Zwevend categorie-bubble menu — standaard linksonder, paneel groeit naar rechts */
.pb-nav-bubble {
  position: fixed;
  z-index: 1040;
  left: 1rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  right: auto;
  top: auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: calc(100vw - 1.5rem);
}

.pb-nav-fab,
.pb-nav-panel-head {
  touch-action: none;
  user-select: none;
}

.pb-nav-bubble.is-dragging {
  opacity: 0.92;
}

.pb-nav-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  border: none;
  border-radius: 999px;
  background: var(--printics-primary, #0d9488);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
  cursor: grab;
  font-weight: 700;
  font-size: 0.88rem;
}

.pb-nav-fab:active {
  cursor: grabbing;
}

.pb-nav-fab-thumb {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pb-nav-fab-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-nav-fab-label {
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 0.25rem;
}

.pb-nav-panel {
  width: min(18.5rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  -webkit-overflow-scrolling: touch;
}

html[data-theme="dark"] .pb-nav-panel {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.2);
}

.pb-nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.5rem 0.65rem 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
  cursor: grab;
  touch-action: none;
}

.pb-nav-panel-head:active {
  cursor: grabbing;
}

.pb-nav-panel-head-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.pb-nav-grip {
  opacity: 0.45;
  font-size: 1rem;
}

.pb-nav-collapse {
  border: none;
  background: transparent;
  color: inherit;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.pb-nav-collapse:hover {
  background: rgba(15, 23, 42, 0.06);
}

.pb-nav-bubble.is-expanded .pb-nav-collapse i {
  transform: rotate(0deg);
}

.pb-nav-list,
.pb-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
}

.pb-nav-sub {
  padding-left: 0.35rem;
}

.pb-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.5rem;
  padding-left: calc(0.5rem + (var(--pb-nav-depth, 0) * 0.75rem));
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 3rem;
}

.pb-nav-item:hover {
  background: rgba(13, 148, 136, 0.08);
  color: inherit;
}

.pb-nav-item.is-active {
  background: color-mix(in srgb, var(--printics-primary, #0d9488) 16%, transparent);
  font-weight: 700;
}

.pb-nav-item-thumb {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--printics-gray-100, #f1f5f9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--printics-primary);
}

.pb-nav-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-nav-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.pb-nav-item-name {
  font-size: 0.92rem;
  line-height: 1.25;
}

.pb-nav-item-count {
  font-size: 0.72rem;
  color: var(--printics-gray-500, #94a3b8);
}

/* Toolbar: titel + zoek naast elkaar */
.pb-shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
}

.pb-shop-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.pb-shop-heading {
  flex: 1 1 10rem;
  min-width: 0;
}

.pb-shop-header-row .pb-shop-title {
  margin: 0 0 0.15rem;
}

.pb-shop-header-row .pb-shop-lead {
  margin-bottom: 0.15rem;
}

.pb-shop-header-row .pb-shop-meta {
  margin-bottom: 0;
}

.pb-shop-search {
  position: relative;
  flex: 1 1 14rem;
  max-width: 28rem;
  min-width: min(100%, 12rem);
  margin-left: auto;
  align-self: center;
}

.pb-shop-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--printics-gray-500, #94a3b8);
  pointer-events: none;
}

.pb-shop-search-input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.45rem 2.5rem 0.45rem 2.4rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  font-size: 0.95rem;
}

@media (max-width: 575.98px) {
  .pb-shop-search {
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
    align-self: stretch;
  }
}

html[data-theme="dark"] .pb-shop-search-input {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.pb-shop-search-clear {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  color: var(--printics-gray-500, #94a3b8);
}

.pb-shop-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.pb-shop-cats-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--printics-gray-800, #1e293b);
  font-size: 0.88rem;
  font-weight: 600;
}

.pb-shop-toolbar-controls .pb-shop-views {
  margin-left: auto;
}

.pb-shop-cats-toggle:hover,
.pb-shop-cats-toggle[aria-expanded="true"] {
  border-color: var(--printics-primary, #0d9488);
  color: var(--printics-primary, #0d9488);
}

html[data-theme="dark"] .pb-shop-cats-toggle {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
}

.pb-cat-overview[hidden] {
  display: none !important;
}

.pb-shop-control {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
}

.pb-shop-control-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--printics-gray-500, #94a3b8);
}

.pb-shop-select {
  min-height: 2.5rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0.35rem 0.65rem;
  background: #fff;
}

.pb-shop-views {
  display: inline-flex;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.pb-shop-view-btn {
  width: 2.6rem;
  height: 2.5rem;
  border: none;
  background: #fff;
  color: var(--printics-gray-600, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pb-shop-view-btn + .pb-shop-view-btn {
  border-left: 1px solid rgba(15, 23, 42, 0.1);
}

.pb-shop-view-btn.is-active {
  background: var(--printics-primary, #0d9488);
  color: #fff;
}

.pb-soft-actions {
  margin-top: 1.25rem;
  text-align: center;
}

.pb-soft-block {
  margin-top: 1.75rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.pb-shop-main {
  padding-top: 1.25rem;
  padding-bottom: 3rem;
}

.pb-shop-title {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.pb-shop-lead {
  color: var(--printics-gray-600, #64748b);
  margin: 0 0 0.25rem;
  max-width: 36rem;
}

.pb-shop-meta {
  font-size: 0.85rem;
  color: var(--printics-gray-500, #94a3b8);
  margin: 0 0 1rem;
}

.pb-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--printics-primary);
  margin: 1.5rem 0 0.85rem;
}

.pb-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .pb-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1100px) {
  .pb-cat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.pb-cat-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .pb-cat-tile {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.12);
}

.pb-cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.pb-cat-tile-media {
  aspect-ratio: 4 / 3;
  background: var(--printics-gray-100, #f1f5f9);
  overflow: hidden;
}

.pb-cat-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-cat-tile-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--printics-primary);
  font-size: 1.75rem;
  opacity: 0.55;
}

.pb-cat-tile-body {
  padding: 0.65rem 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pb-cat-tile-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.pb-cat-tile-count {
  font-size: 0.78rem;
  color: var(--printics-gray-500, #94a3b8);
}

.pb-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.65rem;
}

@media (min-width: 768px) {
  .pb-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 1100px) {
  .pb-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pb-product-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (min-width: 768px) {
  .pb-product-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .pb-product-grid--compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.pb-product-grid--compact .pb-product-card-title {
  font-size: 0.78rem;
  min-height: 2em;
}

.pb-product-grid--compact .pb-product-card-price {
  font-size: 0.82rem;
}

.pb-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pb-list-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.65rem 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

html[data-theme="dark"] .pb-list-row {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.12);
}

@media (min-width: 640px) {
  .pb-list-row {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  }
}

.pb-list-row-media {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 10px;
  overflow: hidden;
  background: var(--printics-gray-100, #f1f5f9);
  display: block;
}

.pb-list-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-list-row-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.pb-list-row-title {
  font-weight: 650;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-list-row-sku {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--printics-gray-500, #94a3b8);
}

.pb-list-row-price {
  margin: 0.15rem 0 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.pb-list-row-price span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--printics-gray-500, #94a3b8);
}

.pb-list-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .pb-list-row-actions {
    grid-column: auto;
    justify-content: flex-end;
  }
}

.pb-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.pb-qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  color: inherit;
}

.pb-qty-input {
  width: 2.5rem;
  height: 2.25rem;
  border: none;
  border-left: 1px solid rgba(15, 23, 42, 0.1);
  border-right: 1px solid rgba(15, 23, 42, 0.1);
  text-align: center;
  background: transparent;
  color: inherit;
  -moz-appearance: textfield;
}

.pb-qty-input::-webkit-outer-spin-button,
.pb-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pb-qty--lg {
  margin-bottom: 0.65rem;
}

.pb-qty--lg .pb-qty-btn,
.pb-qty--lg .pb-qty-input {
  height: 2.75rem;
}

.pb-qty--lg .pb-qty-btn {
  width: 2.75rem;
}

.pb-qty--lg .pb-qty-input {
  width: 3rem;
}

.pb-add-cart {
  min-height: 2.25rem;
  white-space: nowrap;
}

.pb-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

html[data-theme="dark"] .pb-product-card {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.12);
}

.pb-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.pb-product-card-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--printics-gray-100, #f1f5f9);
  overflow: hidden;
}

.pb-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-product-card-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.5rem;
}

.pb-product-card-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: #fbbf24;
  color: #1e293b;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.pb-product-card-body {
  padding: 0.55rem 0.6rem 0.7rem;
}

.pb-product-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}

.pb-product-card-price {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--printics-gray-900, #0f172a);
}

.pb-product-card-price span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--printics-gray-500, #94a3b8);
}

.pb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-bottom: 0.5rem;
}

.pb-page-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.pb-page-btn:hover {
  border-color: var(--printics-primary);
  color: var(--printics-primary);
}

.pb-page-status {
  font-size: 0.9rem;
  color: var(--printics-gray-500, #94a3b8);
}

.pb-shop-empty {
  color: var(--printics-gray-500, #94a3b8);
  padding: 2rem 0;
}

/* Detail */
.pb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--printics-gray-500, #94a3b8);
  margin-bottom: 1rem;
}

.pb-breadcrumb a {
  color: var(--printics-primary);
  text-decoration: none;
  font-weight: 600;
}

.pb-breadcrumb-current {
  color: var(--printics-gray-700, #334155);
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pb-detail-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .pb-detail-grid {
    grid-template-columns: minmax(0, 28rem) minmax(16rem, 1fr);
    gap: 2rem;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .pb-detail-grid {
    grid-template-columns: minmax(0, 32rem) minmax(18rem, 1fr);
    gap: 2.5rem;
  }
}

.pb-detail-gallery {
  max-width: 32rem;
  width: 100%;
}

.pb-detail-main-img {
  border-radius: 16px;
  overflow: hidden;
  background: var(--printics-gray-100, #f1f5f9);
  aspect-ratio: 1;
  max-height: min(28rem, 70vh);
}

.pb-detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pb-detail-main-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #94a3b8;
}

.pb-detail-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.65rem 0 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.pb-detail-thumb {
  flex: 0 0 auto;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--printics-gray-100, #f1f5f9);
  cursor: pointer;
}

.pb-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pb-detail-thumb.is-active {
  border-color: var(--printics-primary);
}

.pb-detail-title {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.pb-detail-price {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.pb-detail-price span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--printics-gray-500, #94a3b8);
}

.pb-detail-sku {
  font-size: 0.82rem;
  color: var(--printics-gray-500, #94a3b8);
  margin: 0 0 1rem;
}

.pb-material-picker {
  margin: 0 0 1.15rem;
}

.pb-material-picker-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--printics-gray-500, #94a3b8);
  margin: 0 0 0.5rem;
}

.pb-mat-open {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pb-mat-open:hover {
  border-color: var(--printics-primary, #0f766e);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.12);
}

.pb-mat-open-swatch {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
  background: #e2e8f0;
}

.pb-mat-open-swatch.is-empty {
  background: repeating-conic-gradient(#e2e8f0 0% 25%, #fff 0% 50%) 50% / 8px 8px;
}

.pb-mat-open-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pb-mat-open-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.pb-mat-open-hint {
  font-size: 0.75rem;
  color: var(--printics-gray-500, #94a3b8);
}

.pb-mat-modal .modal-content {
  border: none;
  border-radius: 16px;
}

.pb-mat-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.pb-mat-tab {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: inherit;
}

.pb-mat-tab.is-offerable {
  border-color: rgba(15, 118, 110, 0.45);
  background: #f0fdfa;
}

.pb-mat-tab.is-active {
  border-color: var(--printics-primary, #0f766e);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18);
  font-weight: 700;
}

.pb-mat-tab.is-empty-family {
  opacity: 0.65;
}

.pb-mat-tab-hint {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  color: var(--printics-primary, #0f766e);
  font-weight: 700;
}

.pb-mat-colors-heading {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.pb-mat-panel {
  display: none;
  margin-bottom: 1rem;
}

.pb-mat-panel.is-active {
  display: block;
}

.pb-mat-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pb-mat-swatch {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.4rem;
  border: 2px solid #adb5bd;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--swatch-bg, #e2e8f0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.pb-mat-swatch:hover {
  transform: scale(1.08);
}

.pb-mat-swatch.is-selected {
  border-color: var(--printics-primary, #0f766e);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
  transform: scale(1.18);
  z-index: 1;
}

.pb-mat-swatch.is-unavailable {
  cursor: pointer;
  opacity: 0.55;
  filter: grayscale(0.45);
  border-style: dashed;
  border-color: #94a3b8;
}

.pb-mat-swatch-x {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pb-mat-swatch-x::before,
.pb-mat-swatch-x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 2px;
  background: rgba(185, 28, 28, 0.85);
}

.pb-mat-swatch-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.pb-mat-swatch-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pb-mat-detail {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 0.85rem;
}

.pb-mat-detail-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .pb-mat-detail-grid {
    grid-template-columns: 7.5rem 1fr;
  }
}

.pb-mat-detail-imgs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pb-mat-detail-imgs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.pb-mat-detail-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  flex-shrink: 0;
}

.pb-detail-short {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--printics-gray-700, #334155);
}

.pb-detail-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pb-detail-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--printics-gray-700, #334155);
}

.pb-detail-facts i {
  color: var(--printics-primary);
  margin-top: 0.15rem;
}

.pb-detail-actions {
  margin-bottom: 1rem;
}

.pb-detail-cta {
  min-height: 3rem;
  border-radius: 12px;
  font-weight: 700;
}

.pb-detail-cta:disabled {
  opacity: 0.55;
}

.pb-detail-cta-note {
  font-size: 0.8rem;
  color: var(--printics-gray-500, #94a3b8);
  margin: 0.5rem 0 0;
  line-height: 1.4;
}

.pb-detail-back {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--printics-primary);
  text-decoration: none;
}

.pb-detail-desc,
.pb-related {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.pb-detail-desc-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--printics-gray-700, #334155);
  max-width: 48rem;
}

.pb-detail-desc-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 575.98px) {
  .pb-detail-actions {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin: 0 -0.25rem;
    padding: 0.75rem 0.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent, var(--bs-body-bg, #fff) 28%);
  }

  .pb-nav-fab-label {
    display: none;
  }

  .pb-nav-fab {
    padding: 0.3rem;
    border-radius: 50%;
  }
}

/* Dual-brand chrome (cart/checkout wanneer Printboard-regels aanwezig) */
.cart-dual-brand-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: color-mix(in srgb, var(--bs-body-bg, #fff) 92%, var(--printics-gray-100, #f1f5f9));
}

.cart-dual-brand-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 7rem;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.cart-dual-brand-side:hover {
  opacity: 1;
}

.cart-dual-brand-logo {
  max-height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.cart-dual-brand-logo--dark {
  display: none;
}

html[data-theme="dark"] .cart-dual-brand-logo--light {
  display: none;
}

html[data-theme="dark"] .cart-dual-brand-logo--dark {
  display: inline-block;
}

.cart-dual-brand-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.cart-dual-brand-tagline {
  font-size: 0.75rem;
  color: var(--printics-gray-500, #94a3b8);
  text-align: center;
}

.cart-dual-brand-divider {
  width: 1px;
  align-self: stretch;
  min-height: 2.5rem;
  background: rgba(15, 23, 42, 0.15);
}

html[data-theme="dark"] .cart-dual-brand-divider {
  background: rgba(148, 163, 184, 0.35);
}

.cart-dual-brand-info {
  color: var(--printics-gray-500, #94a3b8);
  padding: 0.25rem;
}

.cart-printboard-notice {
  font-size: 0.92rem;
}
