body{
    font-family: "Nunito", sans-serif;
    color: rgb(28, 28, 28);
    margin-top: 13px;
    background-size: cover;
    background-attachment: fixed;
        background-image: 
        radial-gradient(rgba(0, 0, 0, 0.08) 5%, transparent 16%),
        linear-gradient(to bottom right, #e6ded1, #DBCBB0);
    background-size: 17px 17px, cover;
    margin: 0px;
    
}

header{
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 20px;
    height: 80px;
    justify-content: space-between;
}
main{
    font-family: "Nunito", sans-serif;
}
header #logo{
    background-color: #fff9e5d4;
    backdrop-filter: blur(10px); 
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 1px 40px 0 rgba(68, 68, 68, 0.27);
    border-radius: 15px;
    
    left: 50%;
    transform: translateX(0%);
    width: calc(100% - 300px);
    z-index: 1;    
    width: 100%;
    height: 78px;
    padding-left: 52px;
    margin-left: 20px;
}
header #logo h1{
    left: 50%;
    transform: translateX(25%);
    margin: 0;
    position: relative;
    left: 50%;
    top: 50%;
    color: #C8102E;
    font-weight: 900;
    transform: translate(-50%, -50%);
    z-index: 101;
    font-family: "Nunito", sans-serif;
    text-align: center;

}


header #logo h1 a{
    text-decoration: none;
    color: #C8102E;
}
#headerLogo{
    width: 68px;
    font-size: 25px;
}
#logoimg{
    width: 120px;
    margin-left: 20px;
}
#userMenu{
    background-color: #fff9e5d4;
    backdrop-filter: blur(10px); 
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 8px 40px 0 rgba(68, 68, 68, 0.27);
    border-radius: 15px;
    display: inline-flex; 
    justify-content: center;
    align-items: stretch;
    padding: 0;
    margin: 0 20px 0 10px;
    align-self: stretch; 
    width: auto;
    font-size: 16px;
    position: relative;
    z-index: 1000;
    cursor: pointer;
}
.dropdown-toggle::after {
    color:#C8102E;
    font-family: "Nunito", sans-serif;
    font-weight: 900;
    display: none !important;
}
#userMenu .btn {
    background-color: transparent !important;
    border: none !important;
    color: rgb(28, 28, 28) !important;
    box-shadow: none !important;
    padding: 0 5px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#userMenu .dropdown-menu {
    background-color: #fff9e5 !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    font-family: "Nunito", sans-serif;
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
}

#userMenu .dropdown-item,
#userMenu .dropdown-header {
    color: rgb(0, 0, 0) !important;
    font-size: 15px;
    font-weight: 600;
}

#userMenu .dropdown-item:hover,
#userMenu .dropdown-item:focus {
    background-color: #fff9e5 !important;
    font-size: 15px;
    color:#C8102E !important;

}

header #cart{
    background-color: #fff9e5d4;
    backdrop-filter: blur(10px); 
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 8px 40px 0 rgba(68, 68, 68, 0.27);
    border-radius: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 96px;
    font-size: 25px;
    margin-left: 20px;
    margin-right: 10px;
    align-self: stretch;
    width: 96px;
    font-size: 25px;
    z-index: 100;
    padding: 0 5px;
    cursor: pointer;
}
header #cart i{
    width: 68px;
    cursor: pointer;
}
header #cart:hover i{
    color: #C8102E !important;

}
#formReg{
    padding: 15px 40px !important;
    margin-top: 21px !important;
}

#formReg h2{
    width: fit-content; 
    margin-left: auto;
    margin-right: auto;
}

.form-control{
    margin-top: 5px;
}

.form-control:last-child{
    margin-bottom: 10px;
}

.form-control:focus, #searchBar:focus, .search-input:focus{
    border-color: #C8102E !important; 
    box-shadow: 0 0 0 0.25rem rgba(200, 16, 46, 0.25) !important; 
    outline: none !important; 
}

#formReg a,
#formReg input[type="submit"]{
    color: rgb(28, 28, 28);
    background-color: rgba(255, 255, 255, 0.25);
    transition: 0.4s;
    border: 0px;
    font-size: 20px;
    width: fit-content; 
    margin-left: auto !important;
    margin-right: auto;
    display: block;
}

#formReg a,
#formReg input[type="submit"]:hover{
    border-radius: 5px;
    font-size: 19px;
}

#frm-loginForm, #frm-registerForm{
display: inline-block;
}

#formReg a,
#formReg,
nav{
    background-color: #fff9e5d4;
    backdrop-filter: blur(10px); 
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 8px 40px 0 rgba(68, 68, 68, 0.27);
    text-align: center;
    border-radius: 15px;
    display: table;
    align-items: center;
    justify-content: center;
    height: auto;
    gap: 15px;
    padding: 16px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
}

.adProDiv{
    margin: 36px !important;
}

#userMenu a,
nav a{
    text-decoration: none;
    color: rgb(28, 28, 28);
    transition: 0.4s;
    padding: 5px 60px;
    font-weight: 600;
    border-radius: 2px;
}
#userMenu:hover i{
    color: #C8102E !important;
}
nav #panel{
    padding: 5px 30px;
}
#userMenu a:hover,
nav a:hover{
    color: #fff9e5d4;
    border-radius: 30px;
    background-color: #C8102E;                                                                                                                        
}

#intro{
    display: table;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
    border-radius: 15px;
    width: 50%;
    height:fit-content;
    text-align: center;
    margin-bottom: 0px;
    position: relative;
    background-color: #fff6dbd4;
    padding: 8% 15px;
    border: 6px solid #000;
    outline: 5px solid #C8102E;
    outline-offset: -15px;
    display: flex;

}
#intro h1{
    color: #C8102E;
    font-size: 3em;
    margin: 0;
    z-index: 10; 
    font-weight: 800;
    margin-left: auto;
    margin-right: auto;

}

#uvodprods{
    display: inline-table;
    font-size: 35px;
    margin-left: 40px;
    margin-top: 60px;
    font-weight: 600;
}
#selectedprods{
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 2px 10px 0 rgba(68, 68, 68, 0.27);
    border-radius: 15px;
    display: inline-table;
    padding: 15px;
    height: auto;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}
#selectedprods .price{
    font-weight: 400;
    font-size: 22px;
}
#selectedprods p {
    margin: 0;
}

.product{    
    background-color: #fff9e5d4;
    backdrop-filter: blur(10px); 
    border: 2px solid rgb(0, 0, 0);
    box-shadow: 0 2px 10px 0 rgba(68, 68, 68, 0.27);
    border-radius: 15px;
    display: inline-table;
    padding: 15px;
    height: auto;
    font-size: 30px;
    font-weight: 500;
    width: 300px;
    transition: 0.2s;
    margin-right: 20px;
}
.product:hover{
    box-shadow: 10px 2px 0 0 #C8102E;
    transform: translateY(-5px);
    

}
.product .name, .product .price, .product .brand{
    width: 290px;
    overflow-wrap: break-word;
    text-align: left;
    margin-left: 5px;
    margin-top: 0;
    margin-bottom: 5px;
}

.product .name{
    font-size: 38px;
    font-weight: 600;
}
.product .price{
    font-weight: 400;
    font-size: 27px;
    margin-left: 5px;
    margin-top: 20px;
    display: inline-flex;
    width: auto;
    transition: 0.15s;
}
.product:hover .price {
    color: #C8102E;
    font-weight: 900;
    text-shadow: 1px 1px 0px #fff, 3px 3px 0px rgba(0,0,0,0.1);
    transition: 0.15s;
}
.product .prodphoto{
    width: 100%;
    height: 250px;
    object-fit: contain;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 5px;
}
.product .brand{
    font-weight: 400;
    margin: 0 5px;
    font-size: 30px;
    margin-bottom: 0px;
    color: rgba(28, 28, 28, 0.605);
}
.product .brandbottomnull{
    margin-bottom: 40px;
}
.buyb{
    border-radius: 10px;
    border: none;
    padding: 15px;
    width: 60px;
    aspect-ratio: 1/1;
    background-color: #C8102E;
    color: #fff9e5d4;
    font-size: 20px;
    text-align: center;
    transition: 0.2s;
}
.product:hover .buyb{
    border-radius: 30px;
    transition: 0.2s;
}
.product-grid{
  padding: 0px 50px;
}
.flex{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}
#cartdiv{
    display: none;
    background-color:#fff6db;
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(0, 0, 0, 0.771);
    box-shadow: 0 2px 10px 0 rgba(68, 68, 68, 0.27);
    border-radius: 15px;
    height: 60vh;
    width: 80vh;
    z-index: 1000;
    overflow: hidden;
    padding: 35px;
    box-sizing: border-box;
    display: hidden;
    margin:auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Nunito", sans-serif;
}
#carth{
    font-size: 48px;
    position: fixed;
    left: 35px;
    font-weight: 700;
    display: inline-table;
    margin: 0px;
    color: #C8102E;
}
.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(3px) brightness(0.8);
    backdrop-filter: blur(5px);
}
#cartclose{
    display: inline-table;
    font-size: 40px;
    position: fixed;
    right: 35px;
    font-weight: 700;
    border-radius: 15px;
    transition: 0.15s;
    cursor: pointer;
    margin: 0px;
}
#cartclose:hover{
    color: #C8102E;
}
#cartheader{
    display:flex;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 85px;
}
#cartcontent{
    border-radius: 15px;
    height: 40vh;
    padding: 30px;
    overflow-y: auto;
}
#cartcontent .cartitem{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#cartcontent .cartitem .name{
    width: 100%;
    font-size: 40px;
    font-weight: 600;
}
#cartcontent .cartitem .infobutt .info{
    display: flex;
}
#cartcontent .cartitem .count, #cartcontent .cartitem .price{
    padding-right: 15px;
    font-weight: 500;
}



#cartcontent .cartitem .infobutt .itembutt{
    display: flex;
    margin-left: auto;
}

#cartcontent .cartitem .infobutt{
    display: flex;
    flex-direction: row;
}
#cartcontent .cartitem .infobutt button{
    background-color: transparent;
    border: none;
    color: rgb(28, 28, 28);
    font-size: 30px;
    transition: 0.2s;
}
#cartcontent .cartitem .infobutt button:hover{
    color: #C8102E;
    font-weight: 700;
    transition: 0.2s;
}

#filtrprods{
    text-align: center;
    margin-top: 15vh;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff9e5d4;
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 8px 40px 0 rgba(68, 68, 68, 0.27);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    border-radius: 15px;
    min-width: 30vw;
}
#filtrprods p, #searchBtn, #cancelBtn, #formReg #sendBtn, .btnSuccess{
    margin-bottom: 0px;
    color: #C8102E;
    font-weight: 700;
    font-size: 25px;
    padding: 0px 15px;
    transition: 0.2s;
    text-decoration: none;
}
#filtrprods p:hover, #searchBtn:hover ,#cancelBtn:hover, #formReg #sendBtn:hover, .btnSuccess:hover{
    color: #fff9e5d4;
    border-radius: 30px;
    background-color: #C8102E;
    transition: 0.2s;

}
.filtrbtn, #searchBtn{
    background-color: transparent;
    border: none;
}
#searchBar{
    border-radius: 15px;
    border: 0.5px solid rgb(27, 27, 27);
    text-align: center;
    margin: 0px 15px;
}

.dropdown-menu li{
    text-align: center;

}
.dropdown-menu li a:hover{
    transition: 0.2s;
    color: #fff9e5d4;
    border-radius: 30px;
    background-color: #C8102E; 
}
.dropdown-menu{
    background-color: #fff6dbd4 !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translate3d(7px, 90px, 0px) !important;

}
#filtrprods .dropdown .dropdown-menu{
    background-color: #fff6dbd4 !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translate3d(7px, 60px, 0px) !important;

}
.dropdown-menu .dropdown-item:focus {
    background-color: transparent !important; 
    box-shadow: none !important;
    color: inherit !important; 
}
.dropdown-menu li a{
    color: #C8102E;
    text-decoration: none;
    font-weight: 500;
    font-size: 20px;
    transition: 0.2s;

}
#cartdiv #cartcontent .third #dobirka, #cartdiv #cartcontent .third #card{
    width: 50%;
    aspect-ratio: 1/1;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    display: flex;
    border: 2px solid rgba(0, 0, 0, 0.251);
    flex-direction: column;
    border-radius: 15px;
    padding: 20px;
    font-size: 30px;
    background-color: rgba(240, 240, 240, 0.297);
    backdrop-filter: blur(10px); 
    box-shadow: 0 8px 40px 0 rgba(68, 68, 68, 0.453);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select:none;
}
#cartdiv #cartcontent .second .udajecartb{
    text-align: center;
    width: min-content;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    border:1px solid black;
    padding: 10px;
    display: flex;
    color: #2D2D2D;
    text-decoration: none;
}
#cartdiv #cartcontent .confirmstep #confirmall{
    width: 85%;
    aspect-ratio: 2/1;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    display: flex;
    border: 2px solid rgba(255, 0, 0, 0.695);
    flex-direction: column;
    border-radius: 15px;
    padding: 20px;
    font-size: 30px;
    background-color: rgba(240, 240, 240, 0.297);
    backdrop-filter: blur(10px); 
    box-shadow: 0 8px 40px 0 rgba(68, 68, 68, 0.453);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select:none;
}
#cartdiv #cartcontent .confirmstep #confirmall p{
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
}
#cartdiv #cartcontent .confirmstep #confirmall #controls{
    display: flex;
    flex-direction: row;
}
#cartdiv #cartcontent .confirmstep #confirmall #controls button{
    background-color: transparent;
    margin: 0 60px;
    border: 2px solid rgba(0, 0, 0, 0.425);
    border-radius: 10px;
    font-size: 30px;
    padding: 0 10px;
    transition: 0.1s;
}
#cartdiv #cartcontent .confirmstep #confirmall #controls button:hover{
    font-size: 29px;
    background-color:#f2f2f2;
    border: 1px solid rgba(0, 0, 0, 0.338);
    transition: 0.2s;
}
@media (max-width: 768px) {
    /* 1. ZÁCHRANA PROTI PŘETÉKÁNÍ */
    *, *::before, *::after {
        box-sizing: border-box;
    }

    html, body {
        overflow-x: hidden; /* Totálně zakáže viklání do stran */
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }

    body {
        background-attachment: fixed;
        background-image: 
            radial-gradient(rgba(0, 0, 0, 0.08) 5%, transparent 16%),
            linear-gradient(to bottom right, #e6ded1, #DBCBB0);
        background-size: 17px 17px, cover;
    }

    header {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        justify-content: center;
        gap: 10px;
    }

    #logoimg {
        width: 60px;
        margin: 0;
    }

    header #logo {
        width: calc(100%);
        height: 60px;
        margin: 0;
        padding: 0 10px;
    }

    header #logo h1 {
        font-size: 1.2rem;
        width: 100%;
    }

    header #cart, header #userMenu {
        flex: 1;
        min-width: 80px;
        height: 50px;
        margin: 0;
    }
    nav {
        width: 95%;
        display: flex;
        padding: 5px;
        gap: 5px;
    }

    nav a {
        padding: 10px 5px;
        font-size: 0.9rem;
        flex: 1;
    }

    .product {
        width: 90% !important;
        max-width: 320px;
        margin: 15px auto !important;
        display: block;
        padding: 10px;
    }

    .product .name {
        font-size: 24px !important;
    }
    
    .product .prodphoto {
        width: 100%;
        height: auto;
    }
    #intro {
        width: 90%;
        margin-top: 20px;
        padding: 20px 10px;
    }
    
    #intro h1 {
        font-size: 2rem !important;
    }
    #cartdiv {
        width: 90vw;
        height: 80vh;
    }
    #logoimg {
        display: none;
    }
}

.flash.info, .flash.success, .flash.error {
    animation: smazani 0s forwards; 
    animation-delay: 3s;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    font-size: 30px;
    background-color: #fff6dbd4;
    border: 1px solid rgb(0, 0, 0);
    color: #C8102E;
    font-weight: 600;
    font-family: "Nunito", sans-serif;
    border-radius: 15px;
    padding: 15px;
    animation: rozplynuti 2s ease-in-out 0.5s forwards;
}

@keyframes rozplynuti {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
    visibility: hidden;
    display: none;
  }
}


#paneldiv, #paneldiv a{
    background-color: #fff9e5d4;
    backdrop-filter: blur(10px); 
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 8px 40px 0 rgba(68, 68, 68, 0.27);
    text-align: center;
    border-radius: 15px;
    display: table;
    align-items: center;
    justify-content: center;
    height: auto;
    gap: 15px;
    padding: 16px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    text-decoration: none;
    color: #000;
    transition: 0.2s;
    
}

.panelbutt p{
    backdrop-filter: blur(10px); 
    border-radius: 15px;
    display: inline-table;
    padding: 15px;
    height: auto;
    font-size: 30px;
    font-weight: 500;
    width: 300px;
    transition: 0.2s;
}
.panelbutt:hover{
    transform: translateY(-5px);

}
.panelbutt:hover p{
    color: #C8102E;
    font-weight: 700;

}
#ordersdiv .orders{
    background-color: #fff9e5d4;
    backdrop-filter: blur(10px); 
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 8px 40px 0 rgba(68, 68, 68, 0.27);
    border-radius: 15px;
    padding: 15px;
    height: auto;
    font-size: 30px;
    font-weight: 500;
    transition: 0.2s;
    margin: 30px 15px;
}
#ordersdiv .orders:hover{
    transform: translateY(-5px);
    color: #C8102E;   
}
#ordersdiv .orders .numorders{
    padding: 10px;
    margin-bottom: 0;
}
#ordersdiv{
    background-color: #fff9e5d4;
    backdrop-filter: blur(10px); 
    border: 1px solid rgb(0, 0, 0);
    box-shadow: 0 8px 40px 0 rgba(68, 68, 68, 0.27);
    text-align: center;
    border-radius: 15px;
    display: table;
    align-items: center;
    justify-content: center;
    height: auto;
    gap: 15px;
    padding: 16px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    width: 90%;
}
.orderprods{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.nextbutton{
    color: rgb(28, 28, 28);
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    transition: 0.2s;
}
.nextbutton:hover{
    color: #C8102E;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    transition: 0.2s;
}

.product{
    margin-bottom: 20px;
}

#newProDiv{
    height: 363px;
}
