@font-face {
    font-family: "Nunito";
    src: local("Nunito-Regular"), url("../fonts/Nunito-Regular.ttf") format("truetype");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    touch-action: manipulation;
}

body {
    font-family: "Nunito", sans-serif;
}

::-webkit-scrollbar {
    width: 4px;
    height: 3px
}

::-webkit-scrollbar-track {
    width: 4px;
    height: 3px;
}

::-webkit-scrollbar-thumb {
    width: 3px;
    height: 3px;
    background: rgb(255, 180, 131);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}


h1,
h2,
h3 {
    font-family: "Nunito", sans-serif;
    font-weight: 500;
}

.logo {
    width: 100%;
    display: flex;
    justify-content: center;
    color: rgba(209, 87, 0) !important;
}

.navbar {
    padding: 3px 0;
}

.nav-pills {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding-bottom: 3px;
}

.nav-item {
    display: inline-block;
    float: none;
}

.nav-link {
    font-size: 14px;
    color: #444;
    border-radius: 20px !important;
}

.nav__link.active {
    background-color: #ff2f00ad !important;
    color: white !important;
    border-radius: 20px !important;
}

.sticky-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sticky-button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.sticky-button.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.section {
    margin-bottom: 20px;
}


a {
    text-decoration: none;
}

.offcanvas-body {
    padding-bottom: 400px;
}


.card-body {
    padding: 10px;
}

.card-item {
    margin: 0 auto;
    margin-bottom: 10vh;
    border: none;
    border-radius: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.card-body {
    padding: 0;
    padding-left: 10px;
    padding-bottom: 10px;
}


.popular {
    padding: 20px 0;
}

.category-card {
    border: none;
    border-bottom: 1px solid #f5f5f5;
}

.category__popular {
    scrollbar-width: none;
}

.category__popular:-webkit-scrollbar {
    display: none;
}

@media screen and (min-width: 960px) {
    .category__popular {
        scrollbar-width: auto;
    }

    .category__popular:-webkit-scrollbar {
        display: block;
    }
}

.product_card__popular {
    margin: 0 5px;
    margin-bottom: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -1px -1px 5px rgb(229 229 229);
}

.card-body__popular {
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.hit-icon {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0px;
    right: 0;
}

.product-info {
    margin-top: 15px;
    padding-bottom: 30px;
}

.bju-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border-radius: 20px;
    background-color: #bdbdbd34;
}

.bju-item {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bju-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

.bju-value {
    font-size: 14px;
    color: #444;
}

.bju-sugar {
    background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
    color: #fff;
}

@media (max-width: 768px) {
    .bju-item {
        padding: 10px 12px;
    }

    .bju-value {
        font-size: 14px;
    }
}

.form-check {
    font-size: 14px;
    margin: 15px auto;
}

.order-btn {
    width: 50%;
    height: 40px;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff2f00ad;
    color: #ffffff;
    font-weight: 500;
    border-radius: 50px;
    box-sizing: border-box;
}

.cart-order-btn {
    width: 80%;
}

.delivery-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.delivery-summary {
    font-size: 14px;
}

#deliveryNotice {
    color: #6c757d;
}

.delivery-free {
    color: #28a745 !important;
    font-weight: 600;
}

.delivery-paid {
    color: #dc3545 !important;
}


.order-btn:hover {
    color: #ffffff;
    background-color: #ff2f00ce;
}

.order-btn-back {
    margin-bottom: 20px;
    color: rgba(209, 87, 0);
    background-color: rgb(255, 240, 230);
}

.order-btn-back:hover {
    color: rgba(209, 87, 0);
    background-color: rgb(255, 240, 230);
}

.additional-title {
    margin: 20px 0;
    font-size: 18px;
}

.select-additional {
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
}

.select-additional label {
    max-width: 24%;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    box-shadow: 0px 0px 40px rgb(235, 235, 235);
}

.select-additional .btn-check:checked+.btn {
    background-color: #ffffff;
    color: #222;
    box-shadow: 0px 0px 1px 1px rgb(255, 55, 55);
}

.additional-container{
    padding: 3px;
}

.additional-name {
    font-size: 12px;
    color: #444;
}

.additional-price {
    color: #222;
    font-size: 16px;
    font-weight: 500;
}

@media screen and (max-width: 600px) {
    .card-item {
        margin: 0 20px;
        margin-bottom: 10vh;
    }

    .order-btn {
        width: 70%;
    }
}


.select-size {
    width: 100%;
    margin-top: -30px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.size-switch-container {
    display: inline-flex;
    background-color: #e8e8e8;
    border-radius: 15px;
    padding: 4px;
    position: relative;
    gap: 0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.size-switch-slider {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    background-color: #ffffff;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15),
        0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
    will-change: transform, width;
}

.size-switch-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.size-switch-label {
    padding: 4px 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
    user-select: none;
    text-align: center;
    min-width: 60px;
    background-color: transparent;
    border: none;
    display: inline-block;
    white-space: nowrap;
}

.size-switch-input:checked+.size-switch-label {
    color: #000;
    font-weight: 600;
}

.size-switch-label:hover {
    color: #333;
}

.size-switch-input:checked+.size-switch-label:hover {
    color: #000;
}





.sticky-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 99;
}

.sticky-button button {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    color: #222;
    background-color: #fff;
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 960px) {
    .sticky-button {
        bottom: 7%;
        right: 5%;
        top: initial;
        transform: none;
    }

    .sticky-button button {
        writing-mode: initial;
        font-size: 3vw;
    }
}


.logo-wrap img {
    width: 100%;
    height: auto;
    border: none;
}


.cart-counter {
    font-size: 14px;
    background-color: #ff4117;
}

.cart-btn {
    background: url("cart-icon.png");
    background-size: contain;
}

.offcanvas-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item {
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #f5f5f5;
}

.cart-item.card-body {
    border-bottom: 1px solid #f5f5f5;
}

.cart-item .btn-close {
    width: 7px;
    height: 7px;
}

.cart-item-control {
    padding: 5px;
    display: flex;
    justify-content: flex-end;
}

.cart-item-price {
    height: 100%;
    padding-right: 20px;
    font-size: 18px;
    text-align: right;
}

.cart-item-control .input-group {
    width: 50%;
    height: 30px;
    justify-content: space-between;
    align-items: center;
}

.cart-item-control .input-group button {
    width: 33%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f3f3;
    border-radius: 50%;
}

.cart-item-control .input-group span {
    width: 33%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f3f3;
    font-size: 18px;
}

.delivery-type-selector {
    display: flex;
    padding: 5px;
}

.delivery-type-selector .form-check {
    transition: all 0.3s ease;
    cursor: pointer;
}

.delivery-type-selector .form-check-input:checked+.form-check-label {
    font-weight: 600;
    color: rgba(209, 87, 0);
}

.delivery-type-selector .form-check-input:checked~* {
    color: rgba(209, 87, 0);
}

.empty-cart-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

#deliveryAddressFields {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#deliveryAddressFields.hidden {
    display: none;
}

.text-danger {
    color: #dc3545;
}


.custom-input-group {
    max-width: 120px;
}

.client-info .label {
    color: #444;
}

.order button {
    width: 100%;
    height: 40px;
    background-color: #e2e2e2;
}

.cart-btn {
    background: url("../images/cart-icon.png");
    background-size: contain;
}


.shimmer {
    opacity: 0.5;
    filter: grayscale(1);
    color: grey;
    display: inline-block;
    mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/350% 100%;
    animation: shimmer 2.5s infinite;
    font-size: 50px;
}

@keyframes shimmer {
    100% {
        mask-position: left
    }
}

.image-container {
    min-height: 200px;
    position: relative;
    background-color: #f8f9fa;
}

.spinner-border {
    color: #ff2f00ad;
}

#imageSpinner {
    display: none;
}

#productInfoImage {
    width: 100%;
    height: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#productInfoImage[src=""] {
    opacity: 0;
}


.gallery-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.gallery-item {
    flex-shrink: 0;
    width: 120px;
    max-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lg-image {
    border-radius: 10px;
}



.search-container {
    margin: 20px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.search-input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.dish-item.hidden {
    display: none;
}

.no-results {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}






.video-b {
    width: 100%;
    -webkit-box-shadow: 0px 14px 55px -12px rgb(194 185 176);
    -moz-box-shadow: 0px 14px 55px -12px rgb(194 185 176);
    box-shadow: 0px 14px 55px -12px rgb(194 185 176);
}

.video-poster {
    width: 100%;
    margin-bottom: 9px;
    box-shadow: 0px 14px 55px -12px rgb(194 185 176);
}

.video-content {
    display: flex;
    padding: 20px 0;
    align-items: center;
    justify-content: center;
    bottom: 0px;
    color: #444;
}

.video-content p {
    margin: 0;
    padding: 5px;
    font-size: 14px;
}

.video-content a {
    color: #fff;
    background-color: #ff7252;
    border: none;
    box-shadow: 0px 0px 10px -1px rgb(254 159 123);
}

.video-content a::before {
    content: "Позвонить";
}

@media (min-width: 600px) {
    .video-content a {
        color: #000000;
        background-color: #ffffff00;
        margin-left: 20px;
        font-size: 18px;
        box-shadow: none;
    }

    .video-content a::before {
        content: "+79373301515";
    }

    .video-content p {
        font-size: 18px;
    }
}



.search-wrapper {
    border-bottom: 1px solid #dee2e6;
}

.search-wrapper .input-group {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
    border-radius: 0.375rem;
}

.search-wrapper .input-group-text {
    border-right: 0;
    color: #6c757d;
}

.search-wrapper .form-control {
    border-left: 0;
    border-right: 0;
}

.search-wrapper .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.search-wrapper .btn-outline-danger {
    border-left: 1px solid #ced4da;
    border-radius: 0 0.375rem 0.375rem 0;
}

.search-wrapper .btn-outline-danger:hover {
    border-left-color: #dc3545;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

mark {
    background-color: #fff59d;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 500;
}

@media (max-width: 576px) {
    .search-wrapper {
        padding: 10px;
    }

    .search-wrapper .btn {
        font-size: 14px;
    }

    #searchOpen {
        font-size: 14px;
        padding: 8px 16px;
    }
}


.btn-search-product {
    color: #fff;
    background-color: #ff7252;
    box-shadow: inset -1px -1px 5px rgba(255, 255, 255, 0.479);
}