.detail-info {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.detail-info:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    border-color: #037bff;
    transform: translateY(-2px);
}

.detail-info__header {
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #404040;
    margin-bottom: 1.5rem;
}

.detail-info__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e0e0e0;
}

.detail-info__title b {
    color: #a0a0a0;
    font-weight: 500;
    margin-right: 0.5rem;
}

.detail-info__price {
    background: #363636;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #4a4a4a;
}

.detail-info__price:hover {
    background: #3a3a3a;
    border-color: #037bff;
}

.detail-info__price strike {
    color: #888;
    margin-right: 1rem;
}

.detail-info__price h5 {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4caf50;
    margin: 0;
}

.detail-info__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-info__brand,
.detail-info__model {
    background: #363636;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
    transition: all 0.3s ease;
    color: #e0e0e0;
}

.detail-info__brand:hover,
.detail-info__model:hover {
    background: #3a3a3a;
    border-color: #037bff;
    box-shadow: 0 2px 10px rgba(3, 123, 255, 0.2);
}

.detail-info__brand b,
.detail-info__model b {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #a0a0a0;
    margin-bottom: 0.5rem;
}

.detail-info__brand,
.detail-info__model {
    font-size: 1.2rem;
    font-weight: 500;
}

.detail-info__description {
    grid-column: 1 / -1;
    background: #363636;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #4a4a4a;
    transition: all 0.3s ease;
    color: #d0d0d0;
}

.detail-info__description:hover {
    background: #3a3a3a;
    border-color: #037bff;
}

.detail-info__description h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-weight: 600;
}

.detail-info__description hr {
    border-color: #4a4a4a;
    margin: 1rem 0;
}

.detail-info__description p {
    line-height: 1.6;
    color: #c0c0c0;
}

.detail-info__description ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.detail-info__description li {
    padding: 0.5rem 1rem;
    background: #2d2d2d;
    border-radius: 6px;
    border: 1px solid #4a4a4a;
    transition: all 0.3s ease;
    color: #c0c0c0;
    list-style-type: none;
}

.detail-info__description li:hover {
    border-color: #037bff;
    background: #333333;
    transform: translateX(3px);
    color: #e0e0e0;
}

/* Кнопка покупки */
.btn-outline-success {
    background: transparent;
    border: 2px solid #4caf50;
    color: #4caf50;
    padding: 0.6rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
}

.btn-outline-success:hover {
    background: #4caf50;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Форма отзыва */
.form-group {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #404040;
    margin: 1.5rem 0;
}

.form-group label {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    background: #363636;
    border: 1px solid #4a4a4a;
    color: #e0e0e0;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #037bff;
    box-shadow: 0 0 5px rgba(3, 123, 255, 0.3);
}

/* Комментарии */
.comments-list {
    margin-top: 2rem;
}

.media {
    background: #2d2d2d;
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #404040;
    transition: all 0.3s ease;
}

.media:hover {
    background: #323232;
    border-color: #037bff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.media-left {
    margin-right: 1rem;
}

.media-left .material-icons {
    font-size: 40px;
    color: #808080;
    transition: color 0.3s ease;
}

.media:hover .material-icons {
    color: #037bff;
}

.user_name {
    color: #037bff;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.media-body {
    color: #c0c0c0;
}

.media-body p {
    margin-top: 0.5rem;
}

.media-body a {
    color: #808080;
    transition: color 0.3s ease;
    margin-right: 0.8rem;
    text-decoration: none;
}

.media-body a:hover {
    color: #037bff;
}

.media-body .material-icons {
    font-size: 20px;
    color: inherit;
}

/* Сообщение об отсутствии товара */
.detail-info h1 {
    text-align: center;
    padding: 2rem;
    background: #363636;
    border-radius: 8px;
    border: 1px solid #404040;
    font-size: 1.3rem;
    color: #e0e0e0;
    margin: 0;
}

.detail-info h1 a {
    color: #037bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.detail-info h1 a:hover {
    color: #4caf50;
    text-decoration: underline;
}

/* Сообщение о купленном товаре */
.detail-info p:contains("Товар уже был приобретён") {
    grid-column: 1/-1;
    text-align: center;
    padding: 1.5rem;
    background: #2d2d2d;
    border-radius: 8px;
    border: 1px solid #4caf50;
    color: #4caf50;
}

/* Сообщение об авторизации */
.detail-info .alert-info {
    grid-column: 1/-1;
    text-align: center;
    padding: 1.5rem;
    background: #2d2d2d;
    border-radius: 8px;
    border: 1px solid #037bff;
    color: #e0e0e0;
}

.detail-info .alert-info a {
    color: #037bff;
    font-weight: 600;
    text-decoration: none;
}

.detail-info .alert-info a:hover {
    text-decoration: underline;
}

/* Текст с ценой */
.detail-info p {
    color: #c0c0c0;
}

.detail-info p strike {
    color: #888;
}

/* Заголовок количества отзывов */
.page-header h1 small {
    color: #a0a0a0 !important;
}

/* Ссылки в комментариях */
.media-body a {
    color: #808080;
    transition: color 0.3s ease;
}

.media-body a:hover {
    color: #037bff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .detail-info {
        padding: 1rem;
    }

    .detail-info__header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .detail-info__price {
        width: 100%;
        text-align: center;
    }

    .detail-info__content {
        grid-template-columns: 1fr;
    }

    .btn-outline-success {
        width: 100%;
    }
}