/* =========================================================
   VG3D - OPGESCHOONDE STYLE.CSS
   Desktop: breed logo met knoppen in logo
   Mobiel: compact logo + hamburger menu
   ========================================================= */

:root {
  --bg: #ffffff;
  --topbar: #0f172a;
  --text: #000000;
  --heading: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --soft-blue: #eef5ff;
  --soft-blue-2: #e4efff;
  --primary: #163ea8;
  --primary-hover: #0f2d7a;
  --danger: #ef4444;
  --success: #16a34a;
  --blue-border: #7aa7ff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.05), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 12px 24px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.06);
  --max: 1180px;
}

/* RESET */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.container,
.topbar-inner,
.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* TYPOGRAFIE */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', 'Inter', Arial, sans-serif;
  color: var(--heading);
  letter-spacing: -0.02em;
}

p,
span,
li,
label,
small,
.feature-list,
.contact-list {
  color: var(--text);
  line-height: 1.65;
}

/* FORMULIEREN EN KNOPPEN */

button,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  background: var(--primary);
  color: #ffffff;
  transition: 0.2s ease;
}

button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px;
  font-size: 15px;
  background: #ffffff;
  color: #111827;
  outline: none;
  margin-bottom: 12px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select option {
  color: #000000;
  background: #ffffff;
}

/* =========================================================
   HEADER - DESKTOP
   ========================================================= */

.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--topbar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  padding-top: 12px;
  padding-bottom: 14px;
}

.brand-link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: block;
  width: 520px;
  max-width: 90vw;
  height: auto;
  padding: 0;
  border-radius: 18px;
}

.brand-text,
.menu-toggle,
.mobile-menu-btn {
  display: none;
}

.main-nav {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: auto !important;
}

.main-nav button {
  color: #ffffff;
  font-weight: 500;
  background: var(--primary);
  box-shadow: none;
  padding: 10px 14px;
  white-space: nowrap;
  min-width: unset !important;
}

.main-nav button:hover {
  background: var(--primary-hover);
}

.cart-top-button {
  position: relative;
  padding: 10px 14px !important;
  border-radius: 999px !important;
}

.cart-top-button i {
  color: #ffffff !important;
  font-size: 20px;
}

#cartCount {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.site-main {
  padding-top: 235px;
  background: #ffffff;
}

.page {
  padding-bottom: 34px;
}

.card,
.hero-copy,
.hero-visual,
.request-intro,
.request-form-card,
.contact-card-modern,
.admin-sub-card,
.admin-panel-card,
.admin-stats-card,
.admin-orders-card,
.cart-panel,
.order-card,
.stat-box,
.portfolio-card,
.featured-card,
.featured-home-card,
.product-grid > *,
#products > div,
#adminProducts > div,
#adminPortfolioItems > div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.hero-copy,
.hero-visual,
.request-intro,
.request-form-card,
.contact-card-modern,
.admin-sub-card,
.cart-panel,
.order-card {
  padding: 24px;
}

.hero-grid,
.request-grid,
.contact-grid-modern,
.admin-split-grid,
.tech-shop-layout,
.services-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.request-grid,
.contact-grid-modern,
.admin-split-grid {
  grid-template-columns: 1fr 1fr;
}

.tech-shop-layout {
  grid-template-columns: 1fr;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.center-head {
  display: block;
  text-align: center;
}

/* =========================================================
   HOME / HERO
   ========================================================= */

.eyebrow,
.badge,
.portfolio-category-badge,
.new-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff !important;
  border: none;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.hero-actions,
.admin-actions,
.admin-actions-inline,
.portfolio-actions,
.socials-modern,
.footer-socials,
.orders-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 22px;
}

.hero-logo-preview {
  width: 100%;
  min-height: 260px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.stat-box {
  padding: 16px;
  text-align: center;
}

.stat-box strong {
  display: block;
  color: #000000;
  font-size: 18px;
}

.stat-box span {
  color: #000000;
  font-size: 13px;
}

.service-card {
  background: linear-gradient(180deg, var(--soft-blue) 0%, var(--soft-blue-2) 100%) !important;
  border: 2px solid var(--blue-border) !important;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.08) !important;
}

.service-card h3,
.service-card p {
  color: #000000;
}

/* =========================================================
   SCROLL GALLERY / UITGELICHT
   ========================================================= */

.scroll-gallery {
  margin-top: 22px;
  width: 100%;
  overflow: hidden;
}

.scroll-track {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.scroll-track::-webkit-scrollbar {
  display: none;
}

.scroll-item {
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
}

.scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-home-section {
  padding: 22px 0 !important;
}

.featured-home-section .container,
.featured-portfolio {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.featured-home-grid,
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
}

.featured-home-card,
.featured-card {
  overflow: hidden;
  border-radius: 18px !important;
  transition: transform 0.2s ease;
}

.featured-home-card:hover,
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.featured-home-card img,
.featured-card img {
  width: 100%;
  height: auto;
  max-height: 190px !important;
  object-fit: contain;
  background: #f4f8ff;
  cursor: pointer;
  border-radius: 16px;
}

.featured-home-content,
.featured-card {
  padding: 14px !important;
}

.featured-home-content h3,
.featured-card h3 {
  font-size: 17px !important;
  margin-top: 10px;
  margin-bottom: 6px !important;
}

.featured-home-content p,
.featured-card p {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.featured-portfolio {
  margin-bottom: 28px;
}

.featured-portfolio > h3 {
  margin-top: 0;
  font-size: 24px;
}

/* =========================================================
   PRODUCTEN / WEBSHOP
   ========================================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-grid > *,
#products > div,
#adminProducts > div,
#adminPortfolioItems > div {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  padding: 16px;
}

.product-grid img,
#products img,
#adminProducts img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}

.product-grid > div:hover,
.portfolio-card:hover,
.featured-home-card:hover {
  transform: translateY(-4px);
  transition: 0.25s ease;
  box-shadow: var(--shadow-hover);
}

.price,
.product-modal-price {
  display: inline-block;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

#products button,
#adminProducts button {
  width: 100%;
}

#products .product-card button {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  padding: 9px 12px !important;
  border-radius: 12px !important;
}

.product-like-row {
  margin: 10px 0;
}

.like-btn {
  width: 100%;
  background: #fff0f3 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
  font-weight: 600 !important;
}

.like-btn:hover {
  background: #ffe4e6 !important;
}

.like-btn.liked {
  background: #e11d48 !important;
  color: #ffffff !important;
}

/* Productdetail */

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.product-detail-image,
.product-detail-info {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.product-detail-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

/* Kleurkeuze */

.product-personalize-box h3 {
  margin-top: 0;
}

.part-color-row {
  margin-bottom: 24px !important;
}

.part-color-row strong {
  display: block !important;
  margin-bottom: 10px !important;
}

.part-color-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 38px) !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  width: fit-content !important;
}

.color-grid-item,
.part-color-grid .color-grid-item {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  border: 2px solid #ffffff !important;
  padding: 0 !important;
  box-shadow: 0 2px 7px rgba(0,0,0,0.22) !important;
}

.color-grid-item.selected,
.part-color-grid .color-grid-item.selected {
  outline: 4px solid var(--primary) !important;
  outline-offset: 3px !important;
  transform: scale(1.08) !important;
}

.selected-color-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 6px;
}

.open-color-grid-btn,
.color-grid-popup,
.color-options {
  display: none !important;
}

/* =========================================================
   CATEGORIEËN / PORTFOLIO
   ========================================================= */

.portfolio-layout {
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  gap: 26px !important;
  align-items: start !important;
}

.portfolio-sidebar {
  width: 230px !important;
  position: sticky !important;
  top: 240px !important;
  background: #ffffff;
  border: 1px solid #dbe7ff;
  border-radius: 18px;
  padding: 18px;
}

.portfolio-category-menu {
  display: grid !important;
  gap: 10px !important;
}

.portfolio-category-menu button {
  width: 100% !important;
  justify-content: flex-start !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  padding: 9px 12px !important;
  border-radius: 12px !important;
  background: #eef5ff !important;
  color: var(--primary) !important;
  border: 1px solid #cfe0ff !important;
  box-shadow: none !important;
  text-align: left !important;
}

.portfolio-category-menu button:hover,
.portfolio-category-menu button.active {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.portfolio-category-menu button i {
  font-size: 0.95rem !important;
  color: inherit !important;
}

.portfolio-content {
  min-width: 0 !important;
}

.portfolio-items-grid {
  column-count: 3;
  column-gap: 20px;
}

.portfolio-card {
  break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
  min-width: 260px !important;
  padding: 16px;
  border-radius: 18px;
  overflow: hidden;
}

.portfolio-card img,
#portfolioItems img,
#adminPortfolioItems img {
  width: 100%;
  height: auto !important;
  max-height: 420px;
  object-fit: contain !important;
  border-radius: 16px;
  margin-bottom: 14px;
  cursor: pointer;
}

.watermark-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.watermark-image-wrap::after {
  content: "VG3D";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  pointer-events: none;
}

/* Admin categorieknoppen */

.category-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}

.category-quick-buttons button {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  background: #eef5ff !important;
  color: var(--primary) !important;
  border: 1px solid #cfe0ff !important;
  box-shadow: none !important;
}

.category-quick-buttons button:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.category-suggestions,
.category-combo,
#productCategorySuggestions {
  display: none !important;
}

/* =========================================================
   CHECKOUT
   ========================================================= */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.checkout-form-card,
.checkout-summary-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.grand-total {
  font-size: 22px;
  font-weight: 800;
  margin-top: 24px;
}

#shippingAddressFields {
  margin-bottom: 12px;
}

/* =========================================================
   ADMIN / ORDERS / STATS
   ========================================================= */

.admin-tabs,
.orders-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.admin-tab {
  background: #eef5ff !important;
  color: var(--primary) !important;
  border: 1px solid #cfe0ff !important;
}

.admin-tab.active,
.orders-tab.active {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.admin-tab-panel.hidden {
  display: none !important;
}

.product-options-admin {
  padding: 16px;
  border-radius: 16px;
  background: #f4f8ff;
  border: 1px solid #dbe7ff;
  margin-bottom: 14px;
}

.option-check,
.featured-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000000;
  margin-bottom: 10px;
  font-weight: 600;
}

.option-check input,
.featured-check input {
  width: auto;
  margin: 0;
}

.order-card {
  margin-bottom: 16px;
}

.order-top,
.order-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-section {
  margin-top: 18px;
}

.order-section-title {
  font-weight: 800;
  color: #000000;
  margin-bottom: 12px;
}

.order-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: #000000;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stats-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.stats-list {
  display: grid;
  gap: 10px;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: #000000;
}

.stats-row-large {
  display: block;
}

/* =========================================================
   MODAL / CART / LIGHTBOX
   ========================================================= */

.product-modal:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  overflow: hidden !important;
  padding: 12px !important;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.72);
}

.product-modal-content {
  height: calc(100dvh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 0 auto !important;
  background: #ffffff;
  border-radius: 24px;
  max-width: 1000px;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-modal-image-wrap {
  background: #f4f8ff;
  padding: 30px;
}

.product-modal-info {
  padding: 40px;
}

.product-modal-close {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 100000 !important;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 24px;
}

.cart-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 380px !important;
  max-width: 92vw !important;
  height: 100vh !important;
  background: #ffffff !important;
  z-index: 100000 !important;
  box-shadow: -12px 0 30px rgba(0,0,0,0.18) !important;
  padding: 22px !important;
  overflow-y: auto !important;
}

.cart-sidebar.hidden {
  display: none !important;
}

.cart-sidebar-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 18px !important;
}

.cart-sidebar-close {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
}

.cart-item,
#cart > div,
#cartSidebarItems > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.cart-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: #000000;
  padding-top: 12px;
}

.cart-personalization {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #111827;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.hidden {
  display: none !important;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 20px;
  margin: 0 auto 12px;
}

.lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 26px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  font-size: 38px;
  background: rgba(15, 23, 42, 0.75);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

/* =========================================================
   FOOTER / WHATSAPP / ANIMATIES
   ========================================================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: all 0.2s ease;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  background: var(--topbar);
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a,
.footer-copy,
.footer-follow,
.footer-socials a,
.footer-socials i {
  color: #ffffff !important;
}

.footer-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-socials a {
  font-size: 24px;
  transition: 0.2s ease;
}

.flying-cart-image {
  position: fixed;
  z-index: 999999;
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
  transition:
    left 2.4s cubic-bezier(.12,.82,.22,1),
    top 2.4s cubic-bezier(.12,.82,.22,1),
    width 2.4s ease,
    height 2.4s ease,
    opacity 2.4s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

/* =========================================================
   RESPONSIVE - DEFINITIEF OPGESCHOOND
   ========================================================= */

@media (max-width: 1000px) {
  .portfolio-items-grid {
    column-count: 2;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .request-grid,
  .contact-grid-modern,
  .admin-split-grid,
  .services-grid,
  .tech-shop-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 900px) {
  .portfolio-layout {
    grid-template-columns: 1fr !important;
  }

  .portfolio-sidebar {
    width: 100% !important;
    position: static !important;
  }

  .product-detail-grid,
  .product-modal-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .portfolio-items-grid {
    column-count: 1;
  }
}

/* =========================================================
   PRODUCTFOTO THUMBNAILS
   ========================================================= */

.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.product-thumb {
  width: 70px !important;
  height: 70px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 2px solid #e5e7eb !important;
  flex: 0 0 auto !important;
}

.product-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.product-thumb.active {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(22, 62, 168, 0.18) !important;
}

.product-modal-image-wrap > img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
  background: #f4f8ff;
}

/* =========================================================
   PRODUCTGRID FIX
   ========================================================= */

#products.product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 22px !important;
}

#products .product-card {
  max-width: 100% !important;
}

#products .product-card img {
  width: 100% !important;
  height: 230px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
}

/* =========================================================
   MOBIEL - DEFINITIEF
   ========================================================= */

@media (max-width: 720px) {
  .site-topbar {
    padding: 6px 10px !important;
  }

  .topbar-inner {
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 0 !important;
  }
  .mobile-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin-left: auto !important;
}

.mobile-menu-btn,
.mobile-cart-button {
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0 !important;
}

  .brand-link {
    width: auto !important;
    justify-content: flex-start !important;
  }

  .logo {
  width: 180px !important;
  max-width: 180px !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

  .mobile-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .mobile-menu-btn,
  .mobile-cart-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    font-size: 22px !important;
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    position: relative !important;
    z-index: 1000000 !important;
  }

  .mobile-cart-button span {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    background: #000 !important;
    color: #fff !important;
    font-size: 11px !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .main-nav {
    position: absolute !important;
    top: 66px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: auto !important;

    width: auto !important;
    max-width: none !important;
    height: auto !important;

    display: none !important;
    flex-direction: column !important;
    gap: 5px !important;

    background: #0f172a !important;
    padding: 8px !important;
    border-radius: 14px !important;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25) !important;

    transform: none !important;
    transition: none !important;

    z-index: 999999 !important;
  }

  .main-nav.open {
    display: flex !important;
  }

  .main-nav button {
    width: 100% !important;
    justify-content: flex-start !important;
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 8px !important;
    padding: 7px 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    min-height: 32px !important;
  }

  .main-nav button:hover {
    background: var(--primary) !important;
  }

  .cart-top-button {
    display: none !important;
  }

  .site-main {
    padding-top: 82px !important;
  }

  .container,
  .footer-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .site-main,
  .page,
  .container,
  .hero-section,
  .hero-grid,
  .hero-copy,
  .card {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .hero-copy,
  .hero-visual,
  .request-intro,
  .request-form-card,
  .contact-card-modern,
  .admin-sub-card,
  .cart-panel,
  .order-card,
  .checkout-form-card,
  .checkout-summary-card {
    padding: 16px !important;
  }

  .hero-copy h2 {
    font-size: 30px !important;
    line-height: 1.12 !important;
  }

  .hero-copy p {
    font-size: 18px !important;
    line-height: 1.55 !important;
  }

  .scroll-item {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
  }

  .cart-item,
  #cart > div,
  #cartSidebarItems > div,
  .order-top,
  .order-footer,
  .order-items li,
  .checkout-item {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .whatsapp-float {
    width: 62px;
    height: 62px;
    right: 16px;
    bottom: 16px;
  }
}
@media (min-width: 721px) {
  .mobile-actions,
  .mobile-menu-btn,
  .mobile-cart-button {
    display: none !important;
  }

  .topbar-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .main-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .cart-top-button {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 52px !important;
    height: 52px !important;
    margin-left: 0 !important;
  }

  .cart-top-button #cartCount {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
  }
}

/* === MOBIELE HEADER FIX - LAATSTE REGEL LATEN STAAN === */

@media (max-width: 720px) {
  .topbar-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .brand-link {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .logo {
    width: 185px !important;
    max-width: calc(100vw - 112px) !important;
    padding: 0 !important;
  }

  .mobile-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }

  .mobile-menu-btn,
  .mobile-cart-button {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
  }
}
@media (max-width: 720px) {
  .logo {
    width: 170px !important;
    max-width: 170px !important;
    height: auto !important;
  }
}
/* TEST LOGO MOBIEL */
@media (max-width: 720px) {
  .brand-link img.logo {
    width: 120px !important;
    max-width: 120px !important;
    height: auto !important;
  }
}
@media (max-width: 720px) {
  .mobile-cart-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .cart-top-button {
    display: none !important;
  }
}