/**
 * KippersHobby — mobiele shop-overrides (xs only)
 *
 * Regels:
 * - Vrijwel alle regels in @media (max-width: 767px).
 * - Uitzonderingen buiten xs: .mobiel-bestel-toast { display:none } (rotatie-veiligheid)
 *   en een kleine @media (min-width: 768px) voor desktop-spacing uitlog-icoon.
 * - Geen wijzigingen aan bootstrap.css; dit bestand laadt ná de overige shop-CSS.
 *
 * Roadmap: Stap 0–6 · header xs-compact (wagentje + bedrag één regel).
 */

/* Stap 3-veiligheid: toast standaard verborgen (ook ≥768px / na rotatie) */
.mobiel-bestel-toast {
  display: none;
}

@media (max-width: 767px) {

  /* ------------------------------------------------------------------ */
  /* Stap 1: zoekknop + zoekveld aantikbaar (≥44px)                     */
  /* ------------------------------------------------------------------ */
  #searchForm .search-submit-xs {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    line-height: 1.2;
  }

  #searchForm #searchfor {
    min-height: 44px;
    font-size: 16px; /* voorkomt iOS-zoom bij focus */
  }

  /* ------------------------------------------------------------------ */
  /* Stap 2a: ALLE artikel_lijst — 1 kolom + footer vrij + touch ≥44    */
  /* 1 kolom voorkomt float-zigzag als footers ongelijk hoog worden     */
  /* (aktie/outlet/bulletin/moments + cardlijst)                        */
  /* ------------------------------------------------------------------ */

  /* Alleen productlijsten — niet .groepen_lijst (hoofdgroep-tegels blijven 2-koloms) */
  .artikel_lijst:not(.groepen_lijst) .row > [class*="col-xs-6"],
  .artikel_lijst:not(.groepen_lijst) .row > .col-xs-6 {
    width: 100% !important;
    max-width: 100%;
    float: none;
    clear: both;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Unlock legacy fixed height (bootstrap.css .artikel_lijst .panel-footer) */
  .artikel_lijst .panel-footer {
    height: auto !important;
    min-height: 0;
    overflow: visible !important;
    padding: 8px 10px 10px;
  }

  /* product-info was absolute onderin de 210px-footer — terug in de flow */
  .artikel_lijst .panel-footer .product-info {
    position: static !important;
    width: 100%;
    bottom: auto;
    left: auto;
    margin-top: 8px;
  }

  .artikel_lijst .winkelwagenInputVeld,
  .artikel_lijst .opBestellingAantalVeld {
    width: 3.75em;
    min-width: 56px;
    min-height: 44px;
    font-size: 16px;
    padding: 8px 6px;
    box-sizing: border-box;
  }

  .artikel_lijst .btn-card-winkelwagen,
  .artikel_lijst .btn-op-bestelling {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
  }

  /* Checkbox: 22px × scale(2) = 44px hit-area */
  .artikel_lijst .ww_box {
    width: 22px;
    height: 22px;
    transform: scale(2);
    transform-origin: center center;
    margin: 0 12px 0 6px;
  }

  /* ------------------------------------------------------------------ */
  /* Stap 2b: cardlijst — horizontale listview (foto | bestel+info)     */
  /* Professionele bestelstrook in lijn met winkelwagen-toolbar         */
  /* ------------------------------------------------------------------ */

  .artikel_lijst.cardlijst .product-card {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-bottom: 12px;
    border-color: #e5e7eb;
    border-radius: 6px;
    box-shadow: none;
  }

  .artikel_lijst.cardlijst .product-card .card-header,
  .artikel_lijst.cardlijst .product-card .panel-heading {
    flex: 0 0 100%;
    width: 100%;
    order: 1;
    height: auto !important;
    min-height: 0 !important;
    max-height: none;
    overflow: visible;
    padding: 10px 12px;
    text-align: left !important;
    background: #fff !important;
    border-bottom: 1px solid #eef1f5;
  }

  .artikel_lijst.cardlijst .product-card .card-header .panel-title,
  .artikel_lijst.cardlijst .product-card .panel-heading .panel-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
    height: auto !important;
    max-height: none;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
  }

  .artikel_lijst.cardlijst .product-card .artikel-merk {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
    text-transform: none;
    letter-spacing: 0.01em;
  }

  .artikel_lijst.cardlijst .product-card .card-body {
    flex: 0 0 32%;
    width: 32%;
    max-width: 32%;
    min-width: 0;
    order: 2;
    padding: 10px 8px 10px 12px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* Footer "uitpakken": info naast foto, bestelstrook full-width onderaan (zoals WW) */
  .artikel_lijst.cardlijst .product-card .card-footer,
  .artikel_lijst.cardlijst .product-card .panel-footer {
    display: contents;
  }

  .artikel_lijst.cardlijst img.article-small {
    height: 100px;
    max-width: 100%;
  }

  .artikel_lijst.cardlijst .product-card .subgroep-naam {
    height: auto;
    max-height: 2.4em;
    font-size: 11px;
    line-height: 1.25;
    margin-top: 6px;
    color: #9ca3af;
  }

  .artikel_lijst.cardlijst .product-card .product-info {
    flex: 0 0 68%;
    width: 68%;
    max-width: 68%;
    order: 3;
    margin-top: 0 !important;
    padding: 10px 12px 8px 8px;
    box-sizing: border-box;
  }

  .artikel_lijst.cardlijst .product-card .form-group {
    flex: 0 0 68%;
    width: 68%;
    max-width: 68%;
    order: 4;
    margin: 0 0 0 32%;
    padding: 0 12px 8px;
    box-sizing: border-box;
  }

  .artikel_lijst.cardlijst .product-card .product-order-strip,
  .artikel_lijst.cardlijst .product-card div[class^="regel"].product-order-strip,
  .artikel_lijst.cardlijst .product-card div[class^="regel"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    order: 5;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 16px;
    min-height: 0;
    margin: 0;
    padding: 10px 12px;
    background: #f8fafc;
    border: 0;
    border-top: 1px solid #eef1f5;
    border-radius: 0 0 6px 6px;
    box-sizing: border-box;
  }

  .artikel_lijst.cardlijst .product-card .product-order-qty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .artikel_lijst.cardlijst .product-card .product-order-qty-label {
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #6b7280;
  }

  .artikel_lijst.cardlijst .product-card .winkelwagenInputVeld,
  .artikel_lijst.cardlijst .product-card .opBestellingAantalVeld {
    flex: 0 0 auto;
    width: 64px;
    min-width: 64px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #111827;
    background: #fff !important;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
    font-variant-numeric: tabular-nums;
  }

  .artikel_lijst.cardlijst .product-card .btn-card-winkelwagen {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-end;
    min-width: 48px;
    min-height: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 6px;
    font-weight: 600;
  }

  .artikel_lijst.cardlijst .product-card .btn-op-bestelling {
    flex: 1 1 auto;
    align-self: flex-end;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    font-weight: 600;
  }

  .artikel_lijst.cardlijst .product-card .al-in-wagen {
    flex: 0 0 100%;
    margin: 0 0 2px;
  }

  .artikel_lijst.cardlijst .product-info .product-artnr-line,
  .artikel_lijst.cardlijst .product-info .product-ref-line,
  .artikel_lijst.cardlijst .product-info .product-adviesprijs {
    margin: 0 0 2px !important;
    font-size: 11px;
    line-height: 1.35;
    color: #6b7280;
  }

  .artikel_lijst.cardlijst .product-info .prijs {
    margin: 6px 0 2px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
  }

  .artikel_lijst.cardlijst .product-info .prijs-excl-btw {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
  }

  .artikel_lijst.cardlijst .product-info > p:not(.prijs):not(.product-artnr-line):not(.product-ref-line):not(.product-adviesprijs):not(.op-bestelling-mbh):not(.op-bestelling-levertijd) {
    margin: 0 0 4px;
    font-size: 12px;
    color: #4b5563;
  }

  .artikel_lijst.cardlijst .product-info .verkoop-info,
  .artikel_lijst.cardlijst .product-info img[src*="voorraad"],
  .artikel_lijst.cardlijst .product-info .voorraad {
    margin-top: 4px;
  }

  /* ------------------------------------------------------------------ */
  /* Stap 3: bevestiging bij de duim + "In winkelwagen"-indicatie       */
  /* Soft accent i.p.v. fel lightgreen-vlak                             */
  /* ------------------------------------------------------------------ */

  .artikel_lijst .article_ordered,
  .artikel_lijst div[class^="regel"].article_ordered,
  .artikel_lijst div[style*="lightgreen"],
  .artikel_lijst div[style*="LightGreen"] {
    background: #f4faf5 !important;
    box-shadow: inset 3px 0 0 #43a047;
  }

  /* Cardlijst: zachte kaart-rand i.p.v. alleen een groen footer-blok */
  .artikel_lijst.cardlijst .product-card:has(.article_ordered),
  .artikel_lijst.cardlijst .product-card:has(.al-in-wagen) {
    border-color: #b7dfb9;
    box-shadow: inset 3px 0 0 #43a047;
  }

  .artikel_lijst.cardlijst .product-card:has(.article_ordered) .card-footer > div[class^="regel"],
  .artikel_lijst.cardlijst .product-card:has(.al-in-wagen) .card-footer > div[class^="regel"],
  .artikel_lijst.cardlijst .product-card:has(.article_ordered) .product-order-strip,
  .artikel_lijst.cardlijst .product-card:has(.al-in-wagen) .product-order-strip {
    background: #f4faf5 !important;
    border-top-color: #c8e6c9;
    box-shadow: none;
  }

  .artikel_lijst .al-in-wagen {
    display: inline-flex;
    align-items: center;
    width: auto;
    flex: 0 0 auto;
    max-width: 100%;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #1b5e20;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 999px;
    padding: 4px 10px;
    margin: 0 0 8px;
    line-height: 1.2;
  }

  .mobiel-bestel-toast {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 16px;
    z-index: 1060; /* boven .selectie-stickybar (1040) */
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .mobiel-bestel-toast.has-stickybar {
    bottom: 72px;
  }

  .mobiel-bestel-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .mobiel-bestel-toast.is-success {
    background: #edf7ee;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
  }

  .mobiel-bestel-toast.is-error {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
  }

  /* Dubbele bevestiging vermijden: toast + badge volstaan op xs */
  body:has(#form_artikellijst) #resultmelding {
    display: none !important;
  }

  /* ------------------------------------------------------------------ */
  /* Stap 4: bulk-UI dempen bij ≤3 kaarten (class op #form_artikellijst) */
  /* Desktop (hidden-xs-blok) blijft volledig intact                     */
  /* ------------------------------------------------------------------ */

  #form_artikellijst.bulk-ui-dempen-xs .bulk-ui-xs-controls {
    display: none !important;
  }

  #form_artikellijst.bulk-ui-dempen-xs .ww_box {
    display: none !important;
  }

  /* ------------------------------------------------------------------ */
  /* Lijst-tools xs: sorteren/filter duidelijk; bulk optioneel inklapbaar */
  /* ------------------------------------------------------------------ */

  .lijst-tools-xs {
    float: none !important;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }

  .lijst-tools-xs-card {
    background: #f7f8f9;
    border: 1px solid #e1e5e8;
    border-radius: 6px;
    padding: 12px;
  }

  .lijst-tools-xs-sort {
    margin-bottom: 0;
  }

  .lijst-tools-xs-sort + .lijst-tools-xs-filters,
  .lijst-tools-xs-sort + .lijst-tools-xs-bulk,
  .lijst-tools-xs-filters + .lijst-tools-xs-bulk {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e1e5e8;
  }

  .lijst-tools-xs .curated-sort {
    float: none !important;
    display: block;
    width: 100%;
    margin: 0 !important;
  }

  .lijst-tools-xs .curated-sort label {
    display: block;
    margin: 0 0 6px 0 !important;
    font-size: 13px;
    font-weight: 600;
    color: #333;
  }

  .lijst-tools-xs .curated-sort-select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px;
    font-size: 16px; /* voorkomt iOS-zoom */
  }

  .lijst-tools-xs-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
  }

  .lijst-tools-xs-filters .uitloop-korting-toggle,
  .lijst-tools-xs-filters .op-voorraad-toggle {
    margin-left: 0 !important;
    min-height: 44px;
  }

  .lijst-tools-xs-bulk-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #337ab7;
  }

  .lijst-tools-xs-bulk-toggle .glyphicon {
    font-size: 12px;
    transition: transform 0.15s ease;
  }

  .lijst-tools-xs-bulk-toggle:not(.collapsed) .glyphicon {
    transform: rotate(180deg);
  }

  .lijst-tools-xs-bulk-hint {
    margin: 8px 0 10px;
    font-size: 13px;
    line-height: 1.35;
    color: #555;
  }

  .lijst-tools-xs-bulk-select {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .lijst-tools-xs-bulk .submit-button {
    min-height: 44px;
  }

  /* Checkboxen alleen zichtbaar als bulk-paneel open is */
  #form_artikellijst:not(:has(#lijst-tools-bulk-xs.in)) .ww_box {
    display: none !important;
  }

  /* Paginatie boven de lijst: compacter, minder “wat moet ik hiermee?” */
  #form_artikellijst > .resultaat-pagination:first-of-type {
    margin: 8px 0 12px;
  }

  #form_artikellijst > .resultaat-pagination:first-of-type .pagination {
    margin: 0;
  }

  #form_artikellijst > .resultaat-pagination:first-of-type .pagination > li > a,
  #form_artikellijst > .resultaat-pagination:first-of-type .pagination > li > span {
    padding: 6px 10px;
    font-size: 13px;
  }

  /* ------------------------------------------------------------------ */
  /* Stap 6: merk_bestellen / leverancier_bestellen — geen horiz. scroll */
  /* Behouden: omschr, bartnr (ref), prijs, actie. Bestelknop ≥44px.     */
  /* ------------------------------------------------------------------ */

  #supplier-order .table-responsive {
    overflow-x: visible;
    overflow-y: visible;
    border: 0;
  }

  #supplier-order .table {
    table-layout: fixed;
    width: 100%;
    margin-bottom: 0;
    font-size: 13px;
  }

  #supplier-order .so-col-artnr,
  #supplier-order .so-col-introductie,
  #supplier-order .so-col-ean,
  #supplier-order .so-col-voorraad {
    display: none !important;
  }

  /* Inline min-width op .col-introductie mag geen scroll forceren */
  #supplier-order .col-introductie {
    min-width: 0 !important;
    white-space: normal;
  }

  #supplier-order .so-col-omschr {
    width: 30%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
  }

  #supplier-order .so-col-bartnr {
    width: 18%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-size: 12px;
  }

  #supplier-order .so-col-prijs {
    width: 18%;
    white-space: nowrap;
    padding-left: 4px;
    padding-right: 4px;
  }

  #supplier-order .so-col-actie {
    width: 34%;
    text-align: right;
    vertical-align: middle;
    padding-left: 4px;
    padding-right: 4px;
  }

  #supplier-order .so-order-controls {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    border-radius: 6px;
    box-sizing: border-box;
  }

  #supplier-order .so-order-controls .product-order-qty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  #supplier-order .so-order-controls .product-order-qty-label {
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #6b7280;
  }

  #supplier-order .so-order-controls .order-qty-input {
    width: 64px !important;
    min-width: 64px;
    min-height: 40px;
    height: 40px;
    margin: 0;
    padding: 0 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #111827;
    background: #fff !important;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    box-sizing: border-box;
  }

  #supplier-order .order-btn {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 6px;
  }

  /* ------------------------------------------------------------------ */
  /* Artikeldetail:zelfde onderbalk (Aantal + winkelwagen)               */
  /* ------------------------------------------------------------------ */

  #artikelgegevens .product-order-strip--detail,
  .op-bestelling-detail .product-order-strip--detail {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 16px;
    width: 100%;
    margin: 8px 0 0;
    padding: 10px 12px;
    background: #f8fafc;
    border: 0;
    border-top: 1px solid #eef1f5;
    border-radius: 6px;
    box-sizing: border-box;
  }

  #artikelgegevens .product-order-strip-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px 16px;
    width: 100%;
    margin: 0;
  }

  #artikelgegevens .product-order-strip-form .form-group {
    margin: 0;
    flex: 1 1 auto;
    min-width: 120px;
  }

  #artikelgegevens .product-order-qty,
  .op-bestelling-detail .product-order-qty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  #artikelgegevens .product-order-qty-label,
  .op-bestelling-detail .product-order-qty-label {
    display: block;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #6b7280;
  }

  #artikelgegevens .cart-aantal-detail,
  .op-bestelling-detail .opBestellingAantalVeld {
    width: 64px;
    min-width: 64px;
    height: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0 4px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #111827;
    background: #fff !important;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
  }

  #artikelgegevens .btn-card-winkelwagen {
    margin-left: auto;
    align-self: flex-end;
    min-width: 48px;
    min-height: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 6px;
  }

  .op-bestelling-detail .btn-op-bestelling {
    flex: 1 1 auto;
    align-self: flex-end;
    min-height: 40px;
    border-radius: 6px;
  }

  /* ------------------------------------------------------------------ */
  /* Menu-navigatie xs: zoek volle breedte; Jouw week + hamburger 1 lijn */
  /* .header is al .row (full-bleed); geen extra -15px margin hier.      */
  /* ------------------------------------------------------------------ */

  .menu-navigatie .navbar {
    padding: 10px 0 4px !important;
  }

  .menu-navigatie .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .menu-navigatie .menu-xs-search {
    clear: both;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    /* zelfde horizontale inset als .header-top-nav; top-ruimte via .navbar */
    padding: 0 10px 6px;
  }

  /* bootstrap.css .search-form { bottom:10px } trekt de balk in de header */
  .menu-navigatie .menu-xs-search.search-form {
    position: static;
    bottom: auto;
    padding-top: 0;
  }

  .menu-navigatie .menu-xs-search #searchForm,
  .menu-navigatie .menu-xs-search #adv-search {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .menu-navigatie .menu-xs-search #adv-search .form-control {
    width: 100%;
  }

  .menu-navigatie .navbar-header.menu-xs-tools {
    float: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0 10px 2px;
  }

  /* Bootstrap clearfix-pseudo's worden flex-items en duwen de layout scheef */
  .menu-navigatie .navbar-header.menu-xs-tools:before,
  .menu-navigatie .navbar-header.menu-xs-tools:after {
    display: none;
    content: none;
  }

  .menu-navigatie .menu-xs-quicklinks {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .menu-navigatie .menu-xs-jouw-week,
  .menu-navigatie .menu-xs-nieuw {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 700;
    color: #0b58a2 !important;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .menu-navigatie .menu-xs-jouw-week .fa,
  .menu-navigatie .menu-xs-jouw-week .fas,
  .menu-navigatie .menu-xs-nieuw .fa,
  .menu-navigatie .menu-xs-nieuw .fas {
    margin-right: 0;
    font-size: 14px;
  }

  .menu-navigatie .navbar.menu-xs-tools .navbar-toggle,
  .menu-navigatie .navbar-header.menu-xs-tools .navbar-toggle {
    float: none;
    margin: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 12px;
    color: #333;
    font-size: 18px;
  }

  .menu-navigatie .menu-xs-tools .navbar-toggle .fa-bars {
    /* Zorg dat bars niet door caret-classes overschreven wordt */
    display: inline-block;
  }

  /* Uitgeklapt accordion-menu: Bootstrap -15px margins knippen tekst af
     (container-padding is al 0). Lijn uit met zoek / Jouw week (10px). */
  .menu-navigatie .container-fluid > .navbar-collapse,
  .menu-navigatie #menu-navigatie.navbar-collapse {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #d7dee8;
    box-shadow: none;
  }

  .menu-navigatie #menu-navigatie ul.navbar-nav.mobile {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 4px 0 8px !important;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
  }

  .menu-navigatie #menu-navigatie ul.mobile > li {
    float: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .menu-navigatie #menu-navigatie ul.mobile > li > a,
  .menu-navigatie #menu-navigatie ul.mobile > li > .mobile-toggle {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 12px 10px;
    border-left: 0 !important;
    color: #222 !important;
    text-decoration: none;
  }

  .menu-navigatie #menu-navigatie ul.mobile .mobile-submenu {
    margin: 0;
    padding: 0 0 4px;
  }

  .menu-navigatie #menu-navigatie ul.mobile .mobile-submenu > li > a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 10px 10px 22px;
    border-left: 0 !important;
    color: #333 !important;
  }

  /* ------------------------------------------------------------------ */
  /* Zijmenu-balk (Kaarten & Scrap e.d.): volle contentbreedte op xs      */
  /* Geneste .container + col-padding maakte de balk smaller dan content */
  /* ------------------------------------------------------------------ */

  /* Parent-kolom heeft 15px padding; productkaarten gaan via row -15 + pad 10
     tot ~10px van de viewport. Zelfde uitlijning voor deze balk. */
  .menumobile.container {
    width: auto !important;
    max-width: none !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .menumobile > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .menumobile > .row > [class*="col-"] {
    float: none;
    width: 100% !important;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .menumobile .panel-group,
  .menumobile .panel {
    margin-bottom: 10px;
  }

  .menumobile .panel {
    border-radius: 6px;
    overflow: hidden;
    border-color: #c5ccd6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }

  .menumobile .panel-heading {
    padding: 0;
    background: #f3f5f8;
  }

  .menumobile .panel-title {
    margin: 0;
    font-size: inherit;
  }

  /* Duidelijke disclosure-knop: label links, chevron rechts */
  .menumobile .menumobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    color: #1f2933 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
  }

  .menumobile .menumobile-toggle:hover,
  .menumobile .menumobile-toggle:focus {
    background: #e9eef4;
    text-decoration: none !important;
  }

  .menumobile .menumobile-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .menumobile .menumobile-toggle-label > .glyphicon {
    flex: 0 0 auto;
    opacity: 0.75;
  }

  .menumobile .menumobile-toggle-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menumobile .menumobile-toggle-chevron {
    flex: 0 0 auto;
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.15s ease;
  }

  .menumobile .menumobile-toggle:not(.collapsed) .menumobile-toggle-chevron,
  .menumobile .menumobile-toggle[aria-expanded="true"] .menumobile-toggle-chevron {
    transform: rotate(180deg);
  }

  /* ------------------------------------------------------------------ */
  /* Mobiele topbalk — zelfstandig blok (geen Bootstrap-navbar-patches)  */
  /* Achtergrond = inline kleur op .header-top; nav is transparant.       */
  /* ------------------------------------------------------------------ */

  .header-top {
    padding: 0 !important;
    /* .container heeft 15px padding; Bootstrap .row (-15px) maakt full-bleed.
       Niet margin:0 zetten — anders wit aan beide zijden. */
    margin-left: -15px !important;
    margin-right: -15px !important;
  }

  .header-top > .header-top-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 6px 10px;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .header-top .bedrijf-label {
    float: none !important;
    width: auto !important;
    max-width: 55%;
    flex: 0 1 auto;
    display: flex !important;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-top .bedrijf-label-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    color: inherit !important;
    text-decoration: none !important;
  }

  .header-top .bedrijf-label .fa-heart,
  .header-top .bedrijf-label .fas {
    color: #ff6b6b !important;
    font-size: 14px !important;
    margin: 0 4px !important;
    flex: 0 0 auto;
  }

  .header-top .bedrijf-label .bedrijf-label-hobby {
    display: inline !important;
  }

  @media (max-width: 320px) {
    .header-top .bedrijf-label .bedrijf-label-hobby {
      display: none !important;
    }
  }

  .header-top .account-info {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    color: #fff !important;
  }

  .header-top .account-info a,
  .header-top .account-info h5 {
    color: #fff !important;
  }

  .header-top .account-info-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    float: none !important;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header-top .account-info-list > li {
    float: none !important;
    display: flex;
    align-items: center;
    padding: 0 2px !important;
    border-right: 0 !important;
  }

  .header-top .account-info-list > li.account-cart {
    flex: 0 1 auto;
    min-width: 0;
    justify-content: flex-end;
    padding-left: 4px !important;
  }

  .header-top .account-info-list > li.account-user,
  .header-top .account-info-list > li.account-logout {
    flex: 0 0 auto;
    position: relative;
  }

  .header-top .account-info-list h5 {
    margin: 0;
    line-height: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .header-top .account-user a,
  .header-top .account-logout a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    font-size: 18px;
    color: #fff !important;
    text-decoration: none;
  }

  .header-top .account-logout-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .header-top .account-cart-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
  }

  .header-top .account-cart-link .fa-shopping-cart {
    margin-right: 0 !important;
    flex: 0 0 auto;
    font-size: 15px;
    color: #fff !important;
  }

  .header-top .ww-header-count,
  .header-top .ww-header-items-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .header-top .ww-header-count::after {
    content: none;
  }

  .header-top .winkelwagen-amount {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    color: #fff !important;
  }

  .header-top .winkelwagen-amount.is-updating {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
    transition: background 0.15s ease, box-shadow 0.15s ease;
  }

  @media (max-width: 320px) {
    .header-top .account-cart-link .fa-shopping-cart {
      display: none;
    }

    .header-top .account-cart-link {
      font-size: 12px;
      padding: 6px 6px;
      gap: 0;
    }
  }

  /* ------------------------------------------------------------------ */
  /* Mobiele site-footer — alleen telefoon + copyright, netjes gecentreerd */
  /* ------------------------------------------------------------------ */

  .footer-mobile {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 16px 6px;
    border-top: 0;
    color: #fff;
    overflow: hidden;
    text-align: center;
  }

  .footer-mobile-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .footer-mobile-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    font-size: 18px; /* zelfde als .header-top .bedrijf-label */
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important;
    text-decoration: none !important;
    min-height: 36px;
    white-space: nowrap;
  }

  .footer-mobile-mail .fa-envelope {
    font-size: 14px; /* zelfde schaal als header-hart */
    opacity: 0.9;
  }

  .copyright.container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    /* gelijke padding L/R — geen admin-shift die centrering breekt */
    padding: 4px 16px 10px !important;
    text-align: center !important;
  }

  .copyright p {
    margin: 0 auto !important;
    width: 100%;
    max-width: 100%;
    font-size: 11px;
    line-height: 1.3;
    text-align: center !important;
    color: #fff;
  }

  /* Admin floating tools: niet op mobiel (desktop blijft) */
  .admin-fab,
  .admin-drawer-toggle {
    display: none !important;
  }

  /* Categoriepagina: nieuwsbanners onder titel verbergen — sneller naar producten */
  .banners-grid {
    display: none !important;
  }
}

/* Desktop: spatie tussen uitlog-icoon en label; productkaart-label alleen op xs */
@media (min-width: 768px) {
  .header-top .account-logout a .fa-sign-out-alt {
    margin-right: 6px;
  }

  .product-order-qty-label {
    display: none !important;
  }

  .product-order-qty {
    display: inline;
  }

  /* Detail: compacte bestelstrook (zelfde plek, rustiger dan oude pull-left/right) */
  #artikelgegevens .product-order-strip--detail,
  .op-bestelling-detail .product-order-strip--detail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #eef1f5;
    border-radius: 6px;
  }

  #artikelgegevens .product-order-strip-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    width: 100%;
    margin: 0;
  }

  #artikelgegevens .product-order-strip-form .form-group {
    margin: 0 10px 0 0;
  }

  #artikelgegevens .cart-aantal-detail,
  .op-bestelling-detail .opBestellingAantalVeld {
    display: inline-block;
    width: 64px;
    height: 34px;
    padding: 4px;
    text-align: center;
  }

  #artikelgegevens .btn-card-winkelwagen {
    min-width: 44px;
    height: 34px;
    padding: 0 14px;
  }

  /* Merk/leverancier-module: qty + knop zonder Bootstrap input-group */
  #supplier-order .so-order-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: none;
    margin-bottom: 4px;
  }

  #supplier-order .so-order-controls .order-qty-input {
    width: 60px;
    display: inline-block;
    height: 30px;
    padding: 4px 6px;
    text-align: center;
  }

  #supplier-order .so-order-controls .order-btn {
    height: 30px;
    min-width: 34px;
    padding: 4px 10px;
  }
}
