/* =========================
   PRODUCT DETAIL - CLEAN (your markup compatible)
   Uses: .detail, .detail-grid, .detail-media, .detail-body,
         .detail-title, .detail-short, .detail-desc,
         .specs .spec, .desc-text,
         .detail-actions .btn-wa .btn-soft,
         .hint.hint-info
   ========================= */

.detail {
    padding: 10px 0 26px;
}

.backlink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    color: #0f172a;
    margin: 6px 0 14px;
    opacity: .9;
}

    .backlink:hover {
        opacity: 1;
    }

.back-ico {
    font-size: 1.1rem;
    line-height: 1;
}

/* Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 22px;
    align-items: start;
}

/* Media */
.detail-media {
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15,23,42,.06);
    padding: 16px;
    overflow: hidden;
}

    .detail-media img {
        width: 100%;
        height: min(62vh, 520px);
        object-fit: contain;
        display: block;
    }

/* Right Card */
.detail-body {
    background: #fff;
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15,23,42,.06);
    padding: 16px;
}

/* Head */
.detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.detail-title {
    margin: 0;
    font-weight: 950;
    letter-spacing: -.02em;
    line-height: 1.12;
    font-size: 1.55rem;
}

.detail-short {
    margin: 0 0 12px;
    color: rgba(15,23,42,.72);
    font-weight: 650;
    line-height: 1.55;
}

/* Description block */
.detail-desc {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed rgba(15,23,42,.14);
}

/* Specs chips */
.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.spec {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(15,23,42,.03);
    font-weight: 800;
    font-size: .86rem;
    line-height: 1.2;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

/* Long text */
.desc-text {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(15,23,42,.10);
    background: rgba(15,23,42,.02);
    border-radius: 14px;
    color: rgba(15,23,42,.80);
    font-weight: 650;
    line-height: 1.65;
}

/* Actions */
.detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.btn-wa, .btn-soft {
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid transparent;
}

.btn-wa {
    background: linear-gradient(135deg,#16a34a,#22c55e);
    color: #fff;
    box-shadow: 0 14px 34px rgba(34,197,94,.22);
}

    .btn-wa:hover {
        filter: brightness(1.03);
    }

.btn-soft {
    background: #fff;
    border-color: rgba(15,23,42,.14);
    color: #0f172a;
}

    .btn-soft:hover {
        border-color: rgba(15,23,42,.22);
        box-shadow: 0 14px 34px rgba(15,23,42,.08);
    }

.btn-wa-ico {
    font-size: 1.05rem;
}

/* Info hint */
.hint {
    margin-top: 12px;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 650;
    line-height: 1.55;
}

.hint-ico {
    line-height: 1.2;
}

.hint-info {
    border: 1px solid rgba(37,99,235,.18);
    background: rgba(37,99,235,.06);
    color: rgba(15,23,42,.88);
}

/* Hover safety */
.glow-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 60px rgba(37,99,235,.14);
}

/* Responsive */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        grid-template-columns: 1fr;
    }

    .detail-media img {
        height: min(50vh, 420px);
    }

    .detail-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 420px) {
    .detail-body {
        padding: 14px;
    }

    .detail-media {
        padding: 14px;
    }

    .spec {
        font-size: .84rem;
    }
}
