.hamburger.hide {
  display: none !important;
}
@media (max-width: 768px) {
  .site-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .hamburger {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    display: flex;
  }
  .logo {
    margin: 0 auto;
    display: block;
    max-width: 120px;
    height: auto;
  }
}
.hamburger i.fas.fa-bars {
  color: #000;
  font-size: 2rem;
}
/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  z-index: 1001;
  margin-right: 12px;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 28px;
  background: #000;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 220px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left 0.3s;
    padding-top: 60px;
  }
  .sidebar.open {
    left: 0;
  }
  .container {
    flex-direction: column;
  }
  main#catalogues {
    margin-left: 0;
  }
}

/* Overlay for sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 999;
}
/* Hamburger styles */
.site-header {
/* Reverted to original, removed hamburger and responsive sidebar changes */
}
/* Optional: overlay for sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 999;
}
.sidebar.open ~ .sidebar-overlay {
  display: block;
}
body {
  font-family: Arial, sans-serif;
  padding: 20px;
  background: #f5f5dc;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

#catalogues {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  flex: 1 1 calc(25% - 20px); /* 4 cards on desktop */
  box-sizing: border-box;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
  max-width: 300px;
  text-align: center;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
  background-color: #ddd;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.quantity-controls span.quantity {
  font-size: 18px;
  min-width: 20px;
  text-align: center;
}

button {
  margin-top: 30px;
  padding: 12px 20px;
  background-color: green;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.container {
  display: flex;
  flex-wrap: wrap;
}

.sidebar {
  flex: 1 1 200px;
  padding: 20px;
  border-right: 1px solid #ccc;
  background-color: #f5f5dc;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 10px 0;
  cursor: pointer;
  font-weight: bold;
  color: #333;
}
.site-header {
  display: flex;
  justify-content: flex-start; /* aligns to the left */
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #ccc;
}

.logo {
  max-height: 80px;
  height: 20%;
  width: 20%;
}
.quantity-controls button {
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: bold;
  background-color: #007bff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 2px;
}
#catalogues {
  flex: 3 1 600px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid #ccc;
  }

  #catalogues .card {
    flex: 1 1 calc(50% - 20px);
  }
  .logo {
   justify-content: center;
   height: 100%;
   width: 100%;
}
}
@media screen and (max-width: 768px) {
  .card {
    flex: 1 1 calc(50% - 20px); /* 2 cards on mobile */
  }
}