body {
    margin: 0;
    /*font-family: Arial, sans-serif;*/
    font-family: Helvetica;
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
}

.side {
    display: flex;
    min-height: 100vh;
}

header {
    flex: 0 0 350px;
    height: 100%;
    /*background: #a47864;*/
    background: white;
    color: white;
    text-align: right;
    padding-left: 0;
    padding-right: 0;
    font-size: 1.12rem;
}

    header.logofoto {
        background-color: red;
        margin: 0;
        text-align: right;
    }

        header .logofoto img {
            display: inline-block;
        }

    header h1 {
        margin: 0;
        width: 100%;
    }

main {
    flex: 1;
    max-width: 100%;
    margin-left: 2rem;
    margin-right: 2rem;
    padding: 0 1rem;
}

    main h1 {
        text-align: center;
    }

.swiper {
    max-width: 1200px;
    width: 100%;
    margin: 200px auto 50px auto; /* góra 300px, lewo/prawo auto, dół 0 */
    display: flex;
    justify-content: center; /* wyśrodkowanie poziome */
    align-items: center; /* wyśrodkowanie pionowe */
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .swiper-slide img {
        max-width: 100%;
        max-height: 80vh; /* żeby nie uciekło poza ekran */
        object-fit: contain;
        display: block;
        margin: auto; /* dodatkowe zabezpieczenie */
    }

:root {
    --swiper-navigation-color: #a47864; /* kolor strzałek */
    --swiper-pagination-color: #a47864; /* kolor aktywnej kropki */
}


.swiper-button-next::after {
    content: "" !important; /* wywalamy domyślną strzałkę */
    background-image: url("zdjecia/next.png") !important;
    background-repeat: no-repeat;
    background-size: 27px 37px; /* dokładny rozmiar */
    width: 27px;
    height: 37px;
    display: block;
}

.swiper-button-prev::after {
    content: "" !important; /* wywalamy domyślną strzałkę */
    background-image: url("zdjecia/back.png") !important;
    background-repeat: no-repeat;
    background-size: 27px 37px; /* dokładny rozmiar */
    width: 27px;
    height: 37px;
    display: block;
}

img {
    margin: 0;
}

swiper-slide-visible {
    justify-content: center;
}

img {
    margin-top: 4%;
}

nav {
    align-items: center;
}

header nav {
    text-align: right;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: white;
}

    header nav a {
        display: block;
        color: #000;
        padding: 4px 4px;
        text-decoration: none;
        font-size: 95%;
    }

        /* Change the link color on hover */
        header nav a:hover {
            background-color: #f1f1f1;
            color: #a47864;
        }

h2 {
    color: #a47864;
}

.about {
    max-width: 1000px;
    margin-top: 15px;
    background: white;
    padding: 1.5rem;
}

.product {
    max-width: 1000px;
    margin-top: 139px;
    background: white;
    padding: 1.5rem;
}

.contact {
    max-width: 1000px;
    margin-top: 14px;
    background: white;
    padding: 1.5rem;
}

ul {
    list-style: none;
    padding: 0;
}

    ul li {
        margin-bottom: 0.5rem;
    }

a {
    color: #a47864;
    text-decoration: none;
    word-wrap: anywhere;
}

    a:hover {
        text-decoration: underline;
    }


footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    background: #f1f5f9;
    font-size: 0.9rem;
    color: #555;
}

.produkty {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border: 1px solid #ddd;
}

.produkty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 w rzędzie */
    gap: 1.5rem; /* odstęp między zdjęciami */
}

    .produkty-grid a {
        display: block;
        text-align: center;
        text-decoration: none;
        color: #333;
        transition: transform 0.3s ease;
    }

        .produkty-grid a:hover {
            transform: scale(1.05); /* lekkie powiększenie po najechaniu */
        }

    .produkty-grid img {
        width: 100%;
        height: auto;
        border-radius: 0px;
    }

    .produkty-grid p {
        margin-top: 0.5rem;
        font-size: 1rem;
        color: #a47864;
    }

.produkt-szczegoly {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border: 1px solid #ddd;
    text-align: center;
}

.galeria {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glowne-zdjecie img {
    width: 100%;
    max-width: 600px;
    border-radius: 0px;
    margin-bottom: 1rem;
}

.miniaturki {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap; /* żeby na małych ekranach się łamały */
}

    .miniaturki img {
        width: 100px;
        height: auto;
        border-radius: 6px;
        cursor: pointer;
        transition: transform 0.3s ease, border 0.3s ease;
    }

        .miniaturki img:hover {
            transform: scale(1.1);
            border: 2px solid #a47864;
        }

.opis {
    margin-top: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}



@media (max-width: 768px) {
    .side {
        flex-direction: column;
    }

    header {
        width: 100%;
    }

        header nav {
            text-align: center;
            list-style-type: none;
            margin: 0;
            padding: 0;
            background-color: white;
        }

            header nav a {
                display: block;
                color: #000;
                padding: 4px 4px;
                text-decoration: none;
                font-size: 95%;
            }

        header .logofoto {
            text-align: center;
        }

            header .logofoto img {
                display: inline-block;
                max-width: 100%;
                height: auto;
            }

        .produkty-grid {
            grid-template-columns: repeat(2, 1fr); /* na tablet 2 w rzędzie */
        }
 
        .produkty-grid {
            grid-template-columns: 1fr; /* na telefon 1 w rzędzie */
        }
}
