/* Основной контейнер */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Roboto', sans-serif; 
}

.cart-content {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.continue-shopping {
    text-decoration: none;
    color: #647284;
    border: 2px solid #647284;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 12px;
}

.continue-shopping:hover {
    background-color: #647284;
    color: white;
}

.cart-items {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
}
/* Шаги */
.cart-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    font-size: 16px;
    gap: 30px;
    color: #555555;
}

.cart-steps .step::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
}
.cart-steps .step.active {

    color: black;
    font-weight: bold;

}

.step a {
    text-decoration: none;
    color: black;
}

.cart-steps .step.active::before {
    background: #fff;
}

/* Таблица товаров */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}
.cart-table th,
.cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;

}
.cart-table th {
    font-weight: bold;
    color: #777777;
    font-size: 14px;
}

.cart-table thead {
    border-bottom: 3px solid #eee;
}


.cart-table .product-info {
    display: flex;
    align-items: start;
    gap: 10px;
}
.cart-table .product-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}
.cart-table .quantity-input {
    width: 60px;
    padding: 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.cart-table .remove-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #CCCCCC;
    padding: 0px 6px;
    border: 3px solid #CCCCCC;
    border-radius: 18px;
}

.subtotal, .price {
    font-weight: bold;
}

.cart-table .remove-btn:hover {
    color: black;
    border: 3px solid black;
}

/* Сводка корзины */
.cart-summary {
    border-left: 1px solid #ddd;
    margin-left: 20px;
    padding-left: 30px;
    width: 100%;
    max-width: 400px;
}
.cart-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 14px;
    border: 3px solid #777777;
    padding: 4px 4px;
    border-bottom: 3px solid #ddd;
    color: #777777;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#cart-subtotal, #cart-total {
    font-weight: bold;
    font-size: 14px;
    color: black;
}

.summary-row span {
    font-size: 14px;
    color: #777777;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #555555;
    color: white;
    font-weight: bold;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s ease;
}
.checkout-btn:hover {
    background: #3a3a3a;
}

/* Пустая корзина */
.empty-cart {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}
.empty-cart p {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #5a677a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s ease;
}
.btn-primary:hover {
    background: #4a5768;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-content {
        flex-direction: column;
    }
    .cart-items {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .cart-summary {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
    .cart-table th,
    .cart-table td {
        padding: 8px;
    }

    .cart-summary {
        border-left: none;
        padding: 0px;
        padding-left: 0px;
        margin-left: 0px;
    }
}



/* === Форма оформления заказа === */

.checkout-content {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.checkout-form {
    width: 60%;
    padding: 20px;
    background: #fff;
    border-top: 2px solid #ddd;
}

.checkout-form h3 {
    font-size: 14px;
    color: #777777;
    margin-bottom: 15px;
    padding: 4px 4px;
    border: 3px solid #777777;
    border-bottom: 3px solid #ddd;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.full-width input,
.form-row.full-width textarea {
    width: 100%;
}

.form-row input,
.form-row textarea {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-row textarea {
    min-height: 80px;
    resize: vertical;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #555555;
    color: white;
    font-weight: bold;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.2s ease;
}

.checkout-btn:hover {
    background: #3a3a3a;
}

.privacy-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.privacy-note a {
    color: #555555;
    text-decoration: underline;
}

/* === Блок "Ваш заказ" === */

.order-summary {
    width: 40%;
    padding: 20px;
    border: 2px solid #647284;

}

.order-summary h3 {
    font-size: 14px;
    color: #777777;
    margin-bottom: 15px;
    padding: 4px 4px;
    border: 3px solid #777777;
    border-bottom: 3px solid #ddd;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.order-table th,
.order-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.order-table td.d {
    color: #777777;
}

.order-table th {
    font-weight: bold;
    color: #777777;
    font-size: 14px;
    border-bottom: 3px solid #eee;
}

.order-table tfoot tr {
    border-top: 2px solid #ddd;
}

.order-table tfoot td {
    font-weight: bold;
    font-size: 14px;
    color: black;
}


.no-payment {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #ddd;
}

/* === Адаптивность === */

@media (max-width: 992px) {
    .checkout-content {
        flex-direction: column;
    }
    .checkout-form,
    .order-summary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    .checkout-form {
        padding: 15px;
    }
    .order-summary {
        padding: 15px;
    }
}


.checkout-content h3 {
    border: none !important;
    font-size: 16px;
}