.cart-box .cart-overview .cart-menu-item-image {
    object-fit: cover;
    background-color: #fff;
}

.submenu-icon--sale {
    object-fit: contain;
}

/* Стили для блока с итоговыми расчетами */
.cart-total-summary {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.cart-total-summary h6 {
    margin-bottom: 20px;
    color: #14498c;
    font-weight: 600;
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(20, 73, 140, 0.15);
}

.summary-content {
    padding: 5px 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-label {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 8px;
    font-weight: 500;
    color: #555;
    font-size: 16px;
    line-height: 1.4;
}

.summary-value {
    flex: 0 0 auto;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    line-height: 1.4;
    text-align: right;
    white-space: nowrap;
}

.cart-items-summary {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e3e8ef;
}

.cart-items-summary__title {
    margin: 0 0 0.65rem;
    font-size: 15px;
    font-weight: 600;
    color: #14498c;
    line-height: 1.3;
}

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

.summary-order-item {
    padding: 10px 12px;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    background: #fff;
}

.summary-order-item__name {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
}

.summary-order-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eef2f6;
}

.summary-order-item__qty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.3;
    color: #6b7280;
}

.summary-order-item__price {
    flex-shrink: 0;
    margin: 0;
    margin-left: auto;
    font-size: 14px;
    font-weight: 700;
    color: #14498c;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.summary-order-item__price .summary-currency {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

.summary-order-item__qty-label {
    font-weight: 500;
}

.summary-order-item__qty-value {
    display: inline-flex;
    align-items: center;
    min-width: 1.5rem;
    padding: 1px 7px;
    border-radius: 4px;
    background: #eef4fa;
    color: #14498c;
    font-size: 12px;
    font-weight: 700;
}

.cart-items-summary__actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e3e8ef;
}

.summary-currency {
    color: #666;
    font-size: 14px;
}

.summary-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid #14498c;
    border-bottom: none;
}

.summary-total .summary-label {
    font-size: 18px;
    font-weight: 600;
    color: #14498c;
}

.summary-total .summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #14498c;
}

.summary-action {
    margin-top: 20px;
}

.summary-action .btn {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.summary-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(20, 73, 140, 0.3);
}

/* Klienta veids — как на checkout */
.cart-total-summary .customer-type-selector {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.cart-total-summary .customer-type-selector .form-group {
    margin-bottom: 0;
}

.cart-total-summary .customer-type-selector .form-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

.cart-total-summary .customer-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cart-total-summary .customer-type-selector .form-check {
    position: relative;
    display: inline-block;
    padding-left: 30px;
    margin: 0;
}

.cart-total-summary .customer-type-selector .form-check-input {
    position: absolute;
    left: 0;
    top: 4px;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    z-index: 1;
}

.cart-total-summary .customer-type-selector .form-check-label {
    position: relative;
    margin: 0;
    cursor: pointer;
    padding-left: 10px;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.5;
    color: #555;
    display: inline-block;
    vertical-align: middle;
}

.cart-total-summary .customer-type-selector .form-check-label:before {
    content: '';
    position: absolute;
    left: -30px;
    top: 1px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cart-total-summary .customer-type-selector .form-check-input:checked + .form-check-label:before {
    border-color: #14498c;
    background-color: #14498c;
}

.cart-total-summary .customer-type-selector .form-check-input:checked + .form-check-label:after {
    content: '✓';
    position: absolute;
    left: -26px;
    top: -2px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.cart-total-summary .customer-type-selector .form-check-input:focus + .form-check-label:before {
    box-shadow: 0 0 0 3px rgba(20, 73, 140, 0.2);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 767px) {
    .cart-total-summary {
        margin-top: 20px;
        padding: 15px;
    }

    .cart-total-summary h6 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .cart-total-summary .customer-type-selector .form-label {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .cart-total-summary .customer-type-options {
        flex-direction: column;
        gap: 12px;
    }

    .summary-row {
        padding: 10px 0;
    }

    .summary-label,
    .summary-value {
        font-size: 14px;
    }

    .summary-order-item {
        padding: 9px 10px;
    }

    .summary-order-item__name {
        font-size: 12px;
    }

    .summary-order-item__price {
        font-size: 13px;
    }

    .shipping-info {
        padding: 0.75rem 0.85rem;
    }

    .summary-total .summary-label {
        font-size: 16px;
    }

    .summary-total .summary-value {
        font-size: 18px;
    }

    .summary-action .btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* Анимация для обновления значений */
@keyframes value-update {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); color: #14498c; }
    100% { transform: scale(1); }
}

.value-updated {
    animation: value-update 0.5s ease;
}

.shipping-info {
    margin-bottom: 1.15rem;
    padding: 0.9rem 1rem;
    border: 1px solid #d5deea;
    border-radius: 6px;
    background: linear-gradient(180deg, #f8fafc 0%, #f3f7fb 100%);
    font-style: normal;
    color: #5f6b7a;
}

.shipping-info__block + .shipping-info__block,
.shipping-info .alert {
    margin-top: 0.75rem;
}

.shipping-info__label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #14498c;
}

.shipping-info__label i {
    font-size: 13px;
    opacity: 0.9;
}

.shipping-info__value {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.shipping-info__details {
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(20, 73, 140, 0.12);
    font-size: 13px;
    line-height: 1.5;
    color: #5f6b7a;
}

.shipping-info__details:not(.shipping-info__pickup) {
    padding-top: 0.65rem;
}

.shipping-desc {
    margin: 0;
    font-size: 13px;
    color: #5f6b7a;
    line-height: 1.5;
}

.shipping-desc--pickup {
    padding: 0;
    line-height: 1.45;
}

.shipping-info__pickup {
    margin-top: 0;
    padding: 0;
}

.shipping-pickup-intro {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 8px;
    color: #14498c;
    font-weight: 600;
    font-size: 13px;
    white-space: normal;
}

.shipping-pickup-line {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
}

.shipping-methods .radio label .shipping-pickup-line strong {
    display: inline;
    color: #333;
    font-size: inherit;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    white-space: nowrap;
}

.shipping-pickup-time {
    color: #14498c;
    font-weight: 600;
    white-space: nowrap;
}

.shipping-pickup-line--closed .shipping-pickup-time {
    color: #9a6700;
}
.shipping-price {
    margin-top: auto;
    font-weight: bold;
    color: #14498c;
    font-size: 18px;
    padding-top: 10px;
    border-top: 1px solid #eaeaea;
    text-align: right;
    width: 100%;
}
.shipping-contact {
    margin-top: 70px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    border-left: 3px solid #14498c;
    font-style: italic;
    color: #666;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.shipping-contact p {
    margin-bottom: 0;
    line-height: 1.6;
}
.shipping-contact .contact-method {
    display: inline-block;
    margin: 5px 0;
    color: #14498c;
}
.shipping-contact .contact-method i {
    margin-right: 5px;
}
.location-check {
    color: red;
}
.cart-additional-services,
.cart-shipping-methods,
.cart-promo-code,
.cart-total-amount {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.cart-additional-services h6,
.cart-shipping-methods h6 {
    margin-bottom: 15px;
    color: #14498c;
    font-weight: 600;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(20, 73, 140, 0.1);
}

.cart-cut-service-card {
    margin: 0;
}

.cart-cut-service-card__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cart-cut-service-card__label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 18px 20px 18px 52px;
    background: #fff;
    border: 1px solid #e3eaf3;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 6px rgba(20, 73, 140, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.cart-cut-service-card__label:hover {
    border-color: #c5d4ea;
    box-shadow: 0 4px 12px rgba(20, 73, 140, 0.1);
    transform: translateY(-1px);
}

.cart-cut-service-card__check {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid #14498c;
    border-radius: 5px;
    background: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cart-cut-service-card__check::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

.cart-cut-service-card__input:checked + .cart-cut-service-card__label {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    border-color: #14498c;
    box-shadow: 0 4px 14px rgba(20, 73, 140, 0.14);
}

.cart-cut-service-card__input:checked + .cart-cut-service-card__label .cart-cut-service-card__check {
    background: #14498c;
    border-color: #14498c;
}

.cart-cut-service-card__input:checked + .cart-cut-service-card__label .cart-cut-service-card__check::after {
    transform: rotate(45deg) scale(1);
}

.cart-cut-service-card__input:focus-visible + .cart-cut-service-card__label {
    outline: 2px solid #14498c;
    outline-offset: 2px;
}

.cart-cut-service-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(20, 73, 140, 0.08);
    color: #14498c;
}

.cart-cut-service-card__body {
    flex: 1;
    min-width: 0;
}

.cart-cut-service-card__title {
    display: block;
    color: #14498c;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
}

.cart-cut-service-card__desc {
    display: block;
    color: #6b7c93;
    font-size: 13px;
    line-height: 1.45;
}

.cart-cut-service-card__price {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #14498c;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-cut-service-card__price .summary-currency {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.cart-cut-service-card__details {
    margin-top: 12px;
    padding: 16px 18px 18px;
    background: #f8fbff;
    border: 1px solid #e3eaf3;
    border-radius: 8px;
}

.cart-cut-service-card__info {
    margin: 0 0 14px;
    color: #5a6b82;
    font-size: 13px;
    line-height: 1.55;
}

.cart-cut-service-card__qty-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cart-cut-service-card__qty-label {
    color: #14498c;
    font-size: 14px;
    font-weight: 600;
}

.cart-cut-service-card__qty-controls {
    margin: 0;
}

.cart-cut-service-card__total {
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: #14498c;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.cart-cut-service-card__total .summary-currency {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 575px) {
    .cart-cut-service-card__label {
        flex-wrap: wrap;
        padding: 16px 16px 16px 48px;
        gap: 10px;
    }

    .cart-cut-service-card__price {
        width: 100%;
        text-align: center;
        margin-left: 34px;
    }

    .cart-cut-service-card__total {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
}

.cart-cut-service-card--summary .cart-cut-service-card__label--static {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 18px 48px;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    background: #fff;
}

.cart-item-cut-plan {
    margin-top: 10px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.cart-item-cut-plan__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.cart-item-cut-plan__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #14498c;
    margin: 0;
    cursor: pointer;
}

.cart-item-cut-plan__toggle input[type="checkbox"],
.cart-item-cut-plan__toggle .cart-item-cut-plan__enabled,
.cart-item-cut-plan__enabled[type="checkbox"] {
    margin: 0;
}

.cart-item-cut-plan__meta {
    color: #666;
    font-size: 14px;
}

.cart-item-cut-plan__modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    margin-top: 10px;
}

.cart-item-cut-plan__mode-btn.is-active {
    background: #14498c;
    border-color: #14498c;
    color: #fff;
}

.cart-item-cut-plan__hint {
    margin: 0 0 12px;
    color: #666;
    font-size: 14px;
}

.cart-item-cut-plan__segments {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.cart-item-cut-plan__segment {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 120px auto;
    gap: 12px;
    align-items: end;
}

.cart-item-cut-plan__segment-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}

.cart-item-cut-plan__input-group {
    display: flex;
    align-items: stretch;
}

.cart-item-cut-plan__input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cart-item-cut-plan__unit {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    background: #eef3f9;
    border: 1px solid #ced4da;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    color: #555;
    font-size: 14px;
}

.cart-item-cut-plan__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eaeaea;
}

.cart-item-cut-plan__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #444;
    font-size: 14px;
}

@media (max-width: 767px) {
    .cart-item-cut-plan__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .cart-item-cut-plan__toggle {
        width: 100%;
        padding: 8px 0;
        min-height: 44px;
        font-size: 15px;
    }

    .cart-item-cut-plan__toggle input[type="checkbox"],
    .cart-item-cut-plan__toggle .cart-item-cut-plan__enabled {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        margin: 0;
    }

    .cart-item-cut-plan__meta {
        width: 100%;
        font-size: 13px;
        line-height: 1.45;
    }

    .cart-item-cut-plan__modes {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .cart-item-cut-plan__mode-btn {
        width: 100%;
        padding: 10px 8px;
        font-size: 13px;
        white-space: normal;
        line-height: 1.3;
    }

    .cart-item-cut-plan__hint {
        font-size: 13px;
        line-height: 1.5;
    }

    .cart-item-cut-plan__segment {
        grid-template-columns: 1fr;
        gap: 10px;
        position: relative;
        padding: 12px 36px 12px 12px;
        background: #fff;
        border: 1px solid #e3eaf3;
        border-radius: 6px;
    }

    .cart-item-cut-plan__remove-segment {
        position: absolute;
        top: 8px;
        right: 4px;
        padding: 4px 8px;
        min-width: 32px;
        min-height: 32px;
    }

    .cart-item-cut-plan__add-segment {
        width: 100%;
        margin-top: 4px;
    }

    .cart-item-cut-plan__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .cart-item-cut-plan__summary {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        font-size: 13px;
    }

    .cart-item-cut-plan__summary > span {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        padding-bottom: 6px;
        border-bottom: 1px solid #eef2f6;
    }

    .cart-item-cut-plan__summary > span:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .cart-item-cut-plan__save {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
    }

    .cart-item-cut-plan__error {
        width: 100%;
        font-size: 13px;
        line-height: 1.4;
    }

    /* Доп. услуги и карточка резки */
    .cart-additional-services {
        margin-top: 15px;
        padding: 12px 15px;
    }

    .cart-additional-services h6 {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .cart-cut-service-card__label,
    .cart-cut-service-card--summary .cart-cut-service-card__label--static {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 14px 14px 48px;
    }

    .cart-cut-service-card__check {
        left: 14px;
    }

    .cart-cut-service-card__icon {
        width: 40px;
        height: 40px;
    }

    .cart-cut-service-card__title {
        font-size: 15px;
    }

    .cart-cut-service-card__desc {
        font-size: 12px;
    }

    .cart-cut-service-card__price {
        width: 100%;
        margin-left: 0;
        text-align: center;
        padding: 10px 14px;
    }

    .cart-cut-service-card__details {
        padding: 12px 14px 14px;
    }

    .cart-cut-service-card__qty-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .cart-cut-service-card__total {
        width: 100%;
        margin-left: 0;
        text-align: center;
        padding: 10px 14px;
    }
}

.shipping-methods {
    margin-bottom: 20px;
}
.shipping-methods .row {
    margin-left: -10px;
    margin-right: -10px;
}
.shipping-methods .col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
}
.shipping-methods .form-group {
    margin-bottom: 20px;
    height: 100%;
}
.shipping-methods .radio {
    margin: 0;
    height: 100%;
}
/* Скрываем радио-кнопки, но оставляем доступными для скрин-ридеров */
.shipping-methods .radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.shipping-methods .radio label {
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-left: 50px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
/* Создаем кастомный индикатор для радио-кнопок */
.shipping-methods .radio label:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #14498c; /* Меняем с #ddd на цвет бренда для большего контраста */
    background-color: #fff;
    transition: all 0.2s ease;
}
.shipping-methods .radio label:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.shipping-methods .radio label > strong {
    display: block;
    color: #14498c; /* Цвет бренда для лучшей видимости */
    font-size: 16px;
    font-weight: 600; /* Чуть более жирный шрифт */
    line-height: 1.4;
    min-height: auto; /* Убираем минимальную высоту */
    max-height: none; /* Отменяем максимальную высоту */
    overflow: visible; /* Разрешаем содержимому выходить за границы */
    white-space: normal; /* Разрешаем перенос строк */
    padding-bottom: 5px; /* Добавляем отступ снизу */
    border-bottom: 1px dashed #eaeaea; /* Добавляем разделитель */
    margin-top: 0; /* Небольшой отступ сверху */
}
.shipping-methods .radio label.selected {
    background-color: #f0f7ff;
    border-color: #14498c;
    box-shadow: 0 2px 8px rgba(20,73,140,0.2);
    transform: translateY(-2px);
}
/* Отметка для выбранного элемента */
.shipping-methods .radio input[type="radio"]:checked + label:before {
    background-color: #14498c;
    border-color: #14498c;
    box-shadow: inset 0 0 0 4px #fff;
    transform: scale(1.1);
}
.form-inline .form-group {
    margin-bottom: 0;
}
#promo-code {
    margin-right: 10px;
}
.shipping-methods .col-md-12 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.load-more-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.load-more-btn {
    background-color: #14498c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background-color: #14498c;
}

.load-more-btn.hidden {
    display: none;
}
/* Для мобильных устройств */
@media (max-width: 768px) {
    .shipping-methods .col-md-12 {
        grid-template-columns: 1fr;
    }
}

/* Equal height for shipping options */
@media (min-width: 768px) {
    .shipping-methods .row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .shipping-methods .col-md-6 {
        display: flex;
        flex-direction: column;
    }
    .shipping-methods .form-group {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        height: auto; /* Убираем фиксированную высоту */
        min-height: 220px; /* Минимальная высота, чтобы карточки были примерно одинаковые */
        margin-bottom: 20px; /* Увеличиваем отступ между карточками */
    }
    .shipping-methods .row > .col-md-6:nth-child(1) .form-group,
    .shipping-methods .row > .col-md-6:nth-child(2) .form-group {
        flex: 1 0 33.33%;
        margin-bottom: 20px;
    }
    .shipping-methods .radio {
        flex: 1;
        display: flex;
        height: 100%;
    }
    .shipping-methods .radio label {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
}
/* Spinner */
.spinner-border {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #14498c;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Анимация пульсации для выбранного метода доставки */
@keyframes pulse-select {
    0% { box-shadow: 0 0 0 0 rgba(20, 73, 140, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(20, 73, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 73, 140, 0); }
}

.pulse-selection {
    animation: pulse-select 0.8s ease-out;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Стили для мобильных устройств */
@media (max-width: 767px) {
    .shipping-methods .form-group {
        margin-bottom: 15px;
        height: auto;
    }
    .shipping-methods .radio label {
        padding: 15px 15px 15px 45px;
    }
    .shipping-methods .radio label:before {
        top: 15px;
        left: 15px;
    }
    .shipping-methods .radio input[type="radio"]:checked + label:after {
        top: 20px;
        left: 20px;
    }
    .shipping-methods .radio input[type="radio"]:checked + label:before {
        box-shadow: inset 0 0 0 2px #fff; /* Меньший внутренний отступ для мобильных */
        transform: scale(1.1); /* Меньший масштаб для мобильных */
    }

    .shipping-methods .radio label > strong {
        font-size: 15px;
        min-height: auto; /* Отменяем минимальную высоту на мобильных */
        margin-bottom: 8px;
        padding-bottom: 3px;
    }
    .shipping-desc {
        min-height: auto;
        font-size: 13px;
        padding: 10px 0;
    }
    .shipping-price {
        font-size: 16px;
        padding: 8px 0 0;
    }
    /* Улучшение отображения на мобильных устройствах */
    .cart-shipping-methods, .cart-promo-code {
        padding: 12px 15px;
    }
    .shipping-contact {
        margin-top: 15px;
        padding: 12px;
        font-size: 13px;
    }
    .shipping-contact p {
        line-height: 1.5;
    }
    .shipping-contact .contact-method {
        margin: 3px 0;
        display: block;
    }
    .cart-shipping-methods h6 {
        font-size: 16px;
        padding-bottom: 8px;
    }

    /* Стили для блока итогов на мобильных */
    .cart-total-summary {
        position: sticky;
        bottom: 0;
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 15px;
        border-radius: 4px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 99;
        background-color: #f9f9f9;
        border-left: none;
        border-top: 3px solid #14498c;
    }

    /* Скрываем мобильную панель действий, если есть блок итогов */
    .mobile-cart-actions {
        display: none !important;
    }

    /* Добавляем дополнительный отступ внизу контейнера для корректного отображения */
    #cart-container {
        padding-bottom: 60px;
    }

    /* Компактное отображение итогового блока на мобильных */
    .summary-row {
        padding: 6px 0;
    }

    .summary-label,
    .summary-value {
        font-size: 14px;
    }

    .summary-total {
        margin-top: 6px;
        padding-top: 10px;
    }

    .summary-total .summary-label {
        font-size: 16px;
    }

    .summary-total .summary-value {
        font-size: 18px;
    }

    .summary-action {
        margin-top: 12px;
    }

    .summary-action .btn {
        padding: 10px;
        font-size: 14px;
    }
}
/* Особое отображение для выбранного элемента */
.shipping-methods .radio label.selected strong {
    color: #14498c;
}

/* Активное состояние для выбранного метода доставки */
.shipping-methods .radio input[type="radio"]:checked + label {
    border-color: #14498c;
    background-color: #f0f8ff; /* Светло-голубой фон */
    box-shadow: 0 2px 8px rgba(20, 73, 140, 0.15);
    transform: translateY(-2px);
}
/* Обновленный индикатор для выбранной радио-кнопки */
.shipping-methods .radio input[type="radio"]:checked + label:before {
    background-color: #14498c;
    border-color: #14498c;
    box-shadow: inset 0 0 0 4px #fff;
    transform: scale(1.2);
}
/* Добавляем внутренний круг для выбранного радио */
.shipping-methods .radio input[type="radio"]:checked + label:after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0; /* Скрываем дополнительный индикатор, так как используем box-shadow */
}
/* Особое отображение для выбранного элемента */
.shipping-methods .radio label.selected strong {
    color: #14498c;
    font-weight: 700; /* Делаем более жирным для выбранного */
}
/* Стили для таблицы корзины - дополняем стили Bootstrap */
.table > thead:first-child > tr:first-child > th {
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
}
.cart-list,
.cart-table {
    margin-top: 20px;
    width: 100%;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background: #fff;
}

.cart-list__header,
.cart-list__row {
    display: grid;
    grid-template-columns: minmax(180px, 2.2fr) 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
}

.cart-list__header {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eaeaea;
    color: #14498c;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px 8px 0 0;
}

.cart-list__body {
    display: flex;
    flex-direction: column;
}

.cart-list__item {
    border-bottom: 1px solid #eaeaea;
    transition: background-color 0.3s ease;
}

.cart-list__item:last-child {
    border-bottom: none;
}

.cart-list__item:hover {
    background-color: #fafbfc;
}

.cart-list__row {
    padding: 15px;
}

.cart-list__label {
    display: none;
}

.cart-list__col--length,
.cart-list__col--price,
.cart-list__col--qty,
.cart-list__col--total {
    text-align: center;
}

.cart-list__cut {
    padding: 0 15px 15px;
    background: #f8fafc;
    border-top: 1px dashed #dbe4f0;
}

.cart-list__actions {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eaeaea;
    border-radius: 0 0 8px 8px;
}
.cart-product-name h6 {
    margin: 0;
}
.cart-product-name h6 a {
    color: #14498c;
    font-weight: 600;
    transition: all 0.3s ease;
}
.cart-product-name h6 a:hover {
    color: #0e3567;
    text-decoration: none;
}
.cart-product-price, .cart-product-total {
    font-weight: 600;
    color: #333;
    text-align: center; /* Центрирование текста цены и итоговой суммы */
}
.cart-product-remove button {
    position: relative;
    border: none;
    background: transparent;
    color: #dc3545;
    font-size: 16px;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.cart-product-remove button:hover {
    background-color: #fff2f2;
    color: #dc3545;
    border-color: #dc3545;
    transform: scale(1.1);
}
.cart-product-remove button:active {
    background-color: #dc3545;
    color: #fff;
    transform: scale(0.95);
}
.cart-product-img {
    background-color: #f5f5f5;
    padding: 8px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.cart-product-img img {
    max-width: 100%;
    max-height: 100%;
}
.cart-product-item__content:hover .cart-product-img {
    background-color: #e9f0f9;
    transform: scale(1.05);
}

.cart-product-item__content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    position: relative;
    padding-right: 36px;
    min-height: 45px;
}

.cart-product-item__content .cart-product-remove {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    float: none;
    margin: 0;
}
.cart-product-quantity {
    text-align: center;
}
.cart-product-quantity .product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Центрирование блока с количеством */
}
.cart-product-quantity input {
    width: 45px;
    text-align: center;
    border: 1px solid #ddd;
    height: 34px;
    padding: 0 5px;
    margin: 0 5px;
    border-radius: 4px;
}
.cart-product-quantity .qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f9f9f9;
    color: #14498c;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}
.cart-product-quantity .qty-btn:hover {
    background-color: #14498c;
    color: #fff;
    border-color: #14498c;
}
.cart-product-action,
.cart-list__actions {
    background-color: #f9f9f9;
}

/* Дополнительные стили для кнопок Bootstrap - расширяем существующие стили */
.cart-product-action .btn,
.cart-promo-code .btn,
.mobile-cart-actions .btn {
    position: relative;
    overflow: hidden;
    margin-right: 5px;
    margin-bottom: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 15px;
    text-transform: none;
    border-radius: 4px;
}

/* Эффект при наведении для всех кнопок */
.cart-product-action .btn:hover,
.cart-promo-code .btn:hover,
.mobile-cart-actions .btn:hover,
#cart_items .btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Эффект при нажатии для всех кнопок */
.cart-product-action .btn:active,
.cart-promo-code .btn:active,
.mobile-cart-actions .btn:active,
#cart_items .btn:active {
    transform: translateY(1px);
    opacity: 1;
}

/* Дополнительные стили только для primary */
.cart-product-action .btn-primary,
.cart-promo-code .btn-primary,
.mobile-cart-actions .btn-primary,
#cart_items .btn-primary {
    box-shadow: 0 4px 6px rgba(20, 73, 140, 0.2);
    border-color: rgba(20, 73, 140, 0.8);
}

/* Дополнительный эффект при наведении для primary */
.cart-product-action .btn-primary:hover,
.cart-promo-code .btn-primary:hover,
.mobile-cart-actions .btn-primary:hover,
#cart_items .btn-primary:hover {
    box-shadow: 0 6px 12px rgba(20, 73, 140, 0.3);
    background-color: #0e3567;
}

/* Дополнительные стили только для secondary */
.cart-product-action .btn-secondary,
#cart_items .btn-secondary {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Дополнительный эффект при наведении для secondary */
.cart-product-action .btn-secondary:hover,
#cart_items .btn-secondary:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Дополнительные стили только для danger */
.cart-product-action .btn-danger {
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

/* Дополнительный эффект при наведении для danger */
.cart-product-action .btn-danger:hover {
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.25);
}

/* Эффект пульсации для кнопок при нажатии */
@keyframes btn-pulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 73, 140, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(20, 73, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 73, 140, 0); }
}

/* Применяем пульсацию только к primary при нажатии */
.cart-product-action .btn-primary:active,
.cart-promo-code .btn-primary:active,
.mobile-cart-actions .btn-primary:active,
#cart_items .btn-primary:active {
    animation: btn-pulse 0.5s ease-out;
}

/* Улучшенная стилизация кнопки удаления товара */
.cart-product-remove button.btn-remove {
    position: relative;
    border: none;
    background: transparent;
    color: #dc3545;
    font-size: 16px;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

/* Эффекты hover и active для кнопки удаления */
.cart-product-remove button.btn-remove:hover {
    background-color: #fff2f2;
    color: #dc3545;
    border-color: #dc3545;
    transform: scale(1.1);
}

.cart-product-remove button.btn-remove:active {
    background-color: #dc3545;
    color: #fff;
    transform: scale(0.95);
}

/* Добавляем эффект всплывающей подсказки для кнопки удаления в веб-версии */
.cart-product-remove {
    flex-shrink: 0;
    z-index: 2;
}

.cart-product-remove button.btn-remove:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 10;
}

.cart-product-remove button.btn-remove:hover:before {
    opacity: 1;
    visibility: visible;
    bottom: -25px;
}

/* Оптимизированные стили для мобильной версии */
@media (max-width: 767px) {
    /* Улучшенные стили для мобильной версии кнопок */
    .cart-product-action .row {
        margin: 0;
    }

    .cart-product-action .col-xs-12 {
        padding: 10px 0;
        margin-bottom: 10px;
    }

    /* Фиксированная панель действий только для мобильных устройств */
    .mobile-cart-actions {
        display: none; /* Скрыта по умолчанию, управляется через JavaScript */
    }

    /* Создаем фиксированную панель внизу экрана для основной кнопки */
    .mobile-cart-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 15px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        text-align: center;
        border-top: 1px solid rgba(20, 73, 140, 0.1);
    }

    /* Стилизация основной кнопки действия */
    .mobile-cart-actions .btn-primary {
        display: block;
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        font-weight: 700;
        margin: 0;
        border-radius: 6px;
        box-shadow: 0 4px 8px rgba(20, 73, 140, 0.25);
        position: relative;
        overflow: hidden;
    }

    /* Эффект при нажатии для мобильной кнопки */
    .mobile-cart-actions .btn-primary:active {
        transform: translateY(2px);
        box-shadow: 0 2px 4px rgba(20, 73, 140, 0.25);
    }

    /* Стиль для отключенной кнопки */
    .mobile-cart-actions .btn-primary.disabled {
        background-color: #a9bdd2;
        border-color: #a9bdd2;
        opacity: 0.8;
        cursor: not-allowed;
    }

    /* Дополнительный эффект для привлечения внимания */
    @keyframes pulse-checkout {
        0% { transform: scale(1); }
        50% { transform: scale(1.03); }
        100% { transform: scale(1); }
    }

    .mobile-cart-actions .btn-primary:not(.disabled) {
        animation: pulse-checkout 2s infinite;
    }

    /* Скрываем кнопку оплаты в обычном блоке действий на мобильных */
    .cart-product-action .mobile-hidden {
        display: none;
    }

    /* Скрываем подсказку для кнопки удаления на мобильных */
    .cart-product-remove button.btn-remove:before {
        display: none;
    }

    /* Улучшаем доступность кнопки удаления на мобильных */
    .cart-product-remove button.btn-remove {
        width: 35px;
        height: 35px;
        background-color: #fff2f2;
        border: 1px solid #dc3545;
        font-size: 18px;
    }

}
/* Анимация для количества товаров */
.product-quantity input {
    transition: all 0.3s ease;
}
.product-quantity input:focus {
    border-color: #14498c;
    box-shadow: 0 0 0 2px rgba(20, 73, 140, 0.15);
}
.qty-change-animation {
    animation: qty-pulse 0.4s ease;
}
@keyframes qty-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Улучшенные стили для фокуса на элементах */
.btn:focus, a:focus, button:focus, input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 73, 140, 0.2);
}
/* Стили для общей суммы */
.cart-total-amount h6 {
    margin-bottom: 15px;
    color: #14498c;
    font-weight: 600;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(20, 73, 140, 0.1);
}
.cart-total-amount ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
    font-size: 15px;
}
.cart-total-amount ul li:last-child {
    border-bottom: none;
    padding-top: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #14498c;
}
.cart-total-amount .pull-right {
    transition: all 0.3s ease;
}
.total-update-animation {
    animation: total-pulse 0.6s ease;
    color: #14498c;
}
@keyframes total-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
/* Стили для блока с промокодом */
.cart-promo-code h6 {
    margin-bottom: 15px;
    color: #14498c;
    font-weight: 600;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(20, 73, 140, 0.1);
}
.cart-promo-code .form-control {
    height: 40px;
    border-color: #ddd;
    box-shadow: none;
    border-radius: 4px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}
.cart-promo-code .form-control:focus {
    border-color: #14498c;
    box-shadow: 0 0 0 2px rgba(20, 73, 140, 0.1);
}
.cart-promo-code .btn-primary {
    height: 40px;
    margin-left: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(20, 73, 140, 0.2);
}
.cart-promo-code .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(20, 73, 140, 0.3);
}

/* Улучшенные стили для мобильных устройств */
@media (max-width: 767px) {
    .cart-promo-code h6,
    .cart-total-amount h6 {
        font-size: 16px;
        padding-bottom: 8px;
    }

    .cart-promo-code .form-inline .form-group {
        display: flex;
        width: 100%;
    }

    .cart-promo-code .form-control {
        flex: 1;
        width: 100%;
    }

    .cart-promo-code .btn {
        white-space: nowrap;
    }

    .cart-total-amount ul li {
        padding: 8px 0;
        font-size: 14px;
    }

    .cart-total-amount ul li:last-child {
        font-size: 16px;
    }
}
/* Стили для цены и валюты */
.price-value, .total-value {
    font-weight: 600;
    font-size: 16px;
    display: inline-block;
}
.price-currency, .total-currency {
    font-size: 14px;
    color: #666;
    margin-left: 2px;
    display: inline-block;
}

/* Стили для пустой корзины */
#cart_items .empty-cart-container {
    padding: 50px 20px;
    text-align: center;
}
#cart_items .empty-cart-container img {
    max-width: 200px;
    margin-bottom: 20px;
}
#cart_items .empty-cart-container h3 {
    color: #14498c;
    margin-bottom: 15px;
    font-weight: 600;
}
#cart_items .empty-cart-container p {
    color: #666;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Мобильный список корзины */
@media (max-width: 767px) {
    .cart-list,
    .cart-table {
        margin-top: 15px;
        overflow: visible;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }

    .cart-list__header {
        display: none;
    }

    .cart-list__body {
        gap: 15px;
        width: 100%;
    }

    .cart-list__item {
        width: 100%;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        overflow: visible;
        box-sizing: border-box;
    }

    .cart-list__item:hover {
        background: #fff;
    }

    .cart-list__row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        gap: 0;
    }

    .cart-list__col {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
        justify-content: flex-start;
        gap: 4px;
        width: 100%;
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
        box-sizing: border-box;
    }

    .cart-list__col--item {
        display: block;
        width: 100%;
        padding: 48px 15px 12px;
        text-align: left;
        border-bottom: 1px solid #eef2f6;
        box-sizing: border-box;
    }

    .cart-list__label {
        display: block;
        width: 100%;
        max-width: none;
        font-weight: 600;
        color: #14498c;
        text-align: left;
        line-height: 1.4;
    }

    .cart-list__value {
        display: block;
        width: 100%;
        text-align: left;
        margin-left: 0;
    }

    .cart-list__col--length,
    .cart-list__col--price,
    .cart-list__col--qty,
    .cart-list__col--total {
        width: 100%;
        text-align: left;
    }

    .cart-list__col--qty .product-quantity {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .cart-list__col--item .cart-product-item__content {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        padding-right: 36px;
        min-height: 0;
        box-sizing: border-box;
    }

    .cart-product-item__content .cart-product-remove {
        top: -40px;
        right: 0;
        transform: none;
    }

    .cart-list__col--item .cart-product-img {
        margin: 0 12px 0 0;
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .cart-list__col--item .cart-product-name {
        width: 100%;
        flex: 1;
        min-width: 0;
        text-align: left;
        margin-bottom: 0;
    }

    .cart-product-name h6 {
        font-size: 16px;
        text-align: left;
        word-break: break-word;
    }

    .cart-product-name h6 a {
        display: block;
        width: 100%;
    }

    .cart-list__cut {
        padding: 0;
        border-top: 1px dashed #dbe4f0;
    }

    .cart-list__cut .cart-item-cut-plan {
        margin-top: 0;
        padding: 12px;
        border: none;
        border-radius: 0 0 8px 8px;
        background: #f8fafc;
    }

    .cart-list__actions {
        margin: 20px 0 80px;
        padding: 12px 15px;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        background: #f9f9f9;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .cart-list__actions .row {
        margin: 0;
    }

    .cart-list__actions .col-xs-12,
    .cart-list__actions .col-sm-6,
    .cart-list__actions .col-md-6 {
        float: none;
        width: 100%;
        padding: 0;
        margin-bottom: 10px;
        text-align: center !important;
    }

    .cart-list__actions .col-xs-12:last-child,
    .cart-list__actions .col-sm-6:last-child,
    .cart-list__actions .col-md-6:last-child {
        margin-bottom: 0;
    }

    .cart-list__actions .btn,
    .cart-product-action .btn {
        display: block;
        width: 100%;
        margin: 0 0 10px;
        padding: 12px 15px;
        font-size: 15px;
        text-align: center;
    }

    .cart-list__actions .btn:last-child,
    .cart-product-action .btn:last-child {
        margin-bottom: 0;
    }

    .price-value,
    .total-value {
        font-size: 15px;
    }

    .price-currency,
    .total-currency {
        font-size: 13px;
    }
}
/* Специальные классы для отступов иконок в кнопках (совместимость с Bootstrap 3) */
.icon-space {
    margin-right: 5px;
}

/* Улучшенные стили для кнопок */
.btn .fa {
    margin-right: 5px;
}

/* Desktop/Mobile specific elements */
@media (min-width: 768px) {
    .mobile-cart-actions {
        display: none !important;
    }
}
#cart-container {
    padding-bottom: 40px;
}
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    /* Улучшенная мобильная панель действий */
    .mobile-cart-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 15px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        text-align: center;
        border-top: 1px solid rgba(20, 73, 140, 0.1);
        display: block !important;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Анимация для мобильной кнопки оплаты */
    .mobile-cart-actions .btn-primary {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
        border-radius: 6px;
    }

    .mobile-cart-actions .btn-primary:not(.disabled) {
        background-color: #14498c;
        box-shadow: 0 4px 10px rgba(20, 73, 140, 0.3);
    }

    .mobile-cart-actions .btn-primary.active-btn {
        animation: checkout-pulse 2s infinite;
    }

    @keyframes checkout-pulse {
        0% { transform: scale(1); box-shadow: 0 4px 10px rgba(20, 73, 140, 0.3); }
        50% { transform: scale(1.03); box-shadow: 0 6px 15px rgba(20, 73, 140, 0.5); }
        100% { transform: scale(1); box-shadow: 0 4px 10px rgba(20, 73, 140, 0.3); }
    }

    /* Стили для скрытия мобильной кнопки при скролле вверх */
    .mobile-cart-actions.hide-button {
        transform: translateY(100%);
        opacity: 0;
    }

    /* Спецэффект для привлечения внимания к кнопке в мобильной версии */
    .shipping-selected-effect {
        animation: flash-checkout 0.6s ease;
    }

    @keyframes flash-checkout {
        0% { background-color: #14498c; }
        50% { background-color: #0d2d56; }
        100% { background-color: #14498c; }
    }

    /* Больше места для просмотра товаров на мобильных */
    #cart-container {
        padding-bottom: 70px;
    }

    /* Скрытие избыточных элементов на мобильных */
    .cart-total-summary.sticky-bottom {
        position: static;
        box-shadow: none;
        margin-bottom: 60px;
    }
}

/* Стили для модального окна подтверждения удаления корзины */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 500px;
    transform: translateY(-25px);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: #fff;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header .modal-title {
    color: #14498c;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #6c757d;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 0;
    cursor: pointer;
}

.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-body .alert {
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.modal-body .alert i {
    margin-right: 8px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.modal-footer .btn {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-1px);
}

.modal-footer .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.modal-footer .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
}

.modal-footer .btn i {
    margin-right: 6px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .modal-header {
        padding: 0.75rem 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem 1rem;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}
