.content-section {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  color: white;
}
.content-section h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #00ffd5;
}
.catalog {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
/*
.part {
  background-color: rgba(0,0,0,0.6);

  border-radius: 12px;
  text-align: center;
}
*/
.part {
  width: 300px;
  background-color: #111;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
}
.part img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
}
.part-details {
  padding: 1rem;
}
.part-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.part-description {
  font-size: 0.95rem;
  color: #ccc;
}

.ok{
  color: #32CD32 !important;
}

#scrollTop {
  position: fixed;
  z-index: 1;
  bottom: 50px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #333;
  color: #00ffd5;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

/* Wyświetlanie przycisku po przewinięciu 1/4 strony */
#scrollTop.show {
  opacity: 1;
  visibility: visible;
}





/* NOWE STYLOWANIE KAFELKÓW*/

.part-details {
  padding: 1rem;
}

.part-index {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.part-index::before{
  content: "Indeks: " ;
}

.part-brand, .part-model, .part-localization, .part-side, .part-number {
  font-size: 0.95rem;
  color: #ccc;
}
.part-brand::before{
  content: "Marka: ";
}
.part-model::before{
  content: "Model: ";
}
.part-localization::before{
  content: "Lokalizacja: ";
}
.part-side::before{
  content: "Strona: ";
  color:#ccc;
}
.part-number::before{
  content: "Kod lampy: ";
}


/* KAFELKI MAREK */

.brand-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 240px));
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;   /* centrumje cały „zestaw kolumn” w poziomie */
  margin-inline: auto;       /* centruje grid jako blok w sekcji */
  width: 100%;
  padding-inline: 1rem; 
}

.brand-card{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: .6rem;
  padding: 30px;
  background: #ababab;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  cursor: pointer;
  font-weight: 700;
  font-size: medium;
  letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  text-transform: uppercase;
}
.brand-card:hover{ transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.35); border-color: #00f5cc; }

.brand-card img, .brand-card svg { width:70px; height:70px; object-fit:contain; }


/* KAFEL POWROTU W WIDOKU CZĘŚCI */
/*
.part.back-card{
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 700;
  border: 1px dashed #00f5cc;
  cursor: pointer;
}
.part.back-card .arrow{ font-size: 30px; }

stare
*/
.part.back-card{
  display:flex;
  flex-direction:column;           /* strzałka nad tekstem */
  align-items:center;
  gap:.35rem;
  padding:1.2rem 1rem;
  text-align:center;
  font-weight:700;
  border:1px dashed #00f5cc;
  cursor:pointer;
}
.part.back-card .arrow{
  font-size:150px;                  /* większa strzałka */
  line-height:1;
  margin-top: 30px;
  display:block;
}
.part.back-card .label{
  text-transform:uppercase;
  letter-spacing:.3px;
  opacity:.9;
}






@media (max-width: 768px) {

  .content-section{
    max-width: 400px;
  }

  .part{
    width: 150px;
  }

  .brand-card{
  font-size: 12px;
}

  .brand-card img, .brand-card svg { width:40px; height:40px; object-fit:contain; }

  .brand-grid{
  grid-template-columns: repeat(auto-fit, minmax(140px, 100px));
}

.part.back-card .arrow{
  font-size:150px;                  /* większa strzałka */
  line-height:1;
  margin-top: 0px;
  display:block;
}

}


@media (max-width: 400px) {

  .part{
    width: 146px;
  }

}

@media (max-width: 360px) {

  .part{
    width: 130px;
  }

}




/* Stylizacja wyszukiwarki */

.search-container {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  width: 80%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.search-container h2 {
  font-family: 'Exo 2', sans-serif;
  color: #fff;
  margin-bottom: 10px;
}

.search-container input {
  padding: 12px;
  width: 70%;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  outline: none;
}

.search-container button {
  padding: 12px;
  margin-left: 10px;
  background-color: red;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.highlight {
  background-color: #00f5cc;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
}

nav a {
  color: #fff; /* biały kolor pasujący do ciemnego tła */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00f5cc; /* kolor po najechaniu */
}

nav a:visited {
  color: #fff; /* aby uniknąć domyślnego fioletowego */
}

nav a.active {
  color: #00f5cc;
  font-weight: 600;
}
