 /* Reset and base styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    background: #fafafa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 3em;
  }

  /* Header with logo and search */
  header {
  position: relative;
  text-align: center;
  padding: 10em 3em 1.5em;
  color: rgb(0, 0, 0);
  box-shadow: 0 4px 8px rgba(75,108,183,0.3);
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('./img/Spektakuler-Mei-2025.jpg') center center/cover no-repeat;
  opacity: 0.4;
  filter: blur(2px);
  z-index: -1;
}

header .logo,
header h1,
#searchContainer {
  position: relative;
  z-index: 1;
}

  header .logo {
    max-width: 270px;
    height: auto;
    margin: 0 auto;
    display: block;
  }
  header h1 {
    margin-top: 0.5em;
    font-weight: 700;
    font-size: 2.4em;
    letter-spacing: 3px;
    user-select: none;
  }
  #searchContainer {
    margin-top: 1.5em;
  }
  #searchInput {
    width: 280px;
    max-width: 90vw;
    padding: 0.5em 1em;
    font-size: 1rem;
    border-radius: 25px;
    border: none;
    outline: none;
    color: #182848;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
    transition: box-shadow 0.3s ease;
  }
  #searchInput::placeholder {
    color: #5d79b6;
  }
  #searchInput:focus {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
  }

  /* Gallery section */
  #gallerySection {
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    padding: 2em 1em 4em;
    max-width: 1200px;
    margin: 2em auto;
    border-radius: 12px;
  }
  #galleryGrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2em;
    min-height: 300px; /* For no result message spacing */
  }
  .item {
    background: #f0f4ff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(75,108,183,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(75,108,183,0.3);
  }
  .item img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    cursor: pointer;
  }
  .product-name {
    font-weight: 700;
    font-size: 1.1em;
    color: #2d3e75;
    margin-bottom: 0.3em;
    text-align: center;
  }
  .price {
    margin: 0.3em 0 0.8em;
    font-weight: 700;
    font-size: 1.05em;
    color: #4052a4;
  }
  .btn-whatsapp {
    background: #25d366;
    border: none;
    padding: 0.5em 1.2em;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1em;
    text-decoration: none;
    user-select: none;
  }
  .btn-whatsapp:hover {
    background: #1ebe57;
  }
  .btn-whatsapp svg {
    width: 20px;
    height: 20px;
  }

  /* No results message */
  #noResults {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: 600;
    font-size: 1.2em;
    color: #7a7a7a;
    padding: 3em 0;
  }

  /* Pagination */
  #pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2em;
    gap: 0.8em;
    user-select: none;
    flex-wrap: nowrap; /* prevent wrapping */
  }
  #pageNumbers {
    display: flex;
    gap: 0.5em;
  }
  #pagination button, #pagination .page-num {
    background: #f0f4ff;
    border: none;
    padding: 0.5em 0.9em;
    border-radius: 6px;
    font-weight: 600;
    color: #4b6cb7;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3em;
    transition: background 0.3s ease, color 0.3s ease;
    font-size: 1em;
    white-space: nowrap;
  }
  #pagination button:disabled {
    opacity: 0.35;
    cursor: default;
  }
  #pagination button:hover:not(:disabled),
  #pagination .page-num:hover:not(.active) {
    background: #4b6cb7;
    color: white;
  }
  #pagination .page-num.active {
    background: #182848;
    color: white;
    cursor: default;
  }

  /* Pagination icons (arrows) */
  #pagination button svg {
    stroke: #4b6cb7;
    width: 20px;
    height: 20px;
    stroke-width: 2;
  }
  #pagination button:hover:not(:disabled) svg {
    stroke: white;
  }

  /* Lightbox modal styles */
  #lightboxModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
  }
  #lightboxModal.active {
    opacity: 1;
    pointer-events: auto;
  }
  #lightboxContent {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #lightboxContent img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 12px;
  }
  #lightboxClose {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    transition: background 0.3s ease;
  }
  #lightboxClose:hover {
    background: white;
  }

  /* Responsive */
  @media (max-width: 1024px) {
    #galleryGrid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  @media (max-width: 600px) {
    #galleryGrid {
      grid-template-columns: 1fr;
    }
    #pagination {
      flex-wrap: wrap;
      gap: 0.3em;
    }
  }
