/* NAV */

@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;
    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 a {
    font-size: 25px;
    color: white;
    text-decoration: none;
    padding: .5rem 1rem;
    transition: transform 0.2s;
    filter: drop-shadow(0px 0px 3px black)
}

.menu a:hover {
    background: #373C58;
    color: bisque;
    border-radius: 8px;
    transform: translateY(1px) translateX(1px);
}

.menu img {
    width: 2.5rem;
    filter: drop-shadow(0px 1px 2px black)
}

.koszyk {
    position: relative;
}

.koszyk span {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--glowny);
    padding: 0px 10px;
    border-radius: 8px;
    font-size: 1.4rem;
}

.koszyk:hover span {
    background: #373C58;
    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);
}



/* INDEX */




/* PRODUKTY */



.produkty {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

#lewy {
    display: flex;
    flex-direction: column;
    background-color: white;
    gap: 2rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
}

#lewy h1 {
    color: var(--glowny);
    font-weight: 600;
    text-transform: uppercase;
    font-family: "Instrument Sans";
}

.filtr {
    color: var(--glowny);
    font-weight: 600;
    text-transform: uppercase;
    padding-left: 10px;
}

.filtr label {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .2rem;
}

.filtr h3 {
    margin-top: 0;
}

#rodzaj label:hover, #ocena label:hover {
    background-color: rgb(248, 248, 248);
    color: rgb(65, 72, 122);
    cursor: pointer;
    border-radius: 4px;
}

.filtr label input[type=checkbox] {
    height: 18px;
    width: 18px;
    accent-color: var(--glowny);
}

input[type="checkbox"]:checked {
    background-color: #eb2525;
}

#ocena span {
    color: #E0A000;
}

#oddo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

#cena input[type=number] {
    width: 50%;
    padding: .5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
    text-align: center;
}

#reset {
    width: 80%;
    align-self: center;
    border: 1px solid #888888;
    background-color: transparent;
    color: #666666;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#reset:hover {
    cursor: pointer;
    background-color: #777777;
    color: white;
    box-shadow: 0 4px 10px rgba(102, 102, 102, 0.3);
}

#prawy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.belka {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
    background-color: white;
    ;
    padding: 1rem 2.5rem;
    border-radius: 12px;
}

.sortowanie {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sortowanie span {
    text-wrap: nowrap;
    color: var(--glowny);
    font-weight: 600;
    text-transform: uppercase;
}

#sort {
    padding: 6px 14px 6px 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

#sort:focus {
    outline: none;
    border-color: #9ca3af;
}

#o-sort {
    color: rgb(100, 100, 100);
    width: 30px;
    padding: 4px;
    transition: .1s ease-in-out;
}

#o-sort:hover {
    background-color: rgb(248, 248, 248);
    color: rgb(65, 72, 122);
    cursor: pointer;
    border-radius: 4px;
}

.r_sort {
    transform: rotate(180deg);
}

.wyszukiwarka {
    position: relative;
}

#search {
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}

#search:focus {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

#brak {
    margin-top: .8rem;
    color: var(--glowny);
    font-weight: 600;
    text-transform: uppercase;
}

.ikona-szukaj {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.2s ease;
}

#produkty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.klatka {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 3rem;
    background-color: white;
    ;
    padding: 1rem 2rem;
    border-radius: 12px;
    height: 200px;
}

.klatka:hover {
    cursor: pointer;
}

.klatka .dodaj {
    border: 1px solid #339633;
    background-color: transparent;
    color: #3BB03B;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.klatka .dodaj:hover {
    background-color: #3BB03B;
    color: white;
    box-shadow: 0 4px 10px rgba(59, 176, 59, 0.3);
}

.klatka-lewy {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.klatka-lewy img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .5rem;
}

.klatka-srodek h2 {
    font-family: 'Kaushan Script';
    color: var(--glowny);
    margin: 0;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.klatka-srodek .k_opis, .ocena {
    color: rgb(100, 100, 100);
}

.ocena {
    margin-block: .5rem 2rem;
}

.ocena span {
    color: #E0A000 !important;
}

.klatka-prawy .cena {
    color: var(--glowny);
    font-size: 20px;
    font-family: 'Lobster', cursive;
}



/* PRODUKT */



#produkt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    max-width: 1600px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    padding: 2rem 4rem;
}

.gora {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.lewy {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 40%;
}

.lewy img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prawy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-inline: 2rem;
}

.b-lewy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.b-lewy h2 {
    font-family: 'Kaushan Script';
    color: var(--glowny);
    margin: 0;
    font-size: 2.5rem;
}

.b-lewy .k_opis {
    color: rgb(100, 100, 100);
    width: 90%;
}

.b-prawy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.b-prawy .cena {
    color: var(--glowny);
    font-size: 20px;
    font-family: 'Lobster', cursive;
}

.prawy .dodaj {
    border: 1px solid #339633;
    background-color: transparent;
    color: #3BB03B;
    padding: 10px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prawy .dodaj:hover {
    background-color: #3BB03B;
    color: white;
    box-shadow: 0 4px 10px rgba(59, 176, 59, 0.3);
}

.ocena span {
    color: #E0A000 !important;
}

.opis {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    padding-inline: 2rem;
    text-align: justify;
}

.tabelka {
    display: flex;
    flex-direction: column;
    width: 60%;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    margin: 0 auto;
}

.tabelka div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0.8rem 1.2rem;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.tabelka div:nth-child(2n + 1) {
    background-color: #bebebe;
    color: #ffffff;
}

.tabelka div:nth-child(2n) {
    background-color: #ffffff;
    color: #555555;
}

.tabelka .spec {
    font-weight: 600;
}

.tabelka .wlasc {
    text-align: right;
    font-weight: 500;
}



/* KONTAKT */



.kontakt {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.kontakt .formularz, .kontakt .info {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
}

.kontakt .info h2, .kontakt .formularz h2 {
    margin-top: 0;
    color: var(--glowny);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.kontakt .info h3 {
    font-family: 'Kaushan Script';
    margin: 0 0 1.2rem 0;
    font-size: 1.8rem;
    color: var(--glowny)
}

.kontakt .info p {
    margin-block: 8px;
    color: #555555;
}

.kontakt .info a {
    margin-block: 8px;
    text-decoration: none;
    color: #555555;
}

.kontakt .mapa {
    margin-top: 2rem;
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.kontakt .mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.kontakt .formularz form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kontakt .formularz input, .kontakt .formularz textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    transition: all 0.2s ease;
    outline: none;
}

.kontakt .formularz input:focus, .kontakt .formularz textarea:focus {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.kontakt .formularz textarea {
    resize: vertical;
}

.kontakt .blad {
    margin: 0;
    color: #eb2525;
    font-weight: 600;
    font-size: 14px;
}

.kontakt .wyslij {
    border: 1px solid #339633;
    background-color: transparent;
    color: #3BB03B;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kontakt .wyslij:hover {
    background-color: #3BB03B;
    color: white;
    box-shadow: 0 4px 10px rgba(59, 176, 59, 0.3);
}



/* KOSZYK */




.pusty {
    text-align: center;
    color: var(--glowny);
}

.koszyk{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 2rem;
    width: 100%;
}

.lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pozycja {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    gap: 2rem;
}

.pozycja img {
    width: 100px;
    height: 100px;
}

.infoK {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.infoK h3 {
    margin: 0;
    font-family: 'Kaushan Script';
    color: var(--glowny);
    font-size: 1.8rem;
}

.infoK p {
    margin: 0;
    color: #555555;
    font-weight: 500;
}

.usun {
    border: 1px solid #eb2525;
    background-color: transparent;
    color: #eb2525;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.usun:hover {
    background-color: #eb2525;
    color: white;
    box-shadow: 0 4px 10px rgba(235, 37, 37, 0.3);
}

.podsumowanie {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.podsumowanie h2 {
    margin-top: 0;
    color: var(--glowny);
    text-transform: uppercase;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.podsumowanie p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    color: #555;
}

.podsumowanie h3 {
    display: flex;
    justify-content: space-between;
    margin-block: 1rem;
    color: var(--glowny);
    font-size: 1.3rem;
}

.zaplac {
    border: 1px solid #339633;
    background-color: transparent;
    color: #3BB03B;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zaplac:hover {
    background-color: #3BB03B;
    color: white;
    box-shadow: 0 4px 10px rgba(59, 176, 59, 0.3);
}

.bramka {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.bramka h2 {
    color: var(--glowny);
}

.bramka .zaplac {
    width: auto;
    padding: 15px 40px;
}



@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 1fr 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .gora {
        flex-direction: column;
        gap: 2rem;
    }

    .lewy {
        width: 70%;
    }

    .tabelka {
        width: 85%;
    }

    .kontakt {
        grid-template-columns: 1fr;
    }

    .koszyk {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}



@media (max-width: 600px) {

    header {
        height: auto;
        flex-direction: column;
        gap: 0;
        padding: 1rem 1.5rem;
    }

    .logo{
        display: none;
    }

    .menu {
        justify-content: space-between;
        width: 100%;
        gap: 0.2rem;
    }

    .menu a {
        font-size: 20px;
        padding: 0.5rem;
    }

    .menu img {
        width: 1.8rem;
    }
    
    .koszyk span {
        font-size: 0.9rem;
        padding: 0px 5px;
        bottom: -4px;
        right: -4px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .s-prawy{
        align-items: center;
    }

    #lewy, .belka, .klatka {
        padding: 1.5rem 1rem;
    }
    
    #produkt {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .kontakt .formularz, .kontakt .info {
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .pozycja, .podsumowanie {
        padding: 1.5rem 1rem;
    }

    .belka {
        flex-direction: column;
        gap: 1rem;
    }

    #cena input[type=number] {
        width: 100%;
    }

    .klatka {
        grid-template-columns: 1fr;
        height: auto;
        text-align: center;
        justify-items: center;
        gap: 0;
    }
    
    .klatka-lewy img {
        width: 95%;
        height: 95%;
    }
    
    .klatka-srodek {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ocena{
        margin-block: .5rem .4rem;
    }

    .klatka-prawy {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .prawy {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-inline: 0;
        gap: 1.5rem;
    }

    .b-lewy {
        align-items: center;
    }

    .b-prawy {
        align-items: center;
        gap: 1rem;
    }

    .lewy {
        width: 100%;
    }

    .tabelka {
        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;
    }

    .pozycja {
        flex-direction: column;
        text-align: center;
    }

    .infoK {
        align-items: center;
    }

    .podsumowanie p, .podsumowanie h3 {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}