.detail-page .detail-hero-card,
.detail-main-card,
.detail-side-card {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.08);
    background: #fff;
}

.detail-page .detail-media {
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.05), transparent 40%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-right: 1px solid #eef0f2;
    border-top-left-radius: 1.25rem;
    border-bottom-left-radius: 1.25rem;
}

.detail-page .detail-image {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.detail-page .detail-image:hover {
    transform: scale(1.015);
}

.detail-page .detail-image-placeholder {
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #d9dee3;
    border-radius: 1rem;
    background: #fff;
}

.detail-page .detail-content {
    padding: 2rem;
}

.detail-page .detail-brand {
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.detail-page .detail-meta-box {
    background: #f8f9fa;
    border: 1px solid #eef0f2;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    height: 100%;
}

.detail-page .detail-meta-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.detail-page .detail-meta-value {
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
    color: #111827;
}

.detail-page .detail-price-box {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.detail-page .detail-price {
    font-size: clamp(1.75rem, 2vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    color: #111827;
}

.detail-page .breadcrumb a {
    text-decoration: none;
}

.detail-page .breadcrumb a:hover {
    text-decoration: underline;
}

.detail-main-card .card-body,
.detail-side-card .card-body {
    padding: 1.35rem 1.35rem;
}

.detail-main-card .table {
    --bs-table-bg: transparent;
    margin-bottom: 0;
}

.detail-main-card .table > :not(caption) > * > * {
    padding: 0.9rem 1rem;
    vertical-align: top;
}

.detail-main-card .table th {
    width: 220px;
    font-weight: 600;
    color: #374151;
    background: #f8fafc;
    border-bottom-color: rgba(15, 23, 42, 0.06);
    white-space: nowrap;
}

.detail-main-card .table td {
    color: #111827;
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

.detail-main-card .table tr:last-child th,
.detail-main-card .table tr:last-child td {
    border-bottom-width: 0;
}

.detail-side-card {
    position: relative;
}

.related-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.related-side-title .title-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.related-side-title .title-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    background: #eef4ff;
    color: #0d6efd;
    white-space: nowrap;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-item-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    height: 100%;
}

.related-item:hover {
    text-decoration: none;
    color: inherit;
}

.related-item:hover .related-item-card {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.10);
    border-color: rgba(13, 110, 253, 0.22);
}

.related-thumb-wrap {
    position: relative;
    min-height: 132px;
    height: 100%;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.06), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.related-thumb {
    max-width: 100%;
    max-height: 108px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

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

.related-placeholder {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: center;
}

.related-badge-star {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 23, 42, 0.14);
    z-index: 2;
    font-size: 0.9rem;
}

.related-badge-star.tpa {
    color: #198754;
}

.related-badge-star.external {
    color: #f59f00;
}

.related-body {
    padding: 0.95rem 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-brand {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 0.35rem;
}

.related-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    margin-bottom: 0.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.related-meta {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.related-price {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.related-login-hint {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

@media (max-width: 1199.98px) {
    .related-thumb-wrap {
        min-height: 120px;
    }
}

@media (max-width: 991.98px) {
    .detail-page .detail-media {
        border-right: 0;
        border-bottom: 1px solid #eef0f2;
        border-top-right-radius: 1.25rem;
        border-bottom-left-radius: 0;
    }

    .detail-page .detail-content {
        padding: 1.25rem;
    }

    .detail-main-card .table th {
        white-space: normal;
        width: 180px;
    }
}

@media (max-width: 575.98px) {
    .detail-page .detail-media {
        padding: 1.25rem;
    }

    .detail-page .detail-image {
        max-height: 320px;
    }

    .detail-page .detail-image-placeholder {
        min-height: 260px;
    }

    .detail-main-card .card-body,
    .detail-side-card .card-body {
        padding: 1rem;
    }

    .detail-main-card .table > :not(caption) > * > * {
        padding: 0.75rem 0.75rem;
    }

    .related-body {
        padding: 0.85rem;
    }

    .related-title {
        font-size: 0.9rem;
    }

    .related-price {
        font-size: 0.95rem;
    }

    .related-side-title {
        align-items: flex-start;
        flex-direction: column;
    }
}