/* Сетка товара */
.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 40px;
    margin: 30px 0;
}

.product-left {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.product-right {
    min-width: 0;
}

/* Карточка характеристик */
.specs-card {
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    position: sticky;
}

.specs-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    text-align: left;
    padding: 12px 0;
    width: 45%;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.specs-table td {
    text-align: right;
    padding: 12px 0;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
}

.no-specs {
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    margin: 0;
}

/* Краткое описание */
.product-excerpt {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.excerpt-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.excerpt-content {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.excerpt-content p {
    margin: 0 0 8px 0;
}

.excerpt-content p:last-child {
    margin-bottom: 0;
}

/* ==================== АДАПТИВНОСТЬ ==================== */

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .specs-card {
        position: static;
        padding: 16px;
    }
    .specs-title {
        font-size: 18px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }
    .specs-table th,
    .specs-table td {
        padding: 8px 0;
        font-size: 13px;
    }
    .specs-table th {
        width: 40%;
    }
    .specs-table td {
        width: 60%;
    }
}

@media (max-width: 480px) {
    .specs-card {
        padding: 14px;
        border-radius: 12px;
    }
    .specs-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    .specs-table,
    .specs-table tbody,
    .specs-table tr,
    .specs-table th,
    .specs-table td {
        display: block;
    }
    .specs-table tr {
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    .specs-table tr:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .specs-table th {
        width: 100%;
        text-align: left;
        padding: 0 0 4px 0;
        font-size: 12px;
        color: #64748b;
    }
    .specs-table td {
        width: 100%;
        text-align: left;
        padding: 0;
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
    }
    .no-specs {
        padding: 16px;
        font-size: 13px;
    }
}

@media (max-width: 350px) {
    .product-grid {
        gap: 20px;
    }
    .product-right {
        width: 280px;
        justify-self: center;
    }
    .product-left {
        width: 280px;
        justify-self: center;
    }
}