body {
    background-color: #e31010;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.title {
    text-align: center;
    padding-top: 20px;
    color: white;
    font-size: 2em;
}

.container {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

.card {
    background: rgb(255, 255, 255);
    width: 100%;
    text-align: center;
    border-radius: 8px;
    padding-bottom: 10px;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(188, 6, 6, 0.2);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(184, 19, 19, 0.4);
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.card p {
    margin: 10px 0;
}

.card span {
    background: #15a826;
    color: rgb(255, 255, 255);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
}

/* Изменяем селектор с button на .buy-button */
.card .buy-button {
    background: #ffffff;
    border: 2px solid #00c016;
    color: #000000;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
    
    /* Дополнительные стили для ссылки, чтобы она выглядела как кнопка */
    text-decoration: none; /* Убирает подчеркивание */
    display: inline-block; /* Позволяет применять padding и margin-top */
}

/* Изменяем селектор для hover-эффекта */
.card .buy-button:hover {
    background: #00c016;
    color: white;
}

/* --- Стили для страницы оформления заказа (checkout.html) --- */
/* --- Глобальные стили для профессионального вида --- */

/* Используем более современный шрифт, если доступен */
body {
    background-color: #f0f2f5; /* Светло-серый фон */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333; /* Темный текст */
}

.title {
    color: #2c3e50; /* Темно-синий/почти черный */
}

/* --- Хедер (Добавлен в HTML) --- */
.main-header {
    background: #2c3e50; /* Темный, премиальный цвет */
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-header h1 {
    margin: 0;
    font-size: 1.8em;
}

.logo-color {
    color: #00c016; /* Ваш зеленый акцент */
    font-weight: 700;
}

/* --- Основное содержимое --- */
.main-content {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* --- Сетка оформления заказа (Grid) --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Левая колонка шире правой */
    gap: 30px;
}

.form-column {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Мягкая тень */
}



/* --- Секции формы --- */
.form-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.form-section h3 {
    color: #00c016; /* Зеленый заголовок */
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
}

/* Группы ввода */
.input-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600; /* Полужирный */
    color: #555;
    font-size: 0.95em;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="email"],
.checkout-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px; /* Более мягкие углы */
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 1em;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: #00c016;
    box-shadow: 0 0 5px rgba(0, 192, 22, 0.3);
    outline: none;
}

/* --- Опции оплаты (Радиокнопки) --- */
.radio-option {
    margin-bottom: 15px;
}

.radio-option input[type="radio"] {
    display: none; /* Скрываем стандартный радиобаттон */
}

.radio-option label {
    font-weight: normal;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    transition: background 0.2s, border-color 0.2s;
}

.radio-option input[type="radio"]:checked + label {
    background: #e6ffe6; /* Светло-зеленый фон при выборе */
    border-color: #00c016; /* Зеленая рамка */
    font-weight: 600;
}

/* --- Сводка Заказа (Правая колонка) --- */
.order-summary {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky; /* Закрепляет сводку при прокрутке */
    top: 20px; 
}

.order-summary h4 {
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1em;
}

.summary-item.product-line {
    font-weight: 600;
}

.summary-item.fee-line {
    color: #7f8c8d;
    font-size: 0.9em;
}

.price-value {
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid #2c3e50; /* Толстая темная линия */
    margin-top: 20px;
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
}

.total-price {
    color: #00c016; /* Акцент на финальной цене */
}

/* Кнопка подтверждения */
.place-order-button {
    width: 100%;
    background: #00c016;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 8px; /* Немного больше радиус */
    cursor: pointer;
    font-size: 1.2em;
    margin-top: 20px;
    transition: background 0.3s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 192, 22, 0.4);
}

.place-order-button:hover {
    background: #00990d;
    transform: translateY(-2px); /* Небольшой подъем при наведении */
}

.security-note {
    text-align: center;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 20px;
}

/* --- Медиа-запросы для адаптивности --- */
@media (max-width: 800px) {
    .checkout-grid {
        grid-template-columns: 1fr; /* На мобильных устройствах все в один столбец */
    }
    
    .summary-column {
        order: -1; /* Сводка заказа идет первой на мобильных */
    }
    
    .order-summary {
        position: static;
    }
}