@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Carter+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    --glowny: #1F2232
}

::-webkit-scrollbar {
    width: .4rem;
}

::-webkit-scrollbar-track {
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, .2);
}

::-webkit-scrollbar-thumb {
    background: var(--glowny);
    border-radius: 1rem;
    margin-block: 2rem;
}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #F3F3F3;
    color: var(--glowny);
    overflow-y: scroll;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 5rem;
    background: var(--glowny);
    font-family: 'Lobster';
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
    filter: drop-shadow(0px 0px 3px black)
}

main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0 1rem 0;
    max-width: 1600px;
    margin: 0 auto;
    width: calc(100% - 2rem);
    flex-grow: 1;
}

.logo img {
    width: 3.5rem;
    filter: drop-shadow(0px 0px 4px black)
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.menu div {
    font-size: 25px;
    color: white;
    padding: .5rem 1rem;
    filter: drop-shadow(0px 0px 3px black);
    border-radius: 8px;
    transition: .15s ease-in-out;
}

.menu div:hover {
    background: #373C58;
    color: bisque;
    transform: translateY(1px) translateX(1px);
    cursor: pointer;
}

.menu img {
    width: 2.5rem;
    filter: drop-shadow(0px 1px 2px black)
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background-color: white;
    padding: 1.5rem 2.5rem;
    border-radius: 12px;
    width: calc(100% - 2rem);
    max-width: 1600px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.stopka-lewy h3 {
    margin-top: 0;
}

.stopka-lewy p {
    margin-block: 6px;
}

.s-prawy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.s-prawy h3 {
    margin-top: 0;
}

.s-prawy p {
    margin-block: 6px;
}

.s-prawy a {
    margin-block: 6px;
    text-decoration: none;
    color: var(--glowny);
}

@media (max-width: 1000px) {

    main{
        padding: 1rem 0;
    }

    .produkty {
        grid-template-columns: 1fr;
    }

    .belka {
        flex-wrap: wrap;
        justify-content: center;
    }

    .klatka {
        grid-template-columns: 150px 2fr 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .gora {
        flex-direction: column;
        gap: 1rem;
    }

    #produkt {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .lewy {
        width: 70%;
    }

    .kontakt {
        grid-template-columns: 1fr;
    }

    .koszyk {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


@media (max-width: 600px) {

    header {
        height: auto;
        flex-direction: column;
        padding: 0.8rem 0.5rem;
        border-radius: 0;
    }

    .logo {
        display: none;
    }

    .menu {
        justify-content: space-around;
        width: 100%;
        gap: 0;
    }

    .menu div {
        font-size: 20px;
        padding: 0.4rem;
    }

    .menu img {
        width: 1.6rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .s-prawy {
        align-items: center;
    }

    #home{
        gap: 1.5rem;
    }

    .homik {
        padding: 3rem 1rem;
    }

    .homik h1 {
        font-size: 2.5rem;
    }

    .klateczki {
        gap: 1rem;
        grid-template-columns: 1fr;
    }


    #lewy, .belka, .klatka {
        padding: 1.5rem 1rem;
    }

    .belka {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    #cena input[type=number] {
        width: 100%;
    }

    .klatka {
        grid-template-columns: 1fr;
        height: auto;
        text-align: center;
        justify-items: center;
        gap: 1rem;
    }

    .klatka-lewy img {
        width: 90%;
        height: auto;
    }

    .klatka-srodek h2 {
        font-size: 2rem;
    }

    .ocena {
        margin-block: .5rem .4rem;
    }

    .klatka-prawy {
        margin-top: 1rem;
        align-items: center;
    }

    #produkt {
        padding: 3rem 1rem 1.5rem 1rem;
    }

    .powrot {
        top: 1rem;
        left: 1rem;
    }
    
    .prawy {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-inline: 0;
        gap: 1.5rem;
    }

    .b-lewy {
        align-items: center;
    }

    .b-lewy h2 {
        font-size: 2rem;
        text-align: center;
    }

    .b-prawy {
        align-items: center;
        gap: 1rem;
    }

    .lewy {
        width: 100%;
    }

    .dol {
        width: 100%;
    }

    .tabelka div {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        align-items: center;
    }

    .tabelka .wlasc {
        text-align: center;
    }

    .opis {
        padding-inline: 0;
    }

    .kontakt .formularz, .kontakt .info {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .pozycja {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1.5rem 1rem;
    }

    .pozycja img {
        width: 120px;
        height: 120px;
    }

    .infoK {
        align-items: center;
    }

    .infoK h3 {
        font-size: 1.5rem;
    }

    .podsumowanie {
        padding: 1.5rem 1rem;
    }

    .podsumowanie p, .podsumowanie h3 {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
    }
}