/* Reset podstawowych stylów */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3a86ff;
    --secondary-color: #ff006e;
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --gray-color: #f8f9fa;
    --light-gray: #f1f1f1;
    --text-color: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--gray-color);
}

/* mini toast */
.toast {
    position: fixed;
    top: 20px;              
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    min-width: 260px;
    max-width: 90vw;
    padding: 12px 16px;
    background: rgba(0,0,0,.85);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 9999;
  }
  .toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .toast--error { background: #c0392b; }
  .toast--ok    { background: #007d0c; }
  

/* Nagłówek strony */
header {
    background-color: var(--light-color);
    color: var(--text-color);
    padding: 1.2rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100vw;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
}

/* Dla ciemnego tła nagłówka */
header {
    background-color: #0a1526; /* Ciemny granatowy kolor jak na logo */
    color: white;
}

nav ul li a {
    color: white;
}

nav ul li a:hover, nav ul li a.active {
    color: #ffffff;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

.hero-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    margin: 8rem auto 0 auto;
    gap: 0;
    background: none;
    margin-bottom: 50px;
}

.hero-image-col {
    flex: 1 1 45%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a1526;
    min-width: 280px;
    max-width: 520px;
    padding: 0;
    border-radius: 10px;
}

.hero-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px 0 0 12px;
    min-height: 320px;
    max-height: 380px;
}

.hero {
    flex: 1 1 55%;
    display: flex;
    align-items: center;
    background: var(--light-color);
    border-radius: 0 12px 12px 0;
    padding: 0;
}

.hero-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.cena {
    display: none !important;
}

/* Sekcja dlaczego warto nas wybrać */
.why-choose-us {
    background-color: var(--light-color);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: 20px;
    max-width: 1200px;
}

.why-choose-us h2 {
    margin-bottom: 3rem;
    color: var(--dark-color);
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.why-choose-us h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-box p {
    color: #666;
}

/* Główna zawartość */
main, section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
}

section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Sekcja kategorii produktów */
.product-categories {
    background-color: var(--light-color);
    padding: 5rem 2rem;
    text-align: center;
    max-width: 1200px;
    padding-bottom: 100px;
    border-radius: 10px;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 kolumny na desktop */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-box {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
}

.category-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.category-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.category-box p {
    color: #666;
    font-size: 0.9rem;
}

/* Specjalny kontener dla produktów na stronie głównej */
.featured-products {
    padding: 3rem 1rem;
    background-color: var(--gray-color);
    max-width: 100%;
}

.featured-products-produkty {
   display: flex;
   max-width: 1300px;
}

.produkty-container-home {
    display: flex;
    justify-content: space-between;
    gap: 23px; /* Zwiększony odstęp między kartami */
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    max-width: 1350px;
    margin: 0 auto;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

.produkty-container-home .produkt-karta {
    flex: 0 0 auto; /* Zmienione z flex-basis na auto */
    width: 290px; /* Bezpośrednie określenie szerokości */
    min-width: 250px; /* Minimalna szerokość */
    height: 450px; /* Stała wysokość dla wszystkich kart */
    display: flex;
    flex-direction: column;
}

.produkty-container-home .produkt-karta img {
  width: auto;
  height: auto;
  max-width: 100%;    /* nie wyjdzie poza szerokość karty */
  max-height: 180px;  /* nie będzie wyższy niż ramka */
  object-fit: contain;/* zachowa proporcje, nie przytnie */
  object-position: center center; /* wyrówna w ramce */
    transition: transform 0.3s ease;
}

.produkty-container-home .produkt-karta-zawartosc {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.produkty-container-home .produkt-karta h2 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    text-align: left;
    padding-bottom: 0;
    max-height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.produkty-container-home .produkt-karta h2::after {
    display: none;
}

.produkty-container-home .produkt-karta p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    height: 4.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.produkty-container-home .produkt-karta .cena {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.produkty-container-home .produkt-karta a {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    align-self: flex-start;
    margin-top: auto;
}

/* Media queries dla responsywności */
@media (max-width: 1200px) {
    .produkty-container-home {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .produkty-container-home .produkt-karta {
        width: calc(33.333% - 25px);
        min-width: 300px;
    }
}


/* Lista produktów na stronie produktów */
.produkty-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* elastyczny grid */
    gap: 25px;
    margin: 0 auto;
    max-width: 1300px;
    justify-content: center;
    padding: 1rem;
  }
  
  /* Karty produktów dostosowane do grida */
  .produkt-karta {
    background-color: var(--light-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    width: 100%; /* dopasowanie do kolumny */
    max-width: 100%;
  }
  
  .produkt-karta img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.3s ease;
  }
  @media (max-width: 1024px) {
    .produkty-container {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
  }
  
  @media (max-width: 768px) {
    .produkty-container {
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 20px;
      padding: 0.5rem;
    }
  
    .produkt-karta img {
      height: 160px;
    }
  
    .produkt-karta h2 {
      font-size: 1.1rem;
    }
  }
  
  @media (max-width: 480px) {
    .produkty-container {
      grid-template-columns: 1fr;
      gap: 15px;
    }
  
    .produkt-karta {
      height: auto;
      max-width: 95%;
      margin: 0 auto;
    }
  }

.produkt-karta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.produkt-karta img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: var(--transition);
}


.produkt-karta-zawartosc {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    font-size: 0.8rem;
}

.produkt-karta h2 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    text-align: left;
    padding-bottom: 0;
    max-height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.produkt-karta h2::after {
    display: none;
}

.kategoria {
    display: inline-block;
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.5rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}


.produkt-karta p {
    margin-bottom: 1.2rem;
    color: #666;
    flex-grow: 1;
}

.produkt-karta .cena {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.produkt-karta a {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.produkt-karta a:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}

.view-all-products {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-block;
    background-color: var(--dark-color);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;

}

.btn-view-all:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}

/* Strona produktów - nagłówek */
.products-header {
    background: linear-gradient(135deg, var(--primary-color), #4361ee);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 0;
    max-width: 100%;
}

.products-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

/* Filtry kategorii */
.products-filter {
    background-color: var(--light-color);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 85px;
    z-index: 99;
    margin-bottom: 2rem;
    max-width: 100%;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.filter-item {
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 500;
}

.filter-item:hover, .filter-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Szczegóły produktu */
.produkt-szczegoly {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 2rem auto !important;
  padding: 0 1rem !important;
  min-height: 700px;
  max-width: 1200px;
}

/* 2) Ustaw flex-layout, z obrazkiem po lewej i tekstem po prawej */
.produkt-szczegoly {
  display: flex;
  align-items: flex-start; /* wyrównaj od góry */
  gap: 5rem;
}

/* 3) Obrazek – 50% szerokości, zachowuje proporcje */
.produkt-zdjecie {
  flex: 1;
  min-width: 300px;
}
.produkt-zdjecie img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;      /* bez zaokrągleń */
}

/* 4) Dane – druga kolumna, 50–60% szerokości */
.produkt-dane {
  flex: 1.2;
  min-width: 300px;
}
.produkt-dane h1 {
  font-size: 2.5rem;
  margin: 0 0 1rem;
}
.produkt-dane .kategoria {
  display: block;
  color: #666;
  font-size: 1rem;   /* większa od kategorii */
  margin-bottom: 1rem;
}
.produkt-dane .podkategoria {
    display: block;
    font-size: 0.9rem;   /* większa od kategorii */
    font-weight: 500;
    color: #222;
    margin-top: 0.15rem; /* blisko kategorii */
    margin-bottom: 1rem; /* przed ceną/opisem */
  }
  /* Mniejsza wersja dla kart (mini badge) */
.podkategoria-mini {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.1rem;
  }
  /* Mini akordeon */
.acc {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    margin: 1rem 0 1.25rem 0;
  }
  .acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .9rem 1rem;
    background: #f8fafc;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    text-align: left;
  }
  .acc-btn:focus {
    outline: 3px solid rgba(58,134,255,.25);
    outline-offset: 2px;
  }
  .acc-panel {
    padding: 1rem 1rem 1.2rem;
    border-top: 1px solid #e5e7eb;
    line-height: 1.7;
    color: #1f2937;
  }
  .acc-ico {
    transition: transform .2s ease;
  }
  .acc-btn[aria-expanded="true"] .acc-ico {
    transform: rotate(180deg);
  }
  
  /* Toast */
  .toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #222;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
  }
  .toast--ok { background: #198754; }
  .toast--error { background: #d63333; }
  .toast--show { opacity: 1; pointer-events: auto; }

.produkt-dane p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.produkt-dane .cena {
  font-size: 2rem;
  font-weight: 700;
  color: #ff0066;
  margin-bottom: 1.5rem;
  display: inline-block;
}
.produkt-dane .btn {
  padding: .75rem 1.5rem;
  border-radius: 30px;
  background-color: #0066ff;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.produkt-karta-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
}

/* Formularz kontaktowy */
.contact-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1000px;
    max-height: 500px;
    margin: 13vh auto;
    background: var(--light-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    gap: 0;
}

.contact-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Dodaj to */
    padding: 3rem 1rem;
}

.contact-form-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%;
    gap: 1.5rem;
}

.contact-form-inner h2 {
    text-align: center;
    width: 100%;
}
.form-group input, .form-group textarea {
    min-width: 350px;
    max-width: 400px;
}

.contact-map-col {
    flex: 1 1 50%;
    min-width: 320px;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.contact-map-col iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    display: block;
    border-radius: 16px;
    position: relative;
    left: -16px;
}

.contact-form-col {
    flex: 1 1 50%;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
    background: var(--light-color);
}

.contact-form-col h2 {
    margin-bottom: 1.3rem;
    color: var(--dark-color);
    font-size: 1.6rem;
    text-align: center;
}

.form-group {
    margin-bottom: 0.7rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    transition: var(--transition);
    max-width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    max-width: 500px;
}
.btn-back {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    max-width: 300px;
}

.btn-submit:hover {
    background-color: #2563eb;
    transform: translateY(-3px);
}



/* Panel administratora */
.admin-panel {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-panel h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.produkty-lista {
    background-color: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.produkty-lista h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.admin-produkt-item {
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.admin-produkt-item:hover {
    background-color: rgba(58, 134, 255, 0.05);
}

.admin-produkt-item:last-child {
    border-bottom: none;
}

.admin-produkt-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Komunikat o braku produktów */
.no-products {
   position: relative;
   left: 30vw;
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Stopka */
.site-footer {
    background: #0a1526;
    color: #fff;
    padding: 2.5rem 1rem 1rem 1rem;
    font-size: 1rem;
    margin-top: 3rem;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto 1rem auto;
    gap: 2rem;
}
.footer-nav {
    min-width: 180px;
}
.footer-nav strong {
    display: block;
    margin-bottom: 0.7em;
    font-size: 1.1em;
}
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav li {
    margin-bottom: 0.4em;
}
.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: #3a86ff;
    text-decoration: underline;
}
.footer-company {
    font-size: 1.05rem;
    line-height: 1.7;
    min-width: 220px;
}
.footer-company strong {
    display: block;
    margin-bottom: 0.7em;
    font-size: 1.1em;
}
.footer-contact {
    font-size: 1.05rem;
    line-height: 1.7;
    min-width: 200px;
}
.footer-contact strong {
    display: block;
    margin-bottom: 0.7em;
    font-size: 1.1em;
}
.footer-contact i {
    margin-right: 0.5em;
    color: #3a86ff;
}
.footer-contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact a:hover {
    color: #3a86ff;
}
.footer-bottom {
    text-align: center;
    font-size: 0.95rem;
    color: #bbb;
    border-top: 1px solid #233;
    padding-top: 1rem;
    margin-top: 1rem;
}

.about-row {
    height: 500px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1000px;
    margin: 13vh auto;
    background: var(--light-color);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.about-text {
    flex: 1 1 55%;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.about-text h1 {
    font-size: 2.3rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: #222;
}

.about-image {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    max-width: 520px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    min-height: 120px;
    max-height: 120px;
    border-radius: 0 16px 16px 0;
}
/* Style dla modala edycji */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #3b82f6;
}

/* Style dla przycisków akcji */
.admin-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-edit, .btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #3b82f6;
    color: white;
}

.btn-edit:hover {
    background-color: #2563eb;
}

.btn-delete {
    background-color: #ef4444;
    color: white;
}

.btn-delete:hover {
    background-color: #dc2626;
}
.produkty-container .produkt-karta img {
  width: auto;
  height: auto;
  max-width: 100%;    /* nie wyjdzie poza szerokość karty */
  max-height: 180px;  /* nie będzie wyższy niż ramka */
  object-fit: contain;/* zachowa proporcje, nie przytnie */
  object-position: center center; /* wyrówna w ramce */
    transition: transform 0.3s ease;
}



@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .footer-nav, .footer-company, .footer-contact {
        min-width: unset;
        width: 100%;
    }
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
}
@media (max-width: 900px) {
    .hero-row {
        margin-top: -0px;
        flex-direction: column;
        align-items: stretch;
    }
    .hero-image-col,
    .hero {
        max-width: 100%;
        border-radius: 0px 0px 0 0;
    }
    .hero-image-col img {
        border-radius: 12px 12px 0 0;
        min-height: 180px;
        max-height: 250px;
    }
    .hero-content {
        padding: 2rem 1rem;
        text-align: center;
    }
    .hero-content h2 {
        font-size: 30px;
    }
     .hero-content p {
        font-size: 16px;
    }
    .feature-box p {
        font-size: 13px;
    }
    .featured-products h2{
        font-size: 30px;
    }
    .product-categories h2 {
        font-size: 30px;
    }
    
    .produkty-container-home {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #3a86ff #f8f9fa;
      }
      .produkty-container-home .produkt-karta {
        flex: 0 0 80vw;
        width: 80vw;
        min-width: 260px;
        max-width: 340px;
        height: 400px;
      }
      .produkty-container-home {
        scroll-snap-type: x mandatory;
      }
      .produkt-karta {
        scroll-snap-align: start;
        max-width: 60px !important;
      }
      .produkty-container-home {
        -webkit-overflow-scrolling: touch;
      }
      .categories-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 1rem 0.5rem !important;
        width: 100%;
    }
    .category-box p {
        display: none !important;
    }
    .category-box {
        padding: 1.5rem 1rem;
        min-width: 140px !important;
        max-width: 180px !important;
        max-height: 180px;
    }
    .category-icon {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    .category-box h3 {
        font-size: 0.9rem !important;
        text-align: center;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    .footer-company,
    .footer-contact,
    .footer-nav {
        width: 100%;
        min-width: unset;
        margin-bottom: 1.1em;
        font-size: 14px;
    }
    .footer-nav ul {
        padding-left: 0;
    }
    .footer-nav li {
        display: inline-block;
        margin: 0 0.4em 0.4em 0.4em;
    }
    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .why-choose-us h2 {
        font-size: 30px;
    }
    .about-row {
    flex-direction: column;
    align-items: center;
    height: 60vh;
    margin: 5rem 0 5rem 0;
    box-shadow: 0 2px 8px rgba(58,134,255,0.07);
    border-radius: 16px;
    padding: 0 0 1.5rem 0;
    max-width: 98vw;
  }
  .about-image {
    display: none;
  }
  .about-image img {
    border-radius: 16px;
    min-height: 80px;
    max-height: 120px;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
    background: #f4fafb;
    object-fit: contain;
    box-shadow: 0 2px 12px rgba(58,134,255,0.10);
  }
  .about-text {
    order: 2;
    padding: 1.5rem 1rem 1.5rem 1rem !important;
    text-align: center;
    max-width: 100%;
  }
  .about-text h1 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
  }
  .about-text p {
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
    line-height: 1.6;
  }
  .no-products {
    position: relative;
    left: 18vw !important;
     text-align: center;
     padding: 2rem;
     width: 200px !important;
     color: #666;
     font-style: italic;
 }

 .produkty-container-home .produkt-karta p {
    font-size: 0.75rem;
}

#produkt-info h1,
#produkt-info h2 {
    font-size: 1.8rem !important;    /* wybierz wartość, która Ci odpowiada */
    line-height: 1.2 !important;
  }

.produkt-szczegoly {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .produkt-szczegoly > * {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  .produkt-szczegoly > *:not(:first-child) {
    margin-top: 1.5rem !important;
  }
 .contact-row {
    flex-direction: column;
    max-height: none;
    margin: 3vh auto;
  }

  .form-group input, .form-group textarea {
    min-width: 300px;
    max-width: 350px;
}

  .contact-form-col {
    order: 1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0rem 0.5rem !important;
  }
  .contact-form h2 {
    font-size: 30px;
  }

  .contact-map-col {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin-top: 1.5rem;
    height: 200px !important;
  }
  .contact-map-col iframe {
    width: 100% !important;
    border-radius: 12px;
    position: relative;
    left: 0px;
  }

    .produkty-container-home .cena {
    font-size: 1.2rem;
    margin-top: -20px;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}
  .produkty-container {
    display: flex !important;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    gap: 20px !important;
    padding-bottom: 1rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    scroll-snap-type: none !important;
  }
  .produkty-container .produkt-karta {
    width: 75vw !important;
    min-width: 0 !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    height: auto !important;
    scroll-snap-align: none !important;
  }
  .produkty-container .produkt-karta-zawartosc h2 {
    font-size: 20px;
  }
  .products-filter {
    position: sticky;
    top: 138px;
    z-index: 99;
    margin-bottom: 2rem;
    max-width: 100%;
}
}
@media (hover: hover) and (pointer: fine) {
    /* Efekt hover tylko na urządzeniach z myszką */
    .produkt-karta:hover {
      transform: scale(1.03);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
  }
  
  @media (hover: none), (pointer: coarse) {
    /* Wyłącz hover i powiększenie na urządzeniach dotykowych */
    .produkt-karta,
    .produkt-karta:hover {
      transform: none !important;
      box-shadow: var(--shadow) !important;
    }
  }
