/* === GLOBAL ACCENT THEME (GRAY) === */
/* === BEELDBEVEILIGING === */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto; /* behoud click/hover */
}

:root,
html[data-bs-theme="light"] {
  --bs-primary: #6b7280;
  --bs-primary-rgb: 107, 114, 128;
  --bs-primary-text-emphasis: #3f4652;
  --bs-primary-bg-subtle: #edf0f3;
  --bs-primary-border-subtle: #cfd5dc;

  --bs-info: #7b828f;
  --bs-info-rgb: 123, 130, 143;
  --bs-info-text-emphasis: #49505d;
  --bs-info-bg-subtle: #eef1f4;
  --bs-info-border-subtle: #d4dae0;

  --bs-link-color: #5c636f;
  --bs-link-color-rgb: 92, 99, 111;
  --bs-link-hover-color: #4b515b;
  --bs-link-hover-color-rgb: 75, 81, 91;
}

html[data-bs-theme="dark"] {
  --bs-primary: #8a909b;
  --bs-primary-rgb: 138, 144, 155;
  --bs-primary-text-emphasis: #d5dae2;
  --bs-primary-bg-subtle: #2a2e35;
  --bs-primary-border-subtle: #434a55;

  --bs-info: #959ca8;
  --bs-info-rgb: 149, 156, 168;
  --bs-info-text-emphasis: #d8dce4;
  --bs-info-bg-subtle: #2d3138;
  --bs-info-border-subtle: #49505c;

  --bs-link-color: #c2c8d2;
  --bs-link-color-rgb: 194, 200, 210;
  --bs-link-hover-color: #d5dbe4;
  --bs-link-hover-color-rgb: 213, 219, 228;
}

/* === NAVBAR === */
.navbar {
  backdrop-filter: none !important;
  background: linear-gradient(180deg, #f9fafb 0%, #f2f4f7 100%) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 1000;
}
html[data-bs-theme="dark"] .navbar {
  background: linear-gradient(180deg, #0f1113 0%, #16181b 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.navbar .nav-link {
  color: #1f2937 !important;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #5c636f !important;
  background-color: rgba(107, 114, 128, 0.12);
  text-decoration: none;
}
html[data-bs-theme="dark"] .navbar .nav-link { color: #f3f4f6 !important; }
html[data-bs-theme="dark"] .navbar .nav-link:hover,
html[data-bs-theme="dark"] .navbar .nav-link.active {
  color: #d5dbe4 !important;
  background-color: rgba(138, 144, 155, 0.22);
}
.dropdown-menu {
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-bs-theme="dark"] .dropdown-menu {
  background-color: #1e2124 !important;
  border-color: #2c2f32 !important;
}
html[data-bs-theme="dark"] .dropdown-menu .dropdown-item { color: #f1f3f5 !important; }
html[data-bs-theme="dark"] .dropdown-menu .dropdown-item:hover {
  background-color: rgba(138, 144, 155, 0.2) !important;
  color: #d5dbe4 !important;
}
html[data-bs-theme="dark"] .dropdown-divider { border-top-color: #3a3d40 !important; }
.navbar-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar-brand {
  letter-spacing: 1px;
}
.navbar-brand:hover img { transform: scale(1.05); opacity: 0.9; }

/* Center navbar brand on mobile, normal position on desktop */
@media (max-width: 991.98px) {
  .navbar-brand-mobile {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0 !important;
    order: -1;
  }
}

@media (min-width: 992px) {
  .navbar-brand-mobile {
    order: auto;
  }
}

/* Responsive logo sizes */
@media (max-width: 576px) {
  .navbar-brand img {
    width: 50px;
    height: auto;
  }
}

@media (min-width: 577px) and (max-width: 991px) {
  .navbar-brand img {
    width: 45px;
    height: auto;
  }
}

@media (min-width: 992px) {
  .navbar-brand img {
    width: 40px;
    height: auto;
  }
}

/* === BODY / THEMA === */
html { 
  overflow-y: scroll;
  scrollbar-width: none;
}
html::-webkit-scrollbar {
  display: none;
}
body { min-height: 100vh; }
html[data-bs-theme="light"] body { background-color: #f8f9fa; color: #1f2937; }
html[data-bs-theme="dark"] body { background-color: #121417; color: #f5f6f7; }
html[data-bs-theme="dark"] .form-control { background-color: #2a2d31; border-color: #444; color: #f1f3f5; }
html[data-bs-theme="dark"] .form-control::placeholder { color: #aaa; }

/* === ACCESSIBILITY / NEXT-GEN UX === */
.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.75rem;
  z-index: 5000;
  padding: 0.45rem 0.7rem;
  border-radius: 0.45rem;
  background: var(--bs-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: none;
}

:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.8);
  outline-offset: 2px;
}

.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.dropdown-item:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.22);
}

/* === SEARCH BOX === */
.search-container { position: relative; display: flex; justify-content: center; }
.search-results {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: var(--bs-body-bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  max-height: 350px;
  overflow-y: auto;
  display: none;
  animation: fadeIn 0.15s ease-out;
}
.search-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}
.search-results a:hover { background-color: rgba(59, 130, 246, 0.1); }
.search-results img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background-color: #f0f0f0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.search-results span {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-bs-theme="dark"] .search-results { background: #2a2d31; border-color: #3d3f42; }
html[data-bs-theme="dark"] .search-results a:hover { background: rgba(59, 130, 246, 0.15); }
html[data-bs-theme="dark"] .search-results img { background-color: #1f2124; border-color: #333; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-results .no-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background-color: #e5e7eb;
  color: #6b7280;
  font-size: 1.2rem;
  flex-shrink: 0;
}
html[data-bs-theme="dark"] .search-results .no-image {
  background-color: #1f2124;
  color: #9ca3af;
}

/* === 2026 MODERN LAYER === */
.my18-modern {
  --my18-ink: #1f2937;
  --my18-surface: #f6f7f4;
  --my18-panel: #ffffff;
  --my18-accent: #ff5b2e;
  --my18-accent-2: #0ea5a4;
  --my18-outline: rgba(31, 41, 55, 0.08);
  --my18-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--my18-ink);
}

html[data-bs-theme="dark"] .my18-modern {
  --my18-ink: #edf2f7;
  --my18-surface: #0e1318;
  --my18-panel: #141b22;
  --my18-outline: rgba(148, 163, 184, 0.2);
  --my18-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.my18-modern body,
body.my18-modern {
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 164, 0.14), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(255, 91, 46, 0.12), transparent 32%),
    linear-gradient(180deg, var(--my18-surface) 0%, rgba(248, 250, 252, 0.9) 100%);
}

html[data-bs-theme="dark"] body.my18-modern {
  background:
    radial-gradient(circle at 0% 0%, rgba(14, 165, 164, 0.2), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(255, 91, 46, 0.16), transparent 30%),
    linear-gradient(180deg, var(--my18-surface) 0%, #0b1117 100%);
}

.my18-modern .navbar {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  background: color-mix(in srgb, var(--my18-panel) 88%, transparent) !important;
  border-bottom: 1px solid var(--my18-outline);
}

.my18-modern .navbar .nav-link {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.my18-modern .navbar .nav-link.active,
.my18-modern .navbar .nav-link:hover {
  color: var(--my18-accent) !important;
  background: color-mix(in srgb, var(--my18-accent) 12%, transparent);
}

.my18-modern .app-shell {
  position: relative;
  /* geen z-index: Bootstrap modal backdrop heeft anders hogere z-index
     dan de hele app-shell, waardoor modals achter de overlay verdwijnen. */
}

.my18-modern .app-shell .card,
.my18-modern .dropdown-menu,
.my18-modern .table-responsive,
.my18-modern .pagination-shell,
.my18-modern .alert {
  background: color-mix(in srgb, var(--my18-panel) 92%, transparent);
  border-color: var(--my18-outline);
  box-shadow: var(--my18-shadow);
}

.my18-modern .app-shell h1,
.my18-modern .app-shell h2,
.my18-modern .app-shell h3,
.my18-modern .app-shell h4,
.my18-modern .navbar-brand {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

.my18-modern .btn-primary,
.my18-modern .page-item.active .page-link {
  border-color: transparent;
  background: linear-gradient(120deg, var(--my18-accent) 0%, #ff7c43 100%);
}

.my18-modern .btn-outline-primary {
  border-color: color-mix(in srgb, var(--my18-accent) 42%, #94a3b8);
  color: color-mix(in srgb, var(--my18-accent) 78%, #111827);
}

.my18-modern .btn-outline-primary:hover {
  background: color-mix(in srgb, var(--my18-accent) 15%, transparent);
  border-color: var(--my18-accent);
  color: var(--my18-accent);
}

.my18-modern .search-results {
  width: min(360px, calc(100vw - 2rem));
  border-radius: 0.9rem;
  border-color: var(--my18-outline);
  box-shadow: var(--my18-shadow);
}

.my18-modern #scrollTopBtn {
  border: 1px solid var(--my18-outline);
  background: color-mix(in srgb, var(--my18-panel) 90%, transparent);
  backdrop-filter: blur(8px);
}

.my18-modern .app-shell .card,
.my18-modern .app-shell .table-responsive,
.my18-modern .app-shell .alert,
.my18-modern .dropdown-menu {
  animation: my18RiseIn 300ms ease-out;
}

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

@media (max-width: 991.98px) {
  .my18-modern .navbar {
    background: color-mix(in srgb, var(--my18-panel) 94%, transparent) !important;
  }

  .my18-modern .app-shell {
    margin-top: 0.75rem;
  }
}

/* === NAVBAR POLISH (non-breaking) === */
.navbar {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.navbar .nav-link {
  position: relative;
  padding: 0.45rem 0.72rem;
  border-radius: 0.5rem;
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  font-weight: 700;
}

.navbar .nav-link.active::after,
.navbar .nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.16rem;
  height: 2px;
  border-radius: 10px;
  background: currentColor;
  opacity: 0.45;
}

.search-container {
  width: min(320px, 100%);
  gap: 0.4rem !important;
}

#navbarSearch {
  border-radius: 0.55rem;
  border-color: var(--bs-border-color);
}

#navbarSearch:focus {
  box-shadow: 0 0 0 0.18rem rgba(var(--bs-primary-rgb), 0.18);
}

.search-results {
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  margin-top: 0.45rem;
  border-radius: 0.65rem;
  border-color: var(--bs-border-color);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.search-results .navbar-search-item {
  border: 0;
  border-bottom: 1px solid var(--bs-border-color);
  padding: 0.55rem 0.65rem;
}

.search-results .navbar-search-item:last-child {
  border-bottom: 0;
}

.ai-assistant-panel {
  border: 1px solid var(--bs-border-color);
  border-radius: 0.7rem;
  padding: 0.6rem;
  margin: 0.5rem;
  background: var(--bs-tertiary-bg);
}

.ai-assistant-header {
  color: var(--bs-emphasis-color);
}

.ai-assistant-message {
  font-size: 0.86rem;
  line-height: 1.35;
}

.ai-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  max-height: 220px;
  overflow: auto;
  padding-right: 0.2rem;
}

.ai-chat-msg {
  display: flex;
}

.ai-chat-msg span {
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border-radius: 0.65rem;
  max-width: 92%;
  line-height: 1.3;
}

.ai-chat-msg.user {
  justify-content: flex-end;
}

.ai-chat-msg.user span {
  background: rgba(var(--bs-primary-rgb), 0.15);
  color: var(--bs-emphasis-color);
}

.ai-chat-msg.assistant {
  justify-content: flex-start;
}

.ai-chat-msg.assistant span {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
}

.ai-chat-empty {
  color: var(--bs-secondary-color);
  font-size: 0.8rem;
  padding: 0.2rem 0.1rem;
}

.ai-typing {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.1rem;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bs-secondary-color);
  opacity: 0.5;
  animation: aiTyping 1s infinite ease-in-out;
}

.ai-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiTyping {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.ai-results-divider {
  border-top: 1px dashed var(--bs-border-color);
  margin: 0.2rem 0.45rem 0;
}

.ai-assistant-also {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.ai-followup-chip {
  border-radius: 999px;
}

.ai-reco-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.ai-reco-card {
  display: block;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.6rem;
  padding: 0.45rem;
  background: var(--bs-body-bg);
}

.ai-reco-card:hover {
  border-color: rgba(var(--bs-primary-rgb), 0.4);
  background: var(--bs-primary-bg-subtle);
}

.ai-reco-thumb {
  width: 52px;
  height: 36px;
  object-fit: cover;
  border-radius: 0.35rem;
  background: var(--bs-tertiary-bg);
}

.ai-reco-title {
  color: var(--bs-emphasis-color);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.ai-reco-subtitle {
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  line-height: 1.2;
}

.ai-reco-price {
  color: var(--bs-success-text-emphasis);
  font-size: 0.76rem;
  font-weight: 600;
}

.navbar-search-thumb {
  width: 46px;
  height: 32px;
  object-fit: cover;
  border-radius: 0.3rem;
  background: var(--bs-tertiary-bg);
}

.navbar-search-text {
  min-width: 0;
}

.navbar-search-title {
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-search-meta {
  font-size: 0.75rem;
}

@media (max-width: 991.98px) {
  .navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .search-container {
    width: 100%;
    margin-top: 0.35rem;
  }

  .navbar .nav-link {
    padding: 0.52rem 0.66rem;
  }
}


.news-readmore-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #2563eb; /* mooi MY18 blauw */
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.news-readmore-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

:root[data-bs-theme="dark"] .news-readmore-btn {
    background: #3b82f6;
}

:root[data-bs-theme="dark"] .news-readmore-btn:hover {
    background: #60a5fa;
}

/* =============================
   DARK MODE FIX – HOMEPAGE CARDS
   ============================= */

html[data-bs-theme="dark"] .home-card,
html[data-bs-theme="dark"] .brand-card,
html[data-bs-theme="dark"] .user-card {
    background-color: #1e1f22 !important;
    color: #e5e7eb !important;
    border-color: #2c2d31 !important;
}

html[data-bs-theme="dark"] .home-card p,
html[data-bs-theme="dark"] .brand-card p,
html[data-bs-theme="dark"] .user-card p {
    color: #bfc3c9 !important;
}

html[data-bs-theme="dark"] .home-card:hover,
html[data-bs-theme="dark"] .brand-card:hover,
html[data-bs-theme="dark"] .user-card:hover {
    background-color: #2a2c31 !important;
}


/* === SCROLL TO TOP === */
.scroll-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: max(30px, calc(37% - 600px + 30px));
  z-index: 999;
  font-size: 32px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.scroll-top-btn:hover { background-color: #2563eb; transform: scale(1.1); }

/* === FOOTER === */
footer { transition: background-color 0.3s ease, color 0.3s ease; }
html[data-bs-theme="light"] footer { background-color: #f9fafb; color: #6b7280; border-top: 2px solid rgba(0, 0, 0, 0.05); }
html[data-bs-theme="dark"] footer { background-color: #1a1d20; color: #a1a1aa; border-top: 2px solid rgba(96, 165, 250, 0.25); }
html[data-bs-theme="dark"] footer a, html[data-bs-theme="dark"] footer span { color: #60a5fa; }


/* === COLLECTION / WISHLIST HEADERS === */
.collection-header, .wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.collection-header .header-left, .wishlist-header .header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.collection-header .share-buttons, .wishlist-header .share-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-icon {
  padding: 0.35rem 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  font-size: 1rem;
}

/* === MOBILE-FIRST === */
@media (max-width: 576px) {
  .navbar .form-select-sm,
  .navbar .btn-sm { font-size: 0.85rem; padding: 0.25rem 0.4rem; }
  .navbar-brand img { height: 30px; }
  footer { font-size: 0.8rem; line-height: 1.3; }
  .collection-header, .wishlist-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .collection-header .header-right,
  .wishlist-header .header-right { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 992px) { main.container { max-width: 1100px; } }

textarea {
  min-height: 150px;
  font-family: "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
}

emoji-picker {
  --emoji-size: 1.4rem;
  --category-font-size: 0.85rem;
}

.btn-outline-primary:focus, .btn-outline-danger:focus {
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

[data-bs-theme="dark"] #pricewatch-panel .card-body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.home-card,
.brand-card,
.user-card {
    cursor: pointer;
    touch-action: manipulation;   /* voorkomt double-tap delay */
    -webkit-tap-highlight-color: transparent;
}

/* ===========================
   DARK MODE – consistent cards
   =========================== */

:root[data-bs-theme="dark"] .home-card,
:root[data-bs-theme="dark"] .brand-card,
:root[data-bs-theme="dark"] .user-card,
:root[data-bs-theme="dark"] .catalog-card,
:root[data-bs-theme="dark"] .model-card,
:root[data-bs-theme="dark"] .grid-card {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #f3f4f6 !important;
}

:root[data-bs-theme="dark"] .home-card p,
:root[data-bs-theme="dark"] .brand-card p,
:root[data-bs-theme="dark"] .user-card p,
:root[data-bs-theme="dark"] .catalog-card p,
:root[data-bs-theme="dark"] .model-card p,
:root[data-bs-theme="dark"] .grid-card p {
    color: #9ca3af !important;
}

:root[data-bs-theme="dark"] .home-card img,
:root[data-bs-theme="dark"] .catalog-card img,
:root[data-bs-theme="dark"] .model-card img,
:root[data-bs-theme="dark"] .grid-card img {
    background: #111827 !important;
}

/* Info cards used on profile pages (contact / trade safely) */
.info-card { background-color: #f8f9fa; }
:root[data-bs-theme="dark"] .info-card {
  background-color: #1e1f22 !important;
  color: #e5e7eb !important;
  border-color: #2c2d31 !important;
}
:root[data-bs-theme="dark"] .info-card p,
:root[data-bs-theme="dark"] .info-card small {
  color: #bfc3c9 !important;
}

/* ============================================
   GLASS BOUNCY SCROLL BUTTON
   ============================================ */

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    /* glass look */
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);

    color: #111827;
    cursor: pointer;

    box-shadow:
        0 4px 20px rgba(0,0,0,0.35),
        inset 0 0 6px rgba(255,255,255,0.25);

    opacity: 0;
    transform: translateY(20px) scale(0.7);
    pointer-events: none;

    transition: opacity .30s ease, transform .35s cubic-bezier(.175, .885, .32, 1.275);
    /* ↑ cubic-bezier = bouncy easing */
    z-index: 99999;
}

#scrollTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Tap bounce */
#scrollTopBtn:active {
    transform: scale(0.82) translateY(4px);
    transition: transform .12s ease-out;
}

/* Dark mode glass */
:root[data-bs-theme="dark"] #scrollTopBtn {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.25);
  color: #eaeaea;
}

/* Mobile tuning */
@media (max-width: 576px) {
    #scrollTopBtn {
        width: 46px;
        height: 46px;
        font-size: 22px;
        bottom: 16px;
        right: 16px;
    }
}

.card .stretched-link {
    z-index: 1;       /* link blijft klikbaar */
}

.card .btn {
    position: relative;
    z-index: 2;       /* knop staat boven de stretched link */
}


/* --- NEWS DETAIL MODEL CARDS --- */

.news-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.news-model-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.news-model-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: #fafafa;
}

.news-model-card-body {
    padding: 0.9rem 1rem;
}

.news-model-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2rem;
    min-height: 2.4rem;
}

.news-model-card-code {
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.3rem;
    margin-bottom: 0.6rem;
}

.news-model-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
}

/* ---------- Linked Models Section ---------- */

.linked-models {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    padding-bottom: .4rem;
    margin-bottom: 1.4rem;
}

.linked-models-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.linked-model-card {
    background: var(--card-bg, #fff);
    border-radius: .6rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.linked-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}

.linked-model-image-wrapper {
    background: #f7f7f7;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linked-model-image-wrapper img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.linked-model-info {
    padding: .8rem 1rem;
}

.model-title {
    font-size: .9rem;
    font-weight: 600;
    min-height: 2.2rem;
}

.model-code {
    font-size: .75rem;
    color: #555;
    margin-top: .2rem;
}

.btn-xs {
    font-size: .75rem;
    padding: .25rem .55rem;
}


