/* Общие стили для страницы корзины */
.cart-page-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.cart-page-title {
    color: #FE8400;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Секция товаров */
.cart-items-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.cart-empty h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.cart-empty p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #FE8400;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e57300;
}

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Элемент корзины */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
    background: #fafafa;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cart-item-image img:hover {
    transform: scale(1.05);
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 10px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-item-title:hover {
    color: #FE8400;
}

.cart-item-price-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.current-price {
    color: #FE8400;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    justify-content: space-between;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #FE8400;
    color: white;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.quantity-btn:hover {
    background: #e57300;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.cart-item-total {
    text-align: right;
}

.item-total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.remove-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    opacity: 0.7;
}

.remove-btn:hover {
    background: #ffebee;
    opacity: 1;
}

/* Секция итогов */
.order-summary-section {
    position: sticky;
    top: 20px;
}

.order-summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-summary-card h2 {
    color: #FE8400;
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #333;
}

.summary-row span:last-child {
    font-weight: 600;
}

.discount-row {
    color: #4caf50;
}

.discount-text {
    color: #4caf50 !important;
}

.summary-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

.total-row {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 10px;
}

.total-price {
    color: #FE8400;
    font-size: 1.5rem;
}

/* Форма оформления заказа */
.checkout-form {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: #FE8400;
}

.checkout-form textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background-color: #FE8400;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn-checkout:hover:not(:disabled) {
    background-color: #e57300;
}

.btn-checkout:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.continue-shopping:hover {
    color: #FE8400;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.notification.success {
    background-color: #4caf50;
}

.notification.error {
    background-color: #f44336;
}


