.work-status {
    margin: 10px 0 12px;
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 14px;
}

.work-status.open {
    background: #dcfce7;
    color: #166534;
}

.work-status.closed {
    background: #fee2e2;
    color: #991b1b;
}

.menu-top {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.menu-top-inner {
    max-width: 1540px;
    margin: 0 auto;
    padding: 16px 20px;
}

.search {
    width: 100%;
    border: 1px solid #e4dace;
    background: var(--bg);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 16px;
    outline: none;
    margin-bottom: 12px;
}

.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: center;
}

.categories::-webkit-scrollbar {
    display: none;
}

.categories a,
.category-filter-btn {
    flex: 0 0 auto;

    border: 1px solid #e4dace;
    background: #fff;
    color: #30211c;

    border-radius: 999px;

    padding: 10px 16px;

    font-size: 14px;
    font-weight: 900;

    text-decoration: none;
    cursor: pointer;

    transition: .2s ease;
}

.categories a:hover,
.category-filter-btn:hover {
    background: #f8f5ef;
}

.category-filter-btn.active {
    background: #7a1f17;
    border-color: #7a1f17;
    color: #fff;
}

.menu-filters {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    border: none;
    background: #f3eee8;
    color: #4b3528;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.filter-btn.active {
    background: #7a1f17;
    color: #fff;
}

.menu-filters::-webkit-scrollbar {
    display: none;
}


.filter-btn.active {
    background: #7a1f17;
    color: #fff;
    box-shadow: 0 6px 16px rgba(122,31,23,.18);
}

.work-info {
    max-width: 1180px;
    margin: 12px auto 0;
    padding: 0 14px;
}

.work-info-inner {
    background: #ffffff;
    border: 1px solid #e4dace;
    border-radius: 18px;
    padding: 13px 15px;
    box-shadow: 0 6px 18px rgba(55, 33, 25, .05);
}

.work-info-main {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #241915;
    font-weight: 900;
}

.work-info-sub {
    margin-top: 4px;
    color: #7b6d64;
    font-size: 13px;
    font-weight: 700;
}

.work-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.work-dot.open {
    background: #16a34a;
}

.work-dot.closed {
    background: #dc2626;
}

.menu-layout {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 390px 96px 24px;
}

.menu-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 26px 0 110px;
}

.section {
    margin-bottom: 42px;
    scroll-margin-top: 150px;
}

.section-title {
    font-size: 30px;
    font-weight: 900;
    margin: 10px 0 22px;
    color: #241915;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 12px 34px rgba(55, 33, 25, .09);
    display: flex;
    flex-direction: column;
    min-height: 540px;
    transition: .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(55, 33, 25, .14);
}

.photo {
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #fff;
    flex: 0 0 260px;
}

.photo img {
    position: absolute;
    left: calc(var(--img-x, 50) * 1%);
    top: calc(var(--img-y, 50) * 1%);

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transform: translate(-50%, -50%) scale(calc(var(--img-zoom, 100) / 100));
    transform-origin: center center;

    border-radius: 10%;
}

.corner-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 145px;
    height: auto;
    z-index: 30;
}

.spicy-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 60px;
    height: 60px;
    object-fit: contain;
    z-index: 25;
}

.body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 26px;
    margin-bottom: 4px;
}

.badge {
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    padding: 6px 12px;
}

.badge.new,
.new {
    background: #198754;
    color: #fff;
}

.badge.preorder {
    background: #fff1cc;
    color: #8a5b00;
}

.name {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.16;
    min-height: 52px;
    color: #241915;
}

.weight {
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.desc {
    display: flex;
    flex-direction: column;
    min-height: 72px;
    max-height: 72px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
}

.desc-text {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.details-link {
    margin-top: auto;
    align-self: flex-start;
}
.bottom {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding-top: 8px;
}

.price {
    font-size: 26px;
    font-weight: 900;
    color: #7a1f17;
    white-space: nowrap;
}

.add-wide {
    border: none;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.preorder-btn {
    background: #fff1cc;
    color: #7a4d00;
    border: 1px solid #f2d98b;
}

.cart-sidebar {
    display: block;
}

.cart-box {
    position: fixed;
    top: 50%;
    right: max(24px, calc((100vw - 1500px) / 2 + 24px));
    transform: translateY(-50%);
    width: 340px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 2000;
    background: #fff;
    border: 1px solid #e4dace;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

.cart-sidebar-right {
    text-align: right;
}

.cart-sidebar-remove {
    display: inline-block;
    margin-top: 4px;
    border: none;
    background: transparent;
    color: #b42318;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.cart-box-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 14px;
    color: #241915;
}

.cart-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-sidebar-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1e8dc;
}

.cart-sidebar-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
}

.cart-sidebar-item span {
    display: block;
    color: #7b6d64;
    font-size: 12px;
    font-weight: 700;
    margin-top: 3px;
}

.cart-sidebar-item b {
    white-space: nowrap;
    font-size: 14px;
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    margin: 14px 0;
    font-size: 18px;
    font-weight: 900;
}

.cart-sidebar-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    background: var(--black);
    color: #fff;
    border-radius: 16px;
    padding: 14px;
    font-size: 15px;
    font-weight: 900;
}

.cart-sidebar-empty {
    color: #7b6d64;
    font-weight: 800;
    font-size: 14px;
}

.cart {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    max-width: 720px;
    margin: 0 auto;
}

.cart-btn {
    width: 100%;
    border: none;
    background: var(--black);
    color: #ffffff;
    border-radius: 18px;
    padding: 15px 16px;
    font-size: 15px;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 28px rgba(0,0,0,.24);
    text-decoration: none;
}

.cart-btn span {
    color: var(--gold);
}

.empty {
    color: var(--muted);
    font-weight: 800;
}

.combo-preorder-note {
    margin-top: 6px;
    color: #8a5b00;
    font-size: 13px;
    font-weight: 900;
}

.menu-card .desc {
    overflow: hidden;
}

.cart-sidebar-modifiers {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
}

.cart-sidebar-remove-text {
    color: #991b1b;
}

.cart-sidebar-add-text {
    color: #166534;
}

.menu-rating {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #f59e0b;
}

.menu-rating span {
    color: #6b7280;
    font-weight: 600;
}
.menu-rating {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 800;
    color: #f59e0b;
}

.menu-rating span {
    color: #6b7280;
    font-weight: 600;
}

.details-reviews {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.details-reviews-title {
    font-weight: 900;
    margin-bottom: 8px;
}

.details-review-item {
    background: #f9fafb;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 8px;
}

.details-review-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 800;
    font-size: 13px;
}

.details-review-head small {
    color: #6b7280;
    font-weight: 600;
}

.details-review-comment {
    margin-top: 6px;
    font-size: 13px;
    color: #374151;
}

.details-reviews-empty {
    margin-top: 10px;
    font-size: 13px;
    color: #6b7280;
}
.site-rating-strip {
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 900;
}

.site-rating-strip a {
    color: #9a3412;
    text-decoration: none;
}

.site-rating-strip span {
    color: #7c2d12;
    font-weight: 700;
}

.menu-card {
    position: relative;
}

.favorite-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.favorite-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.favorite-btn.active {
    background: #fff7ed;
}
/* =========================
   МОДАЛЬНОЕ ОКНО ТОВАРА
   ========================= */
#details-modifiers {
    margin-bottom: 15px;
}

.modifier-group {
    margin-bottom: 12px;
}

.modifier-title {
    font-weight: 800;
    margin-bottom: 6px;
}

.modifier-option {
    display: block;
    margin: 4px 0;
    cursor: pointer;
}

.details-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.details-modal.active {
    display: block;
}

.details-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(3px);
}

.details-modal-box {
    position: relative;
    width: min(950px, calc(100vw - 30px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    margin: 20px auto;

    background: #fff;
    border-radius: 28px;

    display: grid;
    grid-template-columns: 420px 1fr;

    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.details-modal-image-wrap {
    background: #f8f5ef;
    min-height: 420px;
}

.details-modal-image-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.details-modal-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.details-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.9);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
    z-index: 20;
}

.details-modal-close:hover {
    background: #fff;
}

.details-modal-content h3 {
    margin: 0 40px 10px 0;

    font-size: 32px;
    font-weight: 900;
    line-height: 1.15;

    color: #241915;
}

.details-modal-price {
    font-size: 34px;
    font-weight: 900;
    color: #7a1f17;

    margin-bottom: 18px;
}

.details-modal-description {
    color: #5f5149;
    font-size: 15px;
    line-height: 1.65;

    white-space: pre-line;

    padding: 16px;
    border-radius: 16px;

    background: #faf7f2;
    border: 1px solid #ece5da;

    margin-bottom: 22px;
}

.details-qty {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: auto;
    margin-bottom: 16px;
}

.details-qty-btn {
    width: 46px;
    height: 46px;

    border: 1px solid #ddd;
    border-radius: 14px;

    background: #fff;

    font-size: 24px;
    font-weight: 900;

    cursor: pointer;
}

.details-qty-btn:hover {
    background: #f5f5f5;
}

#details-qty-input {
    width: 90px;
    height: 46px;

    text-align: center;

    border: 1px solid #ddd;
    border-radius: 14px;

    font-size: 18px;
    font-weight: 800;
}

.details-add-btn {
    width: 100%;

    border: none;
    border-radius: 18px;

    background: var(--primary);
    color: #fff;

    padding: 16px;

    font-size: 16px;
    font-weight: 900;

    cursor: pointer;
}

.details-add-btn:hover {
    opacity: .95;
}

.details-add-btn.preorder {
    background: #fff1cc;
    color: #7a4d00;
    border: 1px solid #f2d98b;
}
.details-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;
    padding: 8px 14px;

    border: 1px solid #e4dace;
    border-radius: 12px;

    background: #fff;

    color: #7a1f17;

    font-size: 13px;
    font-weight: 900;

    cursor: pointer;
    transition: .2s ease;
}

.details-link:hover {
    background: #f8f5ef;
    border-color: #d6c4ae;
}
.floating-cart-button {
    position: fixed;
    right: 170px;
    bottom: 15px;
    z-index: 1000;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: #111827;
    color: #ffffff;
    text-decoration: none;

    padding: 12px 16px 12px 14px;
    border-radius: 999px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    font-weight: 800;
}

.floating-cart-button:hover {
    color: #ffffff;
    background: #000000;
}

.floating-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    font-size: 24px;
    line-height: 1;
}

.floating-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;

    min-width: 20px;
    height: 20px;
    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #ef4444;
    color: #ffffff;

    border: 2px solid #111827;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.floating-cart-total {
    font-size: 14px;
    padding-left: 4px;
}

@media (max-width: 576px) {
       .floating-cart-button {
        right: 12px;
        bottom: 90px;
    }
    .floating-cart-total {
        display: none;
    }
}
/* мобильная версия */

@media (max-width: 900px) {

    .details-modal-box {
        width: calc(100vw - 16px);
        margin: 8px auto;

        grid-template-columns: 1fr;
    }

    .details-modal-image-wrap {
        min-height: 260px;
    }

    .details-modal-content {
        padding: 18px;
    }

    .details-modal-content h3 {
        font-size: 24px;
    }

    .details-modal-price {
        font-size: 28px;
    }
}
@media (min-width: 1800px) {
    .menu-layout {
        max-width: 1760px;
        padding-right: 390px;
        padding-left: 24px;
    }

    .grid {
        grid-template-columns: repeat(4, minmax(260px, 1fr));
    }

    .cart-box {
        right: max(24px, calc((100vw - 1760px) / 2 + 24px));
    }
}

@media (max-width: 1280px) {
    .menu-layout {
        padding-right: 340px;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }

    .cart-box {
        width: 300px;
        right: 18px;
    }
}

@media (max-width: 1024px) {
    .menu-layout {
        display: block;
        max-width: 1180px;
        padding: 0 14px 96px;
    }

    .menu-page {
        padding: 18px 0 96px;
    }

    .cart-sidebar {
        display: none;
    }

    .cart {
        display: block;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .photo {
        height: 280px;
    }

    .card {
        min-height: 470px;
    }
}

@media (min-width: 1025px) {
    .cart {
        display: none;
    }
}

@media (max-width: 640px) {
    .menu-top {
        top: 58px;
    }

    .menu-top-inner {
        padding: 12px;
    }

    .section-title {
        font-size: 24px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card {
        border-radius: 22px;
        min-height: auto;
    }

    .photo {
        height: 230px;
    }

    .body {
        padding: 16px;
    }

    .name {
        font-size: 22px;
        min-height: auto;
    }

    .price {
        font-size: 28px;
    }

    .corner-ribbon {
        width: 120px;
    }

    .spicy-icon {
        width: 50px;
        height: 50px;
    }
}