body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
}


.product-card {
    max-height: 600px; /* dopasuj według potrzeb */
    overflow: hidden; /* jeśli chcesz przyciąć nadmiar tekstu */
    display: flex;
    flex-direction: column;
}

.description {
    overflow-y: auto; /* jeśli chcesz scrolla w opisie */
    flex-grow: 1;     /* wypełnia miejsce w karcie */
    word-wrap: break-word; /* zawijanie długich słów */
    white-space: normal;   /* pozwala tekstowi się łamać w linie */
    overflow-wrap: anywhere; /* bardziej agresywne zawijanie */
}

header {
    background: #333;
    color: white;
    padding: 20px;
    text-align: center;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
    justify-content: center;
}

.product-card {
    background: white;
    width: 260px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Zdjęcia */
.product-images {
    text-align: center;
}

.main-img {
    width: 100%;
    border-radius: 10px;
    cursor: zoom-in;
}

.thumbs {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
}

.thumbs img:hover {
    transform: scale(1.5);
    transition: transform 0.5s;
    opacity: 1;
}
.thumbs img.active {
    border: 2px solid #e53935;
    opacity: 1;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);/*cień wokół obrazka*/
}


.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
}

.nav:hover {
    opacity: 1;
}

.prev { left: 20px; }
.next { right: 20px; }

#lightbox-img {
    transition: transform 0.3s ease; /* płynne powiększanie */
    cursor: grab;
}

@media (max-width: 600px) {
    .product-card {
        width: 90%;
    }
    .thumbs {
        flex-wrap: wrap;
        gap: 5px;
    }
}
.price {
    font-weight: bold;
    font-size: 1.2em;
    color: #322;
}