@media (max-width: 900px) {
  .marketing-section,
  .marketing-section.reverse {
    grid-template-columns: 1fr !important;
    gap: 30px;
    margin: 50px 0;
    padding: 0 20px;
  }

  .marketing-text,
  .marketing-visual {
    order: unset;
  }

  /* Force text first, image second on mobile */
  .marketing-section .marketing-text {
    order: 1;
  }

  .marketing-section .marketing-visual {
    order: 2;
  }

  .marketing-section.reverse .marketing-text {
    order: 1 !important;
  }

  .marketing-section.reverse .marketing-visual {
    order: 2 !important;
  }

  /* Center content on mobile */
  .marketing-text {
    text-align: center;
  }

  .marketing-text h2 {
    font-size: 24px;
  }

  .marketing-text p {
    font-size: 15px;
    max-width: 100%;
    margin: 0 auto;
  }

  .marketing-visual {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .marketing-visual img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

.logo-sub {
  font-size: var(--subtitle-size);
}


/* ==============================
   SHARED ADDRESS FIELDS (DELIVERY + INVOICE)
============================== */

.address-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 10px;
}

.address-fields input,
.address-fields select {
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: white;
    font-size: 14px;
    box-shadow: var(--shadow-light);
    outline: none;
    transition: 0.15s ease;
}

.address-fields input:focus,
.address-fields select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Full width fields */
.address-fields input[id$="_street"],
.address-fields select[id$="_country"] {
    grid-column: span 2;
}

/* Save address row */
.address-fields .save-address {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    cursor: pointer;
}

.address-fields .save-address input {
    accent-color: var(--primary);
}

/* ==============================
   CHECKOUT CONFIG LIST – CLEAN
============================== */

.checkout-config-list {
    list-style: none;          /* ❌ bolletjes weg */
    margin: 6px 0 8px 0;
    padding-left: 0;           /* ❌ standaard indent weg */
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
}

.checkout-config-list li {
    display: flex;
    gap: 6px;
    align-items: baseline;
    padding: 2px 0;
}

/* subtiel scheidingsteken i.p.v. bullet */
.checkout-config-list li::before {
    content: "–";
    color: var(--border);
    font-weight: 600;
}

/* label iets sterker */
.checkout-config-list strong {
    font-weight: 600;
    color: var(--text-main);
}


.checkout-config-list strong {
    font-weight: 500;
    color: #444;
}

/* ==============================
   WEB CATEGORY ASSIGN MODAL
============================== */

.modal-section {
    margin-bottom: 22px;
}

.modal-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

/* Product picker box */
.modal-product-picker {
    max-height: 260px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #f8faff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual selectable row */
.modal-product-picker .product-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    transition: 0.12s ease;
}

.modal-product-picker .product-item:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

/* Checkbox alignment */
.modal-product-picker input[type="checkbox"] {
    transform: scale(1.15);
    margin-right: 12px;
    accent-color: var(--primary);
}

/* Sticky footer feel */
.modal-footer {
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

/* Bulk category product states */
.product-item.has-category {
    opacity: 0.6;
    background: #f3f4f6;
}

.badge-muted {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

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

  .category-sidebar {
    display: none;
  }
}

/* =========================
   CATEGORY SIDEBAR
========================= */

.category-sidebar {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  padding: 16px;
  width: 260px;
  height: fit-content;
  position: sticky;
  top: 0;
}

.category-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-strong, #111);
}

/* Tree structure */
#categoryTree ul {
  list-style: none;
  padding-left: 14px;
  margin: 4px 0;
}

#categoryTree li {
  margin: 2px 0;
}

/* Category label */
.category-label {
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-normal, #333);
  transition: background 0.15s ease, color 0.15s ease;
}

.category-label:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Active category */
.category-label.active {
  background: var(--primary-soft, rgba(59,130,246,0.12));
  color: var(--primary, #2563eb);
  font-weight: 500;
}

/* =========================
   COLLAPSIBLE CATEGORIES
========================= */

.category-parent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Arrow */
.category-parent::after {
  content: "›";
  font-size: 14px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

/* Rotate arrow when open */
li.open > .category-parent::after {
  transform: rotate(90deg);
  opacity: 1;
}

/* Collapsible container */
.category-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  margin-left: 6px;
}

.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 6px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 8px;
    min-width: 220px;
    z-index: 1000;
}

.actions-dropdown-menu.open {
    display: block;
}

.actions-dropdown-menu button {
    width: 100%;
    border: none;
    background: none;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
}

.actions-dropdown-menu button:hover {
    background: #f3f4f6;
}

.actions-dropdown-menu .danger {
    color: #d11a2a;
}

.actions-dropdown-menu hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 6px 0;
}
.remove-line-btn {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #dc2626;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 999px;
    padding: 2px 6px;
    transition: 0.15s ease;
}

.remove-line-btn:hover {
    background: #fee2e2;
    transform: scale(1.1);
}
/* Remove number input arrows (Chrome, Safari, Edge) */
.checkout-qty-input::-webkit-outer-spin-button,
.checkout-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.checkout-qty-input {
    -moz-appearance: textfield;
}



/* Open state */
li.open > .category-children {
  max-height: 600px; /* large enough */
}

/* Indentation polish */
.category-children .category-label {
  font-size: 12.5px;
  padding-left: 18px;
}

.pretty-filters {
  margin-bottom: 42px;
  position: relative;
}

.pretty-filters::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148,163,184,0.35),
    transparent
  );
}
/* =========================
   MOBILE CATEGORY DRAWER
========================= */

.mobile-category-btn {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-light);
}

@media (max-width: 900px) {
  .mobile-category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}

/* Overlay */
.category-drawer-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  z-index: 200;
}

.category-drawer-overlay.open {
  display: flex;
}

/* Drawer */
.category-drawer {
  width: 100%;
  max-height: 85vh;
  background: var(--glass);
  backdrop-filter: blur(18px);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  box-shadow: 0 -20px 40px rgba(15,23,42,0.35);
  transform: translateY(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-ok {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fff7d6;
  color: #92400e;
}

.supplier-block {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  background: #fff;
}

.supplier-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

.checkout-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
  text-align: right;
}


.category-drawer-overlay.open .category-drawer {
  transform: translateY(0);
}

.modal.hidden { display: none; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    pointer-events: all;
}

.modal.hidden .modal-backdrop {
    pointer-events: none;
}

.modal-content {
    position: relative;
    max-width: 420px;
    margin: 10vh auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    z-index: 1;
}

.modal-content input,
.modal-content select {
    width: 100%;
    margin-bottom: 10px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#addressModal .modal-content {
    background: var(--glass);
    backdrop-filter: blur(22px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    max-width: 460px;
}

#addressModal h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

#addressModal input,
#addressModal select {
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    box-shadow: var(--shadow-light);
}

#addressModal input:focus,
#addressModal select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

#addressModal .modal-actions {
    margin-top: 18px;
}

#addressModal button {
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

#addressCancelBtn {
    background: var(--border);
}

#addressSaveBtn {
    background: var(--primary);
    color: white;
}

/* ==============================
   ADDRESS TOOLBAR (DELIVERY)
============================== */

.address-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Make select not push buttons down */
.address-toolbar select {
    flex: 1;
    margin-bottom: 0;
}

/* Shared button style */
.address-toolbar button {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: all 0.15s ease;
    white-space: nowrap;
}

/* Hover polish */
.address-toolbar button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* New = subtle positive */
#deliveryNewBtn {
    background: var(--primary-soft);
    color: var(--primary-dark);
    border-color: transparent;
}

/* Edit = neutral glass */
#deliveryEditBtn {
    background: white;
}

/* Disabled (e.g. default address edit if you add later) */
.address-toolbar button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
#invoiceNewBtn {
    background: #f0f7ff;
    color: var(--primary-dark);
}

#invoiceEditBtn {
    background: white;
}

/* ==============================
   GLOBAL OVERLAY SAFETY FIX
============================== */

/* overlays blokkeren standaard GEEN clicks */
.cart-drawer-overlay,
.mobile-menu-overlay,
.category-drawer-overlay,
.product-modal-overlay {
    pointer-events: none;
}

/* alleen wanneer open mogen ze clicks pakken */
.cart-drawer-overlay.open,
.mobile-menu-overlay.open,
.category-drawer-overlay.open,
.product-modal-overlay.open {
    pointer-events: auto;
}

.final-checkout-btn {
    position: relative;
    z-index: 5;
}

/* Mobile stacking */
@media (max-width: 600px) {
    .address-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .address-toolbar button {
        width: 100%;
    }
}


@media (max-width: 900px) {
  #filterCategorie {
    font-size: 16px;          /* voorkomt iOS zoom */
    padding: 14px 16px;
  }

  .filter-item label {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 600px) {
    .address-fields {
        grid-template-columns: 1fr;
    }

    .address-fields input[id$="_street"],
    .address-fields select[id$="_country"] {
        grid-column: span 1;
    }
}

/* ==================================
   ORDERLIST POLISH (OPTIONAL)
================================== */

.order-category {
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

.order-category h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

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

.order-items li {
    padding: 8px 10px;
    border-radius: 10px;
    background: white;
    margin-bottom: 6px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-items li:hover {
    background: var(--primary-soft);
}

.favorite-btn {
  position: absolute;
  top: 8px;
  left: 8px;        /* ← dit is de fix */
  border: none;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  pointer-events: auto;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
  color: #bbb;
  transition: .2s;
  z-index: 999999;
}

.favorite-btn.active {
  color: #e63946;
}

.favorite-btn:hover {
  transform:scale(1.15);
}

.favorite-btn:hover {
  transform: scale(1.15);
}

.favorite-btn.active {
  color: #e63946;
}

.product-image-wrapper {
  position: relative;
}


/* ==============================
   PRODUCT CATEGORY SELECT
============================== */

.table-category-select {

    margin-top: 6px;
    width: 100%;

    padding: 6px 10px;
    border-radius: 10px;

    border: 1px solid var(--border);
    background: white;

    font-size: 13px;
    font-weight: 500;

    box-shadow: var(--shadow-light);

    cursor: pointer;

    transition: 0.15s ease;
}

.table-category-select:hover {
    border-color: var(--primary);
}

.table-category-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-soft);
}

.web-category-badge {

    display: inline-block;

    background: var(--primary-soft);
    color: var(--primary-dark);

    font-size: 11px;
    font-weight: 600;

    padding: 4px 8px;
    border-radius: 999px;

    margin-bottom: 4px;
}

.top-nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  color: black;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f3f3f3;
}

.top-nav-dropdown:hover .dropdown-menu {
  display: block;
}
