.cart-page {
    padding: 60px 0;
    background-color: #f8f9fa;
    min-height: 70vh;
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cart-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: #313131;
    text-align: center;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-items {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cart-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #313131;
    margin-right: 20px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 18px;
    margin-bottom: 5px;
    color: #313131;
}

.cart-item-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #313131;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, opacity 0.3s;
}

.quantity-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.quantity-btn:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.quantity-input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 10px;
}

.quantity-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.cart-item-remove {
    margin-left: 20px;
    color: #ff6b6b;
    cursor: pointer;
    transition: color 0.3s;
}

.cart-item-remove:hover {
    color: #ff3838;
}

.cart-summary {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.summary-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #313131;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-total {
    font-size: 24px;
    font-weight: 700;
    color: #313131;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 80px;
    color: #d5e300;
    margin-bottom: 20px;
}

.empty-cart-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #313131;
}

.promo-code {
    margin-top: 30px;
}

.promo-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.promo-btn {
    width: 100%;
    background-color: #f0f0f0;
    color: #313131;
}

.promo-btn:hover {
    background-color: #e0e0e0;
}

@media (max-width: 992px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: 32px 0;
    }
    .cart-container {
        padding: 0 16px;
    }
    .cart-title {
        font-size: 28px;
    }
    .cart-items,
    .cart-summary {
        padding: 20px;
    }
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 0;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        margin-right: 0;
        margin-bottom: 12px;
        font-size: 32px;
    }
    
    .cart-item-title {
        font-size: 16px;
    }
    
    .cart-item-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-top: 12px;
    }
    .quantity-btn,
    .quantity-input {
        min-height: 40px;
    }
}

@media (max-width: 480px) {
    .cart-page {
        padding: 24px 0;
    }
    .cart-container {
        padding: 0 14px;
    }
    .cart-title {
        font-size: 24px;
    }
    .cart-items,
    .cart-summary {
        padding: 16px;
    }
    .cart-item-image {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    .summary-title {
        font-size: 18px;
    }
    .summary-total {
        font-size: 20px;
    }
}

/* Оформление заказа — мобильная адаптация */
@media (max-width: 768px) {
    .checkout-page {
        padding: 24px 0;
    }
    .checkout-container {
        padding: 0 16px;
    }
    .checkout-title {
        font-size: 26px;
        margin-bottom: 24px;
    }
    .checkout-form {
        padding: 20px;
    }
    .form-section-title {
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .checkout-page {
        padding: 20px 0;
    }
    .checkout-container {
        padding: 0 14px;
    }
    .checkout-title {
        font-size: 22px;
    }
    .checkout-form {
        padding: 16px;
    }
}