.base{
    max-width: 1350px;
    margin: 0 auto;
}
select::first-letter, option::first-letter{
    text-transform:capitalize;
}
.title{
    font-size: 4vw;
    margin: 3vh 0 3vh 15%;
    text-align: center;
}
.item {
    width: 99%;
    /*select*/
}
.category{
    display: none;
}
.margin{
    display: none;
}
.card_link{
    color: inherit;
    text-decoration: none;
}
.card_link:hover{
    color: inherit;
    text-decoration: none;
}
.category{
    display: none;
}
.title{
    display: none;
}
.header_aside{
    float: left;
    width: 100%;
}
.header_aside p{
    display: none;
}
.second{
    display: none;
}
@media screen and (min-width: 401px){
    .item {
        width: 49%;
    }
}
@media screen and (min-width: 901px){
    .item {
        width: 49%;
    }
}
@media screen and (min-width: 992px){
    .item {
        width: 32%;
    }
    .title{
        display: block;
    }
    .category{
        display: block;
    }
    .margin{
        display: block;
    }
    .select_category{
        display: none;
    }
    .mobile_menu_title{
        display: none;
    }
    .header_aside{
        width: 20%;
    }
    .header_aside p{
        display: block;
    }
    .second{
        display: block;
    }
    .main_img div{
        width: 77%;
        max-width: 77%;
    }
    .second_mobile{
        display: none;
    }
    .mobile_menu{
        display: none;
    }
    .navbar-nav {
        float:none;
        margin:0 auto;
        display: block;
        text-align: center;
    }
    .navbar-nav > li {
        display: inline-block;
        float:none;
    }
}
@media screen and (min-width: 1200px) {
    .title {
        font-size: 48px;
    }
}
.card{
    margin: 0.5%;
    display: inline-block;
    cursor: pointer;
}
.one_item{
    width: 99%;
    margin-bottom: 2vh;
}
.product_title{
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.card_det{
    cursor: auto;
    margin-left: 2vw;
    width: 90%;
}
.img_det{
    cursor: pointer;
    margin-left: 2%;
}
.info_det{
    margin-left: -2%;
}
.img_det img{
    max-height: 95%;
    max-width: 95%;
    height: auto;
}
.fit-scale-down{
    object-fit: scale-down;
}
.img_det, .info_det{
    padding: 2%;
}
.card-body_det{
    margin-left: 5%;
}
.card-body_det ul li{
    padding: 0;
}
.card-body_det h4, .card-body_det p, .card-body_det ul li{
    margin: 1vh 1vw 2vh 1vw;
}
.card-body_det h4{
    font-size: 42px;
}
.card-body_det p{
    font-size: 22px;
}
.card-body_det ul li{
    font-size: 22px;
}
.card-body_det ul li:last-child{
    font-size: 28px;
}
.list-group-item{
    border: 0px;
}
.category, .aside_left, .aside_right{
    width: 20%;
    float: left;
}
.main_img div{
    margin-left: 1%;
    max-width: 98%;
    display: inline-block;
}
.header{
    width: 100%;
    height: 100%;
}
.header_description{
    font-size: 1.4vw;
    position: relative;
    float: left;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 3vh 0 0 0;
}
@media screen and (min-width: 1200px) {
    .header_description {
        font-size: 1.07rem;
    }
}
.aside_right{
    float: right;
}
.category_list{
    width: 80%;
    float: right;
}
.aside_left_content, .aside_right_content{
    float: right;
    width: 90%;
}
.aside_left_content h2, .aside_right_content h2{
    text-align: center;
}
.aside_right_content{
    float: left;
}
.content .products, .mobile_products{
    overflow: hidden;
}
.nav_menu{
    margin-top: 3vh;
}
.margin{
    float: right;
    width: 10%;
}
.img{
    padding: 7% 0;
    max-height: 90%;
    max-width: 90%;
    min-height: 250px;
    max-height: 250px;
    margin: auto;
    display: flex;
    justify-content: center; /* center horizontal */
    align-items: center; /* center vertical */
    transition: all .2s ease-in-out;
}
.card_link:hover .img{
    transform: scale(1.1);
}
.category_list ul{
    list-style-type: none;
}
.img img{
    max-height: 200px;
    max-width: 200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.card-title{
    font-size: 24px;
    margin-bottom: 0;
    margin-top: 0;
}
.list-group li{
    padding-top: 0;
    padding-bottom: 0;
    font-size: 18px;
}
.card-body{
    padding-top: 0;
    padding-bottom: 4%;
}
.list-group li:first-child:not(.list-group-item-detail){
    font-weight: 300;
    font-size: 16px;
}
.list-group li:last-child{
    padding-bottom: 10px;
    font-weight: 700;
}
.active{
    color: #495057;
    -webkit-text-stroke-width: thin;
}
.w3-content,.w3-auto{
    margin-left:auto;
    margin-right:auto;
}
.w3-auto{
    max-width:1140px;
}
.w3-section,.w3-code{
    margin-top:16px!important;
    margin-bottom:16px!important;
}
.w3-animate-fading{
    animation:fading 7s infinite;
}@keyframes fading{0%{opacity:0}50%{opacity:1}100%{opacity:0}
 }
.second{
    margin-top: 4vh;
}
.news_card{
    width: 99%;
    cursor: auto;
    margin: 0.5% 0.5% 3vh 0.5%;
}
.mobile_products *{
    text-align: center;
}
.news_content{
    width: 60%;
    display: inline-block;
    margin-top: 44px;
}
.select_category div button{
    width: 75vw;
}
.select_category{
    text-align: center;
    vertical-align: middle;
    margin: 20px 0;
}
.select_dropdown_menu ul{
    list-style: none;
}
.select_category div div ul{
    padding: 0 5%;
    width: 75vw;
}
.select_category div div ul li{
    padding: 10%;
}
.menu_mobile_icon{
    height: 40px;
}
.navbar-brand{
    font-size: 140%;
}
.dropdown-item{
    font-size: 1.25rem;
}
.navbar{
    padding: 1rem;
}
.open_hours{
    display: table;
    margin: 0 auto;
    font-size: 32px;
}
.open_hours table{
    margin: 5% auto 5% auto;
}
.open_hours table th{
    padding-right: 1vw;
}
.stav{
    font-size: 130%;
    text-align: center;
}
.mobile_contact{
    display: table;
    margin: 0 auto;
    font-size: 130%;
}
.card-text *{
    max-width: 100%;
}
.card-text{
    margin-top: 1rem;
}
.onas{
    width: 90%;
    margin: 0 auto;
}
.editor{
    width: 100%;
    height: 40px;
    margin: 5px 0;
}
.btn_editor{
    width: 75%;
    margin: 0 auto;
}
.det-mini{
    padding: 3% 1%;
    width: 31%;
    display: inline-block;
}
.img-mini{
    width: 100%;
    text-align: center;
    border-radius: 5px;
}
.card-info{
    width: 50%;
    float: left;
}
.card-cart{
    width: 50%;
    float: left;
}
.card-cart form div label, .card-cart form div {
    margin: 0;
}
.card-cart form div select, .card-cart button{
    margin: 0 0 3% 0;
    width: 80%;
}
option:disabled{
    color: #dcdcdc;
}
.form-group .error_msg{
    color: red;
    font-size: 12px;
    margin: 0;
    padding: 0;
}
.search-menu{
    width: 160px;
}
.search-menu .active{
    background-color: #dedede
}
.check-size{
    height: 34px;
    width: 34px;
    margin: 2px;
    border-radius: 15%;
    border: none;
    display: inline-block;
    cursor: pointer;
}
.check-size p{
    text-align: center;
    margin: 3px 0 0 0;
    font-size: 18px;
}
.search-size{
    display: none;
}
.nav_pagination{
    display: inline-block;
    background-color: red;
    margin: 10px auto;
}


.ck-button {
    margin: 4px;
    background-color: #FFF;
    border-radius: 4px;
    overflow: auto;
    float: left;
}

.ck-button label {
    float: left;
    width: 2.5em;
    margin: 0;
    cursor: pointer;
}

.ck-button label span {
    border: 1px solid #D0D0D0;
    margin: 1px;
    text-align: center;
    padding: 3px 0px;
    display: block;
    border-radius: 4px;
}

.ck-button label input {
    position: absolute;
    top: -20px;
}

.ck-button input:hover + span {
    background-color: #dcdcdc;
}

.ck-button input:checked + span {
    border: 2px solid red;
    margin: 0px;
}

.ck-button input:checked:hover + span {
    background-color: #dcdcdc;
}

.filter-check{
    font-size: 21px;
}
.filter-check input{
    transform: scale(1.5);
}
.scrollable-menu {
    height: auto;
    max-height: 220px;
    overflow-x: hidden;
}
.sub_odkaz{
    list-style-type: circle;
}
.news_content .onas p {
    text-align: justify;
}

.product-detail-container {
    width: 100%;
    padding: 15px;
}

/* Styly pro obrázky */
.product-images .main-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.thumbnail-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.thumbnail-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 2px solid #dee2e6;
    border-radius: .25rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.thumbnail-image:hover, .thumbnail-image.active {
    border-color: #007bff;
}

.product-purchase-info {
    padding-left: 15px;
}

.product-title-new {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-price-new {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.product-price-new .original-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: #6c757d;
    margin-right: 10px;
    font-weight: 400;
}

.product-price-new .sale-price {
    color: #dc3545; /* Červená pro slevu */
}

.product-price-new .regular-price {
    color: #212529;
}

.product-price-new .price-unavailable {
    font-size: 1.25rem;
    color: #6c757d;
}

.option-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Skrytí původních radio buttonů */
.color-selector input[type="radio"],
.size-selector input[type="radio"] {
    display: none;
}

/* Výběr barvy */
.color-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.color-selector .color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
    transition: box-shadow 0.2s ease;
    background-size: cover;
    background-position: center;
    display: block;
    position: relative;
    align-items: center;
    justify-content: center;
}

.color-selector input[type="radio"]:checked + label .color-swatch {
    box-shadow: 0 0 0 2px #007bff; /* Zvýraznění vybrané barvy */
}

.color-selector input[type="radio"]:checked + label .color-swatch::after {
    contain: '';
    display: block;
    width: 8px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-bottom: 4px;
}

/* Styly pro nedostupnou barvu */
.color-selector label.is-disabled {
    cursor: not-allowed;
}

.color-selector label.is-disabled .color-swatch {
    opacity: 0.5;
}

/* Přeškrtnutí pro nedostupnou barvu */
.color-selector label.is-disabled .color-swatch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -1px;
    width: 100%;
    height: 2px;
    background-color: #777;
    transform: rotate(45deg);
    z-index: 1;
}

/* Výběr velikosti */
.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.size-selector label {
    display: inline-block;
    padding: .375rem .75rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    cursor: pointer;
    text-align: center;
    min-width: 45px;
    transition: all 0.2s ease;
    margin-bottom: 0; /* Přepsání defaultní marginu pro label */
}

.size-selector input[type="radio"]:checked + label {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.size-selector input[type="radio"]:disabled + label {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    text-decoration: line-through;
}

.size-selector input[type="radio"]:not(:disabled) + label:hover {
    background-color: #e9ecef;
}

/* Tlačítko "Do košíku" */
.add-to-cart-btn {
    padding: .75rem 1.25rem;
    font-size: 1.25rem;
}

/* Popis produktu */
.product-description-new {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

.product-badges {
    margin-bottom: 1rem;
    display: flex;
    gap: 8px;
}

.product-badges .badge {
    font-size: 0.8rem;
    padding: .4em .7em;
    border-radius: .25rem;
    font-weight: 600;
}

.badge-novinka {
    background-color: #e83e8c;
    color: white;
}

.badge-skladem {
    background-color: #28a745;
    color: white;
}

.badge-sleva {
    background-color: #dc3545;
    color: white;
}

.selected-color-name,
.selected-size-name {
    color: #6c757d;
}

.size-prompt {
    margin-bottom: 0.5rem;
}

.product-description-new .tab-content {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 .25rem .25rem;
}
