.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cart-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Стили таблицы товаров */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cart-table th {
    background-color: #f8f9fa;
    text-align: left;
    padding: 12px;
    font-weight: bold;
    border-bottom: 2px solid #eee;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-table tfoot td {
    padding: 15px;
    font-weight: bold;
    border-top: 2px solid #eee;
}

/* Стили изображений товаров */
.image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Соотношение 4:3 */
    overflow: hidden;
    border-radius: 4px;
    background-color: #f8f9fa;
    margin: 0 auto;
    max-width: 200px; /* Увеличенный размер */
}

.cart-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease; /* Анимация */
}

.cart-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 36px; /* Увеличенный размер */
    background: #f5f5f5;
}

/* Увеличенная ширина ячейки */
.cart-table td:first-child {
    width: 180px;
    padding: 15px;
}

/* Эффект при наведении */
.image-container:hover .cart-item-image {
    transform: scale(1.05);
}

.cart-table td {
    text-align: center;
}

.cart-item-name {
    display: block;
    text-align: left;
    text-decoration: none !important; /* Убираем подчеркивание */
    color: #1a1a1a !important; /* Задаем цвет текста */
    font-weight: 500; /* Небольшая жирность для лучшей читаемости */
    transition: color 0.2s ease; /* Плавное изменение цвета при наведении */
}

/* Стили управления количеством */
.quantity-control {
    display: inline-flex;
    border: none; /* Граница вокруг всего контрола */
    border-radius: 8px;     /* Скругление углов */
    padding: 2px;           /* Внутренний отступ */
    background: #f0f0f0;    /* Фон контейнера */
    max-width: 90px;
}

.quantity-btn {
    width: 26px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.quantity-btn.minus {
    margin-right: 0px;
    /* Отступ справа от кнопки "-" */
}

.quantity-btn.plus {
    margin-left: 0px;
    /* Отступ слева от кнопки "+" */
}

.quantity-btn:hover {
    opacity: 0.8;
}

.quantity-input {
    width: 30px;
    height: 36px;
    text-align: center;
    border: none;
    background-color: #f0f0f0;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    -moz-appearance: textfield;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 36px;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-control form {
    display: flex;
    align-items: center;
}

/* Стили для визуального разделения элементов */
.quantity-btn {
    position: relative;
    z-index: 1;
}

.quantity-input {
    position: relative;
    z-index: 2;
}

.update-btn {
    margin-left: 10px;
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.remove-link {
    color: #dc3545;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

/* Стили формы оформления заказа */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.checkout-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.checkout-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.checkout-section h3 {
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 100px;
    resize: vertical;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.consent-checkbox {
    display: flex;
    align-items: baseline;
    /* Выравнивание по базовой линии текста */
    gap: 10px;
}

.consent-checkbox input[type="checkbox"] {
    position: relative;
    top: 2px;
    /* Точная подстройка */
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #218838;
}

/* Стили пустой корзины */
.empty-cart {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon {
    font-size: 60px;
    color: #e9ecef;
    margin-bottom: 20px;
}

.shop-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.3s;
}

.shop-btn:hover {
    opacity: 0.7;
}

/* Стили информации о доставке */
.info-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.delivery-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

/* Выравнивание текста */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.total-price {
    font-size: 18px;
    white-space: nowrap;
}

.cart-table th {
    vertical-align: middle;
}

.cart-table td {
    vertical-align: middle !important;
}


.price-cell {
    text-align: center;
    font-weight: bold;
}

.item-price {
    font-size: 16px;
    color: #333;
    white-space: nowrap;
}

.item-total-price {
    font-size: 18px;
    color: #e53935;
    font-weight: bold;
}

.remove-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s;
}

.remove-btn:hover {
    opacity: 0.8;
}

.total-price {
    color: #e53935;
    font-size: 20px;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

.form-group {
    margin-bottom: 20px;
    /* Установите нужное значение отступа */
}

.consent-container {
    margin-bottom: 20px;
    /* Такой же отступ, как у form-group */
}

.submit-btn-container {
    margin-top: 10px;
    /* Небольшой отступ сверху */
}

.info-card h3 {
    text-align: center;
    position: relative;
    padding-left: 24px;
    /* Место для иконки */
    margin: 0 0 20px 0;
}

.info-card h3 .fas {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    text-align: left;
}

.info-card .fa-check,
.info-card .fa-truck,
.info-card .fa-envelope {
    position: relative;
    /* Изменено с absolute на relative */
    margin-right: 8px;
    vertical-align: middle;
    /* Выравнивание по середине строки */
    top: -2px;
    /* Тонкая настройка положения */
}

/* Стили для заголовков с иконками */
.info-card h3 {
    text-align: center;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-card h3 .fas {
    margin-right: 10px;
    position: static;
    /* Убираем абсолютное позиционирование */
}

/* Стили для списка */
.info-card ul {
    margin: 12px 0;
    padding-left: 0;
    list-style-type: none;
}

.info-card li {
    margin-bottom: 8px;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    /* Выравнивание по базовой линии */
}

.info-card li:before {
    content: "—";
    margin-right: 8px;
    flex-shrink: 0;
}

/* Для многострочных пунктов */
.info-card li>span {
    flex-grow: 1;
}

.contact-link {
    text-decoration: none !important;
    color: #000;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.contact-link:hover {
    color: #555;
    /* Темно-серый при наведении */
}

/* Стили для контейнера контактов */
.contact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.info-item i {
    margin-right: 12px;
    min-width: 20px;
    text-align: center;
    color: #555;
    flex-shrink: 0;
}