/* Theme20 - Product Detail Supplementary Styles */

.t20-detail-header {
    display: flex;
    align-items: center;
    gap: var(--t20-space-2);
    margin-bottom: var(--t20-space-3);
}

.t20-detail-header h1 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.t20-detail-header h1::before {
    display: none;
}

.t20-detail-meta {
    font-size: 0.8rem;
    color: var(--t20-text-light);
    margin-bottom: var(--t20-space-4);
    padding-bottom: var(--t20-space-3);
    border-bottom: 1px solid var(--t20-border);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.t20-detail-content p {
    margin-bottom: var(--t20-space-2);
    line-height: 1.8;
}

.t20-detail-content h2,
.t20-detail-content h3,
.t20-detail-content h4 {
    margin-top: var(--t20-space-4);
    margin-bottom: var(--t20-space-2);
    color: var(--t20-black);
}

.t20-detail-content img {
    border: 2px solid var(--t20-border);
    margin: var(--t20-space-2) 0;
}

.t20-related-section {
    margin-top: var(--t20-space-6);
}

.t20-related-section .t20-section-title {
    margin-bottom: var(--t20-space-3);
}

.t20-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--t20-space-3);
}

.t20-related-item {
    background: var(--t20-bg-card);
    overflow: hidden;
    border: 2px solid var(--t20-border);
    transition: all 0.2s ease;
}

.t20-related-item:hover {
    border-color: var(--t20-black);
    box-shadow: var(--t20-shadow);
}

.t20-related-item a {
    display: block;
    text-decoration: none;
}

.t20-related-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.t20-related-item:hover img {
    transform: scale(1.05);
}

.t20-related-item span {
    display: block;
    padding: var(--t20-space-2);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t20-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 2px solid var(--t20-border);
}

.t20-related-item:hover span {
    color: var(--t20-primary);
}

@media (max-width: 1024px) {
    .t20-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .t20-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .t20-related-item img {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .t20-related-grid {
        grid-template-columns: 1fr;
    }
}
