/* Theme21 - Product Detail Supplementary Styles */

.t21-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.t21-detail-header h1 {
    margin-bottom: 0;
}

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

.t21-detail-meta {
    font-size: 0.9rem;
    color: var(--t21-text-light);
    margin-bottom: 32px;
    padding: 16px 20px;
    background: var(--t21-bg);
    border-radius: var(--t21-radius-sm);
    box-shadow: var(--t21-neo-pressed-sm);
}

.t21-detail-content p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.t21-detail-content h2,
.t21-detail-content h3,
.t21-detail-content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--t21-text);
}

.t21-detail-content img {
    border-radius: var(--t21-radius-sm);
    box-shadow: var(--t21-neo-raised-sm);
    margin: 20px 0;
}

.t21-related-section {
    margin-top: 56px;
}

.t21-related-section .t21-section-title {
    margin-bottom: 28px;
}

.t21-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.t21-related-item {
    background: var(--t21-bg);
    overflow: hidden;
    border-radius: var(--t21-radius);
    box-shadow: var(--t21-neo-raised);
    transition: all 0.3s ease;
}

.t21-related-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--t21-neo-raised-lg);
}

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

.t21-related-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin: 12px;
    width: calc(100% - 24px);
    border-radius: var(--t21-radius-sm);
    box-shadow: var(--t21-neo-pressed-sm);
    transition: transform 0.4s ease;
}

.t21-related-item:hover img {
    transform: scale(1.03);
}

.t21-related-item span {
    display: block;
    padding: 14px 20px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t21-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

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

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