
body { font-family: Arial; margin: 0; background: #fdfaf6; color: #2e4d2e; }
header, footer { background: #e2f0e2; padding: 1rem; text-align: center; }
h1 { margin: 0; }
.search-filter { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; padding: 1rem; }
input, select { padding: 0.5rem; font-size: 1rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; padding: 1rem; }
.product-card { background: white; padding: 1rem; border-radius: 10px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.product-card img { width: 100%; border-radius: 8px; cursor: pointer; }
button { background: #6db56c; color: white; border: none; padding: 0.5rem 1rem; border-radius: 6px; cursor: pointer; margin-top: 0.5rem; }
button:hover { background: #4c8c4a; }
form { max-width: 500px; margin: 2rem auto; background: white; padding: 1rem; border-radius: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.05); }
input, textarea { width: 100%; padding: 0.5rem; margin-top: 0.5rem; margin-bottom: 1rem; border: 1px solid #ccc; border-radius: 6px; }

#lightbox-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}
#lightbox-modal img {
  max-height: 80vh;
  max-width: 90vw;
  border-radius: 8px;
}
#lightbox-close {
  position: absolute; top: 20px; right: 30px;
  font-size: 2rem; color: white; cursor: pointer;
}
#lightbox-counter {
  color: white; margin-top: 0.5rem;
}
#lightbox-prev, #lightbox-next {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
  position: absolute;
  top: 50%;
  font-size: 2rem;
  color: white;
  padding: 10px;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 10000;
}
#lightbox-prev:hover, #lightbox-next:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #333;
}
#lightbox-prev { left: 50%; transform: translate(-300px, -50%); }
#lightbox-next { right: 50%; transform: translate(300px, -50%); }

#lightbox-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}
.dot {
  width: 12px; height: 12px;
  background-color: white; border-radius: 50%;
  opacity: 0.5; cursor: pointer;
}
.dot.active {
  opacity: 1;
  background-color: #6db56c;
}
#lightbox-add-to-cart {
  position: absolute;
  top: 20px;
  left: 30px;
  background: #6db56c;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10001;
}
#lightbox-add-to-cart:hover {
  background: #4c8c4a;
}

/* Floating cart */
#floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6db56c;
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.3s;
}
#floating-cart:hover {
  transform: scale(1.05);
  background: #4c8c4a;
}
/* --- Główna nawigacja --- */
nav {
  margin-top: 1rem;
}

.main-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.main-menu li a {
  text-decoration: none;
  color: #2e4d2e;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.main-menu li a:hover {
  background-color: #d3e8d3;
}

/* --- Linki w stopce --- */
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #2e4d2e;
  font-size: 0.95rem;
}

.footer-links a:hover {
  text-decoration: underline;
}
