/* css/catalogue.css */

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-family: Arial, sans-serif;
  color: #000000;
  padding-top: 50px; /* adjust to your header height */
}

header {
  width: 100%;
  background-color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 5px 80px;
  height: 20px; /* or whatever height you want */
  flex-wrap: wrap;
  padding-bottom: 40px;
  z-index: 0
}

.catalogue-header {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background-image: url("../images/info-image.jpg");
  background-size: cover;
  background-position: center;
  padding: 20px; /* Increased top/bottom padding */
  color: white;
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center;     /* horizontal centering */
  min-height: 100px;       /* fallback height */
}


.catalogue-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.90); /* Increased darkness */
  z-index: 10;
}

.catalogue-header * {
  position: relative;
  z-index: 11;
}

.catalogue-header h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  margin-top: 20px;
}

.logo {
  position: absolute;
  left: calc(20px + 1.5cm);
  margin-bottom: 10px; /* pushes nav downward if needed */
  z-index: 0
}

.logo img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
  z-index: 0
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 10px;
  }
}

nav {
  display: flex;
  gap: 30px;
}

#menu-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  border: none;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

main {
  padding: 20px;
  text-align: center;
}

.filters {
  margin-bottom: 20px;
}

.filter-btn {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  background-color: #333;
  color: white;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: #555;
}

.filter-info-box {
  text-align: center;
  padding: 20px;
  margin-top: 15px;
  border-radius: 6px;
  font-size: 0.95rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-link-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.contact-link-button:hover {
  background-color: #555;
}


.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  width: 100%;
  aspect-ratio: 1 / 1; /* makes it a square */
  background-color: transparent !important;
  text-align: center;
  overflow: hidden;
  position: relative;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: auto;
  max-height: 65%; /* keeps image from stretching too far */
  object-fit: contain;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 0.95rem;
  margin: 0;
  padding: 0 5px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #222;
  color: #fff;
  padding: 40px 60px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  margin: 0 20px;
  min-width: 200px;
}

.footer-logo {
  max-width: 150px;
  height: auto;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

.footer-brand {
  font-family: 'Gemina', Arial, sans-serif;
  color: white;
  font-size: 1.8rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  nav.show {
    display: flex;
  }

  #menu-toggle {
    display: block;
  }
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  color: white;
  border: none;
  padding: 5px 8px;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.stock-count {
  font-size: 0.7rem;
  display: block;
  opacity: 0.8;
}

.catalogue-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

.sidebar {
  width: 200px;
  background-color: #ffffff;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9rem;
}

.sidebar h3 {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 10px;
}

.catalogue-content {
  flex: 1;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-toggle {
  width: 100%;
  text-align: left;
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}

.filter-options {
  display: none;
  margin-top: 8px;
  padding-left: 10px;
  max-height: calc(5 * 1.5em); /* approx height for 5 items, adjust if needed */
  overflow-y: auto;
  text-align: left;
}

.filter-options label {
  display: block;
  text-align: left; /* explicit left align */
  cursor: pointer;
  margin-bottom: 5px;
}

.footer-logo-img {
  max-height: 180px; /* desktop size */
  width: auto;
  filter: brightness(0) invert(1);
  -webkit-filter: brightness(0) invert(1);
  display: block;
}

@media (max-width: 991px) {
  .footer .container {
    flex-direction: column;
    align-items: flex-start;  /* left align instead of center */
    text-align: left;         /* text left aligned */
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-logo-img {
    max-height: 160px;
    filter: brightness(0) invert(1);
  }

  .footer-column {
    margin-top: 15px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    text-align: left;         /* text left aligned */
  }
}
