/*
 Theme Name: Kadence Child
 Theme URI: https://example.com
 Description: Motyw potomny dla Kadence
 Author: Szymon
 Template: kadence
 Version: 1.0.0
*/

/* ===============================
   SLIDER obrazków – [acf_slajder_slajder]
   =============================== */
.acf-splide {
  max-width: 100%;
  margin: 0 auto;
}

.acf-splide .splide__slide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

/* ===============================
   GRUPA: Layout 4/2/1 kolumny
   =============================== */
.sterowniki-grid {
  display: grid;
  grid-template-columns: 1fr; /* domyślnie: mobile */
  gap: 20px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .sterowniki-grid {
    grid-template-columns: repeat(2, 1fr); /* tablet */
  }
}

@media (min-width: 1024px) {
  .sterowniki-grid {
    grid-template-columns: repeat(4, 1fr); /* desktop */
  }
}

/* Obsługa sytuacji, gdy tylko jeden wpis – ograniczenie do jednej kolumny */
.sterowniki-grid--single {
  grid-template-columns: 1fr !important;
}

/* ===============================
   BOX: Pojedynczy kafelek
   =============================== */
.sterownik-box {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sterownik-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===============================
   Obrazek (miniatura)
   =============================== */
.sterownik-box img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #eee;
  border-radius: 6px 6px 0 0;
}

/* ===============================
   Brak zdjęcia – szary box
   =============================== */
.no-image {
  background: #f0f0f0;
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 14px;
}

/* ===============================
   Kategoria
   =============================== */
.kategoria {
  font-size: 13px;
  font-weight: 600;
  color: #777;
  padding-top: 10px;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
}

/* ===============================
   Tytuł (nagłówek h3 z linkiem)
   =============================== */
.tytul {
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  width: 100%;
  text-align: center;
}

.tytul a {
  text-decoration: none;
  color: #333333;
  transition: color 0.2s ease;
}

.tytul a:hover {
  color: #7332c3;
}

/* ===============================
   FILTRY – inputy i przyciski
   =============================== */
.filtry-grupa {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  align-items: center;
}

.filtr-input {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.btn-filtruj,
.filtr-button {
  background: #7332c3;
  color: #fff;
  border: none;
  padding: 10px 18px;
  margin-top: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-filtruj:hover,
.filtr-button:hover {
  background-color: #431B75;
  transform: scale(1.03);
}

/* ===============================
    ogólny formularz z zamówieniem 
   =============================== */
/* Dropdown sterowniki – dopasowanie szerokości i przewijanie listy opcji */
#sterowniki_dropdown {
    width: 100%;           /* dropdown dopasowany do szerokości kontenera */
    max-width: 100%;       /* nie wychodzi poza ekran */
    box-sizing: border-box;
}

/* Przewijanie listy rozwijanej – działa w większości przeglądarek */
#sterowniki_dropdown option {
    max-width: 100%;
}

/* Na telefonach zmniejszamy font i padding dla lepszego dopasowania */
@media (max-width: 768px) {
    #sterowniki_dropdown {
        font-size: 14px;
        padding: 6px;
    }
}

/* ===============================
    kontener z filem na stronie strownika 
   =============================== */

.scf-accordion-content iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    display: block;
    }
 /* ===============================
    Formularz kontaktowy 
   =============================== */   
    
hr.cf7-separator {
  border: none !important;
  border-top: 2px dotted #7938c8 !important;
  margin: 20px 0 !important;
}
