/* all pages */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Quicksand:wght@300..700&display=swap');

html,
body,
p,
span,
h1,
h2,
h3,
h4,
h5,
a {
    font-family: "Lato", serif;
    font-weight: 400;
    font-style: normal;
}


body {
    background-color: rgb(231, 231, 231);
}

footer {
    margin: 20px;
    font-size: 12px;
}

main {
    margin-top: 50px;
}

.toast {
    position: fixed;
    top: 100px;
    right: 50px;
    box-shadow: 0 0 11px #218838;
    z-index: 9999;
}

.shop-button {
    font-size: 15px;
    margin-top: -4px;
}

::placeholder,
a,
a:hover {
    color: #218838;
}

.green {
    background-color: #218838;
}

.btn-primary {
    background-color: #218838;
    border: 1px solid #218838;
}

.btn-primary:hover {
    background-color: #ffffff;
    border: 1px solid #218838;
    color: #218838;
    box-shadow: 0 0 11px #218838;
}

@media (max-width: 550px) {
  .btn {
      padding: 5px !important;
      font-size: 12px !important;
      line-height: 1 !important;
  }
}
.wide {
    width: 100% !important;
    padding: 50px;
    margin-top: 50px;
}

#Search {
    color: #218838;
    border-color: #218838; 
}

.searchblabla {
    border-color: #218838; 
}

.article-container {
    margin: auto;
}

.card {
   
    margin-bottom: 20px;
    border-radius: 10px;
    transition: box-shadow .3s;
}

.card:hover {
    box-shadow: 0 0 11px #218838;
    cursor: pointer;
}

.card-header {
    margin-bottom: 20px;
    min-height: 80px;
}

.card-text2 {
    min-height: 7em
}

.card-text {
    min-height: 9em
}

.hover:hover {
    box-shadow: 0 0 11px #218838;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #218838;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(33, 136, 56, .25);
}

/* debug */
.hide {
  display: none;
}
.show {
  display: flex !important;
}

/* index page */
.product {
    width: 100%;
    height: inherit;
    margin-bottom: 20px;
    margin-top: 50px;
}

.product_image {
    max-width: 100%;
    object-fit: contain;
}

.product img {
    margin: auto;
    margin-top: 20px;
}

.product > .card-header {
    height: 3em;
}

.product-properties > li > .property-name {
    display: inline-block;
    width: 50px;
}

.product_amount,
.losseproduct_amount {
    height: 37px;
    width: 80px
}

/* basket page */
.product-properties {
    margin-top: 20px;
    list-style: none;
    padding-left: 5px;
    font-size: 14px;
}

.product_row .product-properties li {
    width: 25%;
    float: left;
}

.hidden {
    display: none;
}

.carousel-image {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: 50% 50% !important;
}

.overons .container {
    margin-top: 50px;
}

.midden {
    position: 50% 50% !important;
}

/*custom css voor bootstrap veranderingetjes*/
.carousel-control-next-icon,
.carousel-control-prev-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50px;
}

.carousel-indicators li {
    background-color: #218838;
}

.dropdown-menu {
    min-width: 15rem;
}

.homepage .carousel-item {
    height: 750px;
    background-color: #ccc;
    color: white;
}

.jumbotron {
    background-color: #f8f9fa;
    width: 1000px;
    height: 600px;
}

.lm {
    margin: -3px 0 0 0;
}

.homepage .carousel,
.jumbotron {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    overflow: hidden;
}

.homepage .carousel {
    margin-top: 30px;
    margin-bottom: 30px;
}

.homepage .carousel:hover, .jumbotron:hover, .product-card:hover {
    box-shadow: 0 0 6px #218838;
}

.homepage .carousel-inner {
    border-radius: 15px;
}

.homepage .jumbotron h1,
.jumbotron p {
    color: #333;
    font-weight: 600;
}

.nav-link,
.navbar-brand {
    border-radius: 10px;
}

.nav-link:hover,
.navbar-brand:hover {
    box-shadow: 0 0 11px #218838;
}

.bg-light {
    background-color: #f7f7f7;
}

.btn-background:hover {
    background-color: #f2f2f2;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-size: 60%;
}

#marginright {
    margin-right: 12px;
}

.navbar {
    height: 80px;
}




 .screen {
    position: absolute;
    width: 80%;
    max-width: 500px;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.6s ease, opacity 0.6s ease;
  }

  .offscreen_right {
    transform: translateX(100%);
  }

  /* verborgen toestand */
  .hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* veeg naar links animatie */
  .slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
  }

  /* tweede scherm komt van rechts */
  .slide-in {
    transform: translateX(0%);
    opacity: 1;
  }

  /* knop linksonder */
  .volgende {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
  }

  .collapse .list-group {
  border-top: none; /* lijst tegen de knop aan */
  margin-top: 0;
  width: 100%;
}

.list-group-item.selected {
  background-color: #343a40 !important; /* donkergrijs */
  color: #fff !important;               /* witte tekst */
}

/* ---------- Stap 4 layout ---------- */
#screen4 {
  display: flex;
  flex-direction: column;
}

/* De lijst scrolt; extra padding voor de sticky footer */
#productList {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;              /* past in je jumbotron van 600px */
  border: 1px solid #eee;
  border-radius: 10px;
  overflow-y: auto;           /* <-- scrollen gebeurt hier */
  padding: 10px;
  background: #fff;
}

/* Grid: 1 → 2 → 3 kolommen */
#productListGrid, #productsResultList{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-gap: 10px;
  padding-bottom: 72px;       /* ruimte onderin zodat content niet onder de bar valt */
}
@media (min-width: 576px) { #productListGrid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 992px) { #productListGrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 576px) { #productsResultList { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 992px) { #productsResultList { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Kaart: bijna vierkant (iets hoger dan breed) */
.product-card {
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  background: #fff;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 110%; /* hoogte = 110% van breedte */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.thumb-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-info {
  display: inline-block;
  grid-template-columns: 1fr auto;
  align-items: start; gap: .4rem .6rem;
}
.product-title {
  font-weight: 600; margin: 0; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-cat {
  grid-column: 1 / span 1;
  color: #6c757d; font-size: .82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-prices {
  grid-row: 1 / span 2;
  font-size: .85rem; line-height: 1.15;
}
.product-prices .muted { color: #6c757d; }

/* Stepper met pijlen + contenteditable "badge" */
:root {
  --btn-bg: #218838;     /* match je 'volgende' knop */
  --btn-bg-hover: #218838;
  --btn-text: #fff;
}
.card-ctrl { display: flex; justify-content: center; align-items: center; gap: .5rem; }
.qty-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-weight: 700;
  background: var(--btn-bg); color: var(--btn-text);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: transform .06s ease, background-color .15s ease;
}
.qty-btn:hover { background: var(--btn-bg-hover); }
.qty-btn:active { transform: scale(.96); }
.qty-num {
  min-width: 42px; padding: .25rem .5rem;
  border-radius: 999px; background: #f2f4f7; color: #222;
  text-align: center; font-weight: 700; line-height: 1.2;
  outline: none; user-select: text;
}
.qty-num[contenteditable="true"]:empty::before { content: "0"; color: #222; }

/* Sticky footer onderaan de scrollende lijst */
#productStickyBar {
  position: sticky;           /* <-- blijft onderin plakken */
  bottom: 0;
  left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  border-top: 1px solid #eee;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  box-shadow: 1px 8px 10px 1px rgba(0,0,0,0.25);
  border-radius: 5px;
}

/* Laat screen5 verticaal scrollen binnen de viewport-hoogte (minus navbar) */
#screen5{
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* soepel scrollen op iOS */
  overscroll-behavior: contain;      /* voorkomt doorschieten naar body */
}

#selectedProductsGrid .sp-card {
  border: 1px solid #e6e6e6;
  border-radius: .75rem;
  padding: .75rem;
  margin-bottom: .75rem;
}
#selectedProductsGrid .sp-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: .5rem;
}

.listedproducts {
    width: 95vw !important;
    max-width: 95vw;
    max-height: 95vh;
    min-height: 95vh;
    height: 95vh;   
    padding: 2rem; 
}

/* Buttons */

/* .btn-outline-success {
color: #218838;
border-color: #218838;
}
.btn-outline-success:hover {
color: #fff;
background-color: #218838;
border-color: #218838;
}

.btn-outline-success.disabled, .btn-outline-success:disabled {
color: #218838;
background-color: transparent;
}

.btn-success:hover {
color: #fff;
background-color: #218838;
border-color: #218838;
} */

/* Navigatie */
/* standaard verbergen */
.navbar {
  display: none;
}

/* toon navbar als #screen5 NIET de class .hidden heeft */
body:has(#screen5:not(.hidden)) .navbar {
  display: flex;
}

/* CSS voor de all products page */
.allProducts {}

 #productList.allProducts {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;              /* past in je jumbotron van 600px */
  border: 1px solid #eee;
  border-radius: 10px;
  overflow-y: auto;           /* <-- scrollen gebeurt hier */
  padding: 20px;
  background: #fff;
  margin: 20px;
}

/* Grid: 1 → 2 → 3 kolommen */
#productListGrid, #productsResultList{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-gap: 10px;
  padding-bottom: 72px;       /* ruimte onderin zodat content niet onder de bar valt */
}

@media (min-width: 576px)  { #productListGrid.allProducts  { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 576px)  { .allProducts #productsResultList { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 992px)  { #productListGrid.allProducts  { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 992px)  { .allProducts #productsResultList { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1200px) { #productListGrid.allProducts  { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (min-width: 1200px) { .allProducts #productsResultList { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (min-width: 1600px) { #productListGrid.allProducts  { grid-template-columns: repeat(7, minmax(0,1fr)); } }
@media (min-width: 1600px) { .allProducts #productsResultList { grid-template-columns: repeat(7, minmax(0,1fr)); } }

.allProducts .card-header {
    margin-bottom: 20px;
    min-height: auto;
}

.product-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px; /* optioneel, ronde hoeken */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4f4; /* optioneel placeholder */
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 dit zorgt voor mooie crop */
    background-color: white;
}
.allProducts .losseproduct_title {
  font-size: 1rem;
  text-align: center;
}

.allProducts .product-properties {
    margin-top: 0;
    padding-left: 0;
    margin-block-end: 0;
}

.allProducts .card-body {
    padding: 10px 0 10px;
}

.allProducts .product-card {
  padding: 0;
}