/* ===== new_style.css ===== */
@font-face {
    font-family: 'Montserrat';
    font-weight: 500;
    src: url("/static/fonts/Montserrat/Montserrat-Medium.ttf");
}


@font-face {
    font-family: 'Montserrat-bold';
    font-weight: 700;
    src: url("/static/fonts/Montserrat/Montserrat-Bold.ttf");
}

@font-face {
    font-family: 'Montserrat-semi-bold';
    font-weight: 600;
    src: url("/static/fonts/Montserrat/Montserrat-SemiBold.ttf");
}

@font-face {
    font-family: 'Montserrat-extra-bold';
    font-weight: 800;
    src: url("/static/fonts/Montserrat/Montserrat-ExtraBold.ttf");
}

@font-face {
    font-family: 'Montserrat-black';
    font-weight: 900;
    src: url("/static/fonts/Montserrat/Montserrat-Black.ttf");
}

@font-face {
    font-family: 'Montserrat-italic';
    src: url("/static/fonts/Montserrat/Montserrat-ThinItalic.ttf");
}

@font-face {
    font-family: 'Montserrat-thin';
    font-weight: 100;
    src: url("/static/fonts/Montserrat/Montserrat-Thin.ttf");
}

@font-face {
    font-family: 'Montserrat-light';
    font-weight: 300;
    src: url("/static/fonts/Montserrat/Montserrat-Light.ttf");
}

@font-face {
    font-family: 'Montserrat-extra-light';
    font-weight: 200;
    src: url("/static/fonts/Montserrat/Montserrat-ExtraLightItalic.ttf");
}

@font-face {
    font-family: 'Montserrat-medium';
    font-weight: 500;
    src: url("/static/fonts/Montserrat/Montserrat-Medium.ttf");
}

@font-face {
    font-family: 'Minion-regular';
    font-weight: 400;
    src: url("/static/fonts/Minion/RobotoSlab-Regular.otf");
}

html {
    min-height: 100%;
    position: relative;
    overflow-x: hidden !important;
}

body {
    background: #FFFFFF;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    margin-left: 0;
    padding-right: 0 !important;
    padding-top: 175px !important;
    transition: padding-top 0.32s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden !important;
}

body.promo-bar-collapsed {
    padding-top: 175px !important;
}

.container:before {
    content: none !important;
}

/* Normalize focus frame across browsers for clickable controls */
a,
button,
input,
select,
textarea,
[role="button"],
[tabindex],
.show_node,
.category,
.catalog-menu-item,
.mobile-catalog-item,
.action-btn {
    -webkit-tap-highlight-color: transparent;
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[role="button"]:focus,
[tabindex]:focus,
.show_node:focus,
.category:focus,
.catalog-menu-item:focus,
.mobile-catalog-item:focus,
.action-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}



button::-moz-focus-inner,
input::-moz-focus-inner,
select::-moz-focus-inner,
textarea::-moz-focus-inner {
    border: 0;
}

/* Prevent default browser underline on interactive link states */
a:hover,
a:active,
a:focus,
a:focus-visible {
    text-decoration: none !important;
}

.phone-prefix-field {
    position: relative;
}

span.phone-prefix-field {
    display: block;
    width: 100%;
}

.phone-prefix-field.input-group {
    width: 100%;
}

.phone-prefix-field::before {
    content: "+7";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #1A1A19;
    font-size: 14px;
    line-height: 1;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 700;
    pointer-events: none;
    z-index: 2;
}

.phone-prefix-field > .phone-prefix-input {
    padding-left: 30px !important;
}


/* ===== shared layout & form primitives ===== */

/* ===== templates/forms/add_complain_dialog.html ===== */
#add_complain_dialog {
    margin-top: 22px;
}

#add_complain_dialog .n-complain-form {
    margin: 0;
}

#add_complain_dialog .n-complain-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 18px;
}

#add_complain_dialog .n-complain-card {
    border-radius: 24px;
    border: 1px solid rgba(255, 198, 43, 0.24);
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 242, 227, 0.92) 100%);
    box-shadow: 0 18px 40px rgba(33, 25, 11, 0.1);
    padding: 18px;
}

#add_complain_dialog .n-complain-title {
    margin: 0;
    color: #1e1912;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
}

#add_complain_dialog .n-complain-subtitle {
    margin: 8px 0 0;
    color: #74654a;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

#add_complain_dialog .n-complain-ratings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#add_complain_dialog .n-complain-rating-group {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(186, 152, 73, 0.2);
    background: rgba(255, 255, 255, 0.74);
}

#add_complain_dialog .n-complain-rating-title {
    margin: 0 0 8px;
    color: #2e2418;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

#add_complain_dialog .n-complain-rating-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

#add_complain_dialog .radio-reviews {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#add_complain_dialog .radio-reviews + label {
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(179, 148, 76, 0.26);
    background: #fffef9;
    color: #6e5d43;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background-color 0.24s ease,
        border-color 0.24s ease,
        color 0.24s ease,
        transform 0.24s ease,
        box-shadow 0.24s ease;
}

#add_complain_dialog .radio-reviews + label:hover {
    border-color: rgba(255, 198, 43, 0.72);
    background: #fff8e5;
    transform: translateY(-1px);
}

#add_complain_dialog .radio-reviews:checked + label {
    border-color: rgba(238, 184, 56, 0.9);
    background: linear-gradient(180deg, #ffd975 0%, #FFC62B 100%);
    color: #231a0d;
    box-shadow: 0 10px 18px rgba(255, 198, 43, 0.32);
}

#add_complain_dialog .n-complain-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#add_complain_dialog .n-complain-comment-block {
    margin-bottom: 2px;
}

#add_complain_dialog .n-complain-user-block {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(186, 152, 73, 0.18);
    background: rgba(255, 255, 255, 0.7);
}

#add_complain_dialog .n-complain-user-title {
    margin: 0 0 10px;
    color: #2b2216;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

#add_complain_dialog .n-complain-fields-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#add_complain_dialog .n-complain-field-group {
    min-width: 0;
}

#add_complain_dialog .n-complain-field-group-full {
    grid-column: 1 / -1;
}

#add_complain_dialog .n-complain-label {
    display: block;
    margin: 0 0 6px;
    color: #62553f;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#add_complain_dialog .n-complain-input,
#add_complain_dialog .n-complain-textarea {
    width: 100%;
    border: 1px solid rgba(176, 143, 70, 0.28);
    border-radius: 14px;
    background: #fff;
    color: #1f1a14;
    font-size: 15px;
    line-height: 1.35;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        background-color 0.24s ease;
}

#add_complain_dialog .n-complain-input {
    min-height: 44px;
    padding: 0 12px;
}

#add_complain_dialog .n-complain-textarea {
    min-height: 150px;
    resize: vertical;
    padding: 10px 12px;
}

#add_complain_dialog .n-complain-input::placeholder,
#add_complain_dialog .n-complain-textarea::placeholder {
    color: #978a77;
}

#add_complain_dialog .n-complain-input:focus,
#add_complain_dialog .n-complain-textarea:focus {
    border-color: #FFC62B;
    background: #fffdf8;
    box-shadow: 0 0 0 4px rgba(255, 198, 43, 0.15);
    outline: none;
}

#add_complain_dialog .n-complain-actions {
    margin-top: 2px;
    display: flex;
    justify-content: flex-end;
}

#add_complain_dialog .n-complain-submit {
    min-width: 190px;
    min-height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffd975 0%, #FFC62B 100%);
    color: #241b0f;
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        filter 0.24s ease;
}

#add_complain_dialog .n-complain-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(255, 198, 43, 0.28);
    filter: brightness(1.02);
}

@media (max-width: 1024px) {
    #add_complain_dialog .n-complain-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    #add_complain_dialog {
        margin-top: 16px;
    }

    #add_complain_dialog .n-complain-card {
        border-radius: 18px;
        padding: 12px;
    }

    #add_complain_dialog .n-complain-title {
        font-size: 20px;
    }

    #add_complain_dialog .n-complain-subtitle {
        font-size: 12px;
    }

    #add_complain_dialog .n-complain-rating-group,
    #add_complain_dialog .n-complain-user-block {
        padding: 10px;
        border-radius: 14px;
    }

    #add_complain_dialog .n-complain-rating-title {
        font-size: 13px;
    }

    #add_complain_dialog .n-complain-rating-scale {
        gap: 6px;
    }

    #add_complain_dialog .radio-reviews + label {
        min-height: 36px;
        font-size: 14px;
        border-radius: 10px;
    }

    #add_complain_dialog .n-complain-fields-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #add_complain_dialog .n-complain-user-title {
        font-size: 12px;
    }

    #add_complain_dialog .n-complain-label {
        margin-bottom: 5px;
        font-size: 11px;
    }

    #add_complain_dialog .n-complain-input {
        min-height: 40px;
        font-size: 14px;
    }

    #add_complain_dialog .n-complain-textarea {
        min-height: 132px;
        font-size: 14px;
    }

    #add_complain_dialog .n-complain-actions {
        justify-content: stretch;
    }

    #add_complain_dialog .n-complain-submit {
        width: 100%;
        min-height: 44px;
        font-size: 15px;
    }
}


.auth-form .form-fields,
.registration-form .form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-form .form-grid,
.registration-form .form-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.auth-form .form-column,
.registration-form .form-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form .column-title,
.registration-form .column-title {
    color: #141414;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    margin: 0;
}

.auth-form .form-field,
.registration-form .form-field,
.profile-field {
    width: 100%;
    padding: 7px 13px;
    background: #F5F5F5;
    border-radius: 12px;
}

.auth-form .field-label,
.registration-form .field-label,
.profile-content .field-label {
    color: #8E8E8E;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin-bottom: 3px;
}

.auth-form .field-input,
.registration-form .field-input,
.profile-content .field-input,
.profile-content .field-select {
    width: 100%;
    border: none;
    background: transparent;
    color: #1A1A19;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    outline: none;
}

.auth-form .field-input::placeholder,
.registration-form .field-input::placeholder,
.profile-content .field-input::placeholder {
    color: #8E8E8E;
    opacity: 0.5;
}

#login .password-toggle-control,
#registration .password-toggle-control,
#login_dialog .password-toggle-control {
    position: relative;
}

#login .field-input.with-password-toggle,
#registration .field-input.with-password-toggle,
#login_dialog .field-input.with-password-toggle {
    padding-right: 34px;
}

#login .password-toggle-btn,
#registration .password-toggle-btn,
#login_dialog .password-toggle-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    opacity: 0.86;
    transition: opacity 0.14s ease, background-color 0.14s ease;
}

#login .password-toggle-btn:hover,
#registration .password-toggle-btn:hover,
#login_dialog .password-toggle-btn:hover {
    opacity: 1;
    background: rgba(255, 198, 43, 0.2);
}

#login .password-toggle-btn .password-eye,
#registration .password-toggle-btn .password-eye,
#login_dialog .password-toggle-btn .password-eye {
    position: relative;
    width: 16px;
    height: 10px;
    border: 2px solid #8a7341;
    border-radius: 12px / 8px;
    box-sizing: border-box;
}

#login .password-toggle-btn .password-eye::before,
#registration .password-toggle-btn .password-eye::before,
#login_dialog .password-toggle-btn .password-eye::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #8a7341;
    transform: translate(-50%, -50%);
}

#login .password-toggle-btn .password-eye::after,
#registration .password-toggle-btn .password-eye::after,
#login_dialog .password-toggle-btn .password-eye::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #8a7341;
    transform: translate(-50%, -50%) rotate(-36deg);
    opacity: 0;
    transition: opacity 0.14s ease;
}

#login .password-toggle-btn.is-visible .password-eye::after,
#registration .password-toggle-btn.is-visible .password-eye::after,
#login_dialog .password-toggle-btn.is-visible .password-eye::after {
    opacity: 1;
}

.auth-form .checkbox-label,
.registration-form .checkbox-label,
.profile-content .checkbox-label {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.auth-form .hidden-checkbox,
.registration-form .hidden-checkbox,
.profile-content .hidden-checkbox {
    display: none;
}

.auth-form .custom-checkbox,
.registration-form .custom-checkbox,
.profile-content .custom-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #FFC62B;
    position: relative;
    flex-shrink: 0;
}

.auth-form .checkbox-text,
.registration-form .checkbox-text,
.profile-content .checkbox-text {
    flex: 1;
    color: #1A1A19;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.4;
}

.auth-tabs .tab-link {
    padding: 9px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.auth-tabs .tab-link span {
    color: #141414;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}


#main-content {
    max-width: 1200px;
    margin: 0 auto;
}

.n-page-header {
    height: 29px;
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    display: flex;
    align-items: center;
    color: #5B3511;
    align-self: stretch;
    margin-bottom: 45px;
}

@media (max-width: 768px) {
    .n-page-header {
        font-size: 20px;
    }
}

#n-order-table {
    font-family: 'Montserrat';
    margin: 0;
    width: 100%;
    background: #E7E7E7;
    border-radius: 20px;
    counter-reset: schetchik;
    overflow: hidden;
}

#n-order-table > thead th {
    padding-top: 20px;
    padding-bottom: 43px;

    text-align: left;
}

#n-order-table thead th {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #5B3511;

}

#n-order-table thead {
}

#n-order-table thead > tr > th {
    width: 10%;
}

#n-order-table thead > tr > th:nth-child(1) {
    width: 70px;
}

#n-order-table thead > tr > th:nth-child(2) {
    width: 65%;
}

@media screen and (max-width: 990px) {
    #n-order-table thead > tr > th:nth-child(2) {
        width: 60%;
    }
}

@media (max-width: 990px) {
    #n-order-table thead,
    #n-order-table thead th{
        width: 15% !important;
    }
}

#n-order-table thead > tr > th:nth-child(3),
#n-order-table thead > tr > th:nth-child(4),
#n-order-table tbody > tr > td:nth-child(2),
#n-order-table tbody > tr > td:nth-child(3) {
    text-align: center;
}

#n-order-table thead > tr > th:nth-child(5),
#n-order-table tbody > tr > td:nth-child(4) {
    text-align: right;
    padding-right: 35px;
}

#n-order-table > tbody tr td {
    padding-bottom: 15px;

}

#n-order-table > tbody tr:last-child::before,
#n-order-table > tbody tr:last-child td {
    padding-bottom: 20px;

}

#n-order-table > tbody tr {
    height: 30px;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    align-items: center;

    color: #666666;
}

#n-order-table > tbody tr::before {
    content: counter(schetchik);
    text-align: center;
    height: 100%;
    width: 70px;
    display: table-cell;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding-bottom: 15px;
}

/*#n-order-table > thead th {*/
/*    height: 100%;*/
/*    width: 100%;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

/*#n-order-table > tbody td {*/
/*    height: 100%;*/
/*    width: 100%;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

#n-order-table > tbody tr {
    counter-increment: schetchik;
}

#order {
    font-family: 'Montserrat';
}

#order .item_qty .btn {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 22px;
    border: none;
    width: 27px;
    padding: 0;
    height: 27px;
    opacity: 1;
    background: none;
    color: #666666;
    display: inline-block;
}

#order .item_qty .btn::focus {
    border: none;
}

#n-order-table .topping {
    background: #FFFFB9;
    counter-reset: schetchik -1;
}

#n-order-table .topping tr:first-child::before {
    content: '';
    border-top-left-radius: 20px;
}

#n-order-table .topping tr:first-child {
}

#n-order-table .topping tr:first-child td {
    border-top-right-radius: 20px;
    padding-bottom: 35px;

}

.topping h4 {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #5B3511;
}

.topping-info {

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 21px;
    gap: 10px;

    width: fit-content;
    height: 29px;

    background: #86B233;
    border-radius: 30px;

    /* Inside auto layout */


    /* *Не забудьте про топпинги, они не включены в стоимость заказа */


    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    color: #FFFFFF;


}


.itog-text1 {
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: #5B3511;
    font-size: 16px;
    font-family: Montserrat;
    font-weight: 700;
    word-wrap: break-word;
}


.itog-text2 {
    text-align: right;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: #5B3511;
    font-size: 18px;
    font-family: Montserrat;
    font-weight: 700;
    word-wrap: break-word;
}

.itog-text {
    align-self: stretch;
    justify-content: space-between;
    align-items: center;
    display: inline-flex;
}

.itog-cost {
    width: 370px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    display: flex;
}

.basket_total {
    height: auto;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.basket_total > div {
    /*width: 700px;*/
}

.itog {
    /*width: 700px;*/
    padding-top: 20px;
    padding-bottom: 20px;

    /* Верхняя граница */
    background-image: linear-gradient(to right, #5B3511 50%, transparent 50%),
    linear-gradient(to right, #5B3511 50%, transparent 50%);

    background-size: 10px 1px, 10px 1px; /* Оба одинаковые */
    background-position: 0 0, 0 100%; /* Верх и низ */
    background-repeat: repeat-x, repeat-x; /* Повтор по горизонтали */

    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    display: inline-flex;
}

.basket-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-top: 40px;
    gap: 20px;
    height: 40px;
}


#cart-clear {
    color: #141414;
    text-decoration: none;
    border: none;
}

.n-btn {
    border: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 9px 30px;
    gap: 10px;

    min-width: 234px;
    height: 40px;

    font-family: 'Montserrat';
    background: #CCCCCC;
    border-radius: 10px;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-align: center;

    color: #141414;
}

.basket-footer {
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /*width: 485px;*/
}

.basket-legend {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 14px;

    height: 32px;
}

.legend-header {
    height: 17px;

    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    display: flex;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #666666;
}

.legend {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 5px;

    width: max-content;
    height: 32px;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;

    color: #666666;
}

#legend-flags {
    padding-left: 0;
}

.node_qty {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    border: none;
    /*width: 27px;*/
    padding: 0;
    height: 27px;
    opacity: 1;
    background: none;
    color: #666666;
    display: inline-block;
}

#new_order_dialog .form-group.ff {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 7px 13px;
    gap: 3px;
    background: #F5F5F5;
    border-radius: 12px;
}
#new_order_dialog .form-group.ff input:active,
#new_order_dialog .form-group.ff input:focus,
#new_order_dialog .form-group.ff input {
    border: none !important;
    border: 0 !important;
    background: transparent;
}


/* ===== style_f.css ===== */
.catalog-page {
    padding: 60px 0;
}

.catalog-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.catalog-title {
    color: #5B3511;
    font-family: 'Montserrat', sans-serif;
    font-size: 33px;
    font-weight: 700;
    margin: 0;
}

.catalog-sort {
    background: rgba(230,230,230,0.85);
    padding: 4px;
    border-radius: 14px;
    display: flex;
    gap: 10px;
}

.sort-item {
    padding: 8px 25px;
    border-radius: 12px;
    font-family: 'Montserrat';
    font-size: 16px;
    text-decoration: none;
    color: #141414;
}

.sort-item.active {
    background: white;
}

.catalog-alert {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    display: flex;
    align-items: center;

    color: #FF0000;

    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

/* GRID */

.catalog-grid {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 30px;
}

/* CARD */

.product-card {
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.24s ease,
        background-color 0.24s ease;
    width: 380px;
    background: #F4F4F4;
    border-radius: 25px;
    box-shadow: 1px 1px 10px rgba(80,80,80,0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(91, 53, 17, 0.15);
}


.product-image img {
    width: 100%;
    border-radius: 25px;
    height: 253px;
    object-fit: cover;
}

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 280px;
}

.product-price {
    font-family: 'Montserrat';
    font-size: 32px;
    font-weight: 600;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

.current-price {
    color: #141414;
}

.product-title {
    font-size: 24px;
    font-family: 'Montserrat';
}

.product-meta {
    color: #737373;
    font-size: 16px;
    display: flex;
    gap: 6px;
}

.product-add {
    margin-top: auto;
    height: 60px;
    background: #FFC62B;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-family: 'Montserrat';
    cursor: pointer;
}

.product-actions {
    margin-top: auto;
}

.product-add {
    width: 100%;
    height: 60px;
    background: #FFC62B;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-family: 'Montserrat';
    cursor: pointer;
}

/* ACTIVE STATE */

.product-quantity {
    width: 100%;
    height: 60px;
    background: #1A1A19;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.qty-count {
    color: white;
    font-size: 18px;
    font-family: 'Montserrat';
}

.hidden {
    display: none;
}

@media (max-width: 390px) {
    .product-card {
        width: 95%;
    }
}


.site-footer {
    background: #FFC62B;
    padding: 60px 120px;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-col {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    max-width: 250px;
}

.footer-logo img {
    width: 140px;
}

.footer-app-text {
    color: #9D370B;
    font-size: 18px;
    font-weight: 600;
}

.footer-apps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-apps img {
    width: 200px;
}

.footer-title {
    color: #9D370B;
    font-size: 18px;
    font-weight: 600;
}

.footer-item {
    color: #1A1A19;
    font-size: 18px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav li a {
    text-decoration: none;
    color: #1A1A19;
    font-size: 18px;
}

.footer-nav li.active a {
    font-weight: 600;
}

.footer-mt {
    margin-top: 30px;
}


.footer-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-right: 12px;
}

/* Адаптив */

@media (max-width: 1200px) {
    .site-footer {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
    }
}


/* ===== templates/actions.html ===== */


.n-promotions {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.n-promotions .container {
    max-width: 1200px;
}

#main-content .promotions-breadcrumbs {
    margin-bottom: 22px;
}

.n-promotions .promotions-hero {
    margin-bottom: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 198, 43, 0.28);
    background:
        radial-gradient(120% 110% at 0% 0%, rgba(255, 198, 43, 0.22) 0%, rgba(255, 198, 43, 0) 62%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(245, 241, 233, 0.92) 100%);
    box-shadow: 0 20px 40px rgba(31, 24, 15, 0.08);
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.n-promotions .promotions-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 198, 43, 0.36);
    background: rgba(255, 198, 43, 0.16);
    color: #7c6024;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.n-promotions .promotions-hero-copy h1 {
    margin: 12px 0 0;
    color: var(--text-main);
    font-size: clamp(32px, 3.2vw, 46px);
    line-height: 1.08;
    font-weight: 800;
}

.n-promotions .promotions-hero-copy p {
    margin: 12px 0 0;
    max-width: 700px;
    color: var(--text-muted);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.45;
    font-weight: 500;
}

.n-promotions .promotions-hero-meta {
    display: flex;
    align-items: stretch;
}

.n-promotions .hero-meta-card {
    min-width: 190px;
    border-radius: 20px;
    border: 1px solid rgba(255, 198, 43, 0.32);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 244, 215, 0.9) 100%);
    box-shadow: 0 12px 24px rgba(31, 24, 15, 0.08);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.n-promotions .hero-meta-label {
    color: #7e6c4c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.n-promotions .hero-meta-value {
    color: #4a3409;
    font-size: clamp(34px, 2.8vw, 42px);
    line-height: 1;
    font-weight: 800;
}

@keyframes promo-card-in {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.n-promotions .promotions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.n-promotions .promotion-card {
    --promo-index: 0;
    position: relative;
    border-radius: 24px;
    border: 1px solid rgba(171, 139, 60, 0.24);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 243, 235, 0.93) 100%);
    box-shadow: 0 20px 38px rgba(31, 24, 15, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
    animation: promo-card-in 0.54s both;
    animation-delay: calc(var(--promo-index) * 60ms);
}

.n-promotions .promotion-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 198, 43, 0.46);
    box-shadow: 0 28px 45px rgba(31, 24, 15, 0.16);
}

.n-promotions .promotion-media {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #fef2d3 0%, #fff8ec 100%);
}

.n-promotions .promotion-media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(12, 8, 2, 0) 0%, rgba(12, 8, 2, 0.5) 100%);
}

.n-promotions .image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.n-promotions .promo-image,
.n-promotions .promo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.75s ease;
}

.n-promotions .promotion-card:hover .promo-image,
.n-promotions .promotion-card:hover .promo-video {
    transform: scale(1.04);
}

.n-promotions .promo-code-btn {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    border: 1px solid rgba(255, 198, 43, 0.52);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 246, 224, 0.95) 100%);
    box-shadow: 0 12px 24px rgba(28, 20, 8, 0.22);
    padding: 10px 12px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.n-promotions .promotion-card:hover .promo-code-btn,
.n-promotions .promotion-card:focus-within .promo-code-btn {
    opacity: 1;
    transform: translateY(0);
}

.n-promotions .promo-code-btn:hover {
    box-shadow: 0 16px 30px rgba(28, 20, 8, 0.28);
}

.n-promotions .promo-code-btn-main {
    display: block;
    color: #4f3808;
    font-size: 20px;
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.n-promotions .promo-code-btn-hint {
    display: block;
    margin-top: 3px;
    color: #755f2d;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.n-promotions .card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 20px;
    min-height: 226px;
}

.n-promotions .promo-title {
    margin: 0;
    color: var(--text-main);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.n-promotions .promo-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.n-promotions .promo-link {
    margin-top: auto;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 198, 43, 0.15);
    color: #5f4919;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.n-promotions .promo-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 198, 43, 0.62);
    background: rgba(255, 198, 43, 0.24);
    color: #402e07;
}

.n-promotions .promo-info-card {
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 20px;
    border: 1px solid rgba(172, 138, 60, 0.24);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 245, 236, 0.94) 100%);
    box-shadow: 0 14px 28px rgba(31, 24, 15, 0.08);
    padding: 18px 20px;
    display: grid;
    gap: 8px;
}

.n-promotions .warning-message {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
}

.n-promotions .warning-message strong {
    color: #554423;
    font-weight: 800;
}

.n-promotions .no-promotions {
    margin: 8px 0 0;
    border-radius: 24px;
    border: 1px solid rgba(171, 139, 60, 0.24);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 243, 235, 0.93) 100%);
    box-shadow: 0 20px 38px rgba(31, 24, 15, 0.1);
    padding: clamp(24px, 4vw, 42px);
    text-align: center;
}

.n-promotions .no-promotions-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 198, 43, 0.4);
    background: rgba(255, 198, 43, 0.2);
    color: #614811;
    font-size: 34px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.n-promotions .no-promotions h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(25px, 2.7vw, 34px);
    line-height: 1.12;
    font-weight: 700;
}

.n-promotions .no-promotions p {
    margin: 10px auto 0;
    max-width: 680px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

.n-promotions .no-promotions-link {
    margin-top: 18px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(180deg, #ffd85e 0%, #ffc62b 66%, #ffbb10 100%);
    color: #1f1f1f;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(190, 132, 14, 0.26);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.n-promotions .no-promotions-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(190, 132, 14, 0.33);
}

@media (max-width: 1024px) {
    .n-promotions .promotions-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .n-promotions .promotions-hero-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .n-promotions {
        padding: 14px 0 44px;
    }

    .n-promotions .promotions-hero {
        padding: 16px;
        gap: 14px;
        border-radius: 18px;
    }

    .n-promotions .hero-meta-card {
        min-width: 0;
        width: 100%;
        border-radius: 14px;
    }

    .n-promotions .promotions-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .n-promotions .promotion-card {
        border-radius: 18px;
    }

    .n-promotions .promo-code-btn {
        opacity: 1;
        transform: translateY(0);
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 9px 10px;
    }

    .n-promotions .promo-code-btn-main {
        font-size: 17px;
    }

    .n-promotions .card-content {
        min-height: 0;
        padding: 14px 14px 16px;
        gap: 10px;
    }

    .n-promotions .promo-title {
        font-size: 19px;
    }

    .n-promotions .promo-description {
        -webkit-line-clamp: 6;
    }

    .n-promotions .promo-info-card {
        border-radius: 16px;
        padding: 14px;
    }
}


/* ===== templates/common/banner.html ===== */


.n-action {
        display: flex;
        justify-content: center;
        width: 100%;
        /*height: 285px;*/
        position: relative;
        border-radius: 12px;
    }


    #banner {
        display: flex;
        width: 100%;
        max-width: 1200px;

        justify-content: center;
        height: 100%;
    }
    .carousel-indicators {
        display: none !important;
    }
    .carousel-inner .item img,
    .carousel-inner .item video,
    .carousel-inner .item a img {
        width: 100%;
        object-fit: cover;
    }

    #banner .carousel-inner .item a {
        display: block;
        height: 100%;
    }

    .carousel-inner {
        border-radius: 12px;
    }

    .n-action .carousel-control.right, .n-action .carousel-control.left {
        opacity: 1;
    }

    .n-action .carousel-control {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        width: 44px;
        height: 44px;
        top: calc(50% - 44px / 2);
        background: #FFFFFF;
        box-shadow: 0px 4.80214px 4.80214px rgba(0, 0, 0, 0.03);
        backdrop-filter: blur(23.1103px);
        border-radius: 120.053px;
        transform: matrix(-1, 0, 0, 1, 0, 0);
        transition: .4s;
    }

    .carousel-control.left {
        left: 20px;
    }

    .carousel-control.right {
        right: 20px;
    }

    .carousel-control.right:hover {
        background-color: rgba(0, 0, 0, 0.45);
    }

    .carousel-control.left:hover {
        background-color: rgba(0, 0, 0, 0.45);
    }

    .mobile-banner {
        display: none !important;
    }

    @media (max-width: 770px) {
    .mobile-banner {
        display: block !important;
    }
    .desk-banner {
        display: none !important;
    }


}



    .n-action .carousel-indicators {
        display: flex;
        gap: 12.01px;
        justify-content: center;
        width: 100%;
        height: 9.6px;
        left: 0;
        margin: 0;
        bottom: 15.61px;
    }


/* ===== templates/common/basket.html ===== */


/* Cart page redesign */
.n-basket {
    --basket-text-main: #1a1a19;
    --basket-text-soft: #6e6759;
    --basket-line: rgba(167, 133, 56, 0.24);
    --basket-glass: rgba(255, 255, 255, 0.84);
    --basket-shadow: 0 26px 54px rgba(36, 27, 10, 0.16);
    --basket-yellow: #FFC62B;
    --basket-yellow-soft: rgba(255, 198, 43, 0.2);
    --basket-card: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.n-basket .basket-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.n-basket .basket-topline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.n-basket .basket-title-group {
    min-width: 0;
}

.n-basket .basket-title {
    margin: 0;
    color: var(--basket-text-main);
    font-size: clamp(30px, 2.8vw, 38px);
    line-height: 1.08;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.n-basket .basket-subtitle {
    margin: 8px 0 0;
    color: var(--basket-text-soft);
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.n-basket .basket-count-chip {
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(171, 134, 54, 0.3);
    background: var(--basket-yellow-soft);
    color: #6a4f17;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.n-basket .desktop-basket {
    width: 100%;
}

.n-basket .basket-container {
    position: relative;
    border-radius: 28px;
    border: 1px solid var(--basket-line);
    background: var(--basket-card);
    box-shadow: var(--basket-shadow);
    overflow: hidden;
}

.n-basket .basket-wrapper {
    position: relative;
    border-radius: inherit;
}

.n-basket .basket-wrapper::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 96px;
    background: radial-gradient(115% 100% at 50% 0%, rgba(255, 198, 43, 0.23) 0%, rgba(255, 198, 43, 0) 76%);
    pointer-events: none;
}

.n-basket .basket-content {
    position: relative;
    z-index: 1;
    padding: 20px 24px 22px;
}

.n-basket .basket-table {
    border-radius: 18px;
    border: 1px solid var(--basket-line);
    background: var(--basket-glass);
    padding: 14px;
}

.n-basket .table-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px 132px 120px;
    gap: 12px;
    align-items: center;
    padding: 8px 12px 10px;
    border-bottom: 1px solid rgba(173, 145, 84, 0.18);
}

.n-basket .header-name,
.n-basket .header-qty,
.n-basket .header-action,
.n-basket .header-price {
    color: #7f6d49;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.n-basket .header-right {
    grid-column: 2 / 5;
    display: grid;
    grid-template-columns: 168px 132px 120px;
    gap: 12px;
    align-items: center;
}

.n-basket .header-qty,
.n-basket .header-action {
    text-align: center;
}

.n-basket .header-price {
    text-align: right;
}

.n-basket .table-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
}

.n-basket .table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(177, 144, 69, 0.18);
    background: rgba(255, 255, 255, 0.78);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.n-basket .table-row:hover {
    border-color: rgba(175, 138, 55, 0.36);
    box-shadow: 0 10px 22px rgba(39, 29, 10, 0.12);
    transform: translateY(-1px);
}

.n-basket .row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.n-basket .row-number {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(172, 139, 63, 0.32);
    background: #fff9eb;
    color: #7b673f;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.n-basket .row-name {
    color: var(--basket-text-main);
    font-size: 16px;
    line-height: 1.32;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    word-break: break-word;
}

.n-basket .row-name.show_node {
    cursor: pointer;
    transition: color 0.2s ease;
}

.n-basket .row-name.show_node:hover {
    color: #8f6610;
}

.n-basket .row-right {
    display: grid;
    grid-template-columns: 168px 132px 120px;
    gap: 12px;
    align-items: center;
}

.n-basket .row-qty {
    height: 42px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(174, 142, 67, 0.24);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.n-basket .row-qty-placeholder {
    height: 42px;
}

.n-basket .qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(177, 142, 66, 0.3);
    border-radius: 50%;
    background: #fff;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.n-basket .qty-btn.plus {
    border-color: transparent;
    background: rgba(255, 198, 43, 0.36);
}

.n-basket .qty-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(175, 138, 56, 0.48);
    box-shadow: 0 8px 16px rgba(46, 35, 13, 0.14);
}

.n-basket .minus-icon,
.n-basket .plus-icon {
    width: 11px;
    height: 2px;
    background: #4e4330;
    display: block;
    border-radius: 2px;
}

.n-basket .plus-icon {
    position: relative;
}

.n-basket .plus-icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background: #4e4330;
    transform: rotate(90deg);
}

.n-basket .qty-value {
    min-width: 24px;
    text-align: center;
    color: var(--basket-text-main);
    font-size: 18px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.n-basket .row-action {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.n-basket .row-flags {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.n-basket .basket-flag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 8px 16px rgba(20, 15, 9, 0.2);
    white-space: nowrap;
}

.n-basket .basket-flag-discount {
    background: linear-gradient(180deg, #ec5c47 0%, #db3e31 100%);
}

.n-basket .basket-flag-hit {
    background: linear-gradient(180deg, #e7ad24 0%, #cc9018 100%);
}

.n-basket .basket-flag-hot {
    background: linear-gradient(180deg, #f28a3b 0%, #de5f2e 100%);
}

.n-basket .action-icon,
.n-basket .action-icon-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.n-basket .action-icon {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(174, 143, 69, 0.22);
}

.n-basket .action-icon img {
    width: 30px;
    height: 30px;
}

.n-basket .action-icon-placeholder {
    opacity: 0;
}

.n-basket .row-price {
    text-align: right;
    color: #432d07;
    font-size: 22px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.n-basket .toppings-section {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px dashed rgba(168, 135, 58, 0.48);
    background: linear-gradient(180deg, rgba(255, 247, 221, 0.95) 0%, rgba(255, 252, 242, 0.95) 100%);
    padding: 14px;
}

.n-basket .toppings-header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.n-basket .toppings-title {
    color: #6f5926;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.n-basket .toppings-note {
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    background: #8fb53d;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.n-basket .toppings-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.n-basket .total-section {
    margin-top: 20px;
    border-radius: 18px;
    border: 1px solid rgba(174, 142, 67, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 250, 238, 0.86) 100%);
    box-shadow: 0 18px 35px rgba(31, 24, 11, 0.1);
    padding: 16px 18px;
}

.n-basket .total-container {
    width: 100%;
}

.n-basket .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.n-basket .total-label {
    color: #756444;
    font-size: 14px;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.n-basket .total-value {
    color: #4d3406;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    white-space: nowrap;
}

.n-basket .actions-section {
    margin-top: 16px;
}

.n-basket .actions-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.n-basket .min-order-note {
    width: 100%;
    margin-top: 2px;
    border-radius: 14px;
    border: 1px dashed rgba(177, 141, 67, 0.4);
    background: linear-gradient(180deg, rgba(255, 248, 227, 0.9) 0%, rgba(255, 255, 255, 0.92) 100%);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.n-basket .min-order-note-title {
    color: #5e4817;
    font-size: 13px;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.n-basket .min-order-note-text {
    color: #7a6b51;
    font-size: 12px;
    line-height: 1.35;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.n-basket .action-btn {
    height: 46px;
    min-width: 190px;
    padding: 0 22px;
    border-radius: 14px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: center;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.n-basket .action-btn:hover {
    transform: translateY(-1px);
}

.n-basket .action-btn.clear {
    background: #ece4d3;
    color: #3f3628;
    box-shadow: inset 0 0 0 1px rgba(171, 142, 80, 0.24);
}

.n-basket .action-btn.continue {
    background: linear-gradient(180deg, #ffd85e 0%, #ffc62b 66%, #ffbb10 100%);
    color: #1f1f1f;
    box-shadow: 0 12px 24px rgba(190, 132, 14, 0.26);
}

.n-basket .action-btn.continue:hover {
    box-shadow: 0 15px 28px rgba(190, 132, 14, 0.33);
    filter: saturate(1.03);
}

.n-basket .legend-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 4px 6px 0;
}

.n-basket .legend-title {
    color: #7f7461;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.n-basket .legend-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.n-basket .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 2px 8px 2px 3px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(176, 144, 69, 0.18);
}

.n-basket .legend-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.n-basket .legend-icon img {
    width: 28px;
    height: 28px;
}

.n-basket .legend-text {
    color: #7a6b51;
    font-size: 12px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.n-basket .mobile-basket {
    width: 100%;
}

.n-basket .mobile-items,
.n-basket .mobile-toppings,
.n-basket .mobile-total,
.n-basket .mobile-buttons {
    border-radius: 18px;
    border: 1px solid var(--basket-line);
    background: var(--basket-glass);
    box-shadow: 0 16px 28px rgba(33, 25, 11, 0.12);
}

.n-basket .mobile-items,
.n-basket .mobile-toppings {
    padding: 12px;
}

.n-basket .mobile-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 12px;
}

.n-basket .mobile-items > .mobile-item:first-child {
    padding: 6px 8px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(175, 145, 81, 0.18);
}

.n-basket .mobile-items > .mobile-item:not(:first-child) {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(176, 146, 79, 0.16);
}

.n-basket .mobile-items > .mobile-item + .mobile-item {
    margin-top: 8px;
}

.n-basket .mobile-item-left {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.n-basket .mobile-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.n-basket .mobile-item-number {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid rgba(172, 139, 63, 0.3);
    background: #fff9eb;
    color: #7b673f;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.n-basket .mobile-item-name {
    color: var(--basket-text-main);
    font-size: 14px;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    word-break: break-word;
}

.n-basket .mobile-item-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.n-basket .mobile-item-name.show_node {
    cursor: pointer;
}

.n-basket .mobile-item-name.show_node:active {
    color: #7f5d11;
}

.n-basket .mobile-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.n-basket .b-mobile-header-left,
.n-basket .b-mobile-header-qty,
.n-basket .b-mobile-header-price {
    color: #7f6d49;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.n-basket .b-mobile-header-price {
    min-width: 68px;
    text-align: right;
}

.n-basket .mobile-item-qty {
    height: 32px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid rgba(174, 142, 67, 0.24);
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.n-basket .mobile-qty-btn {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(177, 142, 66, 0.3);
    border-radius: 50%;
    background: #fff;
    padding: 0;
    position: relative;
    cursor: pointer;
}

.n-basket .mobile-qty-btn.minus::after,
.n-basket .mobile-qty-btn.plus::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 9px;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: #4e4330;
}

.n-basket .mobile-qty-btn.plus {
    border-color: transparent;
    background: rgba(255, 198, 43, 0.36);
}

.n-basket .mobile-qty-btn.plus::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 5px;
    width: 2px;
    height: 10px;
    border-radius: 2px;
    background: #4e4330;
}

.n-basket .mobile-qty-value {
    min-width: 16px;
    text-align: center;
    color: var(--basket-text-main);
    font-size: 15px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.n-basket .mobile-item-price {
    min-width: 70px;
    text-align: right;
    color: #432d07;
    font-size: 17px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

.n-basket .mobile-item.no-qty .mobile-item-right {
    justify-content: flex-end;
}

.n-basket .mobile-toppings {
    margin-top: 14px;
}

.n-basket .mobile-toppings-header {
    margin-bottom: 8px;
}

.n-basket .mobile-toppings-title {
    color: #6f5926;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.n-basket .mobile-toppings-note {
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 12px;
    background: #8fb53d;
    color: #fff;
    font-size: 11px;
    line-height: 1.35;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.n-basket .mobile-topping-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid rgba(176, 146, 79, 0.16);
    background: rgba(255, 255, 255, 0.72);
}

.n-basket .mobile-topping-item + .mobile-topping-item {
    margin-top: 8px;
}

.n-basket .mobile-total {
    margin-top: 14px;
    padding: 12px;
}

.n-basket .mobile-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.n-basket .mobile-total-label {
    color: #756444;
    font-size: 12px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.n-basket .mobile-total-value {
    color: #4d3406;
    font-size: 24px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    white-space: nowrap;
}

.n-basket .mobile-buttons {
    margin-top: 18px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.n-basket .mobile-min-order-note {
    border-radius: 12px;
    border: 1px dashed rgba(177, 141, 67, 0.4);
    background: linear-gradient(180deg, rgba(255, 248, 227, 0.9) 0%, rgba(255, 255, 255, 0.92) 100%);
    color: #5e4817;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.35;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
}

.n-basket .mobile-btn {
    width: 100%;
    min-height: 42px;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.n-basket .mobile-btn.continue {
    background: linear-gradient(180deg, #ffd85e 0%, #ffc62b 66%, #ffbb10 100%);
    color: #1f1f1f;
}

.n-basket .mobile-btn.clear {
    background: #ece4d3;
    color: #3f3628;
}

.n-basket .basket-empty {
    display: flex;
    justify-content: center;
    padding: clamp(18px, 5vw, 46px) 0 4px;
}

.n-basket .basket-empty-card {
    width: min(560px, 100%);
    border-radius: 24px;
    border: 1px solid rgba(173, 139, 62, 0.3);
    background: linear-gradient(180deg, #fffdf8 0%, #fff7e8 100%);
    box-shadow: 0 24px 44px rgba(35, 25, 10, 0.14);
    padding: clamp(20px, 5vw, 36px);
    text-align: center;
}

.n-basket .basket-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 198, 43, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.n-basket .basket-empty-card h4 {
    margin: 0;
    color: var(--basket-text-main);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.12;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.n-basket .basket-empty-card p {
    margin: 10px auto 0;
    max-width: 420px;
    color: var(--basket-text-soft);
    font-size: 15px;
    line-height: 1.45;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.n-basket .basket-empty-btn {
    margin-top: 18px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffd85e 0%, #ffc62b 66%, #ffbb10 100%);
    color: #1f1f1f;
    font-size: 15px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(190, 132, 14, 0.26);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.n-basket .basket-empty-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(190, 132, 14, 0.33);
}

@media (max-width: 1180px) {
    .n-basket .basket-content {
        padding: 16px;
    }

    .n-basket .basket-table {
        padding: 12px;
    }

    .n-basket .table-header,
    .n-basket .header-right,
    .n-basket .row-right {
        grid-template-columns: 152px 118px 104px;
    }

    .n-basket .row-price {
        font-size: 20px;
    }
}

@media (max-width: 940px) {
    .n-basket .table-header {
        display: none;
    }

    .n-basket .table-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .n-basket .row-right {
        grid-template-columns: minmax(0, 1fr) 118px auto;
    }

    .n-basket .mobile-topping-item {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .n-basket .mobile-topping-item .mobile-item-right {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .n-basket .basket-topline {
        display: none;
    }

    .n-basket .mobile-basket {
        display: block !important;
    }

    .n-basket .mobile-items,
    .n-basket .mobile-toppings,
    .n-basket .mobile-total,
    .n-basket .mobile-buttons {
        border-radius: 14px;
    }

    .n-basket .mobile-item-price {
        font-size: 16px;
    }

    .n-basket .mobile-total-value {
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .n-basket .mobile-item {
        gap: 8px;
    }

    .n-basket .mobile-item-left {
        gap: 7px;
    }

    .n-basket .mobile-item-name {
        font-size: 13px;
    }

    .n-basket .mobile-item-price {
        min-width: 62px;
        font-size: 15px;
    }

    .n-basket .mobile-item-qty {
        gap: 6px;
        padding: 0 6px;
    }

    .n-basket .basket-flag {
        min-height: 20px;
        padding: 0 7px;
        font-size: 10px;
    }
}

@media (min-width: 769px) {
    .visible-xs,
    .visible-sm {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hidden-xs,
    .hidden-sm {
        display: none !important;
    }
}


/* ===== templates/common/catalog_menu.html ===== */
/* Базовые стили */
#catalog-menu {
    position: relative;
    background: #fff;
    z-index: 999;
    will-change: transform;
}

#catalog-menu .container {
    width: 100%;
    max-width: calc(150px * 8 + 12px * 12);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    flex-direction: row;
    align-items: flex-start;
    align-content: center;
}

header {
    transition: .3s;
}

@keyframes catalog-anim {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }

}

@keyframes catalog-anim-r {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }

}

.catalog-menu-link {
    text-decoration: none;
}

.catalog-menu-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 105px;
    margin: 12px;
    position: relative;
    background: #F4F4F4;
    border-radius: 12px;
}

.catalog-menu-item img {
    display: inline-block;
    position: absolute;
    scale: .85;
    left: 0;
    top: -10px;
    bottom: 0;
    right: 0;
    margin: auto;
    z-index: 2;
    transition: all 0.4s ease;
}

.catalog-menu-item img ~ img {
    z-index: 1;
}

.catalog-menu-item:hover {
    background: rgba(0, 0, 0, 0.1);
}

.catalog-menu-item span {
    text-align: center;
    position: absolute;
    bottom: 10px;
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 115%;
    color: #303030;
    transition: opacity 0.3s ease;
}

/* Sticky состояние */

#catalog-menu.is-sticky.is-sticky-hidden {
    animation: catalog-anim-r .3s forwards;
}
#catalog-menu.c-copy:not(.is-sticky) {
    display: none;
}
#catalog-menu.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(0);
    opacity: 1;
    animation: catalog-anim .3s forwards;
    /*background: #FFC62B;*/

}

/* Скрытое состояние для анимации */


/* Стили для скроллированного состояния */
#catalog-menu.is-sticky .container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding: 8px 16px;
    gap: 8px;
    scrollbar-width: none;
}

/*#catalog-menu.is-sticky .catalog-menu-item {*/
/*    width: auto;*/
/*    min-width: 100px;*/
/*    height: 45px;*/
/*    margin: 0;*/
/*    padding: 4px 12px;*/
/*    flex-direction: row;*/
/*    gap: 8px;*/
/*    flex-shrink: 0;*/
/*    border-radius: 25px;*/
/*}*/

/*#catalog-menu.is-sticky .catalog-menu-item img {*/
/*    position: relative;*/
/*    scale: 1;*/
/*    left: auto;*/
/*    top: auto;*/
/*    bottom: auto;*/
/*    right: auto;*/
/*    width: 24px;*/
/*    height: 24px;*/
/*    object-fit: contain;*/
/*}*/

/*#catalog-menu.is-sticky .catalog-menu-item img ~ img {*/
/*    display: none;*/
/*}*/

#catalog-menu.is-sticky .catalog-menu-item span {
    position: relative;
    bottom: auto;
    white-space: nowrap;
    font-size: 13px;
    opacity: 1;
    display: none;
}

#catalog-menu.is-sticky .catalog-menu-item:hover {
    background: #e8e8e8;
    transform: translateY(-1px);
}


/* Стилизация скроллбара */
#catalog-menu.is-sticky .container::-webkit-scrollbar {
    display: none;
}

#catalog-menu.is-sticky .container::-webkit-scrollbar-track {
    background: transparent;
}

#catalog-menu.is-sticky .container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
    height: 0;
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    #catalog-menu .container {
        max-width: calc(150px * 4 + 12px * 8);
    }

    #catalog-menu.is-sticky .catalog-menu-item {
        min-width: 90px;
        height: 40px;
        padding: 4px 10px;
    }

    #catalog-menu.is-sticky .catalog-menu-item span {
        font-size: 12px;
    }
}

@media (max-width: 780px) {
    #catalog-menu .container {
        max-width: calc(150px * 3 + 12px * 6);
    }
    #catalog-menu.is-sticky .catalog-menu-item {
        width: 40px;
        min-width: 40px !important;
    }
    #catalog-menu.is-sticky .catalog-menu-item img{
        scale: .5;
        position: static;
        display: block;
        margin: 0;
    }
    #catalog-menu.is-sticky .catalog-menu-item img ~ img {
        display: none !important;
    }
}

/* ===== templates/common/header.html ===== */


.footer-basket {
        display: flex;
        justify-content: center;
        position: fixed;
        bottom: 50px;
        width: 100%;
    }


    .f-basket-btn {
        background: #FFC62B;
        border-radius: 10px;
        margin: 12px;
        font-size: 24px;
        height: 48px;
        padding: 12px 11px;
        z-index: 99999;
        display: flex;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .footer-basket a:hover,
    .footer-basket a:active,
    .footer-basket a {
        cursor: pointer;
        text-decoration: none;
        color: #141414;
    }


    .search-dropdown {
    position: absolute;
    top: 70%;
    left: 0;
    right: 0;
    max-height: 400px;
    margin-top: 10px;
    z-index: 1000;
    display: none;
    justify-content: center;
}

.search-dropdown.active {
    display: flex;
}


    /* ===== COMMON ===== */
    header {
        font-family: 'Montserrat';
        width: 100%;
        position: fixed;
        top: 0;
        background: #FCFBF7;
        z-index: 1039;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* ===== DESKTOP HEADER ===== */
    .header-desktop {
        width: 100%;
        max-width: 1200px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        gap: 10px;
    }

    .logo-info {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .phone {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .phone-number .light {
        font-weight: 400;
    }

    .phone-number .bold {
        font-weight: 700;
    }

    .callme {
        display: flex;
        align-items: center;
        gap: 3px;
        color: #F54848;
        font-size: 11px;
    }

    .work-time {
        font-size: 11px;
        color: #737373;
    }

    .search-cart-profile {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
    }

    .search-cart-profile a:hover {
        text-decoration: none;
    }

    .search {
        display: flex;
        position: relative;
        align-items: center;
        gap: 6px;
        padding: 0 10px;
        height: 55px;
        background: #F4F4F4;
        border-radius: 8px;
        border: 1px solid #FFC62B;
        flex: 1;
    }

    .search input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 14px;
        color: #737373;
    }


    .search input:focus, .search input:active {
        outline: none;
        box-shadow: none;
        border-color: transparent;
    }

    .cart, .profile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 95px;
        height: 55px;
        border-radius: 8px;
        position: relative;
        transition: 0.4s;
        background: #F4F4F4;
        border: 1px solid #FFC62B;
    }

    .cart, .profile .text {
        font-weight: 500;
        color: #737373;
        font-size: 12px;
    }

    .cart .count {
        position: absolute;
        top: 5%;
        left: 60%;
        width: 24px;
        height: 19px;
        border-radius: 30px;
        background: #F54848;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 12px;
    }

    .header-mobile-promo {
        display: flex;
        background: #FFC62B;
        height: 46px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 20px;
        width: 100%;
        color: #9D370B;
        font-weight: 600;
        font-size: 14px;
    }

    @media (max-width: 768px) {
        .header-mobile-promo {
            font-size: 12px;
        }
    }

    .header-mobile-promo .arrow {
        display: inline-flex;
        padding: 0 10px;
        background: black;
        border-radius: 4px;
        height: 20px;
        align-items: center;
        justify-content: center;
    }

    /* ===== MOBILE HEADER ===== */
    .mobile-header {
        display: none;
    }

    .mobile-bottom-nav {
        display: none;
    }


    @media (max-width: 768px) {
        .header-desktop, .n-secondary-header {
            display: none !important;
        }

        .header-mobile-promo, .mobile-header {
            display: flex;
        }


        .mobile-header {
            flex-direction: column;
            background: #FCFBF7;
            width: 100%;
        }

        .mobile-top {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2px 20px 0;
            min-height: 52px;
        }

        .mobile-burger, .mobile-cart {
            width: 44px;
            height: 44px;
            background: #FFC62B;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border: none;
        }

        .mobile-burger span {
            display: block;
            width: 18px;
            height: 2px;
            background: #fff;
            border-radius: 20px;
        }

        .mobile-burger span + span {
            margin-top: 4px;
        }

        .mobile-logo img {
            height: 42px;
        }

        .mobile-cart-icon {
            width: 20px;
            height: 20px;
            background: #fff;
        }

        .mobile-badge {
            position: absolute;
            top: -6px;
            right: -6px;
            width: 24px;
            height: 19px;
            border-radius: 30px;
            background: #F54848;
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .mobile-search {
            display: flex;
            align-items: center;
            gap: 6px;
            height: 55px;
            margin: 0 20px 16px;
            padding: 0 10px;
            border-radius: 8px;
            background: #F4F4F4;
            border: 1px solid #FFC62B;
        }

        .mobile-search input {
            border: none;
            background: transparent;
            flex: 1;
            font-size: 14px;
            color: #737373;
        }

        .mobile-search input:focus {
            outline: none;
        }

        .mobile-bottom-nav {
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1120;
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            align-items: stretch;
            gap: 0;
            padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 242, 232, 0.98) 100%);
            border-top: 1px solid rgba(163, 133, 61, 0.24);
            box-shadow: 0 -10px 26px rgba(28, 21, 12, 0.16);
            backdrop-filter: saturate(1.15);
        }

        .mobile-bottom-item {
            position: relative;
            min-height: 56px;
            padding: 6px 4px;
            border-radius: 12px;
            border: 1px solid transparent;
            background: transparent;
            color: #5f523d;
            text-decoration: none;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            cursor: pointer;
            font: inherit;
        }

        .mobile-bottom-item:focus {
            outline: none;
        }

        .mobile-bottom-item .mobile-bottom-icon {
            position: relative;
            width: 22px;
            height: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-bottom-item .mobile-bottom-label {
            font-size: 10px;
            font-weight: 700;
            line-height: 1;
            letter-spacing: 0.01em;
        }

        .mobile-bottom-item.is-active,
        .mobile-bottom-item:active {
            border-color: rgba(255, 198, 43, 0.64);
            background: rgba(255, 255, 255, 0.88);
            color: #271f14;
        }

        .mobile-bottom-item-menu {
            border: none;
            box-shadow: none;
            background: transparent;
        }

        .mobile-bottom-item-menu.is-open {
            border-color: rgba(255, 198, 43, 0.64);
            background: rgba(255, 255, 255, 0.88);
            color: #271f14;
        }

        .mobile-bottom-item-menu .mobile-bottom-icon {
            color: #413321;
        }

        .mobile-bottom-icon-cart {
            width: 24px;
        }

        .mobile-bottom-badge {
            position: absolute;
            top: -6px;
            right: -8px;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            border-radius: 999px;
            background: #FFC62B;
            color: #2c2110;
            font-size: 10px;
            line-height: 16px;
            font-weight: 700;
            text-align: center;
        }

        body {
            padding-bottom: calc(84px + env(safe-area-inset-bottom));
        }

        #main-content {
            padding-bottom: calc(92px + env(safe-area-inset-bottom));
        }
    }


/* ===== templates/common/mobile_menu.html ===== */


/* Мобильное меню */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 10, 0.46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1105;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    width: 100%;
    max-width: 100vw;
    height: 100%;
    margin-left: 0;
    padding: 14px 14px calc(96px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        radial-gradient(circle at top right, rgba(255, 198, 43, 0.24), transparent 40%),
        linear-gradient(170deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 241, 232, 0.98) 100%);
    border-right: 1px solid rgba(171, 139, 60, 0.24);
    box-shadow: 22px 0 52px rgba(22, 17, 10, 0.28);
    transform: translate3d(-104%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-menu.open .mobile-menu-content {
    transform: translate3d(0, 0, 0);
}

.menu-section {
    border-radius: 22px;
    border: 1px solid rgba(171, 139, 60, 0.2);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 28px rgba(31, 24, 15, 0.08);
    padding: 14px;
}

.auth-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background:
        radial-gradient(130% 140% at 0% 0%, rgba(255, 231, 167, 0.92), rgba(255, 198, 43, 0.94) 68%),
        linear-gradient(160deg, rgba(255, 198, 43, 0.98) 0%, rgba(255, 190, 28, 0.98) 100%);
    border-color: rgba(184, 124, 18, 0.26);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-menu-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(115, 80, 17, 0.26);
    background: rgba(255, 250, 237, 0.7);
    color: #7a5816;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.close-menu {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(115, 80, 17, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.close-menu svg {
    width: 18px;
    height: 18px;
}

.close-menu svg rect {
    fill: #231d13;
}

.close-menu:hover {
    transform: scale(1.04);
    background: #ffffff;
    border-color: rgba(115, 80, 17, 0.34);
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mobile-greeting {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
    color: #4a3715;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.m-btn-login,
.m-btn-register {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.m-btn-login {
    background: #ffffff;
    color: #1f1a14;
    border-color: rgba(149, 124, 69, 0.18);
}

.m-btn-register {
    background: #2a2217;
    color: #fff8ec;
}

.m-btn-login:hover,
.m-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(31, 24, 15, 0.14);
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(117, 82, 23, 0.18);
    border-radius: 999px;
}

.mobile-menu-title {
    margin: 0 0 10px;
    color: #716044;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.h-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 7px 8px;
    border-radius: 14px;
    border: 1px solid rgba(149, 124, 69, 0.14);
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: #1f1a14;
    transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease;
}

.h-menu-item:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 198, 43, 0.55);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 18px rgba(31, 24, 15, 0.09);
}

.menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.menu-text {
    color: #2a2319;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.22;
}

.contacts-section {
    background: linear-gradient(160deg, rgba(41, 33, 24, 0.98) 0%, rgba(59, 47, 34, 0.98) 100%);
    border-color: rgba(255, 198, 43, 0.24);
}

.contacts-section .mobile-menu-title {
    color: #e1cfa1;
}

.work-hours {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.work-label {
    color: rgba(241, 227, 193, 0.88);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.32;
}

.work-time {
    color: #fff7e7;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.phone-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-number {
    color: #fff7e7;
    font-size: 16px;
    font-weight: 600;
}

.phone-number span:first-child {
    color: rgba(241, 227, 193, 0.88);
    font-weight: 500;
}

.phone-bold {
    color: #fff7e7;
    font-weight: 700;
}

.callback-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 11px;
    border: 1px solid rgba(255, 198, 43, 0.34);
    background: rgba(255, 198, 43, 0.12);
    cursor: pointer;
    color: #ffcc6e;
    font-size: 12px;
    font-weight: 600;
}

.callback-dot {
    width: 8px;
    height: 8px;
    background: #f85f4f;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mobile-menu-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 999px;
}


/* ===== templates/common/show_node_pict.html ===== */


/* Scoped modal styles for dish details */
#show_pict.modal {
    z-index: 1060;
    padding: 18px;
}

#show_pict.modal.fade .modal-overlay {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
}

#show_pict.modal.fade.in .modal-overlay {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#show_pict .modal-overlay {
    width: 100%;
    min-height: calc(100vh - 36px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

#show_pict .product-modal {
    width: min(1080px, 100%);
    margin: 0 auto;
    position: relative;
    border-radius: 30px;
    border: 1px solid rgba(166, 132, 57, 0.22);
    background: linear-gradient(180deg, #fffdf8 0%, #fff8ea 100%);
    box-shadow: 0 30px 80px rgba(39, 29, 10, 0.28);
    overflow: hidden;
}

#show_pict .product-modal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 92px;
    background: radial-gradient(120% 100% at 50% 0%, rgba(255, 198, 43, 0.26) 0%, rgba(255, 198, 43, 0) 78%);
    pointer-events: none;
}

#show_pict .modal-header {
    padding: 18px 34px 12px;
    border-bottom: none;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.28) 100%);
}

#show_pict .modal-header .close {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    opacity: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

#show_pict .modal-header .close::before,
#show_pict .modal-header .close::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 13px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #6f623d;
}

#show_pict .modal-header .close::before {
    transform: rotate(45deg);
}

#show_pict .modal-header .close::after {
    transform: rotate(-45deg);
}

#show_pict .modal-header .close:hover {
    transform: translateY(-1px);
    border-color: rgba(166, 132, 57, 0.46);
    box-shadow: 0 10px 20px rgba(31, 23, 11, 0.12);
}

#show_pict .modal-body {
    padding: 0 34px 20px;
}

#show_pict .product-detail {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

#show_pict .product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    border-radius: 24px;
    background: linear-gradient(140deg, #fff8e9 0%, #fef0d0 100%);
    border: 1px solid rgba(168, 133, 56, 0.25);
    box-shadow: 0 16px 32px rgba(49, 36, 15, 0.16);
    overflow: hidden;
}

#show_pict .product-image .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.65s ease;
}

#show_pict .product-image:hover .main-image {
    transform: scale(1.04);
}

#show_pict .node-flags {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 4;
    pointer-events: none;
}

#show_pict .node-flags .product-flag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 8px 16px rgba(20, 15, 9, 0.26);
}

#show_pict .node-flags .product-flag-discount {
    background: linear-gradient(180deg, #ec5c47 0%, #db3e31 100%);
}

#show_pict .node-flags .product-flag-hit {
    background: linear-gradient(180deg, #e7ad24 0%, #cc9018 100%);
}

#show_pict .node-flags .product-flag-hot {
    background: linear-gradient(180deg, #f28a3b 0%, #de5f2e 100%);
}

#show_pict .product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

#show_pict .title-weight {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

#show_pict .modal-title {
    margin: 0;
    color: #1a1a19;
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.12;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    word-break: break-word;
}

#show_pict .product-weight {
    flex-shrink: 0;
    color: #6f5518;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255, 198, 43, 0.22);
    border: 1px solid rgba(255, 198, 43, 0.45);
}

#show_pict .product-description {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(168, 133, 56, 0.2);
    background: rgba(255, 255, 255, 0.72);
}

#show_pict .brif-text {
    color: #4e4e4e;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.58;
    text-align: left;
    max-height: 190px;
    overflow: auto;
    padding-right: 6px;
}

#show_pict .brif-text::-webkit-scrollbar {
    width: 6px;
}

#show_pict .brif-text::-webkit-scrollbar-thumb {
    background: rgba(148, 122, 63, 0.33);
    border-radius: 999px;
}

#show_pict .toggle-description {
    text-align: right;
    color: #c38f00;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
}

#show_pict .nutrition-block {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(175, 138, 58, 0.24);
    background: rgba(255, 255, 255, 0.92);
}

#show_pict .nutrition-title {
    color: #7d6a44;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#show_pict .nutrition-grid {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

#show_pict .nutrition-items {
    flex: 1;
    min-width: 280px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

#show_pict .nutrition-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    background: #faf5e8;
    border: 1px solid rgba(189, 153, 78, 0.18);
}

#show_pict .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

#show_pict .dot.proteins {
    background: #74faff;
}

#show_pict .dot.fatss {
    background: #ffd374;
}

#show_pict .dot.carbs {
    background: #ff7477;
}

#show_pict .nutrition-value {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#show_pict .nutrition-value span:first-child {
    color: #1a1a19;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1;
}

#show_pict .nutrition-label {
    color: #78715f;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}

#show_pict .calories-block {
    min-width: 124px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px dashed rgba(137, 102, 28, 0.65);
    border-radius: 12px;
    background: #fff8e1;
}

#show_pict .calories-value {
    color: #5f4410;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    white-space: nowrap;
}

#show_pict .calories-value span {
    font-size: 18px;
    font-weight: 700;
    margin-right: 3px;
}

#show_pict .extras-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(176, 140, 62, 0.42);
    background: rgba(255, 255, 255, 0.84);
}

#show_pict .extras-title {
    color: #8a7b5d;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#show_pict .extras-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#show_pict .modal-footer {
    margin-top: 18px;
    padding: 16px 34px 22px;
    border-top: 1px solid rgba(179, 142, 62, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.98) 100%);
}

#show_pict .footer-content {
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: end;
}

#show_pict .quantity-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

#show_pict .quantity-label {
    margin: 0;
    color: #8d836f;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#show_pict .quantity-controls {
    width: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#show_pict .quantity-btn {
    width: 44px;
    height: 44px;
    border: 1px solid #eadfca;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

#show_pict .quantity-btn.plus {
    background: #ffc62b;
    border-color: #ffc62b;
}

#show_pict .quantity-btn.plus svg rect {
    fill: #151515;
}

#show_pict .quantity-btn.minus {
    background: #fff;
    border-color: #e1d2b2;
}

#show_pict .quantity-btn.minus svg rect {
    fill: #554930;
}

#show_pict .quantity-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(41, 30, 10, 0.15);
}

#show_pict .quantity-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#show_pict .quantity-value {
    min-width: 40px;
    text-align: center;
    color: #1a1a19;
    font-size: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1;
}

#show_pict .price-block {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

#show_pict .price-block .quantity-label {
    display: none;
}

#show_pict .price {
    height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(173, 136, 58, 0.28);
    background: #fff;
    color: #141414;
    font-size: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

#show_pict .price-value {
    margin-right: 6px;
}

#show_pict .btn-add-to-cart {
    min-width: 186px;
    height: 46px;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffd85e 0%, #ffc62b 66%, #ffbb10 100%);
    color: #141414;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
    box-shadow: 0 12px 24px rgba(190, 132, 14, 0.25);
}

#show_pict .btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(190, 132, 14, 0.32);
    filter: saturate(1.03);
}

#show_pict .btn-add-to-cart:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    #show_pict.modal {
        padding: 12px;
    }

    #show_pict .modal-header {
        padding: 16px 20px 10px;
    }

    #show_pict .modal-body {
        padding: 0 20px 18px;
    }

    #show_pict .modal-footer {
        padding: 14px 20px 18px;
    }

    #show_pict .product-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    #show_pict .product-image {
        max-width: 640px;
        margin: 0 auto;
    }

    #show_pict .nutrition-items {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    #show_pict.modal {
        padding: 0;
    }

    #show_pict.modal.fade .modal-overlay {
        opacity: 0;
        transform: translateY(24px);
    }

    #show_pict.modal.fade.in .modal-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    #show_pict .modal-overlay {
        min-height: 100vh;
        align-items: flex-end;
    }

    #show_pict .product-modal {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        display: flex;
        flex-direction: column;
    }

    #show_pict .modal-header {
        position: sticky;
        top: 0;
        padding: 12px 16px 10px;
        backdrop-filter: blur(14px);
    }

    #show_pict .modal-header .close {
        width: 38px;
        height: 38px;
    }

    #show_pict .modal-header .close::before,
    #show_pict .modal-header .close::after {
        top: 18px;
        left: 11px;
        width: 14px;
    }

    #show_pict .modal-body {
        padding: 0 16px 14px;
        overflow-y: auto;
    }

    #show_pict .product-detail {
        gap: 14px;
    }

    #show_pict .product-image {
        border-radius: 18px;
        aspect-ratio: 16 / 11;
    }

    #show_pict .node-flags .product-flag {
        min-height: 21px;
        padding: 0 8px;
        font-size: 10px;
    }

    #show_pict .modal-title {
        font-size: 21px;
        line-height: 1.2;
    }

    #show_pict .title-weight {
        align-items: center;
        flex-wrap: wrap;
    }

    #show_pict .product-weight {
        font-size: 13px;
        padding: 6px 10px;
    }

    #show_pict .product-description {
        padding: 12px;
    }

    #show_pict .brif-text {
        font-size: 14px;
        max-height: none;
        overflow: visible;
    }

    #show_pict .nutrition-block {
        padding: 12px;
    }

    #show_pict .nutrition-grid {
        gap: 8px;
    }

    #show_pict .nutrition-items {
        gap: 7px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #show_pict .nutrition-item {
        padding: 8px;
        gap: 8px;
    }

    #show_pict .nutrition-value span:first-child {
        font-size: 14px;
    }

    #show_pict .nutrition-label {
        font-size: 10px;
    }

    #show_pict .calories-block {
        min-width: 100%;
        padding: 9px 10px;
    }

    #show_pict .calories-value {
        font-size: 13px;
    }

    #show_pict .calories-value span {
        font-size: 17px;
    }

    #show_pict .modal-footer {
        margin-top: 0;
        position: sticky;
        bottom: 0;
        z-index: 6;
        border-top: 1px solid rgba(179, 142, 62, 0.24);
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.96) 36%, rgba(255, 255, 255, 1) 100%);
        backdrop-filter: blur(10px);
    }

    #show_pict .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        align-items: stretch;
    }

    #show_pict .quantity-block {
        border-radius: 14px;
        border: 1px solid rgba(177, 145, 70, 0.2);
        background: rgba(247, 242, 231, 0.95);
        justify-content: center;
        padding: 8px 6px;
    }

    #show_pict .quantity-controls {
        justify-content: center;
        gap: 8px;
    }

    #show_pict .quantity-btn {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    #show_pict .quantity-value {
        min-width: 30px;
        font-size: 22px;
    }

    #show_pict .price-block {
        border-radius: 14px;
        border: 1px solid rgba(172, 136, 58, 0.26);
        background: linear-gradient(180deg, rgba(255, 210, 96, 0.24) 0%, rgba(255, 198, 43, 0.15) 100%);
        justify-content: center;
        align-content: center;
        gap: 8px;
        padding: 8px;
    }

    #show_pict .price {
        height: auto;
        border: none;
        background: transparent;
        padding: 0;
        font-size: 24px;
    }

    #show_pict .btn-add-to-cart {
        width: 100%;
        min-width: 0;
        height: 38px;
        font-size: 15px;
        box-shadow: 0 8px 18px rgba(190, 132, 14, 0.22);
    }
}

@media (max-width: 430px) {
    #show_pict .nutrition-items {
        grid-template-columns: 1fr;
    }

    #show_pict .footer-content {
        grid-template-columns: 1fr;
    }

    #show_pict .price-block .quantity-label {
        display: block;
    }
}


/* ===== templates/forms/new_order_dialog.html ===== */


/* Order modal redesign */
#new_order_dialog.modal {
    z-index: 1070;
}

#new_order_dialog.modal.fade .modal-overlay {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
}

#new_order_dialog.modal.fade.in .modal-overlay {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#new_order_dialog .modal-overlay {
    width: 100%;
    min-height: calc(100vh - 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 21, 13, 0.44);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

#new_order_dialog .modal-dialog.modal-lg {
    width: min(1080px, 100%);
    margin: 0;
}

#new_order_dialog .order-modal {
    position: relative;
    border-radius: 30px;
    border: 1px solid rgba(166, 132, 57, 0.22);
    background: linear-gradient(180deg, #fffdf8 0%, #fff8ea 100%);
    box-shadow: 0 30px 80px rgba(39, 29, 10, 0.28);
    overflow: hidden;
}

#new_order_dialog .order-modal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 94px;
    background: radial-gradient(120% 100% at 50% 0%, rgba(255, 198, 43, 0.24) 0%, rgba(255, 198, 43, 0) 78%);
    pointer-events: none;
}

#new_order_dialog .order-modal .modal-header {
    padding: 16px 28px 12px;
    border: none;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.22) 100%);
}

#new_order_dialog .order-modal .modal-header .close {
    position: absolute;
    top: 14px;
    right: 20px;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.86);
    opacity: 1;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

#new_order_dialog .order-modal .modal-header .close::before,
#new_order_dialog .order-modal .modal-header .close::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 12px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #6f623d;
}

#new_order_dialog .order-modal .modal-header .close::before {
    transform: rotate(45deg);
}

#new_order_dialog .order-modal .modal-header .close::after {
    transform: rotate(-45deg);
}

#new_order_dialog .order-modal .modal-header .close:hover {
    transform: translateY(-1px);
    border-color: rgba(166, 132, 57, 0.46);
    box-shadow: 0 10px 20px rgba(31, 23, 11, 0.12);
}

#new_order_dialog .header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding-right: 60px;
    min-height: 42px;
}

#new_order_dialog .step-indicators {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(173, 137, 56, 0.28);
    background: rgba(255, 255, 255, 0.68);
    padding: 4px 8px;
}

#new_order_dialog .step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(173, 137, 56, 0.32);
    background: #f4ead4;
    color: #8a7341;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1;
    transition: all 0.24s ease;
}

#new_order_dialog .step-dot::before {
    content: attr(data-step);
}

#new_order_dialog .step-dot::after {
    display: none;
}

#new_order_dialog .step-dot.active {
    background: #ffc62b;
    border-color: #ffc62b;
    color: #1f1f1f;
    box-shadow: 0 8px 16px rgba(195, 135, 17, 0.3);
}

#new_order_dialog .order-modal .modal-body {
    padding: 8px 28px 14px;
    max-height: min(72vh, 760px);
    overflow: auto;
}

#new_order_dialog .order-modal .modal-body::-webkit-scrollbar {
    width: 7px;
}

#new_order_dialog .order-modal .modal-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 122, 63, 0.33);
}

#new_order_dialog .step {
    display: none;
    width: 100%;
}

#new_order_dialog .step.active {
    display: block;
}

#new_order_dialog .form-columns,
#new_order_dialog .payment-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

#new_order_dialog .form-column,
#new_order_dialog .payment-left-column,
#new_order_dialog .payment-right-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#new_order_dialog .form-section,
#new_order_dialog .payment-section {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(175, 138, 58, 0.24);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 24px rgba(39, 29, 10, 0.08);
}

#new_order_dialog .section-title {
    color: #7a643a;
    font-size: 12px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}

#new_order_dialog .form-fields {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#new_order_dialog .form-field {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #eadfca;
    background: #fff;
    padding: 8px 12px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#new_order_dialog .form-field:focus-within {
    border-color: rgba(255, 198, 43, 0.85);
    background: #fffef9;
    box-shadow: 0 0 0 3px rgba(255, 198, 43, 0.18);
}

#new_order_dialog .form-field.has-error {
    border-color: rgba(220, 70, 57, 0.78);
    background: #fff9f8;
    box-shadow: 0 0 0 3px rgba(220, 70, 57, 0.14);
}

#new_order_dialog .field-label {
    color: #8e8e8e;
    font-size: 11px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

#new_order_dialog .field-input,
#new_order_dialog .field-select {
    width: 100%;
    border: none;
    background: transparent;
    color: #1a1a19;
    font-size: 15px;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    outline: none;
    padding: 0;
}

#new_order_dialog .field-input::placeholder {
    color: #a7a39c;
}

#new_order_dialog .field-select {
    appearance: none;
    cursor: pointer;
    padding-right: 20px;
}

#new_order_dialog .field-select.field-select-native {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#new_order_dialog .with-icon .select-arrow {
    display: none;
}

#new_order_dialog .with-icon {
    /*z-index: 2;*/
}

#new_order_dialog .with-icon .custom-select {
    position: relative;
}

#new_order_dialog .custom-select-trigger {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #1a1a19;
    font-size: 15px;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

#new_order_dialog .custom-select-value {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#new_order_dialog .custom-select-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b5a3a;
    border-bottom: 2px solid #6b5a3a;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

#new_order_dialog .custom-select.is-open .custom-select-caret {
    transform: translateY(2px) rotate(-135deg);
}

#new_order_dialog .custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    right: -12px;
    border-radius: 12px;
    border: 1px solid rgba(171, 143, 79, 0.35);
    background: #fffdf8;
    box-shadow: 0 16px 28px rgba(36, 27, 10, 0.18);
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 40;
}

#new_order_dialog .custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

#new_order_dialog .custom-select-dropdown::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 122, 63, 0.38);
}

#new_order_dialog .custom-select.is-open .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#new_order_dialog .custom-select-option {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    color: #4b4539;
    font-size: 14px;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 9px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

#new_order_dialog .custom-select-option:hover {
    background: rgba(255, 198, 43, 0.16);
}

#new_order_dialog .custom-select-option.is-selected {
    background: linear-gradient(135deg, rgba(255, 198, 43, 0.3) 0%, rgba(255, 198, 43, 0.12) 100%);
    color: #513f19;
}

#new_order_dialog .custom-select-option.is-disabled {
    color: #b0a894;
    cursor: not-allowed;
}

#new_order_dialog .custom-select-option.is-disabled:hover {
    background: transparent;
}

#new_order_dialog .with-icon .select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b5a3a;
    border-bottom: 2px solid #6b5a3a;
    transform: translateY(-62%) rotate(45deg);
    pointer-events: none;
}

#new_order_dialog .form-row {
    display: flex;
    gap: 9px;
    width: 100%;
}

#new_order_dialog .form-field.half {
    flex: 1 1 0;
}

#new_order_dialog .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
    position: relative;
    padding-bottom: 18px;
}

#new_order_dialog .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid #eadfca;
    background: #fff;
}

#new_order_dialog .checkbox-label.has-error {
    border-color: rgba(220, 70, 57, 0.72);
    background: #fff8f7;
    box-shadow: 0 0 0 3px rgba(220, 70, 57, 0.12);
}

#new_order_dialog .hidden-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#new_order_dialog .custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(171, 143, 79, 0.35);
    background: #f6efdf;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#new_order_dialog .hidden-checkbox:checked + .custom-checkbox {
    background: #ffc62b;
    border-color: #ffc62b;
}

#new_order_dialog .hidden-checkbox:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

#new_order_dialog .checkbox-text {
    flex: 1;
    color: #534f48;
    font-size: 12px;
    line-height: 1.45;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

#new_order_dialog .field-error-message,
#new_order_dialog .checkbox-error-message {
    display: block;
    position: absolute;
    color: #d5493a;
    font-size: 10px;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

#new_order_dialog .field-error-message {
    top: 8px;
    right: 12px;
    margin: 0;
    text-align: right;
    max-width: 56%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#new_order_dialog .checkbox-error-message {
    top: auto;
    right: auto;
    left: 4px;
    bottom: 0;
    margin: 0;
    max-width: calc(100% - 8px);
    text-align: left;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

#new_order_dialog .field-error-message.is-visible,
#new_order_dialog .checkbox-error-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#new_order_dialog .form-field.has-error .field-label,
#new_order_dialog .checkbox-label.has-error .checkbox-text {
    color: #c14538;
}

#new_order_dialog .underline-link {
    color: #5d4c24;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#new_order_dialog .switch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
}

#new_order_dialog .switch-label {
    color: #1a1a19;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

#new_order_dialog .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
}

#new_order_dialog .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#new_order_dialog .switch-slider {
    position: absolute;
    inset: 0;
    background: #cbc4b6;
    border-radius: 999px;
    transition: background 0.24s ease;
}

#new_order_dialog .switch-slider::before {
    position: absolute;
    content: "";
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.24s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#new_order_dialog .switch input:checked + .switch-slider {
    background: #ffc62b;
}

#new_order_dialog .switch input:checked + .switch-slider::before {
    transform: translateX(18px);
}

#new_order_dialog .confirm-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#new_order_dialog .confirm-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #eadfca;
    background: #fff;
    cursor: pointer;
    width: 100%;
}

#new_order_dialog .hidden-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#new_order_dialog .custom-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(171, 143, 79, 0.35);
    background: #f6efdf;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#new_order_dialog .hidden-radio:checked + .custom-radio {
    border-color: #ffc62b;
    background: #ffc62b;
}

#new_order_dialog .hidden-radio:checked + .custom-radio .radio-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    top: 4px;
    left: 4px;
}

#new_order_dialog .option-text {
    color: #403d37;
    font-size: 14px;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    flex: 1;
}

#new_order_dialog .promo-block,
#new_order_dialog .payment-method-select,
#new_order_dialog .change-amount-field,
#new_order_dialog .amount-buttons,
#new_order_dialog .no-change-field {
    width: 100%;
}

#new_order_dialog .promo-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#new_order_dialog .promo-input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    align-items: center;
}

#new_order_dialog .promo-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #eadfca;
    background: #fff;
    color: #1a1a19;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    outline: none;
}

#new_order_dialog .promo-input::placeholder {
    color: #a7a39c;
}

#new_order_dialog .promo-accept,
#new_order_dialog .promo-cancel {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: none;
    background: #fff;
    color: #63553b;
    font-size: 13px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#new_order_dialog .promo-cancel {
    color: #8a6f34;
    border-color: rgba(255, 198, 43, 0.45);
    background: rgba(255, 198, 43, 0.14);
}

#new_order_dialog .promo-accept:hover,
#new_order_dialog .promo-cancel:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(39, 29, 10, 0.12);
}

#new_order_dialog .promo-msg {
    border-radius: 12px;
    border: 1px dashed rgba(178, 143, 66, 0.45);
    background: rgba(255, 255, 255, 0.78);
    padding: 9px 11px;
    min-height: 56px;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease;
}

#new_order_dialog .promo-msg.is-visible {
    opacity: 1;
    visibility: visible;
}

#new_order_dialog .promo-msg span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 13px;
    line-height: 1.35;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

#new_order_dialog .change-amount-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#new_order_dialog .change-amount-section.has-error .change-amount-title {
    color: #c14538;
}

#new_order_dialog .change-amount-title {
    color: #7a715f;
    font-size: 12px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#new_order_dialog .change-amount-section.is-hidden {
    display: none;
}

#new_order_dialog .change-input,
#new_order_dialog .no-change-input {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #eadfca;
    background: #fff;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#new_order_dialog .change-input.active,
#new_order_dialog .no-change-input.active {
    border-color: rgba(255, 198, 43, 0.7);
    background: rgba(255, 198, 43, 0.2);
    box-shadow: 0 8px 14px rgba(195, 135, 17, 0.2);
}

#new_order_dialog .change-amount-section.has-error .change-input,
#new_order_dialog .change-amount-section.has-error .no-change-input,
#new_order_dialog .change-amount-section.has-error .amount-btn {
    border-color: rgba(220, 70, 57, 0.6);
}

#new_order_dialog .change-input input {
    width: 100%;
    border: none;
    background: transparent;
    color: #1a1a19;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    outline: none;
}

#new_order_dialog .amount-buttons {
    display: flex;
    gap: 8px;
}

#new_order_dialog .amount-btn {
    flex: 1 1 0;
    min-height: 38px;
    border: 1px solid #eadfca;
    border-radius: 10px;
    background: #fff;
    color: #6f6a5f;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#new_order_dialog .amount-btn.active {
    border-color: rgba(255, 198, 43, 0.7);
    background: rgba(255, 198, 43, 0.2);
    color: #4e3e1b;
}

#new_order_dialog .amount-btn:hover {
    transform: translateY(-1px);
}

#new_order_dialog .no-change-input {
    color: #6f6a5f;
    font-size: 13px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
}

#new_order_dialog .change-amount-error-message {
    color: #c14538;
    font-size: 11px;
    line-height: 1.35;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: block;
    min-height: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    margin-top: 2px;
}

#new_order_dialog .change-amount-error-message.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#new_order_dialog .cutlery-section {
    margin-top: 0;
    border-radius: 14px;
    border: 1px solid rgba(173, 136, 58, 0.24);
    background: linear-gradient(145deg, rgba(255, 250, 241, 0.86) 0%, rgba(255, 255, 255, 0.94) 100%);
    padding: 10px 11px;
}

#new_order_dialog .cutlery-section.has-error {
    border-color: rgba(220, 70, 57, 0.55);
}

#new_order_dialog .cutlery-title {
    color: #7a715f;
    font-size: 12px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#new_order_dialog .cutlery-section.has-error .cutlery-title {
    color: #c14538;
}

#new_order_dialog .cutlery-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

#new_order_dialog .cutlery-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border: 1px solid #eadfca;
    border-radius: 10px;
    background: #fff;
    color: #5a4a24;
    font-size: 20px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#new_order_dialog .cutlery-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 198, 43, 0.7);
    background: rgba(255, 198, 43, 0.2);
}

#new_order_dialog .cutlery-input {
    width: 72px;
    min-height: 36px;
    border: 1px solid #eadfca;
    border-radius: 10px;
    background: #fff;
    color: #1a1a19;
    font-size: 16px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-align: center;
    outline: none;
}

#new_order_dialog .cutlery-input::-webkit-outer-spin-button,
#new_order_dialog .cutlery-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#new_order_dialog .cutlery-input[type=number] {
    -moz-appearance: textfield;
}

#new_order_dialog .cutlery-error-message {
    color: #c14538;
    font-size: 11px;
    line-height: 1.35;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: block;
    min-height: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    margin-top: 4px;
}

#new_order_dialog .cutlery-error-message.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#new_order_dialog .total-section {
    grid-column: 1 / -1;
    border-radius: 18px;
    border: 1px solid rgba(173, 136, 58, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 250, 238, 0.9) 100%);
    padding: 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#new_order_dialog .total-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

#new_order_dialog .total-row span:first-child {
    color: #6f6149;
    font-size: 13px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

#new_order_dialog .total-amount {
    color: #4f3607;
    font-size: 18px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    white-space: nowrap;
}

#new_order_dialog .total-row.final span:first-child {
    color: #4d3406;
    font-size: 16px;
    font-weight: 800;
}

#new_order_dialog .total-amount.final {
    font-size: 24px;
    font-weight: 800;
}

#new_order_dialog .order-modal .modal-footer {
    padding: 14px 28px 18px;
    border-top: 1px solid rgba(179, 142, 62, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.96) 36%, rgba(255, 255, 255, 1) 100%);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

#new_order_dialog .btn-back,
#new_order_dialog .btn-continue,
#new_order_dialog .btn-confirm {
    min-height: 42px;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

#new_order_dialog .btn-back {
    background: #ece4d3;
    color: #3f3628;
    box-shadow: inset 0 0 0 1px rgba(171, 142, 80, 0.24);
}

#new_order_dialog .btn-continue,
#new_order_dialog .btn-confirm {
    background: linear-gradient(180deg, #ffd85e 0%, #ffc62b 66%, #ffbb10 100%);
    color: #1f1f1f;
    box-shadow: 0 12px 24px rgba(190, 132, 14, 0.25);
}

#new_order_dialog .btn-back:hover,
#new_order_dialog .btn-continue:hover,
#new_order_dialog .btn-confirm:hover {
    transform: translateY(-1px);
}

#new_order_dialog .btn-continue:hover,
#new_order_dialog .btn-confirm:hover {
    box-shadow: 0 15px 28px rgba(190, 132, 14, 0.33);
    filter: saturate(1.03);
}

@media (max-width: 1080px) {
    #new_order_dialog .order-modal .modal-header {
        padding: 14px 18px 12px;
    }

    #new_order_dialog .order-modal .modal-body {
        padding: 8px 18px 12px;
    }

    #new_order_dialog .order-modal .modal-footer {
        padding: 12px 18px 14px;
    }
}

@media (max-width: 920px) {
    #new_order_dialog .form-columns,
    #new_order_dialog .payment-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #new_order_dialog.modal {
        padding: 0;
    }

    #new_order_dialog.modal.fade .modal-overlay {
        opacity: 0;
        transform: translateY(24px);
    }

    #new_order_dialog.modal.fade.in .modal-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    #new_order_dialog .modal-overlay {
        min-height: 100vh;
        align-items: flex-end;
    }

    #new_order_dialog .modal-dialog.modal-lg {
        width: 100%;
        max-width: 100%;
    }

    #new_order_dialog .order-modal {
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    #new_order_dialog .order-modal .modal-header {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 12px 14px 10px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        min-height: auto;
    }

    #new_order_dialog .order-modal .modal-header .close {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 12px;
    }

    #new_order_dialog .order-modal .modal-header .close::before,
    #new_order_dialog .order-modal .modal-header .close::after {
        top: 17px;
        left: 10px;
        width: 14px;
    }

    #new_order_dialog .header-content {
        padding-right: 46px;
        gap: 8px;
        flex-wrap: nowrap;
        min-height: 36px;
    }

    #new_order_dialog .step-indicators {
        padding: 3px 7px;
    }

    #new_order_dialog .step-dot {
        width: 21px;
        height: 21px;
        font-size: 11px;
    }

    #new_order_dialog .order-modal .modal-body {
        flex: 1 1 auto;
        max-height: none;
        padding: 8px 14px 12px;
    }

    #new_order_dialog .form-section,
    #new_order_dialog .payment-section,
    #new_order_dialog .total-section {
        border-radius: 14px;
        padding: 11px;
    }

    #new_order_dialog .form-row {
        flex-direction: column;
    }

    #new_order_dialog .promo-input-group {
        grid-template-columns: 1fr;
    }

    #new_order_dialog .custom-select-trigger {
        font-size: 14px;
    }

    #new_order_dialog .custom-select-dropdown {
        left: -11px;
        right: -11px;
    }

    #new_order_dialog .amount-buttons {
        flex-wrap: wrap;
    }

    #new_order_dialog .cutlery-control {
        justify-content: space-between;
    }

    #new_order_dialog .cutlery-input {
        flex: 0 0 84px;
    }

    #new_order_dialog .order-modal .modal-footer {
        position: sticky;
        bottom: 0;
        z-index: 11;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
        gap: 8px;
    }

    #new_order_dialog .btn-back,
    #new_order_dialog .btn-continue,
    #new_order_dialog .btn-confirm {
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        padding: 0 10px;
        font-size: 14px;
    }
}


/* ===== templates/login.html ===== */

/* Хлебные крошки */
.breadcrumbs {
    padding: 30px 0 20px;
}

/* Контейнер авторизации */
.auth-container {
    font-family: 'Montserrat', sans-serif;
}

.auth-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Вкладки */
.auth-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 270px;
}

.auth-tabs .tab-link {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
}

.tab-link.active {
    background: #F5F5F5;
}

.tab-link:hover:not(.active) {
    background: #F0F0F0;
}

/* Формы */
.auth-form {
    flex: 1;
    display: none;
    max-width: 890px;
}

.auth-form.active {
    display: block;
}

.auth-form .form-grid {
    margin-bottom: 20px;
}

.auth-form .form-field {
    position: relative;
    transition: box-shadow 0.3s ease;
}

.field-input.error {
    color: #FF383C;
}

.field-hint {
    font-size: 12px;
    color: #8E8E8E;
    margin-top: 5px;
    padding-left: 5px;
}

.password-match-indicator {
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
}

.password-match-indicator.match {
    color: #4CAF50;
}

.password-match-indicator.error {
    color: #FF383C;
}

/* Автозаполнение */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #F5F5F5 inset !important;
    -webkit-text-fill-color: #1A1A19 !important;
    caret-color: #1A1A19;
}

/* Чекбокс */
.checkbox-wrapper {
    margin-top: 5px;
}

.auth-form .custom-checkbox {
    transition: background 0.3s;
}

.auth-form .hidden-checkbox:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    background: white;
    top: 6px;
    left: 4px;
    clip-path: polygon(14% 44%, 0% 65%, 40% 100%, 100% 16%, 80% 0%, 38% 60%);
}

.checkbox-text a {
    color: #FFC62B;
    text-decoration: underline;
}

.agreement-block {
    margin: 20px 0;
    max-width: 600px;
}

/* Кнопки формы */
.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-restore,
.btn-login,
.btn-register {
    min-width: 270px;
    padding: 13px 30px;
    border: none;
    border-radius: 10px;
    color: #141414;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-restore {
    background: #F5F5F5;
}

.btn-restore:hover {
    background: #E8E8E8;
}

.btn-login,
.btn-register {
    background: #FFC62B;
}

.btn-login:hover,
.btn-register:hover {
    background: #F0B800;
}

.btn-register {
    min-width: 100%;
}

/* Модалка восстановления */
.restore-modal {
    width: 400px;
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 25px;
    overflow: hidden;
}

.restore-modal .modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #F0F0F0;
}

.restore-modal .modal-title {
    color: #141414;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin: 0;
}

.restore-modal .modal-body {
    padding: 30px;
}

.restore-modal .modal-footer {
    padding: 0 30px 30px;
    border-top: none;
    text-align: center;
}

.btn-restore-submit {
    width: 100%;
    padding: 13px 30px;
    background: #FFC62B;
    border: none;
    border-radius: 10px;
    color: #141414;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-restore-submit:hover {
    background: #F0B800;
}

/* Анимации */
.tab-link,
.btn-restore,
.btn-login,
.btn-register,
.btn-restore-submit {
    transition: all 0.3s ease;
}

.auth-form .form-field:focus-within {
    box-shadow: 0 0 0 2px rgba(255, 198, 43, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-tabs {
        width: 100%;
    }

    .auth-tabs .tab-link {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-restore,
    .btn-login {
        width: 100%;
    }

    .auth-form .form-grid {
        flex-direction: column;
    }

    .auth-form {
        width: 100%;
    }

    .restore-modal {
        width: 95%;
    }
}


/* ===== templates/pages.html ===== */


/* ===== templates/registration.html ===== */

/* Основные стили */
#registration {
    font-family: 'Montserrat', sans-serif;
    padding: 30px 0;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 30px;
}

/* Обертка регистрации */
.registration-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Вкладки */
.auth-tabs {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.auth-tabs .tab-link {
    min-width: 270px;
    text-decoration: none;
}

.tab-link.active {
    background: #F5F5F5;
}

.tab-link:not(.active) {
    background: transparent;
}

.tab-link:hover {
    background: #F0F0F0;
}

/* Форма */
.registration-form {
    flex: 1;
    max-width: 890px;
}

.registration-form .form-grid {
    margin-bottom: 30px;
}

.registration-form .custom-checkbox.yellow {
    background: #FFC62B;
}

.registration-form .hidden-checkbox:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 12px;
    background: white;
    top: 6px;
    left: 4px;
}

/* Чекбокс */
.checkbox-wrapper {
    width: 100%;
    max-width: 443px;
    margin-top: 5px;
}

/* Кнопка регистрации */
.form-actions {
    margin-top: 20px;
}

.btn-register {
    min-width: 270px;
    padding: 13px 30px;
    background: #FFC62B;
    border: none;
    border-radius: 10px;
    color: #141414;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-register:hover {
    background: #F0B800;
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-tabs {
        flex-direction: column;
        width: 100%;
    }

    .auth-tabs .tab-link {
        width: 100%;
    }

    .registration-form {
        max-width: 100%;
    }

    .registration-form .form-grid {
        flex-direction: column;
    }

    .checkbox-wrapper {
        max-width: 100%;
    }

    .btn-register {
        width: 100%;
    }
}


/* ===== templates/search.html ===== */


.search-dropdown-content {
    width: 100%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 6px 25%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: center;
    height: 100%;
    overflow-y: scroll;
}


.search-dropdown-container {
    padding-bottom: 50px;
    background: #FCFBF7;
    z-index: 1;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.search-footer {
    background: rgba(15, 15, 15, 0.5);
    width: 100%;
    position: absolute;
    height: 100vh;
}

.search-item {
    width: 373px;
    min-height: 125px;
    background: #FFFFFF;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    gap: 12px;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    border: 1px solid rgba(26, 26, 25, 0.04);
}

.search-item:hover,
.search-item.selected {
    background: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.search-item-image {
    width: 125px;
    min-width: 125px;
    height: 125px;
    object-fit: cover;
    display: block;
    background: #F2F2F2;
    margin-right: 0;
    border-radius: 0;
}

.search-item-info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 10px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.search-item-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
}

.search-item-name {
    width: 100%;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    color: #1A1A19;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-item-category {
    width: 100%;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.35;
    color: #1A1A19;
    opacity: 0.72;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-item-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
    margin-bottom: 0;
}

.search-item-flag {
    padding: 3px 7px;
    border-radius: 999px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.flag-hit {
    color: #FFFFFF;
}

.flag-hot {
    color: #FFFFFF;
}

.flag-discount {
    color: #1A1A19;
}

.search-item-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.search-item-price {
    padding: 6px 16px;
    min-height: 33px;
    background: #FEB42D;
    border-radius: 26px;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.25;
    color: #1A1A19;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.search-item-price-old {
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2;
    color: #B8B8B8;
    text-decoration: line-through;
    margin-left: 0;
    white-space: nowrap;
}

.search-no-results {
    width: 100%;
    padding: 36px 20px 32px;
    text-align: center;
    color: #666666;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: transparent;
}

.search-no-results svg {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    fill: #CCCCCC;
}

.search-no-results p {
    margin: 0;
    font-size: 14px;
    color: #1A1A19;
}

.search-suggestion {
    display: block;
    margin-top: 10px;
    color: #B78A2A;
    font-size: 12px;
}

.search-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #F5F5F5;
    border-top: 1px solid #E7E7E7;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #86B233;
}

.search-view-all:hover {
    background: #E7E7E7;
}

@media (max-width: 900px) {
    .search-dropdown-content {
        padding-left: 12px;
        padding-right: 12px;
        gap: 12px;
    }

    .search-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 767px) {
    .search-dropdown-content {
        display: block;
        padding: 8px 10px 14px;
    }

    .search-item {
        width: 100%;
        min-height: 112px;
        margin-bottom: 10px;
    }

    .search-item:last-child {
        margin-bottom: 0;
    }

    .search-item-image {
        width: 110px;
        min-width: 110px;
        height: 112px;
    }

    .search-item-info {
        padding: 10px 10px 10px 0;
    }

    .search-item-price {
        font-size: 14px;
        padding: 6px 14px;
        min-height: 30px;
    }
}


/* ===== templates/user_forms/pass_update.html ===== */


.pass-content {
        width: 100%;
    }

    .password-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
    }

    .password-field {
        width: 100%;
        background: #F5F5F5;
        border-radius: 12px;
        padding: 7px 13px;
        display: flex;
        flex-direction: column;
        gap: 3px;
        transition: 0.2s ease;
    }

    .password-field:focus-within {
        background: #ECECEC;
    }

    .password-label {
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #8E8E8E;
    }

    .password-input {
        border: none;
        outline: none;
        background: transparent;
        font-family: 'Montserrat', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #1A1A19;
    }

    .password-input::placeholder {
        color: #BDBDBD;
    }


/* ===== templates/user_forms/user_orders.html ===== */


/* Основные стили */
    #orders-history {
        font-family: 'Montserrat', sans-serif;
        padding: 30px 0;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 !important;
    }

    /* Хлебные крошки */
    .breadcrumbs {
        margin-bottom: 30px;
    }

    .breadcrumbs-text {
        color: #5B3511;
        font-size: 24px;
        font-weight: 500;
    }

    /* Обертка истории */
    .history-wrapper {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    /* Левая колонка - список заказов */
    .orders-list {
        height: 800px;
        overflow-y: scroll;
        flex-direction: column;
        gap: 10px;
        width: 404px;
    }

    .order-card {
        padding: 25px;
        background: #F4F4F4;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s;
    }


    .order-card.active {
        background: #E5E5E5;
    }

    .order-card:hover {
        background: #E5E5E5;
    }

    .order-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .order-info {
        display: flex;
        flex-direction: column;
    }

    .order-number {
        display: flex;
        align-items: center;
        gap: 5px;
        height: 24px;
    }

    .info-label {
        color: #1A1A19;
        font-size: 18px;
        font-weight: 600;
    }

    .order-value {
        color: #1A1A19;
        font-size: 18px;
        font-weight: 400;
    }

    .order-date {
        color: #8E8E8E;
        font-size: 14px;
        font-weight: 400;
    }

    .order-payment {
        color: #1A1A19;
        font-size: 14px;
        font-weight: 400;
    }

    .order-status-price {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;
        height: 66px;
    }

    .status-badge {
        padding: 4px 10px;
        border-radius: 25px;
        color: white;
        font-size: 12px;
        font-weight: 500;
    }

    .status-accepted {
        background: #ff74d3;
    }

    .status-delivery {
        background: #FEB42D;
    }

    .status-preparing {
        background: #2DC6FE;
    }

    .status-delivered {
        background: #48B936;
    }

    .order-price {
        color: #1A1A19;
        font-size: 18px;
        font-weight: 600;
    }

    .order-items {
        display: flex;
        align-items: center;
        gap: 0;
        flex-wrap: wrap;
        margin-top: 5px;
    }

    .item-image {
        width: 80px;
        height: 60px;
        position: relative;
        border-radius: 81px;
        outline-offset: -3px;
        overflow: hidden;
    }

    .item-image:not(:first-child) {
        margin-left: -24px;
    }

    .item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .item-image.discontinued {
        position: relative;
    }

    .item-image.discontinued::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(2px);
    }

    .discontinued-label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #F9F9F9;
        font-size: 12px;
        font-weight: 400;
        text-align: center;
        z-index: 2;
        line-height: 1.3;
    }

    .item-count {
        width: 80px;
        height: 60px;
        background: white;
        border-radius: 81px;
        outline: 3px solid #F7F7F5;
        outline-offset: -3px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1A1A19;
        font-size: 22px;
        font-weight: 600;
        margin-left: -24px;
        z-index: 10;
    }

    /* Правая колонка - детали заказа */
    .order-details {
        flex: 1;
    }

    .details-card {
        padding: 25px;
        background: #F4F4F4;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .details-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .details-number {
        display: flex;
        align-items: center;
        gap: 7px;
    }

    .details-label {
        color: #8E8E8E;
        font-size: 14px;
        font-weight: 400;
    }

    .details-value {
        color: #8E8E8E;
        font-size: 14px;
        font-weight: 400;
    }

    .details-date {
        color: #8E8E8E;
        font-size: 14px;
        font-weight: 400;
    }

    .details-status {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .status-label {
        color: #8E8E8E;
        font-size: 14px;
        font-weight: 400;
    }

    .status-text {
        color: #FEB42D;
        font-size: 20px;
        font-weight: 600;
    }

    /* Трекинг доставки */
    .delivery-tracking {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .delivery-time {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .time-value {
        color: #1A1A19;
        font-size: 22px;
        font-weight: 800;
    }

    .time-label {
        color: #8E8E8E;
        font-size: 12px;
        font-weight: 500;
    }

    .tracking-steps {
        display: flex;
        align-items: center;
        gap: 0;
        position: relative;
        width: 366px;
        height: 61px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        position: relative;
    }

    .step.active .step-icon circle {
        fill: #FEB42D;
    }

    .step-label {
        color: #8E8E8E;
        font-size: 10px;
        font-weight: 500;
        text-align: center;
    }

    /* Секции деталей */
    .details-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .section-label {
        color: #8E8E8E;
        font-size: 16px;
        font-weight: 400;
    }

    .section-value {
        color: #1A1A19;
        font-size: 16px;
        font-weight: 400;
    }

    /* Список товаров */
    .order-items-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .order-item {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
    }

    .item-thumb {
        width: 72px;
        height: 48px;
        border-radius: 6.4px;
        object-fit: cover;
    }

    .item-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .item-name {
        color: #1A1A19;
        font-size: 16px;
        font-weight: 400;
    }

    .item-quantity {
        color: #8E8E8E;
        font-size: 14px;
        font-weight: 400;
    }

    .item-price-info {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }

    .item-total {
        color: #1A1A19;
        font-size: 16px;
        font-weight: 500;
    }

    .item-unit {
        color: #8E8E8E;
        font-size: 14px;
        font-weight: 400;
    }

    /* Разделитель */
    .details-divider {
        width: 100%;
        height: 1px;
        background: #CCCCCC;
        border-radius: 11px;
    }

    /* Итого */
    .details-total {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .total-label {
        color: #1A1A19;
        font-size: 24px;
        font-weight: 800;
    }

    .total-value {
        flex: 1;
        text-align: right;
        color: #1A1A19;
        font-size: 24px;
        font-weight: 800;
    }

    /* Действия с заказом */
    .order-actions {
        display: flex;
        align-items: flex-start;
        gap: 40px;
        flex-wrap: wrap;
    }

    .action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .action-icon {
        position: relative;
    }

    .action-icon svg circle {
        fill: white;
    }

    .action-label {
        color: #8E8E8E;
        font-size: 14px;
        font-weight: 400;
        text-align: center;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
        .history-wrapper {
            flex-direction: column;
        }

        .orders-list {
            width: 100%;
        }
         #order_info {
            width: 100%;
        }
        .order-details {
            width: 100%;
        }

        .tracking-steps {
            width: 100%;
            justify-content: space-between;
        }

        .order-actions {
            justify-content: center;
        }
    }


.order-status-tracker {
        width: 366px;
        height: 61px;
        position: relative;
        overflow: hidden;
        border-radius: 7.32px;
        background: transparent;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Прогресс контейнер */
    .progress-container {
        width: 366px;
        height: 7.32px;
        position: absolute;
        top: 26.84px;
    }

    .progress-bar {
        width: 366px;
        height: 7.32px;
        background: white;
        border-radius: 46.36px;
        position: relative;
        overflow: hidden;
        -webkit-box-shadow: none;
    }

    .progress-fill {
        height: 100%;
        background: #FEB42D;
        border-radius: 46.36px;
        transition: width 0.3s ease;
    }

    /* Контейнер статусов */
    .status-steps {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        justify-content: space-between;
        padding: 0 0px;
    }

    .status-step + .pending path {
        fill: black;
    }

    .status-step + .active path {
        fill: white;
    }

    /* Шаг статуса */
    .status-step {
        width: 61px;
        height: 61px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Кружок статуса */
    .status-circle {
        width: 100%;
        height: 100%;
        background: #FEB42D;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .status-step.pending .status-circle {
        background: white;
    }


    /* Текст статуса */
    .status-label {
        font-size: 10px;
        color: #1A1A19;
        margin-top: 4px;
        font-weight: 500;
        text-align: center;
    }

    #order_info {
        display: block;
        width: 50%;
        position: relative;
        opacity: 1;
        z-index: 1;
    }
    .modal-overlay {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .order-status-tracker {
        width: 100%;
    }
    .progress-container {
        width: 100%;
    }
    .progress-bar {
        width: 100%;
    }

    @media (max-width: 768px) {
        #order_info {
            display: none;
            position: fixed;
            z-index: 9999;
            margin: 10% auto;
        }
        .order-details {
            width: 95%;
            flex: 0;
            min-width: auto;
        }

        .status-step {
            width: 46px;
            height: 46px;
        }
        .progress-container {
            top: 20px;
        }
    }


/* ===== refactor utilities ===== */
.u-hidden { display: none !important; }
.u-w-100 { width: 100%; }
.u-p-0 { padding: 0 !important; }
.u-map-height { height: 600px; }
.search-no-results--full { width: 100%; }
.promo-node-reset { padding: 0; }
.promo-node-title { margin-top: 20px; margin-left: 18px; color: #000; }
.promo-node-brief { margin-left: 18px; }
.preferred-banner-dialog { width: 100%; display: flex; justify-content: center; }
.circleflash__inner { position: relative; z-index: 1; height: inherit; vertical-align: middle; }
.dropdown-checkbox__search { width: 90%; margin: 5px auto; padding: 4px; display: block; }
.dropdown-checkbox__actions { padding: 5px; border-top: 1px solid #ccc; background: #f5f5f5; }
.dropdown-checkbox__button { font-size: 11px; padding: 2px 5px; }
.dropdown-checkbox__button + .dropdown-checkbox__button { margin-left: 5px; }
.qty-dropdown__value { width: 40px; text-align: center; margin: 0 5px; }

/* ===== templates/common/top_menu.html ===== */
.n-secondary-header {
        height: 46px;
        width: 100%;
        align-self: stretch;
        padding-left: 120px;
        padding-right: 120px;
        background: #F4F4F4;
        justify-content: center;
        align-items: center;
        gap: 10px;
        display: inline-flex;
        flex-wrap: wrap;
        align-content: center;
    }

    .n-secondary-header-item {
        padding: 18px;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        display: flex;
    }

    .n-secondary-header-item a {
        transition: .4s;
        color: #737373;
    }

    .n-secondary-header-item a:active,
    .n-secondary-header-item a:focus,
    .n-secondary-header-item a:hover {
        text-decoration: none;
        color: #0f0f0f;
    }

/* ===== templates/user_room.html ===== */
#profile {
    font-family: 'Montserrat', sans-serif;
    padding: 30px 0;
}

/* Хлебные крошки */
.breadcrumbs {
    margin-bottom: 30px;
}

/* Обертка профиля */
.profile-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Левое меню */
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 270px;
}

.profile-menu a:hover {
    text-decoration: none;
    color: inherit;
}

.menu-item {
    min-width: 270px;
    padding: 9px 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

.menu-item span {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.menu-item.active {
    background: #F5F5F5;
}

.menu-item.active span,
.menu-item:not(.active):not(.logout) span {
    color: #141414;
}

.menu-item.logout span {
    color: #FF383C;
}

.menu-item:hover {
    background: #F0F0F0;
}

/* Правая часть */
.profile-content {
    flex: 1;
    max-width: 890px;
}

.profile-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.profile-column {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field-value {
    color: #1A1A19;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.profile-content .field-select {
    appearance: none;
    cursor: pointer;
}

/* Ряды полей */
.profile-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.profile-field.half {
    flex: 1;
}

/* Чекбокс */
.profile-checkbox {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-content .custom-checkbox.yellow {
    background: #FFC62B;
}

.profile-content .hidden-checkbox:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 12px;
    top: 6px;
    left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='12' viewBox='0 0 16 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.7639 0.264307C16.0842 0.610725 16.0778 1.16561 15.7496 1.50368L5.80197 11.7508C5.47905 12.0835 4.96355 12.083 4.64115 11.7498L0.249406 7.21067C-0.0782469 6.87203 -0.0837805 6.31713 0.237046 5.97127C0.557873 5.62542 1.08357 5.61958 1.41122 5.95823L5.22303 9.89794L14.5898 0.24919C14.918 -0.0888794 15.4436 -0.0821113 15.7639 0.264307Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Кнопка сохранения */
.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin: 20px 0 40px;
}

.btn-save {
    min-width: 270px;
    padding: 13px 30px;
    background: #FFC62B;
    border: none;
    border-radius: 10px;
    color: #141414;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save:hover {
    background: #E8E8E8;
}

/* Бонусный раздел */
.bonus-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #F0F0F0;
}

.bonus-title {
    color: #141414;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.bonus-info {
    margin-bottom: 10px;
}

.bonus-label {
    color: #8E8E8E;
    font-size: 16px;
    margin-right: 10px;
}

.bonus-value {
    color: #1A1A19;
    font-size: 18px;
    font-weight: 500;
}

.bonus-description {
    color: #737373;
    font-size: 14px;
    margin: 20px 0;
}

.bonus-services {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #F5F5F5;
    border-radius: 10px;
    cursor: help;
}

.service-icon img {
    width: 30px;
    height: 30px;
}

.service-name {
    color: #1A1A19;
    font-size: 16px;
    font-weight: 500;
}

.service-exchange {
    padding: 5px 15px;
    background: #4CAF50;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.service-price {
    color: #8E8E8E;
    font-size: 14px;
}

.history-links {
    margin: 20px 0;
}

.history-link {
    color: #FFC62B;
    text-decoration: underline;
    font-size: 14px;
}

.history-info {
    margin-top: 20px;
}

.history-label {
    color: #8E8E8E;
    font-size: 16px;
    margin-right: 10px;
}

.history-value {
    color: #1A1A19;
    font-size: 16px;
}

.history-popover {
    margin-top: 10px;
}

.history-popover a {
    color: #FFC62B;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 768px) {
    .profile-wrapper {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .profile-actions {
        justify-content: center;
    }
}

/* ===== Reference Refresh ===== */
:root {
    --page-bg: #f4f2ec;
    --surface-main: rgba(255, 255, 255, 0.88);
    --surface-pill: #f3f1ea;
    --surface-strong: #ffffff;
    --stroke-soft: rgba(149, 124, 69, 0.12);
    --stroke-strong: rgba(255, 198, 43, 0.35);
    --text-main: #1f1d19;
    --text-muted: #736b5f;
    --accent-deep: #ad7d1d;
    --danger: #ef5a52;
    --shadow-soft: 0 20px 60px rgba(34, 29, 20, 0.08);
    --shadow-card: 0 14px 34px rgba(29, 23, 14, 0.08);
}

html {
    background: var(--page-bg);
}

body {
    color: var(--text-main);
}

header {
    background: linear-gradient(180deg, rgba(244, 242, 236, 0.96) 0%, rgba(244, 242, 236, 0.84) 72%, rgba(244, 242, 236, 0) 100%);
    padding: 10px 16px 0;
}

.n-secondary-header {
    width: min(1200px, 100%);
    height: auto;
    padding: 8px;
    margin: 0 auto 10px;
    background: rgba(243, 241, 234, 0.9);
    border: 1px solid var(--stroke-soft);
    border-radius: 20px;
    gap: 6px;
    justify-content: flex-start;
    box-shadow: 0 6px 18px rgba(42, 35, 23, 0.04);
}

.n-secondary-header-item {
    padding: 0;
}

.n-secondary-header-item a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 14px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.n-secondary-header-item a:active,
.n-secondary-header-item a:focus,
.n-secondary-header-item a:hover {
    color: var(--text-main);
    background: var(--surface-strong);
}

.header-desktop {
    max-width: 1200px;
    gap: 18px;
    padding: 16px 20px;
    border: 1px solid var(--stroke-soft);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.logo-info {
    gap: 16px;
    min-width: 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 56px;
    width: auto;
}

.contact-info {
    align-items: flex-start;
    gap: 8px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 198, 43, 0.18);
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.phone {
    align-items: flex-start;
    gap: 4px;
}

.phone-number {
    color: var(--text-main);
    font-size: 22px;
    line-height: 1.1;
}

.phone-number .light {
    color: var(--text-muted);
}

.callme {
    gap: 6px;
    color: #d55742;
    font-size: 12px;
    font-weight: 600;
}

.work-time {
    color: var(--text-muted);
    font-size: 13px;
}

.search-cart-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
}

.search {
    min-width: 260px;
    height: 52px;
    padding: 0 16px;
    gap: 10px;
    background: var(--surface-pill);
    border: 1px solid rgba(177, 165, 134, 0.22);
    border-radius: 18px;
}

.search input {
    font-size: 14px;
    color: var(--text-main);
}

.search input::placeholder {
    color: #8b8376;
}

.search:focus-within {
    background: var(--surface-strong);
    border-color: var(--stroke-strong);
    box-shadow: 0 0 0 4px rgba(255, 198, 43, 0.12);
}

.cart,
.profile {
    width: 98px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid var(--stroke-strong);
    background: linear-gradient(180deg, #fffdfa 0%, #f9f6ed 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.cart:hover,
.profile:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.cart .text,
.profile .text {
    font-weight: 600;
    color: var(--text-main);
    font-size: 12px;
}

.cart .count {
    top: -4px;
    left: auto;
    right: -4px;
    width: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--danger);
    box-shadow: 0 8px 18px rgba(239, 90, 82, 0.28);
}

.search-dropdown {
    margin-top: 14px;
}

.header-mobile-promo {
    width: min(1200px, 100%);
    height: 44px;
    min-height: 44px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 18px;
    background: linear-gradient(90deg, #FFC62B 0%, #FFC62B 100%);
    color: #5e4210;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 0.2s ease,
        transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.2s ease;
    will-change: transform, opacity;
    contain: paint;
}

.header-mobile-promo:link,
.header-mobile-promo:visited,
.header-mobile-promo:hover,
.header-mobile-promo:active,
.header-mobile-promo:focus,
.header-mobile-promo:focus-visible {
    color: #5e4210 !important;
    text-decoration: none !important;
}

.header-mobile-promo.is-hidden-on-scroll {
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0;
    transform: translate3d(0, -8px, 0);
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    box-shadow: none;
    pointer-events: none;
}

.header-mobile-promo .arrow {
    background: rgba(39, 28, 10, 0.9);
    border-radius: 999px;
    min-width: 32px;
    height: 24px;
}

#main-content {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 0 20px 80px;*/
}

#banner-block {
    margin-bottom: 28px;
}

#banner {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}



#banner .desk-banner,
#banner .mobile-banner,
#banner video {
    width: 100%;
    display: block;
}

#banner .left.carousel-control,
#banner .right.carousel-control {
    width: 54px;
    height: 54px;
    top: 50%;
    margin-top: -27px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.66);
    opacity: 1;
    text-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    pointer-events: auto;
}

#banner .left.carousel-control {
    left: 24px;
}

#banner .right.carousel-control {
    right: 24px;
}

#banner .carousel-indicators {
    bottom: 18px;
}

#banner .carousel-indicators li {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
}

#banner .carousel-indicators .active {
    background: #fff;
}

#catalog-menu {
    margin: 0 0 34px;
    background: transparent;
}

#catalog-menu .container {
    max-width: 100%;
    justify-content: center;
    gap: 12px;
}

.catalog-menu-item {
    width: 138px;
    height: 108px;
    margin: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--stroke-soft);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.catalog-menu-item::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 242, 236, 0.92) 100%);
}

.catalog-menu-item:hover {
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-4px);
}

.catalog-menu-item span {
    z-index: 3;
    bottom: 12px;
    padding: 0 10px;
    color: var(--text-main);
    font-weight: 700;
}

#catalog-menu.is-sticky {
    top: 12px !important;
    left: 12px;
    right: 12px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--stroke-soft);
    box-shadow: var(--shadow-soft);
}

#catalog-menu.is-sticky .container {
    padding: 0;
    gap: 10px;
}

#catalog-menu.is-sticky .catalog-menu-item {
    width: 74px;
    min-width: 74px;
    height: 74px;
    border-radius: 20px;
    box-shadow: none;
}

#catalog-menu.is-sticky .catalog-menu-item span {
    display: none;
}

.site-footer {
    margin: 46px auto 28px;
    width: min(1200px, calc(100% - 28px));
    padding: 32px 30px 24px;
    border-radius: 34px;
    border: 1px solid rgba(145, 97, 12, 0.24);
    background: linear-gradient(180deg, #FFD45E 0%, #FFC62B 100%);
    box-shadow: 0 22px 44px rgba(47, 31, 8, 0.16);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -150px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(250px, 1.25fr) minmax(220px, 1fr) minmax(180px, 0.9fr) minmax(180px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.footer-panel {
    border-radius: 22px;
    border: 1px solid rgba(140, 95, 18, 0.18);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.64) 100%);
    box-shadow: 0 12px 28px rgba(60, 39, 8, 0.08);
    padding: 18px 18px 16px;
}

.footer-col {
    min-width: 0;
    gap: 10px;
}

.footer-brand {
    max-width: none;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-logo img {
    width: 146px;
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: #704a08;
    font-size: 12px;
    font-weight: 700;
}

.footer-app-text,c
.footer-title {
    color: #6b4810;
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.footer-title-tight {
    margin-top: 4px;
}

.footer-item,
.footer-nav li a {
    color: #2d2418;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.site-footer .footer-item:hover,
.site-footer .footer-item:active,
.site-footer .footer-item:focus,
.site-footer .footer-item:visited {
    color: #2d2418;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    /*padding: 5px 8px;*/
    border-radius: 12px;
    transition: background-color 0.22s ease, transform 0.22s ease;
}

.footer-item:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

.footer-item-static:hover {
    background: transparent;
    transform: none;
}

.footer-apps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
}

.footer-store-btn {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(130, 88, 12, 0.24);
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 8px 16px rgba(45, 28, 4, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.footer-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(45, 28, 4, 0.18);
}

.footer-store-btn img {
    display: block;
    width: 40px;
    height: 40px;
}

.footer-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px;
    margin-right: 0;
    flex-shrink: 0;
}

.footer-nav {
    gap: 10px;
}

.footer-nav li {
    margin: 0;
    display: flex;
    align-items: center;

}

.footer-nav li a {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-nav li a:hover {
    background: rgba(255, 255, 255, 0.45);
}

.footer-nav li.active a {
    color: #5f3f08;
    background: rgba(255, 255, 255, 0.58);
}

.footer-bottom-line {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(107, 72, 16, 0.26);
    color: rgba(45, 36, 24, 0.92);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .header-desktop {
        flex-wrap: wrap;
    }

    .search-cart-profile {
        width: 100%;
    }

    .search {
        flex: 1 1 100%;
    }

    .site-footer {
        width: calc(100% - 20px);
        padding: 24px 16px 18px;
        border-radius: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .footer-bottom-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-top: 14px;
        padding-top: 14px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 176px !important;
    }

    body.promo-bar-collapsed {
        padding-top: 176px !important;
    }

    header {
        padding: 10px 12px 0;
    }

    .header-mobile-promo {
        width: 100%;
        margin-top: 8px;
        padding: 0 14px;
        font-size: 12px;
    }

    .mobile-header {
        width: 100%;
        padding: 14px;
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.88);
        border: 1px solid var(--stroke-soft);
        box-shadow: var(--shadow-soft);
    }

    .mobile-top {
        height: auto;
        padding: 0;
        gap: 12px;
    }

    .mobile-burger,
    .mobile-cart {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        background: linear-gradient(180deg, #23201c 0%, #383128 100%);
        box-shadow: 0 10px 20px rgba(34, 28, 21, 0.18);
    }

    .mobile-logo img {
        height: 40px;
    }

    .mobile-badge {
        top: -4px;
        right: -4px;
        background: var(--danger);
        box-shadow: 0 8px 18px rgba(239, 90, 82, 0.3);
    }

    .mobile-search {
        margin-top: 14px;
        padding: 0 14px;
        height: 50px;
        border-radius: 18px;
        background: var(--surface-pill);
        border: 1px solid rgba(177, 165, 134, 0.22);
    }

    #main-content {
        padding: 0 12px 56px;
    }

    #banner {
        border-radius: 24px;
    }

    #banner .left.carousel-control,
    #banner .right.carousel-control {
        width: 42px;
        height: 42px;
        margin-top: -21px;
    }

    #banner .left.carousel-control {
        left: 12px;
    }

    #banner .right.carousel-control {
        right: 12px;
    }

    #catalog-menu {
        margin-bottom: 22px;
    }

    #catalog-menu .container {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .catalog-menu-item {
        width: 112px;
        min-width: 112px;
        height: 92px;
        border-radius: 20px;
    }

    .catalog-menu-item img {
        scale: 0.7;
    }

    .catalog-menu-item span {
        font-size: 11px;
    }

    #catalog-menu.is-sticky {
        top: 8px !important;
        left: 8px;
        right: 8px;
        border-radius: 20px;
    }

    #catalog-menu.is-sticky .catalog-menu-item {
        width: 58px;
        min-width: 58px !important;
        height: 58px;
    }
}

/* ===== Header Refined ===== */
.n-secondary-header,
#catalog-menu {
    display: none !important;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1039;
    padding: 12px 16px 0;
}

.header-desktop {
    display: block;
    width: min(1480px, 100%);
    max-width: 1480px;
    padding: 0;
    overflow: visible;
}

.header-top-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
}

.header-top-row .logo {
    flex-shrink: 0;
}

.header-top-row .logo img {
    display: block;
    height: 52px;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
    background: #f3f3ef;
    border: 1px solid #ecebe5;
    flex-shrink: 0;
    box-sizing: border-box;
}

.nav-pill a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #454545;
    white-space: nowrap;
}

.nav-pill a:hover,
.nav-pill a.active {
    background: #ffffff;
    color: #111111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-top-row .search {
    position: relative;
    width: 280px;
    min-width: 220px;
    flex-shrink: 0;
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.compact-search-toggle {
    display: none;
}

.header-top-row .search::before {
    content: "\2315";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    line-height: 1;
    color: #7d7d7d;
    z-index: 2;
    pointer-events: none;
}

.header-top-row .search input {
    width: 100%;
    height: 100%;
    padding: 0 16px 0 42px;
    border: 1px solid #e6e4dd;
    background: #f6f6f3;
    border-radius: 16px;
    font-size: 14px;
    color: #222222;
}

.header-top-row .search input:focus {
    background: #ffffff;
    border-color: #FFC62B;
    box-shadow: none;
}

.header-top-row .phone {
    margin-left: auto;
    display: block;
    max-width: 220px;
    overflow: hidden;
    white-space: nowrap;
    color: #252525;
    font-size: 15px;
    font-weight: 700;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 52px;
    padding: 0 14px;
    border: 1px solid #FFC62B;
    background: #fffdfa;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: none;
}

.action-btn:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #FFC62B;
}

.action-btn img {
    display: block;
}

.compact-menu-pill,
.compact-categories-panel {
    display: none;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff5a52;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 90, 82, 0.35);
}

.cart-count[hidden],
.mobile-badge[hidden] {
    display: none !important;
}

@keyframes floatingThumbSlideInLeft {
    0% {
        opacity: 0;
        transform: translate3d(-24px, 0, 0) scale(0.94);
        box-shadow: 0 4px 10px rgba(24, 18, 10, 0.06);
    }
    68% {
        opacity: 1;
        transform: translate3d(2px, 0, 0) scale(1.015);
        box-shadow: 0 11px 20px rgba(24, 18, 10, 0.12);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow: 0 10px 18px rgba(24, 18, 10, 0.08);
    }
}

@keyframes floatingThumbSlideOutLeft {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate3d(-34px, 0, 0) scale(0.96);
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-basket-thumb {
        transition: none !important;
    }

    .floating-basket-thumb.is-entering,
    .floating-basket-thumb.is-leaving {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.floating-basket {
    display: none;
}

@media (min-width: 1400px) {
    .floating-basket {
        display: block;
        position: fixed;
        top: 52%;
        right: clamp(14px, calc((100vw - 1200px) / 2 - 94px), 34px);
        transform: translateY(-50%);
        width: 92px;
        padding: 10px 8px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 16px 34px rgba(28, 21, 12, 0.14);
        z-index: 1028;
    }

    .floating-basket[hidden] {
        display: none !important;
    }

    .floating-basket-head {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        margin-bottom: 8px;
        text-decoration: none;
    }

    .floating-basket-head-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: 1px solid #FFC62B;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .floating-basket-head-title {
        font-size: 10px;
        line-height: 1;
        font-weight: 700;
        color: #443421;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }

    .floating-basket-head-count {
        font-size: 11px;
        line-height: 1;
        font-weight: 700;
        color: #6a4f22;
    }

    .floating-basket-items {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: 354px;
        overflow-y: auto;
        padding-right: 2px;
        scrollbar-gutter: stable;
    }

    .floating-basket-items::-webkit-scrollbar {
        width: 4px;
    }

    .floating-basket-items::-webkit-scrollbar-thumb {
        background: rgba(156, 122, 57, 0.35);
        border-radius: 999px;
    }

    .floating-basket-thumb {
        position: relative;
        display: block;
        width: 100%;
        height: 68px;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 198, 43, 0.24);
        background: #f5f3ed;
        text-decoration: none;
        opacity: 1;
        transform-origin: 50% 50%;
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow: 0 10px 18px rgba(24, 18, 10, 0.08);
        transition:
            transform 0.34s ease,
            opacity 0.42s ease,
            box-shadow 0.34s ease;
        will-change: transform, opacity;
    }

    .floating-basket-thumb.is-entering {
        animation: floatingThumbSlideInLeft 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .floating-basket-thumb.is-leaving {
        animation: floatingThumbSlideOutLeft 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .floating-basket-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .floating-basket-thumb-controls {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 7px;
        background: linear-gradient(180deg, rgba(12, 10, 7, 0.14) 0%, rgba(12, 10, 7, 0.36) 100%);
        opacity: 0;
        transform: translate3d(0, 4px, 0);
        transition: opacity 0.24s ease, transform 0.24s ease;
        pointer-events: none;
    }

    .floating-basket-thumb:hover .floating-basket-thumb-controls,
    .floating-basket-thumb:focus-within .floating-basket-thumb-controls {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    .floating-basket-stepper-btn {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        border: 0;
        padding: 0;
        color: #241a0e;
        background: rgba(255, 244, 214, 0.95);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        line-height: 1;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .floating-basket-stepper-btn:hover {
        transform: scale(1.08);
        background: #fff9e8;
    }

    .floating-basket-stepper-btn:disabled {
        opacity: 0.6;
        cursor: default;
        transform: none;
    }

    .floating-basket-thumb-count {
        position: absolute;
        right: 5px;
        bottom: 5px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: #FFC62B;
        color: #35280f;
        font-size: 10px;
        line-height: 18px;
        font-weight: 700;
        text-align: center;
    }

    .floating-basket-thumb-more {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #52412a;
        font-size: 12px;
        font-weight: 700;
        background: #f1eee6;
    }

    .floating-basket-footer {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
    }

    .floating-basket-price {
        font-size: 12px;
        line-height: 1;
        font-weight: 700;
        color: #3d301f;
    }

    .floating-basket-open {
        width: 100%;
        min-height: 30px;
        border-radius: 10px;
        border: 1px solid rgba(255, 198, 43, 0.72);
        color: #3a2d1a;
        font-size: 11px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    .floating-basket-open:hover {
        background: #fffdf7;
        border-color: #FFC62B;
    }
}

.header-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px 14px;
}

.categories {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 8px;
    padding-bottom: 10px;
    margin-top: -8px;
    margin-bottom: -10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
}

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

.categories-arrow {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid #FFC62B;
    background: #fffdfa;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5a4731;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.28s ease,
        border-color 0.28s ease,
        transform 0.28s ease;
}

.categories-arrow:hover {
    background: #ffffff;
    border-color: #FFC62B;
    transform: translateY(-1px);
}

.category {
    position: relative;
    z-index: 1;
    min-width: 108px;
    width: 108px;
    height: 100px;
    padding: 14px 12px 12px;
    border-radius: 18px;
    background: #f3f3ef;
    border: 1px solid #ecebe5;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    overflow: hidden;
    transition:
        background-color 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.32s ease,
        transform 0.32s ease;
}

.category:hover {
    z-index: 8;
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #FFC62B;
    box-shadow: 0 14px 28px rgba(31, 24, 15, 0.12);
}

.category img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-title {
    position: static;
    z-index: auto;
    display: block;
    min-height: 30px;
    padding: 0;
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    text-align: center;
    color: #1c1713;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
    opacity: 1;
    transform: none;
    transition:
        opacity 0.28s ease,
        color 0.28s ease;
}

.category:hover .category-title {
    color: #12100d;
}

.category:hover img {
    transform: scale(1.08) translateY(-1px);
}

.mobile-catalog-strip {
    display: none;
}

@media (max-width: 1180px) {
    .header-top-row {
        flex-wrap: wrap;
    }

    .nav-pill {
        order: 3;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-pill::-webkit-scrollbar {
        display: none;
    }

    .header-top-row .search {
        flex: 1 1 260px;
        width: auto;
    }
}

@media (max-width: 768px) {
    .header-desktop {
        display: none !important;
    }
}

/* ===== Catalog Header Sticky ===== */
.catalog-header-layout {
    overflow: visible;
}

.catalog-header-layout .header-categories-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-header-layout .header-categories-row .categories {
    gap: 10px;
}

.catalog-header-layout.is-compact {
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(25, 20, 13, 0.12);
    overflow: visible;
}

.catalog-header-layout.is-compact .header-top-row {
    gap: 12px;
    padding: 10px 14px;
    flex-wrap: nowrap;
}

.catalog-header-layout.is-compact .logo img {
    height: 42px;
}

.catalog-header-layout.is-compact .nav-pill {
    display: none;
}

.catalog-header-layout.is-compact .search {
    width: 44px;
    min-width: 44px;
    overflow: visible;
    transition:
        width 0.56s cubic-bezier(0.22, 1, 0.36, 1),
        min-width 0.56s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-header-layout.is-compact .search::before {
    display: none;
}

.catalog-header-layout.is-compact .search input {
    width: 100%;
    padding-left: 18px;
    padding-right: 16px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
    transform: translateX(-10px);
}

.catalog-header-layout.is-compact .compact-search-toggle {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e6e4dd;
    border-radius: 14px;
    background: #f6f6f3;
    cursor: pointer;
    transition:
        background-color 0.28s ease,
        border-color 0.28s ease,
        transform 0.32s ease;
}

.catalog-header-layout.is-compact .compact-search-toggle:hover {
    background: #ffffff;
    border-color: #FFC62B;
}

.catalog-header-layout.is-compact .compact-search-toggle-icon {
    position: relative;
    width: 15px;
    height: 15px;
    border: 2px solid #666052;
    border-radius: 50%;
    transform: translate(-1px, -1px);
}

.catalog-header-layout.is-compact .compact-search-toggle-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: #666052;
    transform: rotate(45deg);
    transform-origin: center;
}

.catalog-header-layout.is-compact.is-search-open .search {
    width: 220px;
    min-width: 220px;
}

.catalog-header-layout.is-compact.is-search-open .search input {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.catalog-header-layout.is-compact.is-search-open .compact-search-toggle {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92);
}

.catalog-header-layout.is-compact .phone {
    display: none;
}

.catalog-header-layout.is-compact .header-categories-row {
    display: none;
}

.catalog-header-layout.is-compact .compact-menu-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 1 820px;
    min-width: 0;
    max-width: 820px;
    padding: 6px;
    border-radius: 16px;
    background: #f3f3ef;
    border: 1px solid #ecebe5;
    margin-right: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

.catalog-header-layout.is-compact .compact-menu-pill::-webkit-scrollbar {
    display: none;
}

.catalog-header-layout.is-compact .compact-menu-pill a {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #454545;
    white-space: nowrap;
    transition:
        color 0.28s ease,
        background-color 0.28s ease,
        box-shadow 0.28s ease;
}

.catalog-header-layout.is-compact .compact-menu-pill a:hover,
.catalog-header-layout.is-compact .compact-menu-pill a.active {
    background: #ffffff;
    color: #111111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.catalog-header-layout .compact-categories-panel {
    position: relative;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    padding-bottom: 0;
    margin-bottom: 0;
}

.catalog-header-layout .compact-categories-viewport {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.container:before {
    content: none !important;
}


.catalog-header-layout .compact-categories-viewport::-webkit-scrollbar {
    display: none;
}

.catalog-header-layout .compact-categories-track {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: max-content;
}

.catalog-header-layout .compact-category {
    position: relative;
    z-index: 1;
    min-width: 48px;
    width: 48px;
    height: 48px;
    padding: 0 10px;
    border-radius: 14px;
    background: #f3f3ef;
    border: 1px solid #ecebe5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    transition:
        background-color 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        transform 0.32s ease;
}

.catalog-header-layout .compact-category-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-header-layout .compact-category-title {
    display: none;
}

.catalog-header-layout .compact-category:hover,
.catalog-header-layout .compact-category:focus-visible {
    z-index: 8;
    border-color: #FFC62B;
    background: #fffdfa;
    box-shadow: inset 0 0 0 1px rgba(229, 200, 95, 0.22);
}

.catalog-header-layout .compact-category:hover .compact-category-icon img,
.catalog-header-layout .compact-category:focus-visible .compact-category-icon img {
    transform: scale(1.05);
}

.catalog-header-layout .compact-category-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    max-width: 180px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 200, 95, 0.88);
    box-shadow: 0 14px 28px rgba(31, 24, 15, 0.14);
    color: #1c1712;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -8px, 0) scale(0.94);
    transform-origin: top center;
    transition:
        opacity 0.22s ease,
        transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.catalog-header-layout .compact-category-tooltip.is-visible {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
}

.catalog-header-layout .compact-cat-arrow {
    width: 34px;
    height: 34px;
    border: 1px solid #FFC62B;
    background: #fffdfa;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5a4731;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.catalog-header-layout .compact-cat-arrow:hover {
    background: #ffffff;
    border-color: #FFC62B;
}

.catalog-header-layout.is-compact .compact-menu-pill,
.catalog-header-layout.is-compact .compact-categories-panel {
    display: inline-flex;
}

@media (max-width: 1280px) {
    .catalog-header-layout.is-compact .compact-menu-pill {
        flex-basis: 700px;
        max-width: 700px;
    }

    .catalog-header-layout.is-compact .compact-menu-pill a {
        padding: 9px 12px;
        font-size: 13px;
    }
}

@media (max-width: 1100px) {
    .catalog-header-layout .header-categories-row .category {
        min-width: 92px;
        width: 92px;
        height: 92px;
    }
}

/* ===== Home Refined ===== */
#main-content #catalog-menu {
    display: block !important;
}

.home .header-desktop {
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

.home-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
    gap: 22px;
    margin: 10px 0 30px;
}

.home-intro-copy,
.home-intro-note {
    border-radius: 30px;
    border: 1px solid rgba(255, 198, 43, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(36, 28, 18, 0.07);
}

.home-intro-copy {
    padding: 30px 34px;
}

.home-intro-note {
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 198, 43, 0.35), transparent 40%),
        linear-gradient(180deg, rgba(255, 250, 236, 0.98) 0%, rgba(246, 239, 214, 0.92) 100%);
}

.home-intro-kicker,
.catalog-menu-eyebrow,
.catalog-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 198, 43, 0.16);
    color: #9a6d15;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-intro-title {
    margin: 18px 0 14px;
    font-size: 44px;
    line-height: 1.06;
    font-weight: 800;
    color: #171512;
}

.home-intro-text,
.home-intro-note p,
.catalog-menu-description,
.catalog-lead {
    margin: 0;
    color: #6f675b;
    font-size: 16px;
    line-height: 1.65;
}

.home-intro-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #1f1b15;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.catalog-menu-section {
    margin: 0 0 38px;
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(249, 246, 237, 0.92) 100%);
    border: 1px solid rgba(255, 198, 43, 0.12);
    box-shadow: 0 22px 52px rgba(33, 27, 18, 0.08);
}

.catalog-menu-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 26px;
}

.catalog-menu-title {
    margin: 14px 0 0;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    color: #1a1712;
}

#catalog-menu.catalog-menu-section .container {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
}

.catalog-menu-link {
    display: block;
}

.catalog-menu-item {
    width: 100%;
    min-height: 170px;
    height: 170px;
    margin: 0;
    padding: 18px 16px;
    border-radius: 26px;
    border: 1px solid rgba(255, 198, 43, 0.18);
    box-shadow: 0 16px 30px rgba(31, 24, 15, 0.08);
    display: grid;
    grid-template-rows: 82px 40px;
    justify-items: center;
    align-content: center;
    gap: 12px;
    text-align: center;
}

.catalog-menu-item::after {
    display: none;
}

.catalog-menu-icon-wrap {
    position: relative;
    flex: 0 0 82px;
    width: 82px;
    height: 82px;
    border-radius: 22px;
    /*background: rgba(255, 255, 255, 0.82);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-menu-icon-wrap > img {
    display: block;
}

.catalog-menu-icon-wrap > img:first-child {
    position: relative;
    z-index: 2;
    object-fit: contain;
    object-position: center;
}

.catalog-menu-icon-wrap > img + img {
    display: none !important;
}

#catalog-menu.catalog-menu-section .catalog-menu-item span {
    position: static;
    padding: 0;
    width: 100%;
    min-height: 40px;
    height: 40px;
    max-height: 40px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    color: #1c1813;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.catalog-menu-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 198, 43, 0.35);
}

.catalog-page {
    margin: 125px 0 38px;
    padding: 34px;
    border-radius: 34px;
    border: 1px solid rgba(255, 198, 43, 0.12);
    box-shadow: 0 22px 52px rgba(33, 27, 18, 0.08);
}


.catalog-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 26px;
}

.catalog-title {
    margin: 14px 0 0;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    color: #181510;
}

.catalog-grid {
    justify-content: flex-start;
    gap: 22px;
}

.product-card {
    position: relative;
    width: calc(33.333% - 15px);
    min-width: 280px;
    border-radius: 30px;
    border: 1px solid rgba(255, 198, 43, 0.2);
    background: #FFFFFF;
    box-shadow: 0 20px 42px rgba(35, 28, 18, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 52px rgba(35, 28, 18, 0.16);
}

.product-card .product-image {
    position: relative;
}

.floating-basket-open:hover {
    color: #3a2d1a;
}

.product-card .product-image img {
    width: 100%;
    height: 250px;
    border-radius: 22px;
    object-fit: cover;
    background: linear-gradient(180deg, #f8f5ec 0%, #f2ecde 100%);
}

.product-card .product-flags {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    pointer-events: none;
}

.product-card .product-flag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 8px 16px rgba(20, 15, 9, 0.26);
}

.product-card .product-flag-discount {
    background: linear-gradient(180deg, #ec5c47 0%, #db3e31 100%);
}

.product-card .product-flag-hit {
    background: linear-gradient(180deg, #e7ad24 0%, #cc9018 100%);
}

.product-card .product-flag-hot {
    background: linear-gradient(180deg, #f28a3b 0%, #de5f2e 100%);
}

.product-card .product-body {
    height: auto;
    min-height: 238px;
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card .product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.product-card .product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 32px;
    line-height: 1;
    /*font-weight: 700;*/
    color: #1a1712;
}

.product-card .old-price {
    font-size: 19px;
    line-height: 1;
    font-weight: 600;
    color: rgba(90, 77, 57, 0.72);
    text-decoration: line-through;
}

.product-card .current-price {
    color: #1a1712;
}

.product-card .product-title {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.18;
    color: #181510;
    margin: 0;
    min-height: 52px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    cursor: pointer;
}

.product-card .product-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.product-card .meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(179, 150, 86, 0.28);
    background: rgba(255, 255, 255, 0.84);
    color: #6f675b;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
}

.product-card .product-actions {
    margin-top: auto;
}

.product-card .product-add {
    width: 100%;
    min-height: 54px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffd86e 0%, #FFC62B 100%);
    color: #231a0d;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card .product-add::before {
    content: "+";
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    transform: translateY(-1px);
}

.product-card .product-quantity {
    width: 100%;
    min-height: 54px;
    padding: 0 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, #1b1712 0%, #31281f 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.product-card .qty-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-card .qty-count {
    min-width: 34px;
    text-align: center;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
}

@media (min-width: 1200px) {
    .container {
        width: 1200px !important;
    }
}

@media (max-width: 1200px) {
    .catalog-menu-section .container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .product-card {
        width: calc(50% - 11px);
    }
}

@media (max-width: 900px) {
    .home-intro,
    .catalog-top,
    .catalog-menu-section-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .home-intro-title {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 250px !important;
    }

    .home-intro {
        gap: 14px;
        margin: 8px 0 14px;
    }

    .home-intro-copy,
    .home-intro-note,
    .catalog-menu-section,
    .catalog-page {
        margin: 35px 0 14px;
        padding: 16px 12px 14px;
        border-radius: 24px;
    }

    .catalog-menu-section-head,
    .catalog-top {
        gap: 10px;
        margin-bottom: 14px;
    }

    .catalog-menu-title,
    .catalog-title {
        margin-top: 8px;
        font-size: 24px;
        line-height: 1.12;
    }

    .catalog-menu-description,
    .catalog-lead {
        font-size: 13px;
        line-height: 1.45;
    }

    .catalog-kicker,
    .catalog-menu-eyebrow {
        min-height: 24px;
        padding: 4px 10px;
        font-size: 10px;
    }

    #catalog-menu.catalog-menu-section .container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    .catalog-menu-item {
        min-width: 0;
        width: 100%;
        min-height: 128px;
        height: 134px;
        border-radius: 18px;
        padding: 12px 10px;
        grid-template-rows: 62px 34px;
        gap: 8px;
    }

    .catalog-menu-icon-wrap {
        /*width: 62px;*/
        /*height: 62px;*/
        border-radius: 16px;
    }

    .catalog-menu-icon-wrap > img:first-child {
        width: 90px;
        height: 90px;
    }

    .catalog-menu-item span {
        min-height: 34px;
        height: 34px;
        max-height: 34px;
        font-size: 12px;
    }

    .catalog-grid {
        gap: 12px;
    }

    .product-card {
        width: 100%;
        min-width: 0;
        border-radius: 20px;
    }

    .product-card .product-image {
        padding: 8px 8px 0;
    }

    .product-card .product-image::after {
        left: 8px;
        right: 8px;
        border-radius: 0 0 16px 16px;
    }

    .product-card .product-image img {
        height: clamp(170px, 52vw, 218px);
        border-radius: 16px;
    }

    .product-card .product-flags {
        top: 14px;
        left: 14px;
        gap: 5px;
    }

    .product-card .product-flag {
        min-height: 21px;
        padding: 0 8px;
        font-size: 10px;
    }

    .product-card .product-body {
        min-height: 0;
        padding: 14px;
        gap: 8px;
    }

    .product-card .product-price {
        font-size: 24px;
    }

    .product-card .old-price {
        font-size: 15px;
    }

    .product-card .product-title {
        font-size: 18px;
        line-height: 1.2;
        min-height: 44px;
    }

    .product-card .product-meta {
        gap: 4px;
    }

    .product-card .meta-chip {
        min-height: 22px;
        padding: 0 8px;
        font-size: 11px;
    }

    .product-card .product-add,
    .product-card .product-quantity {
        height: 48px;
        border-radius: 14px;
        font-size: 15px;
    }

    .product-card .qty-btn {
        width: 34px;
        height: 34px;
        font-size: 23px;
    }

    .product-card .qty-count {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    #main-content {
        padding: 0 8px 50px;
    }

    .catalog-menu-section,
    .catalog-page {
        padding: 14px 10px 12px;
        border-radius: 16px;
    }

    .catalog-menu-title,
    .catalog-title {
        font-size: 21px;
    }

    #catalog-menu.catalog-menu-section .container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .catalog-menu-item {
        min-height: 122px;
        height: 126px;
    }


    .catalog-menu-icon-wrap > img:first-child {
        width: 90px;
        height: 90px;
    }
}

/* ===== Motion Layer ===== */
@keyframes softRiseFade {
    0% {
        opacity: 0;
        transform: translate3d(0, 28px, 0) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 18px 40px rgba(36, 28, 18, 0.08);
    }
    50% {
        transform: translateY(-4px);
        box-shadow: 0 26px 52px rgba(36, 28, 18, 0.12);
    }
}

@keyframes subtleShimmer {
    0% {
        transform: translate3d(-100%, 0, 0) rotate(9deg);
        opacity: 0;
    }
    22% {
        opacity: 0;
    }
    38% {
        opacity: 0.5;
    }
    72% {
        opacity: 0.42;
    }
    100% {
        transform: translate3d(100%, 0, 0) rotate(9deg);
        opacity: 0;
    }
}

@keyframes subtleShimmerImage {
    0% {
        opacity: 0;
        background-position: -100% 0;
    }
    18% {
        opacity: 0.18;
    }
    34% {
        opacity: 0.52;
    }
    72% {
        opacity: 0.44;
    }
    100% {
        opacity: 0;
        background-position: 100% 0;
    }
}

html {
    scroll-behavior: smooth;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 198, 43, 0.08), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.42), transparent 22%),
        radial-gradient(circle at 70% 72%, rgba(255, 198, 43, 0.05), transparent 20%);
    z-index: 0;
}

#main-content,
.site-footer {
    position: relative;
    z-index: 1;
}

.header-desktop,
.mobile-header,
.header-mobile-promo,
#banner,
.home-intro-copy,
.home-intro-note,
.catalog-menu-section,
.catalog-page,
.site-footer {
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        background-color 0.35s ease,
        opacity 0.35s ease;
}

@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }

    body {
        transition: padding-top 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }

    body::before {
        display: none;
    }

    .catalog-menu-item::before,
    .category::before,
    .product-card .product-image::before,
    .n-promotions .promotion-card::before,
    #profile .order-card::before {
        display: none !important;
    }

    .home-intro-note {
        animation: none;
    }

    header {
        transition: transform 0.3s ease, background-color 0.24s ease;
    }

    .mobile-header {
        transition: transform 0.3s ease, opacity 0.24s ease, background-color 0.24s ease;
    }

    .mobile-top {
        transition: gap 0.24s ease;
    }

    .mobile-burger,
    .mobile-cart {
        transition: transform 0.26s ease, background-color 0.24s ease;
    }

    .mobile-logo img {
        transition: transform 0.28s ease;
        transform-origin: center center;
    }

    .mobile-search {
        transition: opacity 0.22s ease, transform 0.26s ease;
        will-change: transform, opacity;
        overflow: hidden;
    }

    .mobile-catalog-strip {
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
        min-width: 0;
        margin-top: 10px;
    }

    .mobile-catalog-viewport {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .mobile-catalog-viewport::-webkit-scrollbar {
        display: none;
    }

    .mobile-catalog-track {
        display: flex;
        align-items: stretch;
        gap: 8px;
        width: max-content;
        padding: 2px 2px 4px;
    }

    .mobile-catalog-item {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        width: 58px;
        min-width: 58px;
        min-height: 34px;
        padding: 6px 4px;
        border-radius: 12px;
        border: 1px solid #ecebe5;
        background: #f3f3ef;
        color: #1f1a14;
        text-decoration: none;
        flex-shrink: 0;
        transition:
            background-color 0.24s ease,
            border-color 0.24s ease,
            box-shadow 0.24s ease;
    }

    .mobile-catalog-item-label {
        font-size: 9px;
        font-weight: 700;
        line-height: 1.08;
        white-space: normal;
        text-align: center;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        overflow: hidden;
    }

    .mobile-catalog-item.is-active,
    .mobile-catalog-item:hover {
        border-color: #FFC62B;
        background: #fffdfa;
        box-shadow: 0 8px 16px rgba(31, 24, 15, 0.08);
    }

    .mobile-catalog-all {
        justify-content: center;
        width: 64px;
        min-width: 64px;
    }

    .mobile-catalog-all .mobile-catalog-item-label {
        font-size: 9px;
    }

    header.is-mobile-minimized {
        padding-top: 8px;
    }

    header.is-mobile-minimized .mobile-header {
        padding: 12px 14px;
        border-radius: 22px;
    }

    header.is-mobile-minimized .mobile-top {
        gap: 8px;
    }

    header.is-mobile-minimized .mobile-burger,
    header.is-mobile-minimized .mobile-cart {
        transform: scale(0.92);
    }

    header.is-mobile-minimized .mobile-logo img {
        transform: scale(0.86);
    }

    header.is-mobile-minimized .mobile-search {
        opacity: 0;
        transform: translate3d(0, -8px, 0);
        height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        border-width: 0;
        pointer-events: none;
    }

}

.header-desktop:hover,
.mobile-header:hover,
.catalog-menu-section:hover,
.catalog-page:hover,
.site-footer:hover {
    box-shadow: 0 28px 60px rgba(31, 24, 15, 0.12);
}

.catalog-menu-item,
.category,
.n-promotions .promotion-card,
#profile .order-card {
    position: relative;
    overflow: hidden;
}

.catalog-menu-item::before,
.category::before,
.n-promotions .promotion-card::before,
#profile .order-card::before {
    content: "";
    position: absolute;
    top: -34%;
    bottom: -34%;
    left: -58%;
    width: 42%;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.02) 20%, rgba(255, 255, 255, 0.34) 48%, rgba(255, 255, 255, 0.05) 76%, transparent 100%);
    transform: translate3d(-180%, 0, 0) rotate(9deg);
}

/*.catalog-menu-item:hover::before,*/
/*.category:hover::before,*/
/*.n-promotions .promotion-card:hover::before,*/
/*#profile .order-card:hover::before,*/
/*.catalog-menu-item:focus-within::before,*/
/*.n-promotions .promotion-card:focus-within::before {*/
/*    animation: subtleShimmer 1.08s cubic-bezier(0.22, 1, 0.36, 1);*/
/*}*/



.product-card:hover .product-image::before,
.product-card:focus-within .product-image::before {
    animation: subtleShimmerImage 1.84s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-pill a,
.action-btn,
.category,
.catalog-menu-item,
.product-card,
.product-add,
.qty-btn,
.footer-nav li a,
.footer-item,
.search input,
.mobile-burger,
.mobile-cart {
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.24s ease,
        border-color 0.24s ease,
        color 0.24s ease,
        opacity 0.24s ease;
}

.nav-pill a:hover {
    transform: translateY(-1px);
}

.action-btn:hover,
.mobile-burger:hover,
.mobile-cart:hover {
    transform: translateY(-2px) scale(1.02);
}

.header-desktop .search:hover input,
.header-desktop .search:focus-within input,
.mobile-search:focus-within {
    box-shadow: 0 10px 24px rgba(31, 24, 15, 0.08);
}

/*.catalog-menu-item:hover .catalog-menu-icon-wrap,*/
/*.category:hover img {*/
/*    transform: translateY(-3px) scale(1.05);*/
/*}*/

.home-intro-note {
    animation: floatGlow 7s ease-in-out infinite;
}

.product-card:hover .product-image img {
    transform: scale(1.035);
}

.product-card .product-image img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.product-card:hover .product-title {
    color: #9a6d15;
}

.product-card .product-title,
.catalog-title,
.catalog-menu-title,
.home-intro-title {
    transition: color 0.3s ease, transform 0.3s ease;
}

.catalog-page:hover .catalog-title,
.catalog-menu-section:hover .catalog-menu-title,
.home-intro-copy:hover .home-intro-title {
    transform: translateX(2px);
}

.product-card .product-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(255, 198, 43, 0.3);
}

.product-card .product-quantity:hover {
    box-shadow: 0 16px 32px rgba(27, 23, 18, 0.24);
}

.motion-js:not(.reduced-motion) .home-intro:not(.motion-in),
.motion-js:not(.reduced-motion) .catalog-menu-section:not(.motion-in),
.motion-js:not(.reduced-motion) .catalog-top:not(.motion-in),
.motion-js:not(.reduced-motion) .site-footer:not(.motion-in),
.motion-js:not(.reduced-motion) #banner-block:not(.motion-in) {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
}

.motion-js:not(.reduced-motion) .product-card:not(.motion-in) {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.992);
}

.motion-ready {
    backface-visibility: hidden;
    will-change: opacity, transform;
    transition:
        opacity 0.42s ease,
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--motion-delay, 0ms);
}

.product-card.motion-ready {
    transition:
        opacity 0.42s ease var(--motion-delay, 0ms),
        transform 0.58s cubic-bezier(0.22, 1, 0.36, 1) var(--motion-delay, 0ms),
        box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.24s ease,
        background-color 0.24s ease;
}

.motion-ready.motion-in {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.catalog-header-layout.is-compact {
    animation: softRiseFade 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .motion-ready {
        opacity: 1 !important;
        transform: none !important;
        will-change: auto !important;
    }
}

/* ===== Message Modal ===== */
#message_box.modal {
    z-index: 1080;
}

#message_box .modal-dialog {
    width: min(540px, calc(100% - 24px));
    margin: min(11vh, 88px) auto 0;
}

#message_box .modal-content {
    border-radius: 24px;
    border: 1px solid rgba(175, 138, 58, 0.28);
    background: linear-gradient(180deg, #fffdf7 0%, #fff7e6 100%);
    box-shadow: 0 26px 56px rgba(31, 24, 12, 0.2);
    overflow: hidden;
}

#message_box .modal-header {
    border: none;
    padding: 16px 18px 10px;
    position: relative;
}

#message_box .message-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 44px;
}

#message_box .message-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    border: 1px solid rgba(171, 143, 79, 0.35);
    background: rgba(255, 198, 43, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#message_box .message-icon::before {
    content: "i";
    color: #5d4b26;
    font-size: 23px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

#message_box .modal-title {
    margin: 0;
    color: #2f291f;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.15;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

#message_box .modal-header .close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.84);
    opacity: 1;
    margin: 0;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

#message_box .modal-header .close::before,
#message_box .modal-header .close::after {
    content: "";
    position: absolute;
    top: 16px;
    left: 9px;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: #705f3e;
}

#message_box .modal-header .close::before {
    transform: rotate(45deg);
}

#message_box .modal-header .close::after {
    transform: rotate(-45deg);
}

#message_box .modal-header .close:hover {
    transform: translateY(-1px);
    border-color: rgba(173, 139, 62, 0.45);
    box-shadow: 0 8px 18px rgba(31, 24, 11, 0.12);
}

#message_box .modal-body {
    border: none;
    padding: 0 18px 14px;
    color: #4f473a;
    font-size: 15px;
    line-height: 1.45;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

#message_box .modal-body a {
    color: #7a5f20;
    text-decoration: underline;
    text-underline-offset: 2px;
}

#message_box .modal-footer {
    border: none;
    padding: 12px 18px 18px;
    display: flex;
    justify-content: flex-end;
}

#message_box .btn-message {
    min-width: 138px;
    min-height: 42px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffd85d 0%, #ffc62b 64%, #f7b51b 100%);
    color: #2e2414;
    font-size: 14px;
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px rgba(190, 132, 14, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

#message_box .btn-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 24px rgba(190, 132, 14, 0.3);
    filter: saturate(1.03);
}

#message_box.is-success .modal-content {
    border-color: rgba(109, 168, 66, 0.34);
    background:
        radial-gradient(circle at top right, rgba(166, 214, 109, 0.24) 0%, transparent 38%),
        linear-gradient(180deg, #fbfff8 0%, #f5fbe9 100%);
}

#message_box.is-success .message-icon {
    border-color: rgba(109, 168, 66, 0.44);
    background: rgba(166, 214, 109, 0.24);
}

#message_box.is-success .message-icon::before {
    content: "✓";
    color: #3d7332;
}

#message_box.is-error .modal-content {
    border-color: rgba(201, 92, 92, 0.34);
    background:
        radial-gradient(circle at top right, rgba(230, 117, 117, 0.18) 0%, transparent 38%),
        linear-gradient(180deg, #fffafa 0%, #fff1f1 100%);
}

#message_box.is-error .message-icon {
    border-color: rgba(201, 92, 92, 0.36);
    background: rgba(230, 117, 117, 0.16);
}

#message_box.is-error .message-icon::before {
    content: "!";
    color: #a73f3f;
}

@media (max-width: 640px) {
    #message_box .modal-dialog {
        width: calc(100% - 16px);
        margin-top: 10vh;
    }

    #message_box .modal-header {
        padding: 14px 14px 8px;
    }

    #message_box .modal-body {
        padding: 0 14px 12px;
        font-size: 14px;
    }

    #message_box .modal-footer {
        padding: 10px 14px 14px;
    }

    #message_box .btn-message {
        width: 100%;
    }
}

/* ===== Profile Refresh ===== */
#profile {
    padding: 24px 0 46px;
}

#profile .container {
    max-width: 1260px;
}

#profile .profile-breadcrumbs,
#main-content .cart-breadcrumbs {
    margin-bottom: 26px;
    padding: 14px 18px;
    display: inline-flex;
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255, 198, 43, 0.28);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.74) 0%, rgba(245, 241, 233, 0.9) 100%);
    box-shadow: 0 14px 28px rgba(31, 24, 15, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#profile .profile-breadcrumbs .breadcrumbs-text,
#main-content .cart-breadcrumbs .breadcrumbs-text {
    color: var(--text-muted);
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 600;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#profile .profile-breadcrumbs .profile-breadcrumb-link,
#main-content .cart-breadcrumbs .profile-breadcrumb-link {
    color: var(--text-muted);
    font-size: clamp(18px, 1.6vw, 22px);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.24s ease, transform 0.24s ease;
}

#profile .profile-breadcrumbs .profile-breadcrumb-link:hover,
#main-content .cart-breadcrumbs .profile-breadcrumb-link:hover {
    color: var(--text-main);
    transform: translateY(-1px);
}

#profile .profile-breadcrumbs .profile-breadcrumb-sep,
#main-content .cart-breadcrumbs .profile-breadcrumb-sep {
    color: rgba(115, 107, 95, 0.55);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

#profile .profile-breadcrumbs .profile-breadcrumb-current,
#main-content .cart-breadcrumbs .profile-breadcrumb-current {
    color: var(--text-main);
    font-size: clamp(18px, 1.7vw, 23px);
    font-weight: 700;
    line-height: 1.15;
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 198, 43, 0.45);
    background: linear-gradient(135deg, rgba(255, 198, 43, 0.22) 0%, rgba(255, 198, 43, 0.08) 100%);
}

#profile .profile-wrapper {
    gap: clamp(20px, 2.4vw, 34px);
    align-items: stretch;
}

#profile .profile-menu {
    width: 272px;
    min-width: 272px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid var(--stroke-soft);
    background: var(--surface-main);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    position: sticky;
    align-self: flex-start;
    gap: 8px;
}

#profile .menu-item {
    min-width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-align: left;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

#profile .menu-item span {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

#profile .menu-item.active {
    background: linear-gradient(135deg, rgba(255, 198, 43, 0.22) 0%, rgba(255, 198, 43, 0.1) 100%);
    border-color: rgba(255, 198, 43, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 20px rgba(255, 198, 43, 0.2);
}

#profile .menu-item.active span {
    color: var(--text-main);
}

#profile .menu-item:not(.active):not(.logout) span {
    color: #433b2f;
}

#profile .menu-item:not(.active):hover {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(149, 124, 69, 0.22);
    transform: translateX(2px);
}

#profile .menu-item.logout {
    margin-top: 2px;
}

#profile .menu-item.logout span {
    color: #dd453d;
}

#profile .menu-item.logout:hover {
    background: rgba(239, 90, 82, 0.1);
    border-color: rgba(239, 90, 82, 0.28);
}

#profile .profile-content,
#profile .orders-content,
#profile .pass-content {
    flex: 1;
    max-width: none;
    padding: clamp(18px, 2vw, 28px);
    border-radius: 28px;
    border: 1px solid var(--stroke-soft);
    background: var(--surface-main);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#profile .orders-content.container {
    width: auto;
    max-width: none;
}

#profile .profile-grid {
    gap: clamp(14px, 1.7vw, 22px);
    margin-bottom: 24px;
}

#profile .profile-column {
    min-width: min(100%, 300px);
    gap: 12px;
}

#profile .profile-row {
    gap: 12px;
}

#profile .profile-field,
#profile .password-field {
    border-radius: 14px;
    border: 1px solid rgba(149, 124, 69, 0.2);
    background: rgba(255, 255, 255, 0.84);
    padding: 10px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.24s ease,
        background-color 0.24s ease;
}

#profile .profile-field:focus-within,
#profile .password-field:focus-within {
    border-color: rgba(255, 198, 43, 0.84);
    box-shadow: 0 0 0 3px rgba(255, 198, 43, 0.26), 0 14px 26px rgba(30, 24, 14, 0.08);
    background: #ffffff;
    transform: translateY(-1px);
}

#profile .field-label,
#profile .password-label {
    color: rgba(63, 54, 40, 0.62);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

#profile .field-value {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
}

#profile .profile-content .field-input,
#profile .profile-content .field-select,
#profile .password-input {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
}

#profile .profile-content .field-select {
    appearance: none;
    cursor: pointer;
    padding-right: 18px;
}

#profile .profile-content .field-select.field-select-native {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#profile .profile-field.with-icon .select-arrow {
    display: none;
}

#profile .profile-field.with-icon .custom-select {
    position: relative;
}

#profile .custom-select-trigger {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.25;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
}

#profile .custom-select-value {
    flex: 1;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#profile .custom-select-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b5a3a;
    border-bottom: 2px solid #6b5a3a;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

#profile .custom-select.is-open .custom-select-caret {
    transform: translateY(2px) rotate(-135deg);
}

#profile .custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -12px;
    right: -12px;
    border-radius: 12px;
    border: 1px solid rgba(171, 143, 79, 0.35);
    background: #fffdf8;
    box-shadow: 0 16px 28px rgba(36, 27, 10, 0.18);
    padding: 6px;
    max-height: 240px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 30;
}

#profile .custom-select-dropdown::-webkit-scrollbar {
    width: 6px;
}

#profile .custom-select-dropdown::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 122, 63, 0.38);
}

#profile .custom-select.is-open .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#profile .custom-select-option {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    color: #4b4539;
    font-size: 14px;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 9px;
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

#profile .custom-select-option:hover {
    background: rgba(255, 198, 43, 0.16);
}

#profile .custom-select-option.is-selected {
    background: linear-gradient(135deg, rgba(255, 198, 43, 0.3) 0%, rgba(255, 198, 43, 0.12) 100%);
    color: #513f19;
}

#profile .custom-select-option.is-disabled {
    color: #b0a894;
    cursor: not-allowed;
}

#profile .custom-select-option.is-disabled:hover {
    background: transparent;
}

#profile .profile-content .field-input::placeholder,
#profile .password-input::placeholder {
    color: rgba(115, 107, 95, 0.7);
}

#profile .profile-birthdate-field .field-input {
    cursor: pointer;
}

#profile .profile-birthdate-field .field-input:focus {
    outline: none;
}

#profile .birthdate-lock-note {
    margin-top: 8px;
    padding: 0 10px;
    border-left: 2px solid rgba(214, 89, 61, 0.78);
    color: #8b4332;
    font-size: 12px;
    line-height: 1.35;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-3px);
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease;
}

#profile .profile-birthdate-field.show-lock-note .birthdate-lock-note {
    max-height: 64px;
    opacity: 1;
    transform: translateY(0);
}

#profile .profile-birthdate-field.show-lock-note {
    border-color: rgba(214, 89, 61, 0.52);
    box-shadow: 0 0 0 2px rgba(214, 89, 61, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#profile .profile-checkbox {
    margin-top: 6px;
    align-items: flex-start;
}

#profile .profile-content .checkbox-label {
    gap: 12px;
    align-items: flex-start;
}

#profile .profile-content .custom-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid rgba(149, 124, 69, 0.24);
    box-shadow: none;
    flex-shrink: 0;
    margin-top: 2px;
}

#profile .profile-content .custom-checkbox.yellow {
    background: #ffe5a0;
}

#profile .profile-content .hidden-checkbox:checked + .custom-checkbox.yellow {
    background: #FFC62B;
    border-color: rgba(173, 125, 29, 0.65);
}

#profile .profile-content .hidden-checkbox:checked + .custom-checkbox::after {
    top: 5px;
    left: 3px;
    width: 15px;
    height: 11px;
}

#profile .checkbox-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.35;
}

#profile .profile-actions {
    margin: 22px 0 0;
}

#profile .btn-save {
    min-width: 230px;
    padding: 13px 26px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #ffda6e 0%, #FFC62B 58%, #f5b200 100%);
    color: #2e2414;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(255, 198, 43, 0.28);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

#profile .btn-save:hover {
    background: linear-gradient(135deg, #ffdf7e 0%, #FFC62B 55%, #efad00 100%);
    box-shadow: 0 20px 36px rgba(255, 198, 43, 0.34);
    transform: translateY(-2px);
    filter: saturate(1.02);
}

#profile .btn-save:active {
    transform: translateY(0) scale(0.99);
}

#profile .pass-content {
    width: auto;
}

#profile .password-wrapper {
    max-width: 620px;
    align-items: stretch;
    gap: 12px;
}

#profile .pass-content .btn-save {
    align-self: flex-end;
    margin-top: 4px;
}

#profile .history-wrapper {
    gap: 18px;
    align-items: stretch;
}

#profile .orders-list {
    width: min(392px, 35vw);
    max-height: 760px;
    height: auto;
    padding-right: 6px;
    overflow-y: auto;
    overflow-x: hidden;
}

#profile .orders-list::-webkit-scrollbar {
    width: 6px;
}

#profile .orders-list::-webkit-scrollbar-thumb {
    background: rgba(149, 124, 69, 0.35);
    border-radius: 999px;
}

#profile .orders-empty-state {
    min-height: 320px;
    padding: 26px 22px;
    border-radius: 22px;
    border: 1px dashed rgba(255, 198, 43, 0.52);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 43, 0.2) 0%, transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(246, 242, 233, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    /*box-shadow: 0 16px 30px rgba(31, 24, 15, 0.08);*/
}

#profile .orders-empty-title {
    color: var(--text-main);
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.2;
    font-weight: 800;
}

#profile .orders-empty-text {
    max-width: 420px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.45;
}

#profile .orders-empty-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #ffda6e 0%, #FFC62B 58%, #f5b200 100%);
    color: #2e2414;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(255, 198, 43, 0.26);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

#profile .orders-empty-link:hover {
    text-decoration: none;
    color: #2e2414;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(255, 198, 43, 0.32);
}

#profile .orders-content.orders-empty .history-wrapper {
    display: block;
}

#profile .orders-content.orders-empty .orders-list {
    width: 100%;
    max-width: 760px;
    margin: 40px auto;
    padding-right: 0;
}

#profile .orders-content.orders-empty #order_info {
    display: none !important;
}

#profile .order-card {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(149, 124, 69, 0.17);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 24px rgba(31, 24, 15, 0.06);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background-color 0.28s ease;
}

#profile .order-card:hover {
    background: #ffffff;
    border-color: rgba(255, 198, 43, 0.45);
    box-shadow: 0 20px 32px rgba(31, 24, 15, 0.1);
    transform: translateY(-2px);
}

#profile .order-card.active {
    background: linear-gradient(145deg, rgba(255, 198, 43, 0.2) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-color: rgba(255, 198, 43, 0.62);
    box-shadow: 0 20px 36px rgba(255, 198, 43, 0.2);
}

#profile .order-header {
    gap: 12px;
}

#profile .order-number {
    flex-wrap: wrap;
    column-gap: 6px;
}

#profile .info-label,
#profile .order-value,
#profile .order-price {
    color: var(--text-main);
}

#profile .info-label {
    font-size: 15px;
    font-weight: 600;
}

#profile .order-value,
#profile .order-price {
    font-size: 18px;
    font-weight: 700;
}

#profile .order-date,
#profile .order-payment {
    color: var(--text-muted);
    font-size: 13px;
}

#profile .status-badge {
    border-radius: 999px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

#profile .status-accepted {
    background: #f18fcc;
}

#profile .status-preparing {
    background: #48cfff;
}

#profile .status-delivery {
    background: #FFC62B;
    color: #2d2415;
}

#profile .status-delivered {
    background: #5ac653;
}

#profile .order-items {
    margin-top: 10px;
}

#profile .item-image,
#profile .item-count {
    width: 76px;
    height: 56px;
}

#profile .item-image {
    border-radius: 999px;
    outline-color: rgba(255, 255, 255, 0.86);
}

#profile .item-count {
    background: rgba(255, 255, 255, 0.92);
    outline-color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

#profile #order_info {
    width: auto;
    position: relative;
    opacity: 1;
    z-index: 1;
    margin: 0;
}

#profile .modal-overlay {
    width: 100%;
    height: 100%;
}

#profile .order-details {
    min-width: 0;
}

#profile .details-card {
    height: 100%;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(149, 124, 69, 0.18);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 28px rgba(31, 24, 15, 0.08);
    gap: 20px;
}

#profile .details-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

#profile .details-label,
#profile .details-value,
#profile .details-date,
#profile .status-label {
    color: var(--text-muted);
    font-size: 13px;
}

#profile .details-status {
    align-items: flex-start;
    gap: 4px;
}

#profile .status-text {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.2;
}

#profile .delivery-tracking {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(149, 124, 69, 0.18);
    background: rgba(245, 241, 233, 0.88);
    gap: 14px;
}

#profile .order-status-tracker {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    overflow: visible;
}

#profile .progress-container,
#profile .progress-bar {
    width: 100%;
}

#profile .progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

#profile .progress-fill {
    background: #FFC62B;
}

#profile .status-steps {
    top: -3px;
    padding: 0;
}

#profile .status-step {
    width: 56px;
    height: 56px;
}

#profile .status-circle {
    box-shadow: 0 8px 14px rgba(31, 24, 15, 0.09);
}

#profile .status-step.pending .status-circle {
    border: 1px solid rgba(149, 124, 69, 0.22);
}

#profile .details-section {
    gap: 6px;
}

#profile .section-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#profile .section-value,
#profile .item-name {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.3;
}

#profile .order-items-list {
    gap: 12px;
}

#profile .order-item {
    padding: 10px;
    border-radius: 14px;
    background: rgba(244, 242, 236, 0.9);
}

#profile .item-thumb {
    width: 70px;
    height: 50px;
    border-radius: 10px;
}

#profile .item-quantity,
#profile .item-unit {
    color: var(--text-muted);
    font-size: 13px;
}

#profile .item-total {
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
}

#profile .details-divider {
    background: linear-gradient(90deg, rgba(149, 124, 69, 0), rgba(149, 124, 69, 0.36), rgba(149, 124, 69, 0));
    border-radius: 999px;
}

#profile .total-label,
#profile .total-value {
    color: var(--text-main);
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 800;
}

#profile .order-actions {
    gap: 12px;
}

#profile .action-item {
    flex: 1 1 150px;
    min-width: 0;
    padding: 12px 10px;
    border-radius: 16px;
    border: 1px solid rgba(149, 124, 69, 0.2);
    background: rgba(255, 255, 255, 0.86);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

#profile .action-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 198, 43, 0.45);
    box-shadow: 0 12px 20px rgba(31, 24, 15, 0.1);
}

#profile .action-icon svg {
    width: 58px;
    height: 58px;
}

#profile .action-icon svg circle {
    fill: rgba(255, 246, 220, 0.95);
}

#profile .action-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 1200px) {
    #profile .profile-wrapper {
        flex-direction: column;
    }

    #profile .profile-menu {
        width: 100%;
        min-width: 0;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    #profile .menu-item {
        flex: 1 1 180px;
        min-width: 0;
        justify-content: center;
        text-align: center;
    }

    #profile .orders-list {
        width: min(440px, 100%);
    }
}

@media (max-width: 992px) {
    #profile .history-wrapper {
        flex-direction: column;
    }

    #profile .orders-list {
        width: 100%;
        max-height: 400px;
    }

    #profile .orders-empty-state {
        min-height: 260px;
    }

    #profile #order_info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    #profile {
        padding-top: 14px;
    }

    #profile .profile-breadcrumbs,
    #main-content .cart-breadcrumbs {
        margin-bottom: 16px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    #profile .profile-breadcrumbs .breadcrumbs-text,
    #main-content .cart-breadcrumbs .breadcrumbs-text {
        font-size: clamp(16px, 5.2vw, 24px);
        gap: 7px;
    }

    #profile .profile-breadcrumbs .profile-breadcrumb-link,
    #profile .profile-breadcrumbs .profile-breadcrumb-current,
    #main-content .cart-breadcrumbs .profile-breadcrumb-link,
    #main-content .cart-breadcrumbs .profile-breadcrumb-current {
        font-size: clamp(14px, 4.2vw, 18px);
    }

    #profile .profile-breadcrumbs .profile-breadcrumb-current,
    #main-content .cart-breadcrumbs .profile-breadcrumb-current {
        padding: 6px 10px;
    }

    #profile .profile-content,
    #profile .orders-content,
    #profile .pass-content {
        padding: 16px;
        border-radius: 20px;
    }

    #profile .profile-menu {
        border-radius: 18px;
        padding: 10px;
        gap: 8px;
    }

    #profile .menu-item {
        flex: 1 1 100%;
    }

    #profile .profile-row {
        flex-direction: column;
    }

    #profile .custom-select-trigger {
        font-size: 14px;
    }

    #profile .custom-select-dropdown {
        left: -10px;
        right: -10px;
    }

    #profile .profile-actions {
        justify-content: stretch;
    }

    #profile .btn-save {
        width: 100%;
        min-width: 0;
    }

    #profile .pass-content .btn-save {
        align-self: stretch;
    }

    #profile .orders-list {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    #profile .orders-empty-state {
        min-height: 220px;
        padding: 20px 16px;
        border-radius: 18px;
    }

    #profile .orders-empty-title {
        font-size: 22px;
    }

    #profile .orders-empty-text {
        font-size: 14px;
    }

    #profile .orders-empty-link {
        width: 100%;
    }

    #profile #order_info {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 9999;
    }

    #profile .modal-overlay {
        padding: 14px;
        overflow-y: auto;
        align-items: flex-start;
    }

    #profile .order-details {
        width: 100%;
        min-width: 0;
    }

    #profile .details-card {
        padding: 16px;
        border-radius: 18px;
    }

    #profile .delivery-tracking {
        padding: 10px;
    }

    #profile .status-step {
        width: 42px;
        height: 42px;
    }

    #profile .status-circle svg {
        transform: scale(0.72);
    }

    #profile .progress-container {
        top: 16px;
    }

    #profile .order-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #profile .action-item {
        padding: 10px 6px;
    }

    #profile .action-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* ===== Orders Tab V2 ===== */
@media (min-width: 769px) {
    #profile .orders-content:not(.orders-empty) .history-wrapper {
        display: grid;
        grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
        gap: 22px;
        align-items: start;
    }

    #profile .orders-content:not(.orders-empty) .orders-list {
        width: auto;
        max-height: min(760px, calc(100vh - 230px));
        padding: 4px 10px 4px 2px;
        overflow-y: auto;
        overflow-x: visible;
    }

    #profile .orders-content:not(.orders-empty) .orders-list::-webkit-scrollbar {
        width: 8px;
    }

    #profile .orders-content:not(.orders-empty) .orders-list::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(255, 198, 43, 0.52) 0%, rgba(149, 124, 69, 0.34) 100%);
        border-radius: 999px;
    }

    #profile .orders-content:not(.orders-empty) .order-card {
        border-radius: 24px;
        border: 1px solid rgba(149, 124, 69, 0.2);
        background:
            radial-gradient(circle at top right, rgba(255, 198, 43, 0.14) 0%, transparent 46%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 243, 235, 0.95) 100%);
        box-shadow: 0 10px 22px rgba(31, 24, 15, 0.08);
        padding: 16px 16px 14px;
    }

    #profile .orders-content:not(.orders-empty) .order-card:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 198, 43, 0.48);
        box-shadow: 0 18px 32px rgba(31, 24, 15, 0.12);
    }

    #profile .orders-content:not(.orders-empty) .order-card.active {
        border-color: rgba(255, 198, 43, 0.7);
        background:
            radial-gradient(circle at top right, rgba(255, 198, 43, 0.24) 0%, transparent 46%),
            linear-gradient(180deg, #fffdf6 0%, #f8f0d9 100%);
        box-shadow: 0 22px 36px rgba(255, 198, 43, 0.2);
    }

    #profile .orders-content:not(.orders-empty) .order-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
    }

    #profile .orders-content:not(.orders-empty) .order-status-price {
        min-width: 120px;
        align-items: flex-end;
        gap: 8px;
        height: auto;
    }

    #profile .orders-content:not(.orders-empty) .info-label {
        font-size: 14px;
        font-weight: 600;
        color: rgba(63, 54, 40, 0.86);
    }

    #profile .orders-content:not(.orders-empty) .order-value {
        font-size: 17px;
        font-weight: 800;
    }

    #profile .orders-content:not(.orders-empty) .order-date,
    #profile .orders-content:not(.orders-empty) .order-payment {
        font-size: 13px;
        line-height: 1.35;
    }

    #profile .orders-content:not(.orders-empty) .status-badge {
        padding: 5px 10px;
        font-size: 11px;
    }

    #profile .orders-content:not(.orders-empty) .order-price {
        font-size: 20px;
        font-weight: 800;
    }

    #profile .orders-content:not(.orders-empty) .order-items {
        margin-top: 12px;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    #profile .orders-content:not(.orders-empty) .item-image,
    #profile .orders-content:not(.orders-empty) .item-count {
        width: 72px;
        height: 52px;
    }

    #profile .orders-content:not(.orders-empty) .item-image:not(:first-child),
    #profile .orders-content:not(.orders-empty) .item-count {
        margin-left: -16px;
    }

    #profile .orders-content:not(.orders-empty) #order_info {
        display: block !important;
        position: sticky;
        top: 150px;
        inset: auto;
        margin: 0;
        width: auto;
        opacity: 1 !important;
        z-index: 2;
        overflow: visible;
        background: transparent;
    }

    #profile .orders-content:not(.orders-empty) #order_info.modal {
        overflow: visible;
    }

    #profile .orders-content:not(.orders-empty) #order_info .modal-overlay {
        display: block;
        width: 100%;
        height: auto;
        padding: 0;
        overflow: visible;
    }

    #profile .orders-content:not(.orders-empty) .order-details {
        width: 100%;
        min-width: 0;
    }

    #profile .orders-content:not(.orders-empty) .details-card {
        min-height: 560px;
        padding: 22px 24px;
        border-radius: 26px;
        border: 1px solid rgba(149, 124, 69, 0.2);
        background:
            radial-gradient(circle at top right, rgba(255, 198, 43, 0.14) 0%, transparent 42%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(247, 243, 236, 0.95) 100%);
        box-shadow: 0 22px 36px rgba(31, 24, 15, 0.1);
        gap: 18px;
    }

    #profile .orders-content:not(.orders-empty) .details-header {
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
    }

    #profile .orders-content:not(.orders-empty) .details-status {
        align-items: flex-start;
    }

    #profile .orders-content:not(.orders-empty) .status-text {
        font-size: clamp(20px, 2.1vw, 26px);
        font-weight: 700;
    }

    #profile .orders-content:not(.orders-empty) .delivery-tracking {
        padding: 14px 14px 12px;
        border-radius: 20px;
        border: 1px solid rgba(149, 124, 69, 0.18);
        background: rgba(248, 244, 236, 0.9);
    }

    #profile .orders-content:not(.orders-empty) .order-status-tracker {
        max-width: 460px;
    }

    #profile .orders-content:not(.orders-empty) .status-step {
        width: 54px;
        height: 54px;
    }

    #profile .orders-content:not(.orders-empty) .details-section {
        gap: 4px;
    }

    #profile .orders-content:not(.orders-empty) .section-label {
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    #profile .orders-content:not(.orders-empty) .section-value {
        font-size: 15px;
        font-weight: 600;
    }

    #profile .orders-content:not(.orders-empty) .order-item {
        padding: 9px 10px;
        border-radius: 12px;
    }

    #profile .orders-content:not(.orders-empty) .item-name {
        font-size: 14px;
    }

    #profile .orders-content:not(.orders-empty) .total-label,
    #profile .orders-content:not(.orders-empty) .total-value {
        font-size: clamp(22px, 2.2vw, 28px);
    }

    #profile .orders-content:not(.orders-empty) .order-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    #profile .orders-content:not(.orders-empty) .action-item {
        min-height: 98px;
        justify-content: center;
        border-radius: 18px;
        padding: 12px 10px;
    }

    #profile .orders-content:not(.orders-empty) .action-icon svg {
        width: 54px;
        height: 54px;
    }
}

@media (min-width: 769px) and (max-width: 1140px) {
    #profile .orders-content:not(.orders-empty) .history-wrapper {
        grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
        gap: 16px;
    }

    #profile .orders-content:not(.orders-empty) .details-card {
        padding: 18px;
    }

    #profile .orders-content:not(.orders-empty) .status-step {
        width: 48px;
        height: 48px;
    }

    #profile .orders-content:not(.orders-empty) .status-circle svg {
        transform: scale(0.82);
    }
}

/* ===== Orders Tracker Base ===== */
#profile .order-status-tracker {
    --tracker-step-size: 54px;
    --tracker-line-size: 8px;
    position: relative;
    width: 100%;
    max-width: 460px;
    height: var(--tracker-step-size);
    overflow: visible;
}

#profile .order-status-tracker .progress-container {
    position: absolute;
    top: calc((var(--tracker-step-size) - var(--tracker-line-size)) / 2);
    left: calc(var(--tracker-step-size) / 2);
    right: calc(var(--tracker-step-size) / 2);
    width: auto;
    height: var(--tracker-line-size);
}

#profile .order-status-tracker .progress-bar {
    width: 100%;
    height: var(--tracker-line-size);
    border-radius: 999px;
}

#profile .order-status-tracker .status-steps {
    position: absolute;
    inset: 0;
    width: 100%;
    top: 0;
    left: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#profile .order-status-tracker .status-step {
    width: var(--tracker-step-size);
    height: var(--tracker-step-size);
    flex: 0 0 var(--tracker-step-size);
}

#profile .order-status-tracker .status-circle {
    width: 100%;
    height: 100%;
}

@media (min-width: 769px) and (max-width: 1140px) {
    #profile .order-status-tracker {
        --tracker-step-size: 48px;
        --tracker-line-size: 7px;
    }
}

@media (max-width: 768px) {
    #profile .order-status-tracker {
        --tracker-step-size: 42px;
        --tracker-line-size: 6px;
        max-width: 100%;
    }
}

/* ===== Orders Action Buttons Alignment Fix ===== */
#profile .orders-content:not(.orders-empty) .order-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

#profile .orders-content:not(.orders-empty) .action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 102px;
    margin: 0;
}

#profile .orders-content:not(.orders-empty) .action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    min-height: 54px;
    margin: 0 auto;
    line-height: 0;
    position: relative;
    overflow: visible;
}

#profile .orders-content:not(.orders-empty) .action-icon svg {
    display: block;
    margin: 0 auto;
}

#profile .orders-content:not(.orders-empty) .action-label {
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 768px) {
    #profile #order_info .order-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 0;
        padding: 10px 0 2px;
    }

    #profile #order_info .action-item {
        min-height: 86px;
        border-radius: 14px;
        padding: 8px 6px;
        gap: 6px;
    }

    #profile #order_info .action-icon svg {
        width: 42px;
        height: 42px;
        display: block;
        margin: 0 auto;
    }

    #profile #order_info .action-icon {
        width: 100%;
        height: auto;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }

    #profile #order_info .action-label {
        min-height: 2.3em;
        font-size: 12px;
    }
}

/* ===== Orders Switch Animation ===== */
@keyframes orderDetailsSwitchIn {
    0% {
        opacity: 0.35;
        transform: translate3d(0, 10px, 0) scale(0.992);
        filter: saturate(0.96);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: saturate(1);
    }
}

#profile .order-details .details-card.order-switch-in {
    animation: orderDetailsSwitchIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Auth Refresh ===== */
#login.auth-page,
#registration.auth-page {
    padding: 22px 0 56px;
}

#login .auth-container,
#registration .auth-container {
    max-width: 1260px;
}

#login .auth-breadcrumbs,
#registration .auth-breadcrumbs {
    margin-bottom: 22px;
}

#login .auth-breadcrumbs .auth-breadcrumb-current,
#registration .auth-breadcrumbs .auth-breadcrumb-current {
    min-width: 136px;
    text-align: center;
}

#login .auth-shell,
#registration .auth-shell {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: clamp(16px, 2.4vw, 30px);
    align-items: stretch;
}

#login .auth-intro-panel,
#registration .auth-intro-panel {
    padding: clamp(20px, 2.1vw, 30px);
    border-radius: 28px;
    border: 1px solid rgba(255, 198, 43, 0.28);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 43, 0.22), transparent 54%),
        linear-gradient(170deg, rgba(255, 255, 255, 0.93) 0%, rgba(249, 245, 236, 0.92) 100%);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: authCardRise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#login .auth-intro-badge,
#registration .auth-intro-badge {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(173, 125, 29, 0.26);
    background: rgba(255, 198, 43, 0.2);
    color: #845c12;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

#login .auth-intro-title,
#registration .auth-intro-title {
    margin: 2px 0 0;
    color: var(--text-main);
    font-size: clamp(26px, 2.4vw, 34px);
    font-family: 'Montserrat-semi-bold', 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.1;
}

#login .auth-intro-text,
#registration .auth-intro-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

#login .auth-intro-points,
#registration .auth-intro-points {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#login .auth-intro-point,
#registration .auth-intro-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #3d352b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

#login .auth-intro-dot,
#registration .auth-intro-dot {
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-radius: 50%;
    background: #FFC62B;
    box-shadow: 0 0 0 4px rgba(255, 198, 43, 0.18);
    flex: 0 0 9px;
}

#login .auth-main-card,
#registration .auth-main-card {
    padding: clamp(18px, 2vw, 28px);
    border-radius: 28px;
    border: 1px solid var(--stroke-soft);
    background: var(--surface-main);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: authCardRise 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#login .auth-panel-head,
#registration .auth-panel-head {
    margin-bottom: 14px;
}

#login .auth-panel-title,
#registration .auth-panel-title {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(24px, 2vw, 30px);
    font-family: 'Montserrat-semi-bold', 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.15;
}

#login .auth-panel-subtitle,
#registration .auth-panel-subtitle {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

#login .auth-tabs,
#registration .auth-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border-radius: 16px;
    border: 1px solid rgba(149, 124, 69, 0.18);
    background: rgba(243, 241, 234, 0.85);
    width: fit-content;
}

#login .auth-tabs .tab-link,
#registration .auth-tabs .tab-link {
    min-width: 152px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

#login .auth-tabs .tab-link span,
#registration .auth-tabs .tab-link span {
    color: #655d50;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.2s ease;
}

#login .auth-tabs .tab-link.active,
#registration .auth-tabs .tab-link.active {
    background: #fff;
    border-color: rgba(255, 198, 43, 0.45);
    box-shadow: 0 10px 20px rgba(255, 198, 43, 0.18);
}

#login .auth-tabs .tab-link.active span,
#registration .auth-tabs .tab-link.active span {
    color: var(--text-main);
}

#login .auth-tabs .tab-link:not(.active):hover,
#registration .auth-tabs .tab-link:not(.active):hover {
    border-color: rgba(149, 124, 69, 0.2);
    background: rgba(255, 255, 255, 0.52);
    transform: translateY(-1px);
}

#login .auth-forms-wrap,
#registration .auth-forms-wrap {
    margin-top: 2px;
}

#login .auth-form,
#registration .auth-form {
    display: none;
    opacity: 0;
    transform: translateY(8px);
}

#login .auth-form.active,
#registration .auth-form.active {
    display: block;
    opacity: 1;
    transform: none;
    animation: authFormSlide 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

#login .form-grid,
#registration .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
    margin-bottom: 18px;
}

#login .form-column,
#registration .form-column {
    min-width: 0;
    gap: 12px;
}

#login .column-title,
#registration .column-title {
    margin: 0;
    color: #4a4033;
    font-size: 15px;
    font-weight: 700;
}

#login .form-fields,
#registration .form-fields {
    gap: 10px;
}

#login .form-field,
#registration .form-field {
    width: 100%;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: #f6f4ef;
    transition: border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

#login .form-field:focus-within,
#registration .form-field:focus-within {
    border-color: rgba(255, 198, 43, 0.5);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 198, 43, 0.12);
    transform: translateY(-1px);
}

#login .field-label,
#registration .field-label {
    margin-bottom: 5px;
    color: #8b8272;
    font-size: 12px;
    font-weight: 600;
}

#login .field-input,
#registration .field-input {
    font-size: 16px;
    font-weight: 600;
    color: #1f1d19;
    line-height: 1.25;
}

#login .field-input::placeholder,
#registration .field-input::placeholder {
    color: rgba(111, 102, 88, 0.55);
}

#login .password-match-indicator,
#registration .password-match-indicator {
    padding-left: 2px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
}

#login .checkbox-wrapper,
#registration .checkbox-wrapper {
    margin-top: 2px;
}

#login .checkbox-label,
#registration .checkbox-label {
    gap: 10px;
    align-items: flex-start;
}

#login .custom-checkbox,
#registration .custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(161, 132, 62, 0.28);
    background: rgba(255, 198, 43, 0.24);
}

#login .hidden-checkbox:checked + .custom-checkbox,
#registration .hidden-checkbox:checked + .custom-checkbox {
    background: #FFC62B;
    border-color: rgba(161, 132, 62, 0.55);
}

#login .hidden-checkbox:checked + .custom-checkbox::after,
#registration .hidden-checkbox:checked + .custom-checkbox::after {
    top: 4px;
    left: 3px;
    width: 12px;
    height: 9px;
}

#login .checkbox-text,
#registration .checkbox-text {
    font-size: 12px;
    line-height: 1.45;
    color: #4f473b;
}

#login .checkbox-text a,
#registration .checkbox-text a {
    color: #a86f00;
    text-decoration: underline;
}

#login .form-actions,
#registration .form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

#login .btn-restore,
#registration .btn-restore,
#login .btn-login,
#registration .btn-login,
#login .btn-register,
#registration .btn-register {
    min-width: 204px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

#login .btn-restore,
#registration .btn-restore {
    background: #f1eee7;
    color: #3e3426;
    border-color: rgba(149, 124, 69, 0.2);
}

#login .btn-restore:hover,
#registration .btn-restore:hover {
    background: #ece7dc;
    transform: translateY(-1px);
}

#login .btn-login,
#registration .btn-login,
#login .btn-register,
#registration .btn-register {
    background: linear-gradient(180deg, #FFD45F 0%, #FFC62B 100%);
    color: #2f240e;
    border-color: rgba(153, 113, 27, 0.28);
    box-shadow: 0 10px 22px rgba(255, 198, 43, 0.28);
}

#login .btn-login:hover,
#registration .btn-login:hover,
#login .btn-register:hover,
#registration .btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(255, 198, 43, 0.32);
}

#login .btn-register,
#registration .btn-register {
    min-width: 246px;
}

#send_password_dialog .restore-modal {
    width: min(94vw, 430px);
    max-width: 430px;
    border-radius: 24px;
    border: 1px solid rgba(255, 198, 43, 0.34);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 43, 0.16), transparent 45%),
        linear-gradient(180deg, #fffdf9 0%, #f8f4eb 100%);
    box-shadow: 0 30px 60px rgba(20, 16, 10, 0.22);
}

#send_password_dialog .restore-modal .modal-header {
    padding: 18px 22px 10px;
    border-bottom: none;
}

#send_password_dialog .restore-modal .modal-title {
    color: var(--text-main);
    font-size: 24px;
    font-weight: 700;
}

#send_password_dialog .restore-modal .modal-body {
    padding: 0 22px 6px;
}

#send_password_dialog .restore-modal .modal-body .form-field {
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(149, 124, 69, 0.18);
    background: rgba(255, 255, 255, 0.86);
}

#send_password_dialog .restore-modal .field-label {
    margin-bottom: 4px;
    color: #8b8272;
    font-size: 12px;
    font-weight: 600;
}

#send_password_dialog .restore-modal .field-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
}

#send_password_dialog .restore-modal .field-input::placeholder {
    color: rgba(111, 102, 88, 0.55);
}

#send_password_dialog .restore-modal .modal-footer {
    padding: 12px 22px 22px;
    border-top: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

#send_password_dialog .btn-restore-back,
#send_password_dialog .btn-restore-submit {
    min-height: 46px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

#send_password_dialog .btn-restore-back {
    min-width: 128px;
    border: none;
    background: #f1eee7;
    color: #3e3426;
}

#send_password_dialog .btn-restore-back:hover {
    background: #ece7dc;
    transform: translateY(-1px);
}

#send_password_dialog .btn-restore-submit {
    flex: 1 1 auto;
    width: auto;
    border: none;
    background: linear-gradient(180deg, #FFD45F 0%, #FFC62B 100%);
    color: #2f240e;
    box-shadow: 0 10px 20px rgba(255, 198, 43, 0.24);
}

#send_password_dialog .btn-restore-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(255, 198, 43, 0.3);
}

@keyframes authCardRise {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes authFormSlide {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 1080px) {
    #login .auth-shell,
    #registration .auth-shell {
        grid-template-columns: 1fr;
    }

    #login .auth-intro-panel,
    #registration .auth-intro-panel {
        border-radius: 24px;
    }
}

@media (max-width: 768px) {
    #login.auth-page,
    #registration.auth-page {
        padding: 14px 0 36px;
    }

    #login .auth-breadcrumbs,
    #registration .auth-breadcrumbs {
        margin-bottom: 14px;
        padding: 12px;
        border-radius: 16px;
    }

    #login .auth-breadcrumbs .breadcrumbs-text,
    #registration .auth-breadcrumbs .breadcrumbs-text {
        font-size: 16px;
        gap: 6px;
    }

    #login .auth-breadcrumbs .auth-breadcrumb-current,
    #registration .auth-breadcrumbs .auth-breadcrumb-current {
        min-width: auto;
        font-size: 16px;
        padding: 7px 10px;
    }

    #login .auth-main-card,
    #registration .auth-main-card {
        border-radius: 22px;
        padding: 14px;
    }

    #login .auth-tabs,
    #registration .auth-tabs {
        width: 100%;
        gap: 6px;
    }

    #login .auth-tabs .tab-link,
    #registration .auth-tabs .tab-link {
        min-width: 0;
        flex: 1 1 0;
        min-height: 42px;
        padding: 8px 12px;
    }

    #login .form-grid,
    #registration .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #login .form-actions,
    #registration .form-actions {
        flex-direction: column;
    }

    #login .btn-restore,
    #registration .btn-restore,
    #login .btn-login,
    #registration .btn-login,
    #login .btn-register,
    #registration .btn-register {
        width: 100%;
        min-width: 0;
    }

    #send_password_dialog .restore-modal {
        width: calc(100vw - 18px);
    }

    #send_password_dialog .restore-modal .modal-footer {
        flex-direction: column;
    }

    #send_password_dialog .btn-restore-back,
    #send_password_dialog .btn-restore-submit {
        width: 100%;
    }
}

/* ===== Auth Modal ===== */
#login_dialog.modal {
    z-index: 1065;
}

#login_dialog .auth-modal-dialog {
    width: min(1020px, calc(100% - 24px));
    margin: 3vh auto;
}

#login_dialog .auth-modal-content {
    border-radius: 28px;
    border: 1px solid var(--stroke-soft);
    background: var(--surface-main);
    box-shadow: 0 30px 72px rgba(31, 24, 15, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

#login_dialog .auth-modal-header {
    padding: 18px 24px 12px;
    border-bottom: 1px solid rgba(149, 124, 69, 0.15);
    position: relative;
}

#login_dialog .auth-modal-header .close {
    position: absolute;
    top: 14px;
    right: 16px;
    margin: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(149, 124, 69, 0.22);
    background: rgba(255, 255, 255, 0.9);
    opacity: 1;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#login_dialog .auth-modal-header .close::before,
#login_dialog .auth-modal-header .close::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 10px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #6f623d;
}

#login_dialog .auth-modal-header .close::before {
    transform: rotate(45deg);
}

#login_dialog .auth-modal-header .close::after {
    transform: rotate(-45deg);
}

#login_dialog .auth-modal-header .close:hover {
    transform: translateY(-1px);
    border-color: rgba(149, 124, 69, 0.34);
    box-shadow: 0 10px 20px rgba(31, 24, 15, 0.14);
}

#login_dialog .auth-modal-heading {
    padding-right: 48px;
}

#login_dialog .auth-modal-heading .modal-title {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(24px, 2vw, 30px);
    font-family: 'Montserrat-semi-bold', 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.1;
}

#login_dialog .auth-modal-subtitle {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
}

#login_dialog .auth-modal-body {
    padding: 14px 24px 24px;
}

#login_dialog .auth-modal-shell {
    display: grid;
    grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
    gap: 16px;
}

#login_dialog .auth-modal-side {
    border-radius: 22px;
    border: 1px solid var(--stroke-soft);
    background:
        radial-gradient(circle at top right, rgba(255, 198, 43, 0.14), transparent 52%),
        linear-gradient(170deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 241, 234, 0.88) 100%);
    box-shadow: var(--shadow-card);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#login_dialog .auth-modal-badge {
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(149, 124, 69, 0.24);
    background: rgba(255, 198, 43, 0.2);
    color: #74531a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
}

#login_dialog .auth-modal-side-title {
    color: var(--text-main);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

#login_dialog .auth-modal-side-text {
    color: #6f6659;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
}

#login_dialog .auth-modal-side-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#login_dialog .auth-modal-side-point {
    position: relative;
    color: #40372b;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    padding-left: 14px;
}

#login_dialog .auth-modal-side-point::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FFC62B;
    box-shadow: 0 0 0 3px rgba(255, 198, 43, 0.18);
}

#login_dialog .auth-modal-main {
    border-radius: 22px;
    border: 1px solid var(--stroke-soft);
    background: var(--surface-main);
    box-shadow: var(--shadow-soft);
    padding: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#login_dialog .auth-modal-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(243, 241, 234, 0.9);
    border: 1px solid rgba(149, 124, 69, 0.18);
}

#login_dialog .auth-modal-tab {
    flex: 1 1 0;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #5f5443;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

#login_dialog .auth-modal-tab.active {
    background: linear-gradient(135deg, rgba(255, 198, 43, 0.22) 0%, rgba(255, 198, 43, 0.1) 100%);
    color: var(--text-main);
    border-color: rgba(255, 198, 43, 0.5);
    box-shadow: 0 8px 18px rgba(255, 198, 43, 0.2);
}

#login_dialog .auth-modal-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(149, 124, 69, 0.2);
    transform: translateY(-1px);
}

#login_dialog .auth-modal-form {
    display: none;
}

#login_dialog .auth-modal-form.active {
    display: block;
    animation: authFormSlide 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

#login_dialog .auth-modal-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
    gap: 14px;
}

#login_dialog .auth-modal-form .form-column {
    min-width: 0;
}

#login_dialog .auth-modal-form .column-title {
    font-size: 14px;
    color: #4a4033;
    font-weight: 700;
}

#login_dialog .auth-modal-form .form-field {
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(149, 124, 69, 0.2);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        transform 0.24s ease,
        background-color 0.24s ease;
}

#login_dialog .auth-modal-form .form-field:focus-within {
    border-color: rgba(255, 198, 43, 0.84);
    box-shadow: 0 0 0 3px rgba(255, 198, 43, 0.24), 0 14px 26px rgba(30, 24, 14, 0.08);
    background: #ffffff;
    transform: translateY(-1px);
}

#login_dialog .auth-modal-form .field-label {
    margin-bottom: 5px;
    color: rgba(63, 54, 40, 0.62);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

#login_dialog .auth-modal-form .field-input {
    font-size: 15px;
    color: #1f1d19;
    font-weight: 600;
}

#login_dialog .auth-modal-form .field-input::placeholder {
    color: rgba(111, 102, 88, 0.55);
}

#login_dialog .auth-modal-form .auth-email-verification {
    margin-top: -2px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#login_dialog .auth-modal-form .btn-send-code {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 198, 43, 0.18);
    color: #5f4511;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

#login_dialog .auth-modal-form .btn-send-code:hover {
    background: rgba(255, 198, 43, 0.3);
    transform: translateY(-1px);
}

#login_dialog .auth-modal-form .btn-send-code:disabled {
    opacity: 0.62;
    transform: none;
}

#login_dialog .auth-modal-form .email-code-hint {
    flex: 1 1 240px;
    min-height: 18px;
    color: #7a6c57;
    font-size: 12px;
    line-height: 1.4;
}

#login_dialog .auth-modal-form .email-code-hint.is-success {
    color: #2f7d36;
}

#login_dialog .auth-modal-form .email-code-hint.is-error {
    color: #b04444;
}

#login_dialog .auth-modal-form .email-code-hint.is-info {
    color: #5d5f7b;
}

/* Убираем визуальный эффект автозаполнения в модалке входа/регистрации */
#login_dialog .auth-modal-form .field-input:-webkit-autofill,
#login_dialog .auth-modal-form .field-input:-webkit-autofill:hover,
#login_dialog .auth-modal-form .field-input:-webkit-autofill:focus,
#login_dialog .auth-modal-form .field-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    background-color: transparent !important;
    -webkit-text-fill-color: #1f1d19 !important;
    caret-color: #1f1d19 !important;
}

#login_dialog .auth-modal-form .checkbox-label {
    gap: 9px;
    align-items: flex-start;
}

#login_dialog .auth-modal-form .custom-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(161, 132, 62, 0.28);
    background: rgba(255, 198, 43, 0.24);
}

#login_dialog .auth-modal-form .hidden-checkbox:checked + .custom-checkbox {
    background: #FFC62B;
    border-color: rgba(161, 132, 62, 0.55);
}

#login_dialog .auth-modal-form .hidden-checkbox:checked + .custom-checkbox::after {
    width: 12px;
    height: 9px;
    left: 3px;
    top: 4px;
}

#login_dialog .auth-modal-form .checkbox-text {
    font-size: 12px;
    line-height: 1.45;
    color: #4f473b;
}

#login_dialog .auth-modal-form .checkbox-text a {
    color: #a86f00;
    text-decoration: underline;
}

#login_dialog .auth-modal-form .form-actions {
    margin-top: 10px;
    gap: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#login_dialog .auth-modal-form .btn-restore,
#login_dialog .auth-modal-form .btn-login,
#login_dialog .auth-modal-form .btn-register {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    min-width: 0;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

#login_dialog .auth-modal-form .btn-restore {
    background: #f1eee7;
    color: #3e3426;
    border-color: rgba(149, 124, 69, 0.2);
}

#login_dialog .auth-modal-form .btn-restore:hover {
    background: #ece7dc;
    transform: translateY(-1px);
}

#login_dialog .auth-modal-form .btn-login,
#login_dialog .auth-modal-form .btn-register {
    background: linear-gradient(180deg, #FFD45F 0%, #FFC62B 100%);
    color: #2f240e;
    border-color: rgba(153, 113, 27, 0.28);
    box-shadow: 0 10px 22px rgba(255, 198, 43, 0.28);
}

#login_dialog .auth-modal-form .btn-login:hover,
#login_dialog .auth-modal-form .btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(255, 198, 43, 0.32);
}

#login_dialog .auth-modal-form .btn-register {
    width: 100%;
}

@media (max-width: 900px) {
    #login_dialog .auth-modal-dialog {
        margin-top: 2vh;
    }

    #login_dialog .auth-modal-shell {
        grid-template-columns: 1fr;
    }

    #login_dialog .auth-modal-side {
        display: none;
    }
}

@media (max-width: 640px) {
    #login_dialog .auth-modal-dialog {
        width: calc(100% - 12px);
        margin: 10px auto;
    }

    #login_dialog .auth-modal-content {
        border-radius: 22px;
    }

    #login_dialog .auth-modal-heading .modal-title {
        font-size: 24px;
    }

    #login_dialog .auth-modal-body {
        padding: 0 12px 12px;
    }

    #login_dialog .auth-modal-main {
        padding: 10px;
    }

    #login_dialog .auth-modal-form .form-grid {
        grid-template-columns: 1fr;
    }

    #login_dialog .auth-modal-form .form-actions {
        flex-direction: column;
    }

    #login_dialog .auth-modal-form .auth-email-verification {
        align-items: stretch;
    }

    #login_dialog .auth-modal-form .btn-send-code {
        width: 100%;
    }

    #login_dialog .auth-modal-form .email-code-hint {
        flex-basis: 100%;
    }

    #login_dialog .auth-modal-form .btn-restore,
    #login_dialog .auth-modal-form .btn-login {
        width: 100%;
    }
}

/* ===== Header Search Redesign ===== */
.header-top-row {
    overflow: visible;
}

.mobile-header {
    position: relative;
    overflow: visible;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    margin-top: 0;
    z-index: 1205;
    justify-content: initial;
}

.search-dropdown.active {
    display: block;
    animation: searchDropdownReveal 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-dropdown .search-dropdown-container {
    padding-bottom: 0;
    background: transparent;
    border-radius: 20px;
}

.search-dropdown .search-dropdown-content {
    width: 100%;
    max-height: min(66vh, 540px);
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(191, 164, 98, 0.32);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 54px rgba(32, 24, 12, 0.18);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    align-content: start;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.search-dropdown .search-footer {
    display: none !important;
}

.search-dropdown .search-item {
    width: auto;
    min-height: 102px;
    border-radius: 16px;
    border: 1px solid rgba(176, 146, 79, 0.22);
    background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
    box-shadow: 0 6px 18px rgba(31, 24, 15, 0.08);
    gap: 10px;
}

.search-dropdown .search-item:hover,
.search-dropdown .search-item.selected {
    border-color: rgba(255, 198, 43, 0.8);
    box-shadow: 0 16px 32px rgba(31, 24, 15, 0.14);
    transform: translateY(-2px);
}

.search-dropdown .search-item-image {
    width: 96px;
    min-width: 96px;
    height: 96px;
    margin: 8px 0 8px 8px;
    border-radius: 12px;
    object-fit: cover;
}

.search-dropdown .search-item-info {
    padding: 10px 10px 10px 0;
}

.search-dropdown .search-item-top {
    gap: 5px;
}

.search-dropdown .search-item-name {
    font-size: 14px;
    line-height: 1.25;
}

.search-dropdown .search-item-category {
    font-size: 11px;
}

.search-dropdown .search-item-flags {
    gap: 6px;
    margin-top: 2px;
}

.search-dropdown .search-item-flag {
    min-height: 20px;
    padding: 0 8px;
    font-size: 10px;
}

.search-dropdown .search-item-price {
    min-height: 28px;
    padding: 5px 12px;
    font-size: 13px;
}

.search-dropdown .search-item-price-old {
    font-size: 12px;
}

.search-dropdown .search-no-results {
    min-height: 140px;
    border-radius: 18px;
    border: 1px dashed rgba(176, 146, 79, 0.32);
    background: rgba(253, 249, 239, 0.72);
}

.search-dropdown .search-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 72px;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(176, 146, 79, 0.24);
    background: rgba(255, 255, 255, 0.94);
    color: #4d3b24;
    font-size: 14px;
    font-weight: 600;
}

.search-dropdown .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(147, 119, 58, 0.22);
    border-top-color: #93773a;
    border-radius: 50%;
    animation: searchSpin 0.76s linear infinite;
}

.search-dropdown .search-view-all {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: none;
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, #fff7e7 0%, #fff1d3 100%);
    color: #4d3b24;
    font-weight: 700;
    cursor: pointer;
}

.search-dropdown .search-view-all:hover {
    background: linear-gradient(180deg, #ffeebd 0%, #ffe6a6 100%);
}

.search-dropdown .search-view-all span {
    pointer-events: none;
}

.search-dropdown-mobile {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
}

.search-mobile-close {
    display: none;
}

.mobile-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-search-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: 0.76;
}

.mobile-search-icon::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 1px;
    width: 11px;
    height: 11px;
    border: 2px solid #6e6759;
    border-radius: 50%;
}

.mobile-search-icon::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: #6e6759;
    transform: rotate(45deg);
    transform-origin: center;
}

.mobile-search .search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #272015;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
}

.mobile-search .search-input::placeholder {
    color: #8c8579;
    font-weight: 500;
}

@media (max-width: 768px) {
    .search-dropdown-mobile {
        position: absolute;
    }

    .search-dropdown-mobile.has-mobile-close .search-dropdown-content {
        padding-top: 52px;
    }

    .search-dropdown-mobile .search-mobile-close {
        display: inline-flex;
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 3;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(32, 24, 12, 0.9);
        color: #fff;
        font-size: 23px;
        line-height: 1;
        font-family: 'Montserrat', Arial, Helvetica, sans-serif;
        font-weight: 500;
        cursor: pointer;
        box-shadow: 0 8px 18px rgba(16, 12, 8, 0.24);
    }

    .search-dropdown-mobile .search-mobile-close:active {
        transform: translateY(1px);
    }

    .search-dropdown .search-dropdown-content {
        max-height: min(58vh, 430px);
        padding: 10px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .search-dropdown .search-item {
        min-height: 94px;
    }

    .search-dropdown .search-item-image {
        width: 88px;
        min-width: 88px;
        height: 88px;
        margin: 6px 0 6px 6px;
    }

    .search-dropdown .search-item-info {
        padding: 8px 8px 8px 0;
    }

    .search-dropdown .search-item-name {
        font-size: 13px;
    }

    .search-dropdown .search-item-category {
        font-size: 10px;
    }

    .search-dropdown .search-item-price {
        font-size: 12px;
    }

    body {
        padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    }

    #main-content {
        width: 100%;
        padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    }
}

header.is-mobile-minimized .search-dropdown-mobile {
    display: none !important;
}

@keyframes searchSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes searchDropdownReveal {
    0% {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* ===== templates/delivery.html ===== */
.n-delivery-page {
    padding-bottom: 28px;
}

.n-delivery-page .n-delivery-shell {
    margin-top: 14px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.n-delivery-page .n-delivery-hero {
    border-radius: 24px;
    border: 1px solid rgba(255, 198, 43, 0.24);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 198, 43, 0.2) 0%, rgba(255, 198, 43, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 242, 227, 0.92) 100%);
    box-shadow: 0 18px 38px rgba(33, 25, 11, 0.1);
    padding: 18px;
}

.n-delivery-page .n-delivery-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 198, 43, 0.16);
    color: #7a5b1b;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.n-delivery-page .n-delivery-hero h1 {
    margin: 10px 0 0;
    color: #1e1912;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
    font-weight: 800;
}

.n-delivery-page .n-delivery-hero p {
    margin: 10px 0 0;
    color: #6b604f;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.n-delivery-page .n-delivery-slider-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.n-delivery-page .n-delivery-ribbon {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(163, 128, 48, 0.36) transparent;
}

.n-delivery-page .n-delivery-ribbon::-webkit-scrollbar {
    height: 6px;
}

.n-delivery-page .n-delivery-ribbon::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(163, 128, 48, 0.36);
}

.n-delivery-page .n-delivery-ribbon-btn {
    border: 1px solid rgba(170, 136, 57, 0.22);
    background: rgba(255, 255, 255, 0.95);
    color: #645740;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    border-radius: 999px;
    white-space: nowrap;
    padding: 10px 14px;
    transition: none;
    -webkit-tap-highlight-color: transparent;
}

.n-delivery-page .n-delivery-ribbon-btn.is-active {
    background: linear-gradient(180deg, #ffd85e 0%, #ffc62b 100%);
    border-color: rgba(196, 134, 16, 0.44);
    color: #1f1f1f;
}

.n-delivery-page .n-delivery-slider-frame {
    position: relative;
    padding: 0;
}

.n-delivery-page .n-delivery-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.n-delivery-page .n-delivery-slider::-webkit-scrollbar {
    display: none;
}

.n-delivery-page .n-delivery-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 20px;
    border: 1px solid rgba(178, 145, 67, 0.22);
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 256px;
}

.n-delivery-page .n-delivery-slide-primary {
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 198, 43, 0.2) 0%, rgba(255, 198, 43, 0) 62%),
        linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.n-delivery-page .n-delivery-slide h2 {
    margin: 0;
    color: #2e2418;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 800;
}

.n-delivery-page .n-delivery-slide p {
    margin: 0;
    color: #5f5240;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.n-delivery-page .n-delivery-slide strong {
    color: #2c2216;
    font-weight: 800;
}

.n-delivery-page .n-delivery-list {
    margin: 0;
    padding: 0 0 0 1px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.n-delivery-page .n-delivery-list li {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: #5f5240;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.n-delivery-page .n-delivery-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FFC62B;
    box-shadow: 0 0 0 3px rgba(255, 198, 43, 0.2);
}

.n-delivery-page .n-delivery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

.n-delivery-page .n-delivery-dot {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 50%;
    background: rgba(166, 139, 87, 0.32);
    padding: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.n-delivery-page .n-delivery-dot.is-active {
    background: #FFC62B;
    transform: scale(1.14);
}

.n-delivery-page .n-delivery-map-card {
    border-radius: 22px;
    border: 1px solid rgba(178, 145, 67, 0.22);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(33, 25, 11, 0.08);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.n-delivery-page .n-delivery-map-head h2 {
    margin: 0;
    color: #2e2418;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 800;
}

.n-delivery-page .n-delivery-map-head p {
    margin: 8px 0 0;
    color: #645847;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.n-delivery-page .n-delivery-map-canvas {
    width: 100%;
    height: 540px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(174, 145, 82, 0.3);
    background: linear-gradient(180deg, #f7f5ef 0%, #f1eee5 100%);
}

.n-delivery-page .n-delivery-map-fallback {
    display: none;
    border-radius: 12px;
    border: 1px solid rgba(205, 138, 38, 0.28);
    background: rgba(255, 245, 221, 0.86);
    color: #7b5a1f;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
    padding: 10px 12px;
}

.n-delivery-page .n-delivery-map-fallback.is-visible {
    display: block;
}

@media (max-width: 640px) {
    .n-delivery-page .n-delivery-shell {
        margin-top: 10px;
        margin-bottom: 18px;
        gap: 12px;
    }

    .n-delivery-page .n-delivery-hero,
    .n-delivery-page .n-delivery-slide {
        border-radius: 16px;
        padding: 12px;
    }

    .n-delivery-page .n-delivery-hero h1 {
        font-size: clamp(22px, 7vw, 30px);
    }

    .n-delivery-page .n-delivery-slide h2 {
        font-size: 20px;
    }

    .n-delivery-page .n-delivery-slide p,
    .n-delivery-page .n-delivery-list li {
        font-size: 14px;
        line-height: 1.45;
    }

    .n-delivery-page .n-delivery-ribbon-btn {
        font-size: 12px;
        padding: 9px 12px;
    }

    .n-delivery-page .n-delivery-slide {
        min-height: 230px;
    }

    .n-delivery-page .n-delivery-map-card {
        border-radius: 16px;
        padding: 12px;
    }

    .n-delivery-page .n-delivery-map-head h2 {
        font-size: 19px;
    }

    .n-delivery-page .n-delivery-map-head p {
        font-size: 13px;
    }

    .n-delivery-page .n-delivery-map-canvas {
        height: 380px;
        border-radius: 12px;
    }
}

/* ===== templates/vacancies.html ===== */
.n-vacancies-page {
    padding-bottom: 28px;
}

.n-vacancies-page .n-vacancies-shell {
    margin-top: 14px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.n-vacancies-page .n-vacancies-hero {
    border-radius: 24px;
    border: 1px solid rgba(255, 198, 43, 0.24);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 198, 43, 0.2) 0%, rgba(255, 198, 43, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 242, 227, 0.92) 100%);
    box-shadow: 0 18px 38px rgba(33, 25, 11, 0.1);
    padding: 18px;
}

.n-vacancies-page .n-vacancies-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 198, 43, 0.16);
    color: #7a5b1b;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.n-vacancies-page .n-vacancies-hero h1 {
    margin: 10px 0 0;
    color: #1e1912;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
    font-weight: 800;
}

.n-vacancies-page .n-vacancies-hero p {
    margin: 10px 0 0;
    color: #6b604f;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.n-vacancies-page .n-vacancies-main-image {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(178, 145, 67, 0.2);
    background: #fff;
    box-shadow: 0 14px 32px rgba(31, 24, 15, 0.1);
}

.n-vacancies-page .n-vacancies-main-image img {
    display: block;
    width: 100%;
    height: auto;
}

.n-vacancies-page .n-vacancies-contacts {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 14px;
}

.n-vacancies-page .n-vacancies-phone-card {
    border-radius: 20px;
    border: 1px solid rgba(178, 145, 67, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(31, 24, 15, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.n-vacancies-page .n-vacancies-phone-label {
    color: #6e5f47;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.n-vacancies-page .n-vacancies-phone-link {
    color: #2a2116;
    font-size: clamp(24px, 2.5vw, 30px);
    line-height: 1.1;
    font-weight: 800;
    text-decoration: none;
}

.n-vacancies-page .n-vacancies-phone-link:hover {
    color: #2a2116;
    text-decoration: none;
}

.n-vacancies-page .n-vacancies-phone-time {
    color: #6b604f;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

.n-vacancies-page .n-vacancies-messenger-card {
    border-radius: 20px;
    border: 1px solid rgba(178, 145, 67, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(31, 24, 15, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.n-vacancies-page .n-vacancies-messenger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(180deg, #ffe083 0%, #FFC62B 100%);
    color: #2e2414;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(255, 198, 43, 0.28);
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.n-vacancies-page .n-vacancies-messenger-link:hover {
    color: #2e2414;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(255, 198, 43, 0.32);
    filter: saturate(1.02);
}

.n-vacancies-page .n-vacancies-policy {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(31, 24, 15, 0.06);
    padding: 12px 16px;
}

.n-vacancies-page .n-vacancies-policy p {
    margin: 0;
    color: #5f5240;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.n-vacancies-page .n-vacancies-policy a {
    display: inline-block;
    margin-left: 6px;
    color: #d84a1e;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
}

.n-vacancies-page .n-vacancies-policy a:hover {
    color: #bf3f17;
    text-decoration: none;
}

@media (max-width: 980px) {
    .n-vacancies-page .n-vacancies-contacts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .n-vacancies-page .n-vacancies-shell {
        margin-top: 10px;
        margin-bottom: 18px;
        gap: 12px;
    }

    .n-vacancies-page .n-vacancies-hero,
    .n-vacancies-page .n-vacancies-main-image,
    .n-vacancies-page .n-vacancies-phone-card,
    .n-vacancies-page .n-vacancies-messenger-card {
        border-radius: 16px;
    }

    .n-vacancies-page .n-vacancies-hero,
    .n-vacancies-page .n-vacancies-phone-card,
    .n-vacancies-page .n-vacancies-messenger-card,
    .n-vacancies-page .n-vacancies-policy {
        padding: 12px;
    }

    .n-vacancies-page .n-vacancies-hero h1 {
        font-size: clamp(22px, 7vw, 30px);
    }

    .n-vacancies-page .n-vacancies-hero p,
    .n-vacancies-page .n-vacancies-policy p {
        font-size: 14px;
        line-height: 1.45;
    }

    .n-vacancies-page .n-vacancies-messenger-link {
        width: 100%;
    }
}

/* ===== templates/terms_of_payment.html ===== */
.n-payment-page {
    padding-bottom: 28px;
}

.n-payment-page .n-payment-shell {
    margin-top: 14px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.n-payment-page .n-payment-hero {
    border-radius: 24px;
    border: 1px solid rgba(255, 198, 43, 0.24);
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 198, 43, 0.2) 0%, rgba(255, 198, 43, 0) 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 242, 227, 0.92) 100%);
    box-shadow: 0 18px 38px rgba(33, 25, 11, 0.1);
    padding: 18px;
}

.n-payment-page .n-payment-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 198, 43, 0.16);
    color: #7a5b1b;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.n-payment-page .n-payment-hero h1 {
    margin: 10px 0 0;
    color: #1e1912;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.12;
    font-weight: 800;
}

.n-payment-page .n-payment-hero p {
    margin: 10px 0 0;
    color: #6b604f;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.n-payment-page .n-payment-grid {
    display: block;
}

.n-payment-page .n-payment-card {
    border-radius: 20px;
    border: 1px solid rgba(178, 145, 67, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(31, 24, 15, 0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.n-payment-page .n-payment-card-main {
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255, 198, 43, 0.18) 0%, rgba(255, 198, 43, 0) 62%),
        linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.n-payment-page .n-payment-card-secure {
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(121, 191, 116, 0.12) 0%, rgba(121, 191, 116, 0) 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(249, 252, 247, 0.94) 100%);
}

.n-payment-page .n-payment-card h2 {
    margin: 0;
    color: #2e2418;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 800;
}

.n-payment-page .n-payment-card p {
    margin: 0;
    color: #5f5240;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 500;
}

.n-payment-page .n-payment-card a {
    color: #7e5209;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(126, 82, 9, 0.32);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.n-payment-page .n-payment-card a:hover {
    color: #a46508;
    border-color: rgba(164, 101, 8, 0.5);
    text-decoration: none;
}

.n-payment-page .n-payment-subtitle {
    margin-top: 6px !important;
}

.n-payment-page .n-payment-card-wide {
    grid-column: 1 / -1;
}

.n-payment-page .n-payment-steps {
    counter-reset: payment-steps;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.n-payment-page .n-payment-steps li {
    position: relative;
    margin: 0;
    padding-left: 38px;
    color: #5f5240;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.n-payment-page .n-payment-steps li::before {
    counter-increment: payment-steps;
    content: counter(payment-steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffd95f 0%, #FFC62B 100%);
    color: #2f2411;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(255, 198, 43, 0.26);
}

.n-payment-page .n-payment-list {
    margin: 0;
    padding: 0 0 0 1px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.n-payment-page .n-payment-list li {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: #5f5240;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.n-payment-page .n-payment-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #FFC62B;
    box-shadow: 0 0 0 3px rgba(255, 198, 43, 0.2);
}

@media (max-width: 640px) {
    .n-payment-page .n-payment-shell {
        margin-top: 10px;
        margin-bottom: 18px;
        gap: 12px;
    }

    .n-payment-page .n-payment-hero,
    .n-payment-page .n-payment-card {
        border-radius: 16px;
        padding: 12px;
    }

    .n-payment-page .n-payment-hero h1 {
        font-size: clamp(22px, 7vw, 30px);
    }

    .n-payment-page .n-payment-hero p,
    .n-payment-page .n-payment-card p,
    .n-payment-page .n-payment-steps li,
    .n-payment-page .n-payment-list li {
        font-size: 14px;
        line-height: 1.45;
    }

    .n-payment-page .n-payment-card h2 {
        font-size: 20px;
    }
}

/* ===== Mobile Header: logo / search / profile ===== */
@media (max-width: 768px) {
    .mobile-header {
        padding: 12px;
    }

    .mobile-top {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        min-height: 48px;
        padding: 0;
    }

    .mobile-logo {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
    }

    .mobile-logo img {
        display: block;
        height: 34px;
        width: auto;
    }

    .mobile-search.mobile-search-inline {
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
        margin: 0;
        padding: 0 12px;
        border-radius: 14px;
        border: 1px solid rgba(177, 165, 134, 0.22);
        background: var(--surface-pill);
    }

    .mobile-search.mobile-search-inline .search-input {
        font-size: 13px;
    }

    .mobile-top-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .mobile-top-profile {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(175, 138, 58, 0.28);
        background: linear-gradient(180deg, #fffdfa 0%, #f9f6ed 100%);
        box-shadow: 0 10px 20px rgba(31, 24, 15, 0.12);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #2b2112;
        text-decoration: none;
        transition: transform 0.24s ease, box-shadow 0.24s ease;
    }

    .mobile-top-profile:hover,
    .mobile-top-profile:active,
    .mobile-top-profile:focus {
        color: #2b2112;
        text-decoration: none;
    }

    .mobile-top-profile:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 24px rgba(31, 24, 15, 0.16);
    }

    .mobile-top-profile img {
        width: 18px;
        height: 18px;
        display: block;
    }

    .search-dropdown-mobile {
        top: calc(100% + 6px);
    }

    body,
    body.promo-bar-collapsed {
        padding-top: 148px !important;
    }

    header.is-mobile-minimized .mobile-search.mobile-search-inline {
        opacity: 1;
        transform: none;
        height: 44px;
        margin: 0;
        padding: 0 12px;
        border-width: 1px;
        pointer-events: auto;
    }

    header.is-mobile-minimized .search-dropdown-mobile.active {
        display: block !important;
    }
}

@media (max-width: 420px) {
    .mobile-logo img {
        height: 30px;
    }

    .mobile-search.mobile-search-inline {
        height: 42px;
        padding: 0 10px;
    }

    .mobile-top-profile {
        width: 42px;
        height: 42px;
    }

    header.is-mobile-minimized .mobile-search.mobile-search-inline {
        height: 42px;
        padding: 0 10px;
    }
}

/* ===== Profile Menu Compact (Mobile) ===== */
@media (max-width: 768px) {
    #profile .profile-wrapper {
        gap: 10px;
        min-width: 0;
        max-width: 100%;
    }

    #profile .profile-menu {
        display: flex;
        flex-wrap: nowrap;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 2px 2px 8px;
        gap: 8px;
        border-radius: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(149, 124, 69, 0.42) transparent;
    }

    #profile .profile-menu::-webkit-scrollbar {
        height: 4px;
    }

    #profile .profile-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    #profile .profile-menu::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(149, 124, 69, 0.42);
    }

    #profile .menu-item {
        box-sizing: border-box;
        flex: 0 0 auto;
        min-width: 118px;
        min-height: 40px;
        padding: 8px 12px;
        border-radius: 12px;
        border: 1px solid rgba(149, 124, 69, 0.22);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 4px 12px rgba(30, 24, 14, 0.06);
        text-align: center;
        justify-content: center;
        scroll-snap-align: start;
    }

    #profile .menu-item:first-child {
        margin-left: 2px;
    }

    #profile .menu-item:last-child {
        margin-right: 2px;
    }

    #profile .menu-item.active {
        border-color: rgba(255, 198, 43, 0.66);
        background: linear-gradient(135deg, rgba(255, 198, 43, 0.24) 0%, rgba(255, 255, 255, 0.98) 100%);
        box-shadow: 0 8px 18px rgba(255, 198, 43, 0.2);
    }

    #profile .menu-item span {
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
    }

    #profile .menu-item.logout {
        margin-top: 0;
        min-width: 134px;
    }

    #profile .menu-item.logout span {
        font-size: 12px;
    }
}

/* ===== Orders History Consolidated ===== */
#profile .order-modal-close {
    display: none;
}

#profile #order_info .order-details,
body > #order_info.modal.orders-modal-mobile .order-details {
    --order-status-color: #FFC62B;
}

#profile .orders-content:not(.orders-empty) #order_info {
    top: 126px;
}

#profile #order_info .details-card,
body > #order_info.modal.orders-modal-mobile .details-card {
    height: auto;
    min-height: 0;
    border-radius: 22px;
    border: 1px solid rgba(54, 44, 30, 0.1);
    border-top: 4px solid var(--order-status-color);
    background: #fffdfa;
    box-shadow: 0 22px 42px rgba(24, 18, 10, 0.12);
    gap: 14px;
}

#profile #order_info .details-header,
body > #order_info.modal.orders-modal-mobile .details-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(149, 124, 69, 0.14);
}

#profile #order_info .details-number,
body > #order_info.modal.orders-modal-mobile .details-number {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

#profile #order_info .details-label,
body > #order_info.modal.orders-modal-mobile .details-label {
    color: rgba(63, 54, 40, 0.55);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#profile #order_info .details-value,
body > #order_info.modal.orders-modal-mobile .details-value {
    color: #211a12;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

#profile #order_info .details-value::before,
body > #order_info.modal.orders-modal-mobile .details-value::before {
    content: "№ ";
    color: rgba(33, 26, 18, 0.58);
    font-size: 0.62em;
    font-weight: 800;
}

#profile #order_info .details-date,
body > #order_info.modal.orders-modal-mobile .details-date {
    justify-self: end;
    max-width: 100%;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(245, 241, 233, 0.95);
    color: #6f604b;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

#profile #order_info .details-status,
body > #order_info.modal.orders-modal-mobile .details-status {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(149, 124, 69, 0.14);
    background: #ffffff;
    box-shadow: inset 4px 0 0 var(--order-status-color), 0 10px 22px rgba(28, 21, 12, 0.06);
}

#profile #order_info .status-label,
body > #order_info.modal.orders-modal-mobile .status-label {
    margin: 0;
    color: rgba(63, 54, 40, 0.56);
    font-size: 11px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#profile #order_info .status-text,
body > #order_info.modal.orders-modal-mobile .status-text {
    max-width: 62%;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(248, 244, 236, 0.92);
    font-size: 15px;
    line-height: 1.15;
    font-weight: 900;
    text-align: right;
}

#profile #order_info .delivery-tracking,
body > #order_info.modal.orders-modal-mobile .delivery-tracking {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
}

#profile #order_info .order-status-tracker,
body > #order_info.modal.orders-modal-mobile .order-status-tracker {
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: calc(var(--tracker-step-size) + 28px);
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(149, 124, 69, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f8f4ec 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

#profile #order_info .order-status-tracker .progress-container,
body > #order_info.modal.orders-modal-mobile .order-status-tracker .progress-container {
    top: calc(14px + (var(--tracker-step-size) - var(--tracker-line-size)) / 2);
    left: calc(14px + var(--tracker-step-size) / 2);
    right: calc(14px + var(--tracker-step-size) / 2);
}

#profile #order_info .order-status-tracker .status-steps,
body > #order_info.modal.orders-modal-mobile .order-status-tracker .status-steps {
    inset: 14px;
    width: auto;
}

#profile #order_info .status-circle,
body > #order_info.modal.orders-modal-mobile .status-circle {
    box-shadow: 0 8px 16px rgba(31, 24, 15, 0.1);
}

#profile #order_info .details-section,
body > #order_info.modal.orders-modal-mobile .details-section {
    min-width: 0;
    padding: 12px;
    border-radius: 15px;
    border: 1px solid rgba(149, 124, 69, 0.13);
    background: #ffffff;
    gap: 6px;
}

#profile #order_info .details-section-items,
body > #order_info.modal.orders-modal-mobile .details-section-items,
#profile #order_info .details-divider,
body > #order_info.modal.orders-modal-mobile .details-divider,
#profile #order_info .details-total,
body > #order_info.modal.orders-modal-mobile .details-total {
    grid-column: 1 / -1;
}

#profile #order_info .section-label,
body > #order_info.modal.orders-modal-mobile .section-label {
    color: rgba(63, 54, 40, 0.54);
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#profile #order_info .section-value,
body > #order_info.modal.orders-modal-mobile .section-value {
    color: #211a12;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

#profile #order_info .order-items-list,
body > #order_info.modal.orders-modal-mobile .order-items-list {
    gap: 8px;
}

#profile #order_info .order-item,
body > #order_info.modal.orders-modal-mobile .order-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 13px;
    border: 1px solid rgba(149, 124, 69, 0.11);
    background: rgba(248, 244, 236, 0.7);
}

#profile #order_info .item-thumb,
body > #order_info.modal.orders-modal-mobile .item-thumb {
    width: 58px;
    height: 44px;
    border-radius: 10px;
}

#profile #order_info .item-name,
body > #order_info.modal.orders-modal-mobile .item-name {
    color: #211a12;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

#profile #order_info .item-quantity,
#profile #order_info .item-unit,
body > #order_info.modal.orders-modal-mobile .item-quantity,
body > #order_info.modal.orders-modal-mobile .item-unit {
    color: #786c5a;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
}

#profile #order_info .item-total,
body > #order_info.modal.orders-modal-mobile .item-total {
    color: #211a12;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 900;
}

#profile #order_info .details-divider,
body > #order_info.modal.orders-modal-mobile .details-divider {
    height: 0;
    margin: 0;
    background: transparent;
}

#profile #order_info .details-divider:last-of-type,
body > #order_info.modal.orders-modal-mobile .details-divider:last-of-type {
    display: none;
}

#profile #order_info .details-total,
body > #order_info.modal.orders-modal-mobile .details-total {
    padding: 13px 15px;
    border-radius: 16px;
    background: #211a12;
    box-shadow: 0 14px 26px rgba(24, 18, 10, 0.18);
}

#profile #order_info .total-label,
#profile #order_info .total-value,
body > #order_info.modal.orders-modal-mobile .total-label,
body > #order_info.modal.orders-modal-mobile .total-value {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

@media (max-width: 768px) {
    #profile .orders-content.container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 12px;
        box-sizing: border-box;
        overflow-x: clip;
    }

    #profile .orders-content:not(.orders-empty) .history-wrapper {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    #profile .orders-content:not(.orders-empty) .orders-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        max-height: none;
        padding-right: 0;
        overflow: visible;
    }

    #profile .orders-content:not(.orders-empty) .order-card {
        width: 100%;
        box-sizing: border-box;
        padding: 13px 11px;
        border-radius: 14px;
    }

    #profile .orders-content:not(.orders-empty) .order-header {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: start;
        gap: 8px;
    }

    #profile .orders-content:not(.orders-empty) .order-info {
        min-width: 0;
        gap: 2px;
    }

    #profile .orders-content:not(.orders-empty) .order-number {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px;
    }

    #profile .orders-content:not(.orders-empty) .info-label {
        font-size: 11px;
    }

    #profile .orders-content:not(.orders-empty) .order-value {
        font-size: 14px;
    }

    #profile .orders-content:not(.orders-empty) .order-date {
        font-size: 11px;
        line-height: 1.3;
    }

    #profile .orders-content:not(.orders-empty) .order-payment {
        font-size: 11px;
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #profile .orders-content:not(.orders-empty) .order-status-price {
        min-width: 96px;
        height: auto;
        align-items: flex-end;
        gap: 5px;
    }

    #profile .orders-content:not(.orders-empty) .status-badge {
        padding: 4px 8px;
        font-size: 9px;
        letter-spacing: 0.01em;
    }

    #profile .orders-content:not(.orders-empty) .order-price {
        font-size: 15px;
    }

    #profile .orders-content:not(.orders-empty) .order-items {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 8px;
        padding-bottom: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    #profile .orders-content:not(.orders-empty) .order-items::-webkit-scrollbar {
        display: none;
    }

    #profile .orders-content:not(.orders-empty) .item-image,
    #profile .orders-content:not(.orders-empty) .item-count {
        flex: 0 0 56px;
        width: 56px;
        height: 42px;
        margin-left: 0 !important;
    }

    #profile .orders-content:not(.orders-empty) .item-count {
        font-size: 14px;
    }

    #profile #order_info.modal {
        position: fixed;
        inset: 0;
        z-index: 12020;
        margin: 0;
        padding: 8px 8px 10px;
        background: rgba(21, 16, 10, 0.48);
    }

    #profile #order_info .modal-overlay {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        min-height: 100%;
        margin: 0;
        padding: 0;
        overflow-y: auto;
    }

    #profile #order_info .order-details {
        width: min(100%, 560px);
        max-height: calc(100vh - 14px);
    }

    #profile #order_info .details-card {
        position: relative;
        width: 100%;
        max-height: calc(100vh - 14px);
        padding: 14px 10px 12px;
        border-radius: 18px;
        gap: 10px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #profile #order_info .details-card::-webkit-scrollbar {
        width: 4px;
    }

    #profile #order_info .details-card::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(149, 124, 69, 0.4);
    }

    #profile #order_info .details-header {
        display: block;
        position: relative;
        padding-right: 30px;
    }

    #profile #order_info .details-label,
    #profile #order_info .details-value,
    #profile #order_info .details-date {
        font-size: 12px;
    }

    #profile #order_info .details-date {
        margin-top: 3px;
    }

    #profile #order_info .details-status {
        align-items: flex-start;
        gap: 2px;
    }

    #profile #order_info .status-label {
        font-size: 11px;
    }

    #profile #order_info .status-text {
        font-size: 15px;
        line-height: 1.2;
    }

    #profile #order_info .delivery-tracking {
        padding: 8px;
        border-radius: 12px;
        gap: 8px;
    }

    #profile #order_info .order-status-tracker {
        --tracker-step-size: 34px;
        --tracker-line-size: 5px;
        max-width: 100%;
    }

    #profile #order_info .status-circle svg {
        transform: scale(0.6);
    }

    #profile #order_info .section-label {
        font-size: 10px;
    }

    #profile #order_info .section-value,
    #profile #order_info .item-name {
        font-size: 12px;
    }

    #profile #order_info .order-item {
        padding: 7px;
        border-radius: 10px;
        gap: 6px;
    }

    #profile #order_info .item-thumb {
        width: 52px;
        height: 38px;
        border-radius: 8px;
    }

    #profile #order_info .item-total {
        font-size: 12px;
    }

    #profile #order_info .item-quantity,
    #profile #order_info .item-unit {
        font-size: 10px;
    }

    #profile #order_info .total-label,
    #profile #order_info .total-value {
        font-size: 18px;
    }

    #profile #order_info .order-actions {
        gap: 5px;
    }

    #profile #order_info .action-item {
        min-height: 68px;
        padding: 7px 4px;
    }

    #profile #order_info .action-icon svg {
        width: 32px;
        height: 32px;
    }

    #profile #order_info .action-label {
        font-size: 10px;
    }

    #profile #order_info .order-modal-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0;
        right: 0;
        width: 26px;
        height: 26px;
        padding: 0;
        border: 1px solid rgba(149, 124, 69, 0.24);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.9);
        cursor: pointer;
    }

    #profile #order_info .order-modal-close span {
        position: absolute;
        width: 12px;
        height: 1.5px;
        border-radius: 999px;
        background: #2b2419;
    }

    #profile #order_info .order-modal-close span:first-child {
        transform: rotate(45deg);
    }

    #profile #order_info .order-modal-close span:last-child {
        transform: rotate(-45deg);
    }

    body > #order_info.modal.orders-modal-mobile {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 8px !important;
        z-index: 12020 !important;
        background: rgba(21, 16, 10, 0.54) !important;
        overflow: hidden !important;
    }

    body > #order_info.modal.orders-modal-mobile .modal-overlay {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 100% !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    body > #order_info.modal.orders-modal-mobile .order-details {
        position: absolute !important;
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        left: 50% !important;
        width: min(640px, calc(100vw - 16px)) !important;
        max-height: calc(100dvh - 16px) !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) !important;
    }

    body > #order_info.modal.orders-modal-mobile .details-card {
        position: relative !important;
        width: 100% !important;
        max-height: calc(100dvh - 16px) !important;
        padding: 16px 12px 12px !important;
        border-radius: 22px 22px 18px 18px !important;
        gap: 11px !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
    }

    body > #order_info.modal.orders-modal-mobile .details-header {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 5px 10px !important;
        padding: 0 38px 10px 0 !important;
    }

    body > #order_info.modal.orders-modal-mobile .details-label {
        font-size: 10px !important;
    }

    body > #order_info.modal.orders-modal-mobile .details-value {
        font-size: 24px !important;
    }

    body > #order_info.modal.orders-modal-mobile .details-date {
        margin-top: 3px !important;
        padding: 6px 9px !important;
        font-size: 11px !important;
    }

    body > #order_info.modal.orders-modal-mobile .details-status {
        align-items: center !important;
        gap: 10px !important;
        padding: 10px 11px !important;
        border-radius: 14px !important;
    }

    body > #order_info.modal.orders-modal-mobile .status-text {
        max-width: 58% !important;
        padding: 6px 8px !important;
        font-size: 13px !important;
    }

    body > #order_info.modal.orders-modal-mobile .delivery-tracking {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body > #order_info.modal.orders-modal-mobile .order-status-tracker {
        --tracker-step-size: 34px;
        --tracker-line-size: 5px;
        max-width: 100% !important;
        height: calc(var(--tracker-step-size) + 36px) !important;
        padding: 11px !important;
        border-radius: 14px !important;
    }

    body > #order_info.modal.orders-modal-mobile .order-status-tracker .progress-container {
        top: calc(17px + (var(--tracker-step-size) - var(--tracker-line-size)) / 2) !important;
        left: calc(11px + var(--tracker-step-size) / 2) !important;
        right: calc(11px + var(--tracker-step-size) / 2) !important;
    }

    body > #order_info.modal.orders-modal-mobile .order-status-tracker .status-steps {
        inset: 11px !important;
    }

    body > #order_info.modal.orders-modal-mobile .status-circle svg {
        transform: scale(0.6) !important;
    }

    body > #order_info.modal.orders-modal-mobile .details-section {
        padding: 10px !important;
        border-radius: 13px !important;
    }

    body > #order_info.modal.orders-modal-mobile .section-label {
        font-size: 10px !important;
    }

    body > #order_info.modal.orders-modal-mobile .section-value {
        font-size: 12px !important;
    }

    body > #order_info.modal.orders-modal-mobile .order-item {
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: start;
        gap: 6px !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    body > #order_info.modal.orders-modal-mobile .item-thumb {
        width: 52px !important;
        height: 40px !important;
        border-radius: 8px !important;
    }

    body > #order_info.modal.orders-modal-mobile .item-price-info {
        grid-column: 2;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    body > #order_info.modal.orders-modal-mobile .item-total {
        font-size: 12px !important;
    }

    body > #order_info.modal.orders-modal-mobile .item-quantity,
    body > #order_info.modal.orders-modal-mobile .item-unit {
        font-size: 10px !important;
    }

    body > #order_info.modal.orders-modal-mobile .details-total {
        padding: 12px !important;
        border-radius: 14px !important;
    }

    body > #order_info.modal.orders-modal-mobile .total-label,
    body > #order_info.modal.orders-modal-mobile .total-value {
        font-size: 18px !important;
    }

    body > #order_info.modal.orders-modal-mobile .order-modal-close {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 30px !important;
        height: 30px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: rgba(245, 241, 233, 0.95) !important;
    }

    body > #order_info.modal.orders-modal-mobile .order-modal-close span {
        position: absolute !important;
        width: 12px !important;
        height: 1.5px !important;
        border-radius: 999px !important;
        background: #2b2419 !important;
    }

    body > #order_info.modal.orders-modal-mobile .order-modal-close span:first-child {
        transform: rotate(45deg) !important;
    }

    body > #order_info.modal.orders-modal-mobile .order-modal-close span:last-child {
        transform: rotate(-45deg) !important;
    }

    body > #order_info.modal.orders-modal-mobile.in ~ .modal-backdrop.in {
        z-index: 12010 !important;
    }
}

@media (max-width: 390px) {
    #profile .orders-content:not(.orders-empty) .order-header {
        grid-template-columns: 1fr;
    }

    #profile .orders-content:not(.orders-empty) .order-status-price {
        align-items: flex-start;
    }

    #profile #order_info .order-status-tracker,
    body > #order_info.modal.orders-modal-mobile .order-status-tracker {
        --tracker-step-size: 30px;
    }

    body > #order_info.modal.orders-modal-mobile .status-text {
        max-width: 54% !important;
        font-size: 12px !important;
    }
}

/* Cookie consent */
.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 15050;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 14px;
}

.cookie-consent-banner[hidden] {
    display: none !important;
}

.cookie-consent-card {
    display: flex;
    justify-content: space-between;
    gap: 5%;
    width: min(1200px, 100%);
    pointer-events: auto;
    border-radius: 18px;
    background: rgba(27, 21, 16, 0.94);
    color: #fff9ed;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    padding: 16px 18px;
}

.cookie-consent-title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 8px;
}

.cookie-consent-text {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 249, 237, 0.9);
    margin-bottom: 14px;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.cookie-left {
    flex: 1;
}

.cookie-btn {
    border: 0 !important;
    outline: none !important;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    padding: 11px 14px;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    text-decoration: none !important;
}

.cookie-btn.cookie-btn-light {
    background: rgba(255, 255, 255, 0.16);
    color: #fff9ed;
}

.cookie-btn.cookie-btn-light:hover,
.cookie-btn.cookie-btn-light:focus {
    color: #fff9ed;
    background: rgba(255, 255, 255, 0.24);
}

.cookie-btn.cookie-btn-primary {
    background: #ffc62b;
    color: #2b2419;
}

.cookie-btn.cookie-btn-primary:hover,
.cookie-btn.cookie-btn-primary:focus {
    color: #2b2419;
    background: #ffd55b;
}

.cookie-settings-modal {
    position: fixed;
    inset: 0;
    z-index: 15060;
}

.cookie-settings-modal[hidden] {
    display: none !important;
}

.cookie-settings-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cookie-settings-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(540px, calc(100vw - 24px));
    background: #fffaf1;
    border-radius: 20px;
    color: #2b2419;
    padding: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.cookie-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cookie-settings-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.cookie-settings-close {
    border: 0;
    background: transparent;
    color: #2b2419;
    font-size: 30px;
    line-height: 1;
    padding: 0 4px;
}

.cookie-settings-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-settings-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(43, 36, 25, 0.15);
    background: #fff;
    font-size: 13px;
    line-height: 1.45;
}

.cookie-settings-option strong {
    font-size: 15px;
}

.cookie-settings-option input {
    margin-top: 3px;
}

.cookie-settings-option-disabled {
    opacity: 0.72;
}

.cookie-settings-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-settings-fab {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 15040;
    border: 0 !important;
    border-radius: 999px;
    background: rgba(27, 21, 16, 0.88);
    color: #fff9ed;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.cookie-settings-fab[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .cookie-consent-banner {
        bottom: 78px;
    }

    .cookie-consent-card {
        border-radius: 16px;
        padding: 14px;
        flex-direction: column;
        gap: 0px;
    }

    .cookie-consent-title {
        font-size: 16px;
    }

    .cookie-consent-text {
        font-size: 13px;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings-card {
        width: calc(100vw - 16px);
        padding: 14px;
        border-radius: 16px;
    }

    .cookie-settings-title {
        font-size: 19px;
    }

    .cookie-settings-fab {
        bottom: 72px;
    }
}
