* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Achtergrond */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/103826-GS, bloemen en beestjes, de Wheem-151600.webp') no-repeat center center fixed;
    background-size: cover;
    filter: blur(8px) brightness(0.7);
    z-index: -1;
}

/* Header en Footer */
header, footer {
    text-align: center;
    padding: 1em;
    background-color:#228B22;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.main-header {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1em;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
}

.logo {
    height: 50px;
}

.header-title {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    text-align: center;
    width: 100%;
}

.main-footer {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    padding: 1.5em 1em;
    margin-top: auto;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 1em auto;
  max-width: 1200px;
}

.tile {
  background: rgba(255,255,255,0.85);
  padding: 0.5em;
  border-radius: 10px;
  position: relative;
  overflow: visible; /* zodat tooltips niet worden afgekapt */
}

.tile-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.3s;
}

.tile-link,
.tile-img-wrapper {
  overflow: visible;
  position: relative;
}

.tile-img-container {
  overflow: hidden;
  border-radius: 6px;
}

.tooltip {
  display: none;
  position: absolute;
  top: 0;
  /*left: 50%;
  transform: translate(-50%, -100%);  nu de tooltip in de afbeelding bij hoover */
  margin-bottom: 6px;
  background: rgba(1, 68, 6, 0.75);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  max-width: 240px;
  font-size: 0.875em;
  /*white-space: pre-wrap;*/
  z-index: 999;
  pointer-events: none;
}

.tile-img-wrapper:hover .tooltip,
.tile-img-wrapper:focus-within .tooltip {
  display: block;
}

/* Layout */
main {
    flex: 1;
    padding: 2em;
}

footer {
    margin-top: auto;
}

.login-container,
main {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 2em;
    margin: 2em auto;
}

/* Login */
.login-container h2 {
    text-align: center;
    margin-bottom: 1em;
}

.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%;
    padding: 0.75em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #e6f3ff;
    font-size: 1em;
}

.login-container button {
    width: 100%;
    padding: 0.75em;
    background-color: #228B22;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container button:hover {
    background-color: #1a6e1a;
}

.add-cart-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.cart-icon {
  width: 32px;
  height: 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 1em;
  padding: 1em;
}

.product-image-cell {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-info-cell {
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding-right: 1em; /* of 2em, afhankelijk van gewenste ruimte */
}


.article-detail-container {
  max-width: 1400px;
  margin: 2em auto;
  padding: 1em;
  background-color: rgba(255,255,255,0.85);
  border-radius: 12px;
}

.article-detail-container h1{
   padding-top: .3em;
}

.article-image {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  display: block;
  margin: 1em auto;
}
.article-price {
  margin-top: 1em;
  font-size: 1rem;
  color: #333;
}

.article-notitie {
  min-height: 20em;              /* vaste minimale hoogte */
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  margin-top: 1.5em;
  padding: 1em;
  font-size: 0.95rem;
}

.article-quantity {
  margin-top: 1.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.article-quantity button {
  background-color: #228B22;
  color: white;
  border: none;
  width: 2em;
  height: 2em;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}
.article-quantity input[type="number"] {
  width: 3em;
  text-align: center;
  padding: 0.3em;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.square-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #228B22;
  color: white;
  border: none;
  border-radius: 4px;
}


.qty-btn {
  width: 32px;              /* Vierkant formaat */
  height: 32px;
  padding: 0;
  font-size: 1rem;          /* Grote ± tekens */
  line-height: 1;
  border-radius: 4px;
  background-color: #228B22; /* Donkergroene kleur passend bij 'forest green' */
  color: white;
  border: none;
  cursor: pointer;
}

.qty-btn:hover {
  background-color: #1a6a1a; /* Iets donkerder hover-effect */
}

/* Centraal blok voor de hoeveelheid */
.qty-display {
  display: inline-block;
  height: 32px;
  min-width: 40px;
  text-align: right;
  border: 1px solid #228B22;
  border-radius: 4px;
  padding: 5px;
  margin: 0 5px;
}


.selected-row {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

/* Tabellen */
.relatie-tabel {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 700px;
}

.relatie-tabel th,
.relatie-tabel td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    word-break: break-word;
    text-align: left;
}

.relatie-tabel th {
    background-color: #228B22;
    color: white;
}

.formulier-tabel td {
  padding: 0.5em;
  vertical-align: top;
}

.form-input,
.form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4em;
  border: 1px solid #ccc;
  border-radius: 4px;
}


/* Knoppen */
.button-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
}

.button-row button {
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    color: white;
    background-color: #228B22;
    transition: background-color 0.3s ease;
}

.button-row button:hover {
    background-color: #1a6e1a;
}

.menu-button {
    display: inline-block;
    padding: 1em 2em;
    background-color: #228B22;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.menu-button:hover {
    background-color: #1a6e1a;
}

.menu-button-alert {
    background-color: #ca241f;
    float: right; /* button rechts uitlijnen */
}

.menu-button-alert:hover {
    background-color: #c70700;
}

.close-btn {
    padding: 0.8em 1.5em;
    background-color: #228B22;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: #1a6e1a;
}

.storing-btn {
    background-color: #cc0000;
}

.storing-btn:hover {
    background-color: #990000;
}

/* Apparaten header en filter */
.apparaten-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.terugknop-wrapper {
    text-align: right;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1em;
    max-width: 100%;
    padding: 0 1em;
    box-sizing: border-box;
}

.filter-form input[type="text"] {
    flex: 1 1 200px;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    background-color: whitesmoke;
}

.filter-form select {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-width: 200px;
    background-color: #e6f3ff;
    font-size: 1em;
}

.filter-form button {
    flex: 1 1 200px;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    background-color: #228B22;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-form button:hover {
    background-color: #1a6e1a;
}

.filter-form a.menu-button {
    flex: 1 1 200px;
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
    background-color: #228B22;
}

.filter-form a.menu-button:hover {
    background-color: #1a6e1a;
}

/* Pagination */
.pagination,
.pagination.centered {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 2em;
    margin-bottom: 2em;
}

.page-link {
    display: inline-block;
    padding: 0.5em 0.9em;
    background-color: #222221;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.page-link:hover {
    background-color: black;
}

.page-link.active {
    background-color: #228B22;
    font-weight: bold;
}

.page-link.disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* Popup overlay en venster */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.popup_old {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    z-index: 9999;
    text-align: center;
}

.popup {
    background: white;
    border-radius: 10px;
    padding: 2em;
    max-width: 900px;
    width: 95%;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 90vh;
}

.popup h2, h3 {
    text-align: center;
    color: #228B22;
    margin-top: 0;
}

.popup p {
    margin: 0;
    color: red;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 1.2rem;
        padding: 0 3em;
    }

    .logo {
        height: 30px;
    }

    .logo-container {
        left: 0.5em;
    }

    .login-container {
        margin: 2em 1em;
        padding: 1.5em;
    }

    .relatie-tabel th,
    .relatie-tabel td {
        font-size: 14px;
        padding: 8px;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-form input,
    .filter-form button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .popup {
        max-width: 95%;
        padding: 1em;
    }
}

/* Voeg toe aan je CSS-bestand of tussen <style> tags */
.breadcrumb-btn {
  background: #228B22;
  color: #fff !important;
  border: none;
  border-radius: 4px;
  padding: 4px 12px;
  margin-right: 4px;
  text-decoration: none;
  font-size: 0.95em;
  cursor: pointer;
  display: inline-block;
}
.breadcrumb-btn:last-child {
  background: #fff;
  color: #228B22 !important;
  border: 1px solid #228B22;
  cursor: default;
}