/* ==========================================================================
   صفحة تفاصيل الإعلان — بادئة lst- (تعتمد على متغيرات .hz-home من home.css)
   ========================================================================== */

.lst-page {
    padding-bottom: 24px;
}

.lst-page a {
    text-decoration: none;
}

/* ---------- شريط التنقل ---------- */
.lst-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 4px 0 16px;
    font-size: 17px;
    color: var(--hz-muted);
}

.lst-crumbs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hz-muted);
}

.lst-crumbs a:hover {
    color: var(--hz-primary);
}

.lst-crumbs > i {
    font-size: .7rem;
    opacity: .6;
}

/* ---------- التخطيط ---------- */
.lst-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.lst-main,
.lst-side {
    display: grid;
    gap: 16px;
    min-width: 0;
    align-content: start;
}

.lst-card {
    padding: 18px;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius);
    background: var(--hz-surface);
    box-shadow: var(--hz-shadow);
}

.lst-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.lst-card__title i {
    color: var(--hz-primary);
}

/* ---------- المعرض ---------- */
.lst-gallery {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.lst-gallery__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 600px;
    overflow: hidden;
    border: 1px solid var(--hz-line);
    border-radius: var(--hz-radius);
    background: linear-gradient(135deg, #f6eefc 0%, #ebe3fa 100%);
    box-shadow: var(--hz-shadow);
    touch-action: pan-y;
    user-select: none;
}

.lst-gallery__stage:focus-visible {
    outline: 2px solid var(--hz-primary);
    outline-offset: 2px;
}

.lst-gallery__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity .35s ease;
    cursor: zoom-in;
}

.lst-gallery__img.is-active {
    opacity: 1;
}

.lst-gallery__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    color: #b9a5e6;
    font-size: 1.05rem;
}

.lst-gallery__empty i {
    font-size: 3.4rem;
}

.lst-gallery__nav,
.lst-gallery__zoom,
.lst-lightbox__nav,
.lst-lightbox__close {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--hz-ink);
    cursor: pointer;
    transition: transform .2s, background-color .2s;
}

.lst-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4);
}

.lst-gallery__nav:hover {
    background: #fff;
    transform: scale(1.07);
}

.lst-gallery__nav--prev {
    inset-inline-start: 12px;
}

.lst-gallery__nav--next {
    inset-inline-end: 12px;
}

.lst-gallery__zoom {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35);
}

.lst-gallery__zoom:hover {
    background: #fff;
}

.lst-gallery__nav i,
.lst-gallery__zoom i,
.lst-lightbox i {
    display: block;
    line-height: 1;
}

.lst-gallery__nav i::before,
.lst-gallery__zoom i::before,
.lst-lightbox i::before {
    display: block;
    vertical-align: baseline;
}

.lst-gallery__counter {
    position: absolute;
    inset-block-end: 12px;
    inset-inline-end: 12px;
    z-index: 2;
    padding: 2px 14px;
    border-radius: 999px;
    background: rgba(24, 16, 44, .65);
    color: #fff;
    font-size: 16px;
    direction: ltr;
}

.lst-gallery__thumbs {
    display: flex;
    gap: 10px;
    padding: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cdbdf0 transparent;
}

.lst-gallery__thumb {
    flex: none;
    width: 92px;
    height: 70px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--hz-soft);
    opacity: .75;
    cursor: pointer;
    transition: opacity .2s, border-color .2s, transform .2s;
}

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

.lst-gallery__thumb:hover {
    opacity: 1;
}

.lst-gallery__thumb.is-active {
    border-color: var(--hz-primary);
    opacity: 1;
}

/* ---------- الملخص ---------- */
.lst-summary__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.lst-title {
    flex: 1;
    min-width: 0;
    font-size: clamp(1.4rem, 3.2vw, 1.9rem);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.lst-tools {
    display: flex;
    flex: none;
    gap: 8px;
}

.lst-iconbtn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--hz-line);
    border-radius: 14px;
    background: #fff;
    color: var(--hz-ink);
    font-size: 20px;
    cursor: pointer;
    transition: border-color .2s, color .2s, background-color .2s, transform .15s;
}

.lst-iconbtn:hover:not(:disabled) {
    border-color: var(--hz-primary);
    color: var(--hz-primary);
}

.lst-iconbtn:active {
    transform: scale(.94);
}

.lst-iconbtn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.lst-iconbtn--danger:hover:not(:disabled) {
    border-color: var(--hz-danger);
    color: var(--hz-danger);
}

.lst-iconbtn[data-hz-fav].is-on {
    border-color: #f6c3d6;
    background: #fff5f9;
    color: var(--hz-danger);
}

.lst-iconbtn i {
    display: block;
    line-height: 1;
}

.lst-iconbtn i::before {
    display: block;
    vertical-align: baseline;
}

/* المشاركة */
.lst-share {
    position: relative;
}

.lst-share__pop {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 20;
    display: grid;
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--hz-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px -12px rgba(31, 27, 46, .35);
}

.lst-share__pop[hidden] {
    display: none;
}

.lst-share__pop a,
.lst-share__pop button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--hz-ink);
    font-size: 18px;
    text-align: start;
    cursor: pointer;
}

.lst-share__pop a:hover,
.lst-share__pop button:hover {
    background: var(--hz-soft);
    color: var(--hz-primary);
}

.lst-share__pop i {
    color: var(--hz-primary);
    font-size: 1.15rem;
}

/* السعر */
.lst-price {
    margin-top: 8px;
}

.lst-price .price-with-currency {
    gap: 8px;
}

.lst-price .price-amount {
    font-weight: 400;
    font-size: 2.1rem;
    color: var(--hz-primary);
}

.lst-price .price-currency {
    width: 32px;
    height: 32px;
    filter: invert(30%) sepia(60%) saturate(2200%) hue-rotate(250deg) brightness(.95);
}

.lst-price--none {
    font-size: 1.3rem;
    color: var(--hz-muted);
}

/* معلومات سريعة */
.lst-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.lst-meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1.5px solid #e6cdef;
    border-radius: 999px;
    background: #fff;
    color: #4a4560;
    font-size: 17px;
}

.lst-meta li i {
    color: var(--hz-primary);
}


.lst-meta small {
    color: var(--hz-muted);
    font-size: 14px;
}

.lst-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #effaf3;
    color: #1d7a45;
    font-size: 17px;
}

.lst-summary .product-specifications h6 {
    font-size: 1.1rem;
    font-weight: 400;
}

.lst-summary .product-specification-label {
    font-size: 17px;
}

/* ---------- الوصف ---------- */
.lst-desc {
    color: #2f2a42;
    font-size: 19px;
    line-height: 1.95;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* ---------- المعلنة ---------- */
.lst-seller__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lst-seller__avatar {
    flex: none;
    display: block;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 3px solid var(--hz-soft);
    border-radius: 50%;
    background: var(--hz-soft);
}

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

.lst-seller__info {
    display: grid;
    min-width: 0;
}

.lst-seller__label {
    color: var(--hz-muted);
    font-size: 15px;
}

.lst-seller__name {
    overflow: hidden;
    color: var(--hz-ink);
    font-size: 1.25rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.lst-seller__name:hover {
    color: var(--hz-primary);
}

.lst-seller__rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: var(--hz-muted);
    font-size: 17px;
}

.lst-seller__rating i {
    color: #f5c518;
    font-size: 1.05rem;
}

.lst-seller__rating b {
    color: var(--hz-ink);
    font-weight: 400;
}

.lst-seller__rating small {
    font-size: 15px;
}

.lst-seller__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.lst-seller__actions .hz-btn {
    height: 48px;
    padding: 0 12px;
    font-size: 18px;
}

/* ---------- التواصل ---------- */




.lst-contact__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.lst-contact__actions .hz-btn {
    flex-direction: column;
    gap: 6px;
    height: auto;
    min-height: 74px;
    padding: 10px 6px;
    font-size: 17px;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}

.lst-contact__actions .hz-btn i {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
}

.lst-contact__actions .hz-btn i::before {
    display: block;
    vertical-align: baseline;
}

.hz-btn.is-disabled {
    opacity: .5;
    pointer-events: none;
    box-shadow: none;
}

/* ---------- المشابهة ---------- */
.lst-related {
    margin-top: 36px;
}

.lst-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.lst-related__head h2 {
    font-size: 1.5rem;
}

.lst-related__head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hz-primary);
    font-size: 18px;
}

/* ---------- Lightbox ---------- */
.lst-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    background: rgba(15, 10, 28, .94);
    animation: hz-fade .2s ease both;
}

.lst-lightbox[hidden] {
    display: none;
}

.lst-lightbox__img {
    max-width: 94vw;
    max-height: 86vh;
    object-fit: contain;
    user-select: none;
}

.lst-lightbox__close,
.lst-lightbox__nav {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .92);
}

.lst-lightbox__close {
    inset-block-start: 16px;
    inset-inline-end: 16px;
    z-index: 2;
}

.lst-lightbox__nav {
    top: 50%;
    margin-top: -24px;
}

.lst-lightbox__nav--prev {
    inset-inline-start: 16px;
}

.lst-lightbox__nav--next {
    inset-inline-end: 16px;
}

.lst-lightbox__close:hover,
.lst-lightbox__nav:hover {
    background: #fff;
    transform: scale(1.06);
}

.lst-lightbox__count {
    position: absolute;
    inset-block-end: 18px;
    inset-inline: 0;
    color: #fff;
    font-size: 18px;
    text-align: center;
    direction: ltr;
}

/* ---------- زر ومودال الإبلاغ (أحمر لأنه إجراء تحذيري) ---------- */
.lst-reportbtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid #ec7d8f;
    border-radius: 14px;
    background: #fff1f3;
    color: #c81e3a;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
}

.lst-reportbtn i {
    display: block;
    font-size: 1.05rem;
    line-height: 1;
}

.lst-reportbtn i::before {
    display: block;
    vertical-align: baseline;
}

.lst-reportbtn:hover {
    border-color: #d92d4a;
    background: #d92d4a;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(217, 45, 74, .75);
}

.lst-reportbtn:active {
    transform: scale(.96);
}

.lst-reportbtn.is-done {
    border-color: var(--hz-line);
    background: #f4f2f8;
    color: var(--hz-muted);
    box-shadow: none;
    cursor: default;
}

.hz-btn--danger {
    background: linear-gradient(135deg, #ef4a63 0%, #d92d4a 100%);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(217, 45, 74, .75);
}

.hz-btn--danger:hover {
    color: #fff;
    filter: brightness(1.06);
    box-shadow: 0 10px 22px -8px rgba(217, 45, 74, .9);
}

.hz-btn--danger:disabled {
    opacity: .6;
    cursor: wait;
}

/* style.css فيه .modal-content بتدرّج وردي ونص أبيض و.modal-dialog بعرض 820px (للمودالات القديمة)،
   فنعزل مودالنا عنها بخصوصية أعلى */
.modal-dialog.lst-modal-dialog {
    max-width: 540px;
}

.modal-content.lst-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    color: var(--hz-ink);
    font-family: inherit;
    box-shadow: 0 30px 60px -20px rgba(31, 27, 46, .5);
}

.lst-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--hz-line);
}





.lst-modal__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 400;
}


.lst-modal__close {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f4f2f8;
    color: var(--hz-ink);
    cursor: pointer;
    transition: background-color .2s;
}

.lst-modal__close:hover {
    background: #ebe7f4;
}

.lst-modal__close i {
    display: block;
    line-height: 1;
}

.lst-modal__close i::before {
    display: block;
    vertical-align: baseline;
}

.lst-modal__body {
    display: grid;
    gap: 12px;
    padding: 20px 22px 8px;
}

.lst-modal__label {
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    color: var(--hz-ink);
    font-size: 18px;
}

.lst-modal__label small {
    color: var(--hz-muted);
    font-size: 15px;
}












.lst-modal__input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--hz-line);
    border-radius: 14px;
    background: #faf9fd;
    color: var(--hz-ink);
    font-size: 18px;
    font-family: inherit;
    line-height: 1.7;
    resize: none;
    cursor: text;
}

.lst-modal__input:focus {
    border-color: #d92d4a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(217, 45, 74, .12);
    outline: 0;
}

.lst-modal__error {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff1f3;
    color: #b3203a;
    font-size: 17px;
}

.lst-modal__error[hidden] {
    display: none;
}

.lst-modal__foot {
    display: flex;
    gap: 10px;
    padding: 14px 22px 22px;
}

.lst-modal__foot .hz-btn {
    flex: 1;
    height: 50px;
}

.lst-modal__foot .hz-btn--danger {
    flex: 1.5;
}

/* ==========================================================================
   كبسولات التصنيف والحالة (بسيطة: أيقونة + اسم)
   ========================================================================== */
.lst-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.lst-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border: 1.5px solid #e6cdef;
    border-radius: 999px;
    background: #fff;
    color: var(--hz-ink);
    font-size: 18px;
    line-height: 1.4;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}

a.lst-pill:hover {
    border-color: var(--hz-primary);
    color: var(--hz-primary);
}

.lst-pill i {
    display: block;
    color: var(--hz-primary);
    font-size: 1.25rem;
    line-height: 1;
}

.lst-pill i::before {
    display: block;
    vertical-align: baseline;
}

/* ==========================================================================
   التقييم (على شكل التطبيق: نجوم في المنتصف وزر عريض)
   ========================================================================== */
.lst-rating {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 24px 18px;
    text-align: center;
}

.lst-rating__title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 400;
}







.lst-rating__form {
    display: grid;
    justify-items: center;
    gap: 10px;
    width: 100%;
    max-width: 560px;
}

.lst-rating__prompt {
    margin: 0;
    color: var(--hz-muted);
    font-size: 17px;
}

.lst-rating__pick {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.lst-star {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    color: #a9a3b8;
    font-size: 2.3rem;
    cursor: pointer;
    transition: color .15s, transform .15s;
}

.lst-star i {
    display: block;
    line-height: 1;
}

.lst-star i::before {
    display: block;
    vertical-align: baseline;
}

.lst-star:hover {
    transform: scale(1.14);
}

.lst-star.is-on {
    color: #f5c518;
}

.lst-rating__label {
    min-height: 1.5em;
    margin: 0;
    font-size: 18px;
}

.lst-rating__btn {
    width: 100%;
    height: 56px;
    border-radius: 999px;
    font-size: 20px;
}

.lst-rating__btn:disabled {
    opacity: .45;
    box-shadow: none;
    cursor: not-allowed;
}

.lst-rating__btn.is-saved:disabled {
    background: #e8f6ee;
    color: #1d7a45;
    opacity: 1;
}

.lst-rating__btn.is-loading {
    cursor: wait;
}

.lst-rating__own {
    margin: 0;
    color: var(--hz-muted);
    font-size: 18px;
}

/* ==========================================================================
   التعليقات (عنوان، قائمة أو نص فارغ، ثم خانة كبسولة للكتابة)
   ========================================================================== */
.lst-comments {
    display: grid;
    gap: 14px;
    padding-top: 6px;
}

.lst-comments__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 400;
}

.lst-badge {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--hz-soft);
    color: var(--hz-primary);
    font-size: 17px;
    line-height: 1;
}

.lst-comments__empty {
    margin: 4px 0;
    color: var(--hz-muted);
    font-size: 18px;
    text-align: center;
}

.lst-comments__empty[hidden] {
    display: none;
}

.lst-clist {
    display: grid;
    gap: 14px;
}

.lst-clist:not(:has(*)) {
    display: none;
}

.lst-cform {
    display: grid;
    gap: 6px;
}

.lst-cform__box {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    min-height: 58px;
    padding: 6px 22px 6px 8px;
    border: 1.5px solid #e7c8ef;
    border-radius: 29px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

[dir="ltr"] .lst-cform__box {
    padding: 6px 8px 6px 22px;
}

.lst-cform__box:focus-within {
    border-color: var(--hz-primary);
    box-shadow: 0 0 0 4px rgba(129, 69, 216, .12);
}

.lst-cform__box textarea {
    flex: 1;
    display: block;
    min-width: 0;
    min-height: 0; /* style.css يفرض 150px على أي textarea */
    height: 47px;
    max-height: 160px;
    overflow-y: auto;
    padding: 9px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--hz-ink);
    font-family: inherit;
    font-size: 18px;
    line-height: 1.6;
    resize: none;
    cursor: text;
}

.lst-cform__box textarea::placeholder {
    color: #8f89a3;
}

/* لا نعرض شريط التمرير ولا مقبض تغيير الحجم في خانات الكتابة (الخانة تكبر تلقائياً) */
.lst-cform__box textarea,
.lst-rform textarea,
.lst-modal__input {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lst-cform__box textarea::-webkit-scrollbar,
.lst-rform textarea::-webkit-scrollbar,
.lst-modal__input::-webkit-scrollbar {
    display: none;
}

.lst-cform__send {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    color: var(--hz-primary);
    font-size: 1.45rem;
    cursor: pointer;
    transition: background-color .2s, opacity .2s;
}

.lst-cform__send:hover {
    background: var(--hz-soft);
}

.lst-cform__send.is-loading {
    opacity: .45;
    cursor: wait;
}

.lst-cform__send i {
    display: block;
    line-height: 1;
}

.lst-cform__send i::before {
    display: block;
    vertical-align: baseline;
}

/* السهم يشير لاتجاه الكتابة */
[dir="rtl"] .lst-cform__send i {
    transform: scaleX(-1);
}

.lst-cform__error {
    margin: 0 8px;
    color: #b3203a;
    font-size: 16px;
}

.lst-cform__error[hidden] {
    display: none;
}

.lst-btn-sm {
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 17px;
}

.lst-cm__avatar {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--hz-soft);
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--hz-line);
}

.lst-cm {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lst-cm__main {
    flex: 1;
    min-width: 0;
}

.comment-card.lst-cm {
    padding: 16px;
    border: 1px solid var(--hz-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
}

.comment-card.lst-cm:hover {
    box-shadow: var(--hz-shadow);
}

.lst-cm__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
}

.lst-cm__name {
    font-size: 18px;
    font-weight: 400;
}

.lst-cm__time {
    color: var(--hz-muted);
    font-size: 14px;
}

.lst-cm .lst-cm__text {
    margin: 4px 0 0;
    color: #2f2a42;
    font-size: 18px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.lst-cm__actions {
    margin-top: 6px;
}

.lst-cm__reply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: -10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: transparent;
    color: var(--hz-primary);
    font-size: 16px;
    cursor: pointer;
    transition: background-color .2s;
}

.lst-cm__reply:hover {
    background: var(--hz-soft);
}

.lst-cm__reply i {
    display: block;
    line-height: 1;
}

.lst-cm__reply i::before {
    display: block;
    vertical-align: baseline;
}

/* الردود */
.lst-replies {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding-inline-start: 14px;
    border-inline-start: 2px solid #ece6f8;
}

.lst-replies:not(:has(*)) {
    display: none;
}

.lst-cm--reply .lst-cm__avatar {
    width: 36px;
    height: 36px;
}

.lst-cm--reply .lst-cm__name {
    font-size: 17px;
}

.lst-cm--reply .lst-cm__text {
    font-size: 17px;
}

.lst-rform {
    margin-top: 10px;
}

.lst-rform textarea {
    display: block;
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    border: 1.5px solid var(--hz-line);
    border-radius: 14px;
    background: #faf9fd;
    color: var(--hz-ink);
    font-family: inherit;
    font-size: 17px;
    line-height: 1.7;
    resize: none;
    cursor: text;
}

.lst-rform textarea:focus {
    border-color: var(--hz-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(129, 69, 216, .12);
    outline: 0;
}

.lst-rform__bar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.lst-rform .comment-error {
    margin-top: 6px;
    color: #b3203a;
    font-size: 16px;
}

@media (max-width: 575.98px) {

    .lst-star {
        width: 44px;
        height: 44px;
        font-size: 2.1rem;
    }

    .comment-card.lst-cm {
        padding: 12px;
    }

    .lst-cm__avatar {
        width: 40px;
        height: 40px;
    }

    .lst-replies {
        padding-inline-start: 10px;
    }
}

/* ==========================================================================
   تبسيط على شكل التطبيق: عناصر مسطّحة، أيقونات بلا صناديق، كبسولات بسيطة
   ========================================================================== */
.lst-card {
    padding: 16px;
    border-radius: 16px;
    box-shadow: none;
}

.lst-section-title {
    margin: 0 0 10px;
    font-size: 1.3rem;
    font-weight: 400;
}

/* العنوان وأدواته */
.lst-summary__top {
    align-items: flex-start;
}

.lst-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.lst-tools {
    align-items: center;
    gap: 2px;
}

.lst-iconbtn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 22px;
}

.lst-iconbtn:hover:not(:disabled) {
    background: var(--hz-soft);
}

.lst-iconbtn[data-hz-fav].is-on {
    background: transparent;
}

.lst-reportbtn {
    height: 38px;
    margin-inline-end: 6px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: #ee4b36;
    color: #fff;
    font-size: 17px;
}

.lst-reportbtn:hover {
    background: #d63a26;
    color: #fff;
    box-shadow: none;
}

.lst-reportbtn.is-done {
    background: #ece9f3;
    color: var(--hz-muted);
}

.lst-price {
    margin-top: 4px;
}

.lst-pills {
    margin-top: 12px;
}

.lst-pill {
    border-width: 1px;
}

/* أدوات العنوان كالتطبيق: كبسولة "إبلاغ" في طرف الصف وتحتها المشاركة والقلب */
.lst-tools {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    justify-items: end;
    gap: 2px 0;
    flex: none;
}

.lst-tools .lst-reportbtn {
    grid-column: 1 / -1;
    order: -1;
    margin: 0;
}

.lst-tools .lst-iconbtn,
.lst-tools .lst-share {
    justify-self: end;
}

/* المعلنة: صف واحد ثم فاصل بالموقع والوقت */
.lst-seller__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lst-seller__avatar {
    width: 56px;
    height: 56px;
    border: 0;
}

.lst-seller__name {
    flex: 1;
    min-width: 0;
    font-size: 1.15rem;
}

.lst-seller__rating {
    flex: none;
    margin: 0;
}

.lst-seller__head .hz-btn {
    flex: none;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 16px;
}

.lst-seller__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--hz-line);
    font-size: 17px;
}

.lst-seller__loc,
.lst-seller__meta .clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lst-seller__meta .clock {
    flex: none;
    color: var(--hz-muted);
    font-size: 16px;
}

.lst-seller__meta i {
    display: block;
    color: var(--hz-primary);
    line-height: 1;
}

.lst-seller__meta i::before {
    display: block;
    vertical-align: baseline;
}

/* التواصل: ثلاث كبسولات متدرجة بدون كارت */
.lst-contact {
    padding: 0;
}

.lst-contact__actions {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 8px;
}

.lst-contact__actions .hz-btn {
    flex-direction: row;
    gap: 8px;
    height: 52px;
    min-height: 0;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 16px;
    white-space: nowrap;
}

.lst-contact__actions .hz-btn i {
    font-size: 1.15rem;
}

/* التقييم: عنوان ونجوم وزر فقط */
.lst-rating__prompt,
.lst-rating__label {
    display: none;
}

.lst-rating {
    padding: 20px 16px;
}

/* ==========================================================================
   نقاط التوقف
   ========================================================================== */
@media (min-width: 576px) {
    .lst-card {
        padding: 22px;
    }

    .lst-gallery__thumb {
        width: 104px;
        height: 78px;
    }
}

@media (min-width: 992px) {

    .lst-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 24px;
        align-items: start;
    }


    .lst-gallery__stage {
        aspect-ratio: 16 / 11;
    }
}

/* الشريط الجانبي يثبت أثناء التمرير فقط لو الشاشة طويلة كفاية لعرضه كاملاً */
@media (min-width: 992px) and (min-height: 820px) {
    .lst-side {
        position: sticky;
        top: 96px;
    }
}

/*
 * ترتيب الموبايل: الصورة، الملخص، بيانات المعلنة، الوصف، التواصل، التقييم، التعليقات.
 * العمودان (الرئيسي والجانبي) يصيران "شفافين" ليترتب كل كارت بـ order بصرف النظر عن مكانه في الـ HTML.
 */
@media (max-width: 991.98px) {
    .lst-layout {
        display: flex;
        flex-direction: column;
    }

    .lst-main,
    .lst-side {
        display: contents;
    }

    .lst-gallery {
        order: 1;
    }

    .lst-summary {
        order: 2;
    }

    .lst-seller {
        order: 3;
    }

    .lst-descbox {
        order: 4;
    }

    .lst-contact {
        order: 5;
    }

    .lst-rating {
        order: 6;
    }

    .lst-comments {
        order: 7;
    }

}

@media (max-width: 575.98px) {
    .lst-crumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        font-size: 16px;
    }

    .lst-crumbs::-webkit-scrollbar {
        display: none;
    }

    .lst-gallery__stage {
        margin-inline: -12px;
        width: calc(100% + 24px);
        border-radius: 0;
        border-inline: 0;
        aspect-ratio: 1 / 1;
    }

    .lst-gallery__nav {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }

    .lst-gallery__thumb {
        width: 76px;
        height: 60px;
    }

    .lst-price .price-amount {
        font-size: 1.8rem;
    }

    .lst-price .price-currency {
        width: 28px;
        height: 28px;
    }

    .lst-desc {
        font-size: 18px;
    }

    .lst-related__head h2 {
        font-size: 1.3rem;
    }
}
