/* Mobile optimisation — collectiepagina (laadt als laatste stylesheet). */
@media (max-width: 800px) {
  /* Categorieën: onderaan vastgeplakt, swipebaar, met transparante gradient */
  .factory-display .scene-collections { overflow: visible; }
  .scene-collection .scene-filterbar,
  .factory-display .scene-filterbar {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 30;
    width: 100%; max-height: none;
    margin: 0; padding: 38px 0 calc(14px + env(safe-area-inset-bottom));
    overflow: visible;
    background: linear-gradient(180deg, #06193300 0%, #061933b3 45%, #061933f2 100%);
    -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
    pointer-events: none;
  }
  /* De knoppenrij zelf is de swipebare strook (werkt ook op iOS) */
  .scene-collection .scene-filterbar .theme-filters {
    pointer-events: auto; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; touch-action: pan-x;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .scene-collection .scene-filterbar .theme-filters::-webkit-scrollbar { display: none; }
  .scene-collection .scene-filterbar .theme-filters::after { content: ""; flex: 0 0 4px; }
  .factory.factory-display main { padding-bottom: 110px; }
  .shop-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .scene-collection .theme-filters {
    flex-direction: row; flex-wrap: nowrap; align-items: center;
    gap: 8px; padding: 14px 16px 2px; width: 100%; box-sizing: border-box;
  }
  .scene-collection .theme-filters button,
  .factory-display .theme-filters button {
    width: auto; min-height: 40px; padding: 9px 15px;
    border: 1px solid #fff3; border-radius: 999px;
    font-size: 13px; white-space: nowrap; scroll-snap-align: start;
    box-shadow: none; gap: 8px;
  }
  .scene-collection .theme-filters button:hover,
  .scene-collection .theme-filters button[aria-pressed=true] { padding-left: 15px; }
  .factory-display .theme-filters button[aria-pressed=true] { border-color: #ffea00; box-shadow: none; }
  .scene-collection .theme-filters button br { display: none; }
  .scene-collection .theme-filters button span:not(.category-sold-out) { width: auto; height: auto; margin-left: 0; }
  /* SOLD OUT-label zoals origineel: klein geel label bovenop de knop */
  .scene-collection .theme-filters .category-with-badge .category-sold-out {
    top: -9px; right: 8px; font-size: 7px; padding: 3px 6px;
  }

  /* Inhoud over de volle breedte */
  .scene-collection .scene-layout { margin-left: 0; }
  .factory.factory-display .scene-shopping,
  .scene-collection .scene-shopping { margin-left: 0; padding: 22px 16px 36px; }
  .factory-display .scene-heading { text-align: center; }
  .factory-display .scene-heading>.eyebrow { font-size: 9px; }
  .factory.factory-display h1 { font-size: clamp(40px, 12vw, 52px); margin: 8px 0 10px; }
  .factory-display .scene-heading #scene-price,
  .factory-display .scene-heading>p:not(.eyebrow) { justify-content: center; font-size: 14px; }
  .factory-display .scene-heading .scene-deal { display: inline-block; margin-inline: auto; }
  .scene-collection footer { margin-left: 0; }

  /* Rails: kaarten groter, iets meer lucht */
  .factory-rail-row { height: clamp(190px, 34vw, 250px); margin-bottom: 14px; }
  .factory.factory-display .shop-catalog { padding-top: 10px; }

  /* Vergroot-venster: kaart écht groot tonen */
  .fit-preview>.fit-artwork { width: min(88vw, calc(52dvh * var(--fit-ratio, 1.585))); }
  .fit-preview>.fit-artwork.is-portrait { width: min(70vw, calc(58dvh * var(--fit-ratio, .63))); }
  .fit-preview>p { font-size: 17px; padding: 16px 24px 12px; }
  .fit-preview-add { min-height: 50px; font-size: 15px; padding-left: 24px; }
}

/* Telefoons (2 kaarten per rail): kaarten breder */
@media (max-width: 599px) {
  .factory-rail-row { --rail-card-width: 44%; height: clamp(190px, 56vw, 240px); }
}

/* Achtergrond op mobiel links uitlijnen, zodat de zijkant van de fabriek zichtbaar blijft */
@media (max-width: 800px) {
  .factory-display-backdrop video,
  .factory-display-backdrop>img { object-position: left center; }
}

/* Sold-out info (Exclusives / Limited): leesbaar op een donkere, wazige kaart */
@media (max-width: 800px) {
  .factory-display .scene-empty.collection-missed {
    min-height: 0; margin: 18px 0 8px; padding: 26px 22px 24px;
    border-radius: 22px; border: 1px solid #ffffff22;
    background: #06193333; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: none; text-shadow: 0 1px 12px #001127cc;
  }
  .factory-display .collection-missed h2 { font-size: 28px; line-height: 1.1; margin: 0 0 14px; }
  .factory-display .collection-missed p { font-size: 15px; line-height: 1.6; color: #fff8e9; margin: 0 0 12px; }
  .factory-display .collection-missed .collection-missed-teaser { color: #ffea00; font-weight: 700; margin-bottom: 0; }
}

/* "Hoe plak je een CardFit?" als gecentreerde pil */
@media (max-width: 800px) {
  .factory-display .shop-footnote { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 22px 0 0; }
  .factory-display .shop-footnote a {
    display: inline-flex; align-items: center; align-self: center; gap: 6px;
    padding: 6px 12px; min-height: 0;
    border: 1px solid #ffffff30; border-radius: 999px;
    background: #0619331a; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    color: #fff8e9; font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap;
  }
  .factory-display .shop-footnote a .cf-arrow { width: 10px; height: 10px; color: #ffea00; }
}

/* Footer ook op de collectiepagina, in Factory-stijl */
.factory-display footer{display:flex;background:transparent;color:#fff8e9;border-color:#fff8e930;margin:0 5% 0 175px;position:relative;z-index:1}
.factory-display footer a{color:#fff8e9}
.factory-display footer .wordmark span{color:#ffea00}
@media (max-width:1000px) and (min-width:801px){.factory-display footer{margin-left:155px}}
@media (max-width:800px){.factory-display footer{display:flex;margin:0 16px}}
