/* =================== RESET & GLOBAL =================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: #333;
  line-height: 1.6;
  font-family: 'Open Sans', Arial, sans-serif;
}

h1 {
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #0074ff;
}

/* =================== HEADER =================== */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 60px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

.menu {
  display: flex;
}

.menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.menu a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Mobilne menu */
#menu-toggle {
  display: none;
}

@media screen and (max-width: 768px) {
  .menu {
    display: none;
    width: 100%;
  }

  .menu ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .menu li {
    margin: 10px 0;
  }

  #menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  .menu-icon {
    display: block;
  }
}

/* =================== SLIDER =================== */
.slider-container {
  position: relative;
  width: 100%;
  height: 681px; /* wysokość slajdu */
  overflow: hidden;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.slider-overlay {
  position: absolute;
  bottom: 5%;         /* odstęp od dołu */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
  margin-bottom: 144px;
}

.slider-logo {
  max-width: 372px;
  margin: 0 auto 15px;
  display: block;
}

.slider-text {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* Slider responsywny */
@media (max-width: 768px) {
  .slider-container {
    height: 500px;
  }

  .slider-logo {
    max-width: 180px;
  }

  .slider-text {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .slider-container {
    height: 400px;
  }

  .slider-logo {
    max-width: 140px;
  }

  .slider-text {
    font-size: 18px;
  }
}

/* =================== LIGHTBOX =================== */
#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

#lightbox-overlay .close-btn,
#lightbox-overlay .nav-btn {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

#lightbox-overlay .close-btn { top: 20px; right: 30px; }
#lightbox-overlay .left-btn { left: 30px; }
#lightbox-overlay .right-btn { right: 30px; }

/* =================== KARTY (THUMBNAILS) =================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.col-md-3 {
  flex: 0 0 25%;
  padding: 10px;
  box-sizing: border-box;
}

.thumbnail {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 320px;
}

.thumbnail img {
  width: 98%;
  height: 311px;
  object-fit: cover;
  display: block;
}

.thumbnail strong {
  display: block;
  padding: 4px 6px;
  font-size: 1em;
  text-align: center;
}

.thumbnail .caption {
  padding: 2px 6px 6px 6px;
  font-size: 0.85em;
  color: #555;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Responsywność miniaturek */
@media (max-width: 992px) {
  .col-md-3 { flex: 0 0 50%; }
}

@media (max-width: 576px) {
  .col-md-3 { flex: 0 0 100%; }
}

/* =================== PRODUKTY =================== */
.product-section {
  padding: 60px;
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.product-title {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

/* =================== INNE SEKCJE =================== */
footer {
  padding: 10px;
  text-align: center;
  background: black;
  color: white;
}

.the_content_wrapper {
  text-align: center;
}

.the_content_wrapper h2 {
  margin: 0 auto;
}

.default-about-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
  min-height: 80%;
}

.default-about-section .container {
  max-width: 100%;
  margin: 0 auto;
}
