/* ===== КОРЗИНА / ГОТОВЫЕ ЦВЕТНЫЕ ЛЕНТЫ ===== */

.shop-lock {
    overflow: hidden;
}

/* Шапка */
.header_content {
    padding-left: 35px;
    padding-right: 35px;
}

.logo {
    flex: 0 0 auto;
}

.main_nav {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 35px;
}

.main_nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
}

.main_nav ul li {
    margin: 0 !important;
    white-space: nowrap;
}

.header_extra {
    flex: 0 0 auto;
    margin-left: 25px !important;
    gap: 10px;
}

.header_button {
    min-width: 0 !important;
    width: auto !important;
}

.header_button a {
    padding-left: 28px !important;
    padding-right: 28px !important;
    white-space: nowrap;
}

/* Иконка корзины */
.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 58px;
    margin-left: 12px;
    padding: 9px 10px;
    border: 1px solid #e2e5df;
    border-radius: 20px;
    background: #fff;
    color: #3a3a3a;
    cursor: pointer;
    transition: .2s ease;
    font-family: inherit;
}

.header-cart:hover {
    border-color: #ff8800;
    color: #d96f00;
}

.header-cart i {
    font-size: 16px;
}

.header-cart__count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    width: auto;
    height: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #ff8800;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Карточки товара */
.color-card__bottom--shop {
    gap: 8px;
}

.color-card__qty {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    border: 1px solid #dde1dc;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.color-qty__btn {
    width: 27px;
    height: 29px;
    padding: 0;
    border: 0;
    background: #f8f8f8;
    color: #555;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.color-qty__input {
    width: 38px;
    height: 29px;
    padding: 0 2px;
    box-sizing: border-box;
    border: 0;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    color: #3f3f3f;
    font-size: 12px;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}

.color-qty__input::-webkit-outer-spin-button,
.color-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.color-card__buy {
    cursor: pointer;
    font-family: inherit;
}

.color-card__buy i {
    margin-right: 5px;
    font-size: 11px;
}

/* Выдвижная корзина */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 100090;
    visibility: hidden;
    pointer-events: none;
}

.cart-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24,24,24,.4);
    opacity: 0;
    transition: .25s ease;
}

.cart-drawer.is-open .cart-drawer__backdrop {
    opacity: 1;
}

.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(430px,94vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -14px 0 45px rgba(0,0,0,.16);
    transform: translateX(100%);
    transition: .28s ease;
}

.cart-drawer.is-open .cart-drawer__panel {
    transform: translateX(0);
}

.cart-drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 22px 18px;
    border-bottom: 1px solid #eceeeb;
}

.cart-drawer__eyebrow {
    margin-bottom: 5px;
    color: #659d00;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cart-drawer__head h2 {
    margin: 0;
    color: #303030;
    font-size: 22px;
    font-weight: 600;
}

.cart-drawer__close {
    border: 0;
    background: none;
    color: #888;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.cart-drawer__footer {
    padding: 15px 20px 20px;
    border-top: 1px solid #eceeeb;
    background: #fff;
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.cart-total strong {
    color: #4f8200;
    font-size: 18px;
}

.cart-drawer__notice {
    margin-bottom: 11px;
    color: #737373;
    font-size: 11.5px;
    line-height: 1.45;
}

.cart-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 18px;
    box-sizing: border-box;
    border: 0;
    border-radius: 23px;
    background: #ff8800;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.cart-checkout-btn:hover {
    background: #f47f00;
}

/* Пустая корзина */
.cart-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #8a8a8a;
}

.cart-empty i {
    margin-bottom: 14px;
    color: #d6d9d3;
    font-size: 44px;
}

.cart-empty strong {
    margin-bottom: 5px;
    color: #404040;
    font-size: 15px;
}

.cart-empty span {
    max-width: 250px;
    font-size: 12.5px;
    line-height: 1.45;
}

/* Позиция в корзине */
.cart-item {
    padding: 14px 0 16px;
    border-bottom: 1px solid #eceeeb;
}

.cart-item:first-child {
    padding-top: 2px;
}

.cart-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cart-item__status {
    display: inline-flex;
    margin-bottom: 5px;
    padding: 3px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.cart-item__status.is-stock {
    background: #f2f9e7;
    color: #5a8d00;
}

.cart-item__status.is-made {
    background: #fff5e9;
    color: #c46812;
}

.cart-item__name {
    color: #303030;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.cart-item__remove {
    flex: 0 0 auto;
    border: 0;
    background: none;
    color: #a0a0a0;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.cart-item__details {
    margin-top: 7px;
    color: #727272;
    font-size: 11.5px;
    line-height: 1.45;
}

.cart-item__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.cart-item__price {
    color: #4f8200;
    font-size: 13px;
    font-weight: 700;
}

.cart-item__sum {
    margin-top: 7px;
    color: #333;
    font-size: 12.5px;
    font-weight: 700;
    text-align: right;
}

.cart-qty {
    display: flex;
    align-items: center;
    border: 1px solid #dde1dc;
    border-radius: 17px;
    overflow: hidden;
}

.cart-qty button {
    width: 29px;
    height: 29px;
    border: 0;
    background: #f8f8f8;
    color: #5d5d5d;
    font-size: 16px;
    cursor: pointer;
}

.cart-qty input {
    width: 54px;
    height: 29px;
    padding: 0 3px;
    box-sizing: border-box;
    border: 0;
    border-left: 1px solid #e4e4e4;
    border-right: 1px solid #e4e4e4;
    text-align: center;
    color: #414141;
    font-size: 12px;
    outline: none;
}

/* Уведомление */
.shop-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 100200;
    padding: 10px 16px;
    border-radius: 20px;
    background: #333;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%,14px);
    transition: .22s ease;
}

.shop-toast.is-visible {
    opacity: 1;
    transform: translate(-50%,0);
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1700px) {
    .header_content {
        padding-left: 25px;
        padding-right: 25px;
    }

    .main_nav {
        margin-left: 25px;
    }

    .main_nav ul {
        gap: 18px;
    }

    .header_extra {
        margin-left: 18px !important;
        gap: 8px;
    }

    .header_button a {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }
}

@media (max-width: 1500px) {
    .header_social {
        display: none !important;
    }

    .main_nav ul {
        gap: 14px;
    }

    .main_nav a {
        font-size: 14px;
    }

    .header_button a {
        padding-left: 17px !important;
        padding-right: 17px !important;
        font-size: 14px;
    }

    .header_extra {
        margin-left: 12px !important;
    }
}

@media (max-width: 1350px) {
    .main_nav ul {
        gap: 12px;
    }

    .header-cart {
        margin-left: 8px;
    }
}

@media (max-width: 900px) {
    .color-card__bottom--shop {
        flex-wrap: wrap;
    }

    .color-card__buy {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .header-cart {
        margin-left: auto;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .cart-drawer__panel {
        width: 100%;
    }

    .cart-drawer__head {
        padding: 20px 16px 15px;
    }

    .cart-drawer__body {
        padding: 14px 16px;
    }

    .cart-drawer__footer {
        padding: 13px 16px 16px;
    }
}