/* Theme18 - Product Detail Supplementary Styles */

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

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

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

.t18-detail-meta {
    font-size: 0.9rem;
    color: var(--t18-text-light);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--t18-border);
    font-family: var(--t18-font-mono);
}

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

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

.t18-detail-content img {
    border: 1px solid var(--t18-border);
    margin: 16px 0;
}

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

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

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

.t18-related-item {
    background: var(--t18-bg-card);
    overflow: hidden;
    border: 1px solid var(--t18-border);
    transition: all 0.4s ease;
    position: relative;
}

.t18-related-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.t18-related-item:hover::before {
    border-color: var(--t18-primary);
    box-shadow: inset var(--t18-glow-sm);
}

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

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

.t18-related-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    filter: brightness(0.85);
    transition: all 0.4s ease;
}

.t18-related-item:hover img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.t18-related-item span {
    display: block;
    padding: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t18-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--t18-bg-card);
}

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

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

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

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