.cart-container {
    padding: 40px 0;
    min-height: 70vh;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-items-section{

}

.cart-container h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    padding-bottom: 15px;
}

.cart-content {
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: start;
}

/* Стили для товаров */
#cart-items {
    margin-bottom: 0;
}

.cart-items-section{
    max-width: 60%;
}

.cart-item {

    display: flex;
    /*grid-template-columns: 1fr auto;*/
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.cart-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.cart-item-img {
    max-height: 300px;
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f1f1f1;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #bdc3c7;
    background: #ffffff;
    color: #7f8c8d;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: #3498db;
    color: #3498db;
    background: #f8f9fa;
}

.qty {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    min-width: 30px;
    text-align: center;
    padding: 4px 8px;
}

.remove-btn {
    padding: 8px 16px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.remove-btn:hover {
    background: #c0392b;
}

/* Стили для формы */
.checkout-form {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.checkout-form h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    animation: shake 0.5s ease-in-out;
}

.required::after {
    content: '*';
    color: #e74c3c;
    margin-left: 3px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input {
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #7f8c8d;
}

.checkbox-group a {
    color: #3498db;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.checkbox-group.error label {
    color: #e74c3c;
}

#checkout-btn {
    width: 100%;
    padding: 14px;
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#checkout-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.cart-total {
    display: none;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
}

.cart-total span {
    color: #e74c3c;
    font-size: 1.4rem;
    margin-left: 10px;
}

/* Анимация тряски */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Адаптивность */
@media (max-width: 968px) {
    .cart-items-section{
        max-width: 100%;
    }
    .cart-content {
        align-items: center;
        flex-direction: column-reverse;
        gap: 20px;
    }

    .checkout-form {
        order: -1;
    }
}

@media (max-width: 768px) {
    .cart-container {
        padding: 30px 15px;
    }

    .cart-container h1 {
        font-size: 1.8rem;
    }

    .cart-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .cart-item-img {
        width: 150px;
        height: auto;
    }

    .cart-item-info h3 {
        font-size: 1rem;
    }

    .cart-item-price {
        font-size: 1rem;
    }

    .cart-item-qty {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #ecf0f1;
    }

    .checkout-form {
        padding: 20px;
    }
}

/* Стиль для пустой корзины */
#cart-items p {
    text-align: start;
    color: #7f8c8d;

}

.cart-item-features {
    margin: 10px 0;
}

.cart-item-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item-features li {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
    padding: 2px 0;
    position: relative;
    padding-left: 12px;
}

.cart-item-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

/* Адаптивность для характеристик */
@media (max-width: 768px) {
    .cart-item-features li {
        font-size: 0.8rem;
    }

    .cart-item-features {
        margin: 8px 0;
    }
}
