body.detail-page {
    margin: 0;
    background: #f1f2f4;
    color: #1f2023;
    font-family: "Noto Sans", "Segoe UI", sans-serif;
}

.detail-layout {
    margin-top: 14px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 12px;
    align-items: start;
}

.detail-left,
.detail-right {
    display: grid;
    gap: 12px;
}

.card {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    padding: 14px;
}

.breadcrumb {
    color: #737983;
    font-size: 12px;
    margin-bottom: -2px;
}

.media-main {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    height: 410px;
}

.media-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 26px;
}

.media-nav.prev { left: 10px; }
.media-nav.next { right: 10px; }

.media-counter {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 12px;
    border-radius: 999px;
    padding: 4px 8px;
}

.media-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    overflow: auto;
}

.thumb-item {
    border: 2px solid transparent;
    background: #fff;
    border-radius: 8px;
    width: 62px;
    height: 62px;
    padding: 2px;
}

.thumb-item.active {
    border-color: #0d6efd;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.tag-row {
    display: flex;
    gap: 8px;
}

.badge {
    border-radius: 999px;
    background: #e8f1ff;
    color: #0d57c2;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.badge-soft {
    background: #f4f5f7;
    color: #586171;
}

.primary-info h1 {
    margin: 10px 0 6px;
    font-size: 34px;
    line-height: 1.22;
}

.subline {
    margin: 0;
    color: #656d79;
}

.price-line {
    margin-top: 8px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price {
    color: #e15225;
    font-size: 32px;
}

.meta {
    margin: 8px 0 0;
    color: #555f6f;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta img {
    width: 16px;
    height: 16px;
}

.spec-card h2,
.desc-card h2,
.map-card h2,
.related-card h2,
.project-card-inline h2,
.consult-card h2,
.comment-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.spec-card dl {
    margin: 0;
}

.spec-card dl div {
    display: grid;
    grid-template-columns: 210px 1fr;
    border-top: 1px solid #eff1f4;
    padding: 10px 0;
    font-size: 14px;
}

.spec-card dt {
    color: #737b87;
}

.spec-card dd {
    margin: 0;
    font-weight: 600;
}

.desc-card p {
    margin: 0 0 8px;
    line-height: 1.5;
    color: #313845;
}

.show-phone {
    border: 0;
    background: #f3f5f8;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    color: #465166;
}

.project-inline-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px;
}

.project-inline-row img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.project-inline-row h3 {
    margin: 0;
}

.project-inline-row p {
    margin: 6px 0 0;
    color: #555f6f;
    font-size: 14px;
}

.map-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e7eaf0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.detail-related-strip {
    margin: 0 0 26px;
}

.detail-related-container {
    margin-top: 0;
}

.related-card--wide {
    padding: 14px;
}

.related-grid .listing-cover-img {
    height: 120px;
}

.related-grid .listing-body h3 {
    min-height: 34px;
    font-size: 13px;
}

.related-grid .listing-price {
    font-size: 14px;
}

.seller-top {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
}

.seller-top .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d7e8ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.seller-top h3 {
    margin: 0;
    font-size: 16px;
}

.seller-top p {
    margin: 4px 0 0;
    color: #6b7380;
    font-size: 12px;
}

.seller-stats {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.seller-stats div {
    background: #f4f6f9;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.seller-stats strong {
    display: block;
    font-size: 15px;
}

.seller-stats span {
    color: #697282;
    font-size: 11px;
}

.seller-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.seller-actions button {
    border: 1px solid #e2e7ef;
    background: #fff;
    border-radius: 8px;
    min-height: 36px;
    font-weight: 700;
}

.seller-actions .phone {
    grid-column: 1 / -1;
    border: 0;
    background: #ff7e35;
    color: #fff;
}

.consult-form {
    display: grid;
    gap: 8px;
}

.consult-form input,
.consult-form textarea {
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    padding: 10px;
    font: inherit;
}

.consult-form button {
    border: 0;
    border-radius: 8px;
    min-height: 38px;
    background: #9ba2ad;
    color: #fff;
    font-weight: 700;
}

.comment-empty {
    color: #7c8492;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.comment-card input {
    width: 100%;
    margin-top: 8px;
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    padding: 10px;
}

.form-feedback {
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #edf6ff;
    color: #1657b3;
    font-size: 13px;
    font-weight: 600;
}

.comment-list {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.comment-item {
    border: 1px solid #e7ebf2;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fafbfd;
}

.comment-item strong {
    font-size: 13px;
}

.comment-item p {
    margin: 4px 0 0;
    color: #485264;
    font-size: 13px;
}

@media (max-width: 1400px) {
    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .media-main {
        height: 300px;
    }

    .primary-info h1 {
        font-size: 24px;
    }

    .price {
        font-size: 24px;
    }

    .spec-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
