/* ================================================================
   iranboschcenter.com — بلوک‌های مشترک
   فیلترها · بج ویژگی کارت · سه تضمین · فراخوان مشاوره · نوار ارتباط
   ================================================================ */

/* ---------------- بج ویژگی روی کارت محصول ---------------- */
.pcard__specs {
    list-style: none;
    margin: .4rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.pcard__specs li {
    font-size: .6875rem;
    font-weight: 600;
    color: #475569;
    background: #f4f5f7;
    border-radius: .4rem;
    padding: .2rem .45rem;
    line-height: 1.7;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------- فیلترها ---------------- */
.facets {
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 1rem;
    padding: .35rem .9rem .9rem;
    margin-bottom: .875rem;
}
.facets__head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .8125rem; font-weight: 800; color: #0b1b2b;
    padding: .7rem 0 .55rem;
}
.facets__clear { font-size: .7rem; font-weight: 700; color: var(--color-primary, #e20015); }

.facet { border-top: 1px solid #f3f4f6; }
.facet__title {
    display: flex; align-items: center; justify-content: space-between;
    padding: .6rem 0; font-size: .8125rem; font-weight: 700; color: #0b1b2b;
    cursor: pointer; list-style: none;
}
.facet__title::-webkit-details-marker { display: none; }
.facet__title svg { width: 14px; height: 14px; color: #94a3b8; transition: transform .15s; }
.facet[open] .facet__title svg { transform: rotate(180deg); }

.facet__list { list-style: none; margin: 0 0 .55rem; padding: 0; max-height: 15rem; overflow-y: auto; }
.facet__opt {
    display: flex; align-items: center; gap: .5rem;
    padding: .32rem 0; font-size: .8125rem; color: #33475b; cursor: pointer;
}
.facet__opt input { accent-color: var(--color-primary, #e20015); width: 15px; height: 15px; flex-shrink: 0; }
.facet__opt span { flex: 1; }
.facet__opt b {
    font-size: .6875rem; font-weight: 700; color: #94a3b8;
    background: #f4f5f7; border-radius: 999px; padding: 0 .4rem;
}
.facet__opt:hover span { color: var(--color-primary, #e20015); }

.facet__toggle {
    display: flex; align-items: center; gap: .55rem;
    border-top: 1px solid #f3f4f6; padding-top: .75rem; margin-top: .25rem;
    font-size: .8125rem; font-weight: 600; color: #33475b; cursor: pointer;
}
.facet__toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.facet__switch {
    width: 36px; height: 20px; border-radius: 999px; background: #d7dbe0;
    position: relative; flex-shrink: 0; transition: background .15s;
}
.facet__switch::after {
    content: ''; position: absolute; top: 2px; right: 2px;
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    transition: transform .15s;
}
.facet__toggle input:checked + .facet__switch { background: var(--color-primary, #e20015); }
.facet__toggle input:checked + .facet__switch::after { transform: translateX(-16px); }

/* ---------------- سه تضمین ---------------- */
.trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    background: #fff;
    border: 1px solid #f0f0f3;
    border-radius: 1rem;
    padding: .9rem .75rem;
    margin: 1rem 0;
}
.trust-item { display: flex; align-items: center; gap: .5rem; justify-content: center; }
.trust-item + .trust-item { border-right: 1px solid #f3f4f6; }
.trust-item__icon { flex-shrink: 0; color: var(--color-primary, #e20015); }
.trust-item__icon svg { width: 26px; height: 26px; display: block; }
.trust-item__body { display: flex; flex-direction: column; min-width: 0; }
.trust-item__body b { font-size: .8125rem; font-weight: 800; color: #0b1b2b; line-height: 1.7; }
.trust-item__body i { font-style: normal; font-size: .6875rem; color: #64748b; line-height: 1.6; }

.trust-row--compact { padding: .6rem .5rem; border-radius: .75rem; }
.trust-row--compact .trust-item__icon svg { width: 21px; height: 21px; }
.trust-row--compact .trust-item__body b { font-size: .75rem; }
.trust-row--compact .trust-item__body i { display: none; }

/* موبایل: سه ستون می‌ماند ولی آیکون بالای متن می‌رود تا مرتب و خوانا بماند.
   حالت تک‌ستونیِ قبلی ارتفاع زیادی می‌گرفت و شلوغ دیده می‌شد. */
@media (max-width: 700px) {
    .trust-row { padding: .8rem .4rem; gap: 0; }
    .trust-item {
        flex-direction: column; text-align: center; gap: .3rem;
        padding: .15rem .3rem;
    }
    .trust-item__icon svg { width: 24px; height: 24px; }
    .trust-item__body { align-items: center; }
    .trust-item__body b { font-size: .72rem; line-height: 1.6; }
    .trust-item__body i { font-size: .625rem; line-height: 1.5; }
    .trust-row--compact .trust-item__body i { display: block; }
}

@media (max-width: 360px) {
    .trust-item__body b { font-size: .68rem; }
    .trust-item__body i { display: none; }
}

/* ---------------- فراخوان مشاوره ---------------- */
.cta-card {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(180deg, #fff 0%, #fffafa 100%);
    border: 1px solid #ffdfe2;
    border-radius: 1.1rem;
    padding: 1.15rem 1.35rem 1.15rem 1.6rem;
    margin: 1.5rem 0;
    overflow: hidden;
}
.cta-card__mark {
    position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px;
    background: linear-gradient(180deg, var(--color-primary, #e20015), #ff6b70);
}
.cta-card__body { flex: 1 1 320px; min-width: 0; }
.cta-card__title { font-size: 1.05rem; font-weight: 800; color: #0b1b2b; margin: 0 0 .3rem; }
.cta-card__text  { font-size: .85rem; color: #475569; line-height: 2; margin: 0; }
.cta-card__hours {
    font-size: .72rem; color: var(--color-success, #00884a); font-weight: 700; margin-top: .45rem;
}
.cta-card__hours span { font-size: .6em; vertical-align: middle; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.cta-btn {
    display: inline-flex; align-items: center; gap: .45rem;
    border-radius: .7rem; padding: .65rem 1.1rem;
    font-size: .875rem; font-weight: 800; white-space: nowrap;
    transition: transform .12s, box-shadow .12s;
}
.cta-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.cta-btn:active { transform: scale(.97); }
.cta-btn--main {
    background: var(--color-primary, #e20015); color: #fff;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb, 226,0,21), .28);
}
.cta-btn--main:hover { background: var(--color-primary-dark, #b00010); }
.cta-btn--wa { background: #fff; color: #128c7e; border: 1.5px solid #cdece7; }
.cta-btn--wa:hover { background: #f2fbf9; }

@media (max-width: 560px) {
    .cta-card { padding: 1rem; }
    .cta-card__actions { width: 100%; }
    .cta-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------------- نوار ارتباط ---------------- */
.contact-band-wrap {
    max-width: var(--home-max, 1320px);
    margin: 2.5rem auto;
    padding: 0 var(--home-pad, 1rem);
}
.contact-band {
    background: #0b1b2b;
    border-radius: 1.25rem;
    padding: 1.6rem;
    color: #e2e8f0;
}
.contact-band__inner {
    display: grid; gap: 1.4rem; align-items: center;
    grid-template-columns: 1fr;
}
.contact-band__lead h2 { font-size: 1.1rem; font-weight: 800; color: #fff; margin: 0 0 .3rem; }
.contact-band__lead p  { font-size: .8125rem; color: #94a3b8; margin: 0 0 .7rem; line-height: 1.9; }
.contact-band__phone {
    display: inline-block; font-size: 1.5rem; font-weight: 800; color: #fff;
    letter-spacing: .02em;
}
.contact-band__mobile {
    display: inline-block; margin-inline-start: .9rem;
    font-size: 1rem; font-weight: 700; color: #ff8a8f;
}

/* auto-fit با ۵ آیتم ردیف آخر را ناقص و نامرتب می‌گذاشت؛ تعداد ستون‌ها
   ثابت است و آیتمِ آخرِ تک‌افتاده کل ردیف را می‌گیرد تا شکاف نماند. */
.contact-band__ways {
    list-style: none; margin: 0; padding: 0;
    display: grid; gap: .55rem;
    grid-template-columns: 1fr;
}
.contact-band__ways > li { min-width: 0; }
.contact-band__ways > li > .cw { height: 100%; }
.cw {
    display: flex; align-items: center; gap: .6rem;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: .8rem; padding: .6rem .75rem;
    transition: background .15s, border-color .15s;
}
.cw:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.cw__ico {
    width: 34px; height: 34px; flex-shrink: 0; border-radius: .6rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
}
.cw__ico svg { width: 18px; height: 18px; }
.cw { min-width: 0; }
.cw__body { display: flex; flex-direction: column; min-width: 0; }
.cw__body b { font-size: .8125rem; font-weight: 700; color: #fff; line-height: 1.7; }
.cw__body i {
    font-style: normal; font-size: .68rem; color: #94a3b8; line-height: 1.6;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cw--wa .cw__ico { color: #25d366; }
.cw--ig .cw__ico { color: #e1306c; }
.cw--tg .cw__ico { color: #2aabee; }
.cw--mail .cw__ico, .cw--map .cw__ico { color: #cbd5e1; }

@media (min-width: 560px) {
    .contact-band__ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* آیتم آخر اگر تنها در ردیف افتاد، کل عرض را بگیرد */
    .contact-band__ways > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
    .contact-band { padding: 2rem 2.25rem; }
    .contact-band__inner {
        grid-template-columns: minmax(230px, .75fr) minmax(0, 2fr);
        gap: 2rem;
        align-items: stretch;
    }
    .contact-band__lead {
        display: flex; flex-direction: column; justify-content: center;
        padding-inline-end: 2rem;
        border-inline-end: 1px solid rgba(255,255,255,.09);
    }
}
@media (max-width: 559px) {
    .contact-band-wrap { padding: 0 .85rem; margin: 1.75rem auto; }
    .contact-band { padding: 1.25rem 1.1rem; border-radius: 1.1rem; }
    .contact-band__lead h2 { font-size: 1rem; }
    .contact-band__phone { font-size: 1.3rem; }
    .contact-band__mobile { display: block; margin: .35rem 0 0; }
    .cw__body i { white-space: normal; display: -webkit-box;
                  -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
}
