/* Top header layout adjustments */
.header-item {
    display: flex;
    align-items: center;
    gap: 22px;
}
.header-contact__phones {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.header-contact__phone {
    font-size: 18px;
    line-height: 1.2;
    color: #333;
}
.header-contact__phone--primary {
    font-weight: 600;
}
.header-calls .btn {
    white-space: nowrap;
}
.header-times {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 2px;
}
.header-times p {
    margin: 0;
}
.header-basket {
    margin-left: 10px;
}
.header-basket__link {
    display: inline-flex;
    align-items: center;
    color: #00a5d4;
    text-decoration: none;
}
.header-basket__icon {
    position: relative;
    width: 42px;
    height: 42px;
    background: url('/images/basket.svg') center/contain no-repeat;
    display: block;
}
.header-basket__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -6px;
    width: 24px;
    height: 24px;
    padding: 0 5px;
    border-radius: 12px;
    background-color: #ffffff;
    color: #000;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    font-weight: bold;
}

.catalog-basket .newprice-box__order {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: flex-start;
}
.newprice-box__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid #00a5d4;
    background-color: #fff;
    color: #00a5d4;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-color: #2fc3df;
    font-size: 16px;
}
.newprice-box__btn--cart {
    width: 42px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    background-color: transparent;
    color: #2fc3df;
    border: 3px solid #2fc3df;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.newprice-box__btn--cart img {
    width: 24px;
    height: 24px;
    display: block;
}
.newprice-box__btn--order {
    flex: 1;
    background-color: #2fc3df;
    color: #fff;
}
.newprice-box__btn:hover {
    background-color: #2fc3df;
    color: #fff;
}
.newprice-box__btn--cart:hover {
    background-color: transparent;
    box-shadow: 0 0 0 2px rgba(47, 195, 223, 0.25);
}
.newprice-box__btn--cart.newprice-box__btn--added::after {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid rgba(47, 195, 223, 0.6);
    border-radius: 50%;
    animation: basketPulse 0.45s ease;
}

@keyframes basketPulse {
    from {
        opacity: 1;
        transform: scale(0.85);
    }
    to {
        opacity: 0;
        transform: scale(1.2);
    }
}

.basket-popup[hidden] {
    display: none !important;
}
.basket-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
}
.basket-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}
.basket-popup__dialog {
    position: relative;
    width: min(560px, calc(100% - 24px));
    margin: 60px auto;
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    color: #0f1c2e;
}
.basket-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    color: #8a8f9c;
}
.basket-popup__content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.basket-popup__info {
    flex: 1;
}
.basket-popup__title {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 18px;
}
.basket-popup__name {
    margin: 0 0 12px;
    font-size: 17px;
}
.basket-popup__price {
    margin: 0 0 20px;
}
.basket-popup__qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}
.basket-popup__qty-controls button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #d2d7e1;
    background: #f1f5fb;
    cursor: pointer;
}
.basket-popup__image img {
    width: 140px;
    height: auto;
    border-radius: 8px;
}
.basket-popup__actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.basket-popup__btn {
    flex: 1;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.basket-popup__btn--primary {
    background: #2fc3df;
    color: #fff;
}
.basket-popup__btn--secondary {
    background: #f1f5fb;
    color: #0f1c2e;
}
@media (max-width: 600px) {
    .basket-popup__content {
        flex-direction: column;
    }
    .basket-popup__image img {
        width: 100%;
    }
}
@media (max-width: 420px) {
    .basket-popup__image {
        display: flex;
        justify-content: center;
    }
    .basket-popup__image img {
        width: 70%;
    }
}
/* Basket page layout adjustments */
.basket-page {
    padding: 40px 0 80px;
}
.basket-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.basket-layout__items {
    flex: 1 1 60%;
}
.basket-layout__sidebar {
    flex: 1 1 35%;
    max-width: 420px;
    margin-top: 127px;
}
.basket-alert {
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 18px;
    font-size: 15px;
}
.basket-alert--info {
    background: #f1f5fb;
    color: #2a3548;
}
.basket-alert--error {
    background: #ffe5e5;
    color: #9c1b1b;
}
.basket-alert--success {
    background: #e9f9f2;
    color: #146c43;
}
.basket-alert__link {
    color: #2fc3df;
    text-decoration: none;
    font-weight: 600;
}
.basket-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.basket-page .basket-item {
    display: flex;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
}
.basket-item__image img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}
.basket-item__content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.basket-item__main {
    display: flex;
    flex-direction: column;
}
.basket-item__name {
    font-weight: 600;
    margin-bottom: 6px;
}
.basket-item__price {
    color: #6b7280;
    margin-bottom: 8px;
}
.basket-item__controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.basket-item__qty button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    cursor: pointer;
}
.basket-item__qty span {
    min-width: 28px;
    text-align: center;
    font-weight: 600;
    margin: 0 8px;
}
.basket-item__remove {
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    font-weight: 600;
}
.basket-summary {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #fff;
}
.basket-summary__line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.basket-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
}
.basket-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.basket-form__field input,
.basket-form__field textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 15px;
}
.basket-form__submit {
    border: none;
    background: #2fc3df;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
}
.basket-page form label span {
    color: #333;
    margin-left: 5px;
}
.basket-alert p {
    margin: 0;
}
.prod_zakaz {
    font-size: 14px;
    padding: 8px 16px;
}
.mob_t {display:none}
.desc_t {display: table}
@media (max-width: 991px) {
    .header-basket--mobile .header-basket__icon {
        position: relative;
        width: 28px;
        height: 28px;
    }

    .header-basket--mobile .header-basket__count {
        top: -6px;
        right: -10px;
        width: 20px;
        height: 20px;
        font-size: 10px;
        line-height: 16px;
        background-color: #F0F0F0;
    }

    .header-basket.header-basket--mobile {
        margin-right: 8px;
    }
	.mob_t {display: table}
	.desc_t {display:none}
}
@media (max-width: 768px) {
    .basket-layout {
        flex-direction: column;
    }
    .basket-layout__sidebar {
        max-width: none;
        margin-top: 0;
    }
    .basket-item {
        flex-direction: column;
    }
}
@media (max-width: 420px) {
    .basket-item__qty button {
        width: 24px;
        height: 24px;
    }
    .basket-popup__qty-controls button {
        width: 24px;
        height: 24px;
    }
}