@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
/*
  font-family: "DM Sans", sans-serif;
  font-family: "Crimson Text", serif;
*/

html, body{
    overflow-x: hidden;
}
:root{
    --dark: #000000;
    --darkGreen: #485C11;
    --green: #8E9C78;
    --lightGreen: #DFECC6;
    --gray: #6F6F6F;
    --lightGray: #929292;
    --light: #FFFFFF;
    --darkBlue: #003049;
}

html{
    scroll-behavior: smooth;
}
body{
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 600;
}
img{
    display: block;
    width: 100%;
    height: auto;
}
h1{
    font-family: "Crimson Text", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin: 0;
}
p{
    font-size: 1.2em;
    font-weight: 300;
    color: var(--gray);
}
a{
    color: var(--light);
    text-decoration: none;
    font-size: 1.2em;
    background-color: var(--darkGreen);
    padding: 20px 25px;
    border-radius: 35px;
    text-align: center;
}
a:hover svg{
    transform: scale(1.3);
    transition: .3s;
}


/*---- header----*/
#headerNav{
    padding: 1% 2%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
header h2{
    font-weight: 500;
    font-size: 2em;
}
header h1{
    font-size: 10em;
}
#headerNav nav{
    position: fixed;
    left: 0;
    right: 0;
    top: 50px;
    margin: 0 auto;
    max-width: fit-content;

    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: center;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.5);
}
#headerNav nav a{
    color: var(--dark);
    background-color: transparent;
    padding: 15px 30px;
    transition: .1s;
}
#headerNav nav a:hover{
    background-color:#92929268;
    transform: scale(1.03);
    transition: 0.3s;
}
#headerNav nav a ul{
    display: none;
    font-size: 0.9em;
    padding: 20px 0;
    margin: 0;
    position: fixed;
}
#headerNav nav a:hover ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#headerNav nav ul li:hover{
    scale: 1.1;
    transition: .3s;
}
#headerNav nav ul li{
    list-style-type: none;
    color: var(--darkGreen);
    transition: .1s;
}
#kosik{
    position: fixed;
    right: 2%;
    z-index: 1000;
    transition: 0.3s;
}
#kosik #cart{
    display: none;
}
#kosik.scrolled span{
    display: none;
}
#kosik.scrolled #arrow{
    display: none;
}
#kosik.scrolled #cart{
    display: block;
}
#headerMain{
    display: flex;
    flex-direction: column;
    padding: 1% 0;
}
#headerMain .search{
    position: relative;
    left: 10%;
    margin: 150px 0 30px;
    z-index: 500;

}
.search{
    background-color: var(--lightGreen);
    width: 400px;
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 20px;
}
.search input{
    width: 250px;
    height: 35px;
    background-color: transparent;
    border: none;
    outline: none;
    color: var(--darkGreen);
    font-size: 1.3em;
}
.search button{
    font-family: inherit;
    font-size: 1.1em;
    color: var(--dark);
    border: none;
    background-color: var(--light);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
}
.search button:hover{
    background-color: #ffffffdb;
    transition: .3s;
    border-radius: 15px;
}
.backgroundImg{
    background-color: var(--green);
    width: 96%;
    height: 600px;
    margin: 0 auto;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#headerMain img{

    transition: 0.5s;

    animation: rotation 0.5s ease-out forwards;
}
@keyframes rotation{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(-15deg);
    }

}


/*----main----*/
main{
    padding: 10% 0;
}
.produkty{
    width: 80%;
    margin: 0 auto;
}
.produkty h1{
    font-size: 5em;
    padding: 3%;
}
.produkty .nadpis{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.produkty .nadpis a{
    color: var(--dark);
    text-decoration: none;
    font-size: 1.2em;
    background-color: var(--lightGreen);
    padding: 20px 25px;
    border-radius: 35px;
}
.produkty .nadpis a:hover{
    background-color: #dfecc6c3;
    transition: .3s;
}
.produkty .nadpis div{
    width: 50px;
    height: 50px;
    background-color: var(--darkGreen);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .1s;
}
.produkty .nadpis div:hover{
    background-color: #485c11c6;
    transition: .3s;
}
.produkty .nadpis div svg{
    transition: .1s;
}
.produkty .nadpis div:hover svg{
    scale: 1.1;
    transition: .3s;
}
.produkty section h2{
    font-size: 2em;   
}
.produkty section{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    padding: 50px 0;
    align-items: stretch;
}
#produkty section{
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.produkty section article{
    background-color: var(--lightGreen);
    border-radius: 20px;
    box-shadow: 4px 4px 20px 0px var(--lightGray);
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
}

/* obrázek */
/*.produkty section article div{
    background-color: var(--light);
    border-radius: 20px;
    padding: 10px;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
}*/
.produkty section article div{

    height: 220px; /* pevná výška = stabilní layout */
    background-color: var(--light);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.produkty section article div img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.produkty section article p{
    padding-left: 10px;
}
.produkty section article div:hover img{
    transform: scale(1.05);
    transition: .3s;
}


.pilire{
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* 4 vedle sebe */
    gap: 40px;
    width: 96%;
    margin: 10% auto;
    border-bottom: 1px solid var(--lightGray);
}
.pilire article{
    flex: 1;
    padding: 60px 35px 20px 15px;
    border-top: 1px solid #92929257;
}
.pilire article:first-child{
    border-top: 1px solid var(--lightGray);
}
.pilire article h3, .kosikProduktyHead h3{
    font-family: "Crimson Text", serif;
    font-size: 1.8em;
    font-weight: 400;
    margin: 0;
    padding: 10px 0 10px;
}

.komunita{
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 0 auto;
    max-width: 600px;
}
.komunita h1{
    font-size: 3em;
}
.komunita p{
    text-align: center;
}

.onas{
    display: flex;
    flex-direction: column;
    gap: 100px;
    padding: 3% 15% 10%;
}
.onas h1{
    font-size: 4em;
}
.onas .text{
    border-bottom: 2px solid var(--darkGreen);
    border-top: 2px solid var(--darkGreen);
    width: 60%;
    padding: 30px;
    box-sizing: border-box;
    flex: 1;
    font-size: 1.1em;
}
.onas .text:nth-child(3){
    align-self: flex-end;
}


/*----footer----*/
footer{
    border-top: 1px solid var(--gray);
    width: 96%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
 
}
footer section{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px dotted var(--gray);
}
footer>p{
    text-align: center;
}
footer article p{
    cursor: pointer;
    transition: .1s;
}
footer article p:hover{
    color: var(--dark);
    transition: .3s;
}




/*----kosik----*/

.postup{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
    padding: 3% 0;
    width: 96%;
    margin: 0 auto;
    border-bottom: 1px solid var(--gray);
}
.postup>div{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.postup div div{
    width: 60px;
    height: 60px;
    background-color: var(--gray);
    border-radius: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.kosikProduktyHead h3{
    text-align: center;
}
.kosikProdukty{
    padding: 5% 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.kosikCena{
    padding: 3% 0;
}
.produktKosik{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 100px;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 2px 2px 10px 0px var(--lightGray);
    width: max-content;
    max-width: 720px;
    min-width: 300px;
    margin: 0 auto;
}
.produktKosik>div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}
.produktKosik img{
    width: 30%;
    height: 30%;
    transition: 0.1s;
    cursor: pointer;
}
.jmenoCena{
    cursor: pointer;
}
.produktKosik img:hover{
    scale: 1.1;
    transition: .3s;
}
.produktKosik h3, .produktKosik p{
    margin: 0;
}
.produktKosik button{
    font-family: inherit;
    font-size: 1.1em;
    color: var(--dark);
    border: none;
    background-color: var(--light);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
}
.kosikCena h2, .kosikCena p{
    text-align: center;
}

/*----form----*/
.udaje, .doprava, .platba{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.udaje div{
    display: flex;
    flex-direction: row;
    gap: 6px;
}
.udaje input{
    width: 318px;
    height: 50px;
    background-color: transparent;
    border: 1px solid var(--lightGray);
    outline: none;
    color: var(--darkGreen);
    font-size: 1.3em;
    padding: 0 10px;
    border-radius: 2px;
}
.udaje div input{
    width: 145px;
}
.udaje input:focus{
    border: 1px solid var(--darkGreen);
}
.dodaciUdaje{
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.dodaciUdaje section{
    display: flex;
    flex-direction: column;
}
label{
    width: 318px;
    height: 50px;
    background-color: transparent;
    border: 1px solid var(--lightGray);
    outline: none;
    font-size: 1.1em;
    padding: 0 10px;
    border-radius: 2px;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.label-text{
    padding: 0 10px;
}
.dopravaPlatba{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dopravaPlatba input{
    accent-color: var(--darkGreen);
}
.vpredVzad{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5%;
    padding: 6% 0 1%;
}



/*----detail----*/
main>a{
    margin: 0 2%;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: min-content;
}
.detailInfo{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 7%;
    gap: 6%;
    align-items: center;
}
.detailInfo .obrazek{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.detailInfo .detailImg{
    border: 1px solid rgb(255, 255, 255);
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.detailInfo .obrazek .barvy{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}
.detailInfo .obrazek .barvy div{
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: .1s;
}
.detailInfo .obrazek .barvy div:hover{scale: 1.1; transition: .3s;}
.detailInfo .obrazek .barvy div:nth-child(1){background-color: var(--darkGreen);}
.detailInfo .obrazek .barvy div:nth-child(2){background-color: var(--darkBlue)}
.detailInfo .obrazek .barvy div:nth-child(3){background-color: var(--light);  border: 1px solid var(--dark);}
#image{
    cursor: pointer;
}
.detailInfo .popis{
    flex: 1;
}
.detailInfo .popis h1{text-align: start;}
.detailInfo .popis .cenaSleva{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}
.detailInfo .popis .cena p{
    margin: 0;
}
.detailInfo .popis .cena h2{
    margin: 0;
    padding: 10px 0;
}
.detailInfo .popis .koupit{
    margin: 50px 0;
}
.detailInfo .popis .koupit a:hover, .vpredVzad a:hover{
    background-color: #485c11c1;
}
.vyber{
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 8% 2% 0;
}
.vyber h2{
    padding: 10px 15px;
    margin: 10px;
    border-radius: 30px;
    cursor: pointer;
}
.vyber h2:hover{
    background-color:#92929268;
    transition: 0.3s;
}
.vyber .vybrano{
    background-color:#92929268;
}
.obsah{
    border-top: 1px solid var(--gray);
    width: 96%;
    margin: 0 auto;
    padding: 3% 0 0;
}
.obsah p{
    width: 80%;
    margin: 0 auto;
    padding: 15px;
}
table {
    width: 60%;
    margin: 0 auto;
    border-collapse: collapse;
    background: #fff;
    border-radius: 20px;
  }
  th, td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--lightGray);
    text-align: left;
    color: var(--gray);
  }
  .rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid var(--gray);
    width: 500px;
    border-radius: 20px;
    margin: 0 auto;
  }
  .stars {
    color: #f39c12;
    font-size: 20px;
    margin-right: 10px;
  }
  .comment {
    font-style: italic;
    color: var(--gray);
  }
  .obsah{
    width: 96%;
  }
  .dopravaPlatba p{
    font-size: .9em;
    margin: 0;
  }
  .dopravaPlatba h3{
    margin: 1em 0 0;
    font-size: 1em;
  }

  /*----produkty----*/
  .sekceProduktu{
    width: 96%;
    margin: 0 auto;
  }



@media(max-width: 930px){
    #footer section{
        flex-wrap: wrap;
        gap: 10px;
    }
    #footer .search{
        margin-bottom: 4%
    }
    .produktKosik{
        padding: 20px;
        gap: 0;
        justify-content: space-between;
        width: 80%;
    }
    .produktKosik img,  .produktKosik div{
        align-self: center;
    }
    .kosikProdukty{
        padding: 5% 2%;
    }
    .produktKosik>div{
        gap: 10px;
    }
    #headerNav nav a{
        padding: 8px;
    }
    #headerNav nav{
        position: absolute;
        justify-self: center;
        margin: 0;
        top: 25px;
    }
    .postup{
        padding: 10% 0;
    }
    #kosik span{
        display: none;
    }
    #kosik #arrow{
        display: none;
    }
    #kosik #cart{
        display: block;
    }
    #kosik{
        padding: 15px;
    }
    header h2{
        font-size: 1.3em;
    }
    .produkty{
        margin: 0;
        align-self: center;
    }
    main{
        display: flex;
        flex-direction: column;
    }
    #headerMain{
        align-items: center;
    }
    #headerMain .search{
        left: 0;
    }
    .backgroundImg{
        height: auto;
    }
    #headerMain h1{font-size: 7em;}
    .detailInfo{
        flex-direction: column;
    }
    .detailInfo .detailImg{
        height: auto;
    }
}
@media(max-width: 890px){
    .dodaciUdaje{
        flex-direction: column;
        width: max-content;
        gap: 40px;
    }
    .dopravaPlatba{
        gap: 40px;
    }
}
@media(max-width: 600px){

    #headerNav nav{
        top: 70px;
    }
    #footer section{
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: flex-start;
    }
    #footer .search{
        width: 100%;
    }
    #footer input{
        width: 60%;
    }
    #footer{
        width: 90%;
    }
    .postup{
        padding: 15% 0 5%;
        width: 96%;
        gap: 0;
        justify-content: space-around;
    }
    .kosikProdukty p{
        font-size: 1em;
    }
    h3{
        font-size: 1em;
    }
    .onas{
        align-items: center;
    }
    .onas .text:nth-child(3){
        align-self: center;
    }
    .onas .text{
        width: 100%;
    }
    .produkty section{
        grid-template-columns: 1fr;  /* vše pod sebe */
    }
    #headerMain h1{
        font-size: 4em;
        padding-top: 10%;
    }
    .produkty h1{
        font-size: 3em;
    }
    #headerMain .search{
        margin: 50px 0 30px;
        width: 300px;
        height: 50px;
    }
    #headerMain .search input{
        width: 120px;
        font-size: 1em;
    }
    .vyber{
        flex-direction: column;
        align-items: center;
        gap: 10%;
    }
    .rating{
        width: 90%;
    }
    .obsah{
        width: 90%;
    }
    .komunita{
        width: 96%;
        gap: 30px;
        margin: 35px auto;
    }
    .komunita a{
        width: 80%;
        margin: 0 auto;
    }
    .onas .text{
        padding: 10px 30px;
    }
    .backButton{
        margin: 10% 2% 2%;
    }
}



@media(max-width: 1100px){
    .pilire{
        grid-template-columns: repeat(2, 1fr);  /* 2 + 2 */
    }
}

@media(max-width: 600px){
    .pilire{
        grid-template-columns: 1fr;  /* 1 pod sebou */
    }
}
@media(max-width: 700px){
    .galerie a, .galerie span{
        scale: 0.5;
    }
    .galerie .close{
        top: 0px;
        right: 0;
    }
    .galerie .prev{
        left: 0;
    }
    .galerie .next{
        right: 0;
    }
    .galerie .fotkyNahled{
        display: flex;
        flex-direction: column;
        max-width: 40%;
    }
}
.galerie{
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    padding-top: 50px;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: #000000cb;
    display: none;
}
.galerie a{
    cursor: pointer;
}
.fotky, .fotkyNahled{
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1500px;
}
.close{
    font-size: 4.5em;
    color: white;
    position: absolute;
    top: 50px;
    right: 70px;
    cursor: pointer;
    transition: .1s;
}
.close:hover{
    scale: 1.3;
    transition: .3s;
}
.fotkyNahled{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.prev, .next{
    position: absolute;
    top: 40%;
}
.prev{
    left: 8%;
}
.next{
    right: 8%;
}
.poznamka{
    width: 70%;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.toolbar{
    display: flex;
    flex-direction: row;
    gap: 3px;
    width: 350px;
    margin: 0 auto;
}
.toolbar button{
    display: flex;
    padding: 10px;
    background-color: white;
    color: var(--gray);
    font-size: 1.3em;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--lightGray);
    cursor: pointer;
    border-radius: 2px;
}
.toolbar button:hover{
    border: 1px solid var(--gray);
}
.editor{
    border: 1px solid var(--lightGray);
    font-weight: lighter;
    height: max-content;
    min-height: 120px;
    max-height: 300px;
    padding: 10px;
}