.cart-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    color: #0a1c4d;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.page-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffcc00, #ffd633);
    border-radius: 2px;
}

.cart-container {
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

/* Товары в корзине */
.cart-items {
    flex: 2;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(10, 28, 77, 0.1);
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: #0a1c4d;
    padding-bottom: 15px;
    border-bottom: 2px solid #ffcc00;
    font-weight: 600;
}

.cart-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 2px solid rgba(10, 28, 77, 0.1);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.cart-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #ffcc00, #ffd633);
    border-radius: 2px 0 0 2px;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 204, 0, 0.3);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item-title {
    font-size: 1.2rem;
    color: #0a1c4d;
    font-weight: 600;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #0a1c4d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-price:before {
    content: '₽';
    color: #ffcc00;
    font-size: 1.1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 28, 77, 0.05);
    padding: 10px;
    border-radius: 10px;
    width: fit-content;
}

.quantity-btn {
    padding: 10px 15px;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #0a1c4d;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 40px;
}

.quantity-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.quantity-input {
    width: 70px;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.quantity-input:focus {
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.remove-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.remove-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.update-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #0a1c4d 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.update-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 28, 77, 0.3);
}

/* Итоговая информация */
.cart-summary {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(10, 28, 77, 0.1);
    position: sticky;
    top: 100px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #333;
    padding: 15px;
    background: rgba(10, 28, 77, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(10, 28, 77, 0.1);
}

.summary-item.total {
    font-weight: bold;
    color: #0a1c4d;
    font-size: 1.3rem;
    border-top: 2px solid #ffcc00;
    padding-top: 20px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.1) 0%, rgba(255, 214, 51, 0.1) 100%);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 1rem;
    color: #0a1c4d;
    font-weight: 600;
}

.form-group input {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
    transform: translateY(-2px);
}

.checkout-btn {
    padding: 18px 30px;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #0a1c4d;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.4);
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #0a1c4d;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 20px;
    background: rgba(10, 28, 77, 0.05);
    border-radius: 8px;
}

.continue-shopping:hover {
    color: #ffcc00;
    transform: translateX(-5px);
    background: rgba(10, 28, 77, 0.1);
}

/* Пустая корзина */
.empty-cart {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 204, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart p {
    font-size: 1.4rem;
    color: #0a1c4d;
    margin-bottom: 30px;
    font-weight: 600;
}

.catalog-btn {
    padding: 16px 35px;
    background: linear-gradient(135deg, #0a1c4d 0%, #1e3a8a 100%);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.catalog-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 28, 77, 0.3);
}

/* Адаптивность для корзины */
@media (max-width: 1200px) {
    .cart-container {
        gap: 25px;
    }

    .cart-items,
    .cart-summary {
        padding: 25px;
    }
}

@media (max-width: 992px) {
    .cart-container {
        flex-direction: column;
    }

    .cart-summary {
        position: static;
    }

    .cart-item {
        gap: 15px;
        padding: 15px;
    }

    .cart-item-image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 40px 0;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .cart-items,
    .cart-summary {
        padding: 20px;
        border-radius: 15px;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cart-item:before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
    }

    .cart-item-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .cart-item-quantity {
        margin: 0 auto;
    }

    .remove-btn {
        margin: 0 auto;
    }

    .summary-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .empty-cart {
        padding: 40px 25px;
        margin: 0 15px;
    }

    .empty-cart p {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .cart-page {
        padding: 30px 0;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .cart-items,
    .cart-summary {
        padding: 15px;
        margin: 0 10px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .cart-item-title {
        font-size: 1.1rem;
    }

    .cart-item-price {
        font-size: 1.1rem;
    }

    .cart-item-quantity {
        flex-direction: column;
        gap: 10px;
    }

    .quantity-input {
        width: 100px;
    }

    .update-btn,
    .checkout-btn,
    .catalog-btn {
        width: 100%;
        justify-content: center;
    }

    .continue-shopping {
        width: 100%;
        justify-content: center;
    }

    .empty-cart {
        padding: 30px 20px;
    }

    .empty-cart p {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .cart-item-image {
        width: 100px;
        height: 100px;
    }

    .quantity-btn {
        padding: 8px 12px;
        min-width: 35px;
    }

    .quantity-input {
        width: 80px;
        padding: 8px;
    }

    .remove-btn {
        padding: 10px;
    }

    .update-btn,
    .checkout-btn,
    .catalog-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
}