body {
    font-family: Verdana, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #ffffff 0%, #f4f8fb 100%);
    color: #000000 !important;    
}

body.produkt #search-bar {
    display: none;
}

body.produkty #search-bar {
    display: flex; /* lub block, w zależności od obecnych stylów */
}


#logo {
    max-width: 1920px;
    margin: 0 auto;
}


#logo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    #logo {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    #logo img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
    }
}


#search-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}


.search-container input {
    padding: 10px;
    width: 420px;
    max-width: 520px;
    font-size: 16px;
    height: 40px;
    box-sizing: border-box;
}

#content-area {
    padding: 20px;
    animation: fadein 0.5s;
}

/* Produkty - widok siatki */
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 0 5%;
}


@media (max-width: 1100px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 3%;
    }
}

.product-item {
    border: 1px solid #333;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: background-color 0.3s;
    background: none;
}

.product-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
    border-radius: 4px;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.product-symbol {
    font-weight: bold;
    font-size: 12px;
    color: #003366;
}

.product-name {
    font-size: 12px;
    color: #003366;
}

.product-description {
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}


@media (max-width: 600px) {
    .product-item {
        width: 45%;
        font-size: 10px;
        padding: 5px;
    }

    .product-image {
        max-width: 100px;
    }
}


/* Szczegóły produktu */
.product-title {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 28px;
    color: #003366;
    font-weight: bold;
    text-align: center;
    margin-top: 40px;
}

.product-category {
    font-size: 8px;
    line-height: 1.2;
    margin-top: 1px;
    color: #003366;

}


#category-menu button {
  padding: 6px 12px;
  background: #f0f0f0;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
}
#category-menu button:hover {
  background: #ddd;
}

#lista-kategorii {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
}
.grupa-kategorii {
    border: 1px solid #ccc;
    padding: 10px;
    min-width: 200px;
}




/* --- GŁÓWNY UKŁAD PRODUKTU (GRID) --- */
.product-detail-container{
    display:grid;
    grid-template-columns:1fr 1fr;   /* 2 kolumny */
    gap:30px;
    margin:40px 5%;
    max-width:1200px;
    align-items:start;
}

.product-main-image,
.product-info{
    width:100%;
    margin-bottom: 40px;
    box-sizing:border-box;
}

.product-info p,
.product-info li {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

/* Zdjęcie główne – elastyczne */
.main-img{
    width:100%;
    max-width:500px;      /* ogranicz szerokość na desktopie */  /*max-height:500px; */    /* i wysokość */
    object-fit:contain;
    border:1px solid #ccc;
    border-radius:6px;
    display:block;
}

/* galeria pod spodem */
.additional-images{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin:30px 5%;
}

.additional-img {
    width: 300px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 10px;
    background: white;
}


/* Breakpoint – całość w jednej kolumnie */
@media(max-width:1100px){
    .product-detail-container{ grid-template-columns:1fr; }
    .main-img{ max-width:100%; max-height:none; }
}


/* Języki */
.lang-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 10px 0;
}

.lang-btn {
    padding: 10px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    color: #003366;
    text-decoration: none;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

/* Miniaturki */
.thumbnail {
    width: 60px;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover {
    border: 2px solid yellow;
}

/* Stopka */
#footer {
    text-align: center;
    background-color: #f4f8fb;
    padding: 20px 10px;
    font-size: 12px;
    color: #555;
    border-top: 1px solid #ccc;
}


/* Animacje */
@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gpsr-notice {
    margin: 40px 5%;
    font-size: 10px;
    line-height: 1.6;
    color: #333; /* Zmiana z #ccc na ciemniejszy #333 */
}

.gpsr-notice a {
    color: #003366; /* Pasujący kolor linków do reszty stylu */
}

.url-block {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
}

.url-block a {
    color: #444;
    text-decoration: underline;
    word-break: break-all;
}

.url-block a:hover {
    color: #000;
    text-decoration: none;
}

/* Przycisk przy wyszukiwarce — centrowanie strzałki */
.search-container button {
    height: 40px;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    font-size: 22px;   /* wielkość strzałki */
}

