/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основной контейнер для страницы */
body {
    font-family: Arial, sans-serif;
    background-color: #2c2f36; /* Темный фон */
    color: #f4f4f4; /* Светлый текст */
    padding: 20px;
}

/* Кнопки */
a.back-button, .buy-button, .order-button {
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s;
}

a.back-button:hover, .buy-button:hover, .order-button:hover {
    background-color: #0056b3;
}

/* Контейнер карточек товаров */
.product-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

/* Карточки товаров */
.product-card {
    background-color: #444;
    padding: 20px;
    width: 250px;
    border: 1px solid #666;
    border-radius: 8px;
    text-align: center;
}

.product-card img {
    width: 100%;
    border-radius: 8px;
}

.product-card h2, .product-card p {
    color: #fff;
    margin: 10px 0;
}

/* Страница товара */
.product-detail {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.product-image img {
    width: 300px;
    border-radius: 8px;
}

.product-info {
    flex: 2;
    text-align: left;
}

.product-info h2 {
    margin-bottom: 20px;
    color: #fff;
}

.product-info-main {
    display: flex;
    gap: 20px;
}

/* Таблица товара */
.product-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.product-table table, th, td {
    border: 1px solid #666;
    padding: 8px;
    color: #fff;
}

th {
    background-color: #333;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.product-description p {
    font-size: 16px;
    line-height: 1.5;
    color: #f4f4f4;
}

/* Блок цены (светлый фон) */
.price-card {
    background-color: #f4f4f4; /* Светлый фон для блока цены */
    padding: 20px;
    border-radius: 8px;
    width: 250px;
    text-align: center;
    margin-top: 20px;
    flex: 1;
    display: flex;
    flex-direction: column; /* Размещение элементов в колонку */
    justify-content: center; /* Выравнивание по вертикали */
    align-items: center; /* Выравнивание по горизонтали */
}

.price-card p {
    font-size: 20px;
    color: #333; /* Темный текст */
    margin-bottom: 15px;
}

/* Кнопка внутри блока цены */
.order-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.order-button:hover {
    background-color: #0056b3;
}
