/**
 * بنر فروشگاه‌های حضوری — ظاهر حرفه‌ای فروشگاهی (Digikala-like)
 */

.hpb-shops-banner {
    direction: rtl;
    padding: 8px 0 12px;
}

.hpb-shops-banner .crafto-container {
    padding-inline: 0;
}

.hpb-shops-banner__card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 96px;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none !important;
    color: var(--hpb-sb-text, #fff) !important;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
        linear-gradient(115deg, var(--hpb-sb-from, #5b21b6) 0%, var(--hpb-sb-to, #312e81) 100%);
    box-shadow: 0 10px 28px rgba(49, 46, 129, 0.22);
    overflow: hidden;
    box-sizing: border-box;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hpb-shops-banner__card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(49, 46, 129, 0.28);
}

.hpb-shops-banner__media {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.hpb-shops-banner__img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.2));
}

.hpb-shops-banner__pin {
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    position: relative;
}

.hpb-shops-banner__pin::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--hpb-sb-from, #5b21b6);
}

.hpb-shops-banner__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: right;
}

.hpb-shops-banner__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    opacity: 0.95;
}

.hpb-shops-banner__title {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    color: inherit;
}

.hpb-shops-banner__body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.78rem;
    line-height: 1.55;
    opacity: 0.9;
    color: inherit;
    max-width: 42ch;
}

.hpb-shops-banner__cta {
    display: none;
}

.hpb-shops-banner__chevron {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    color: inherit;
}

/* دسکتاپ / تبلت بزرگ — کارت پهن‌تر با دکمه */
@media (min-width: 768px) {
    .hpb-shops-banner {
        padding: 14px 0 18px;
    }

    .hpb-shops-banner__card {
        gap: 18px;
        min-height: 112px;
        padding: 18px 22px;
        border-radius: 20px;
    }

    .hpb-shops-banner__media {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }

    .hpb-shops-banner__img {
        width: 52px;
        height: 52px;
    }

    .hpb-shops-banner__title {
        font-size: 1.2rem;
    }

    .hpb-shops-banner__body {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        max-width: 52ch;
    }

    .hpb-shops-banner__cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        padding: 0.45rem 0.95rem;
        border-radius: 999px;
        background: var(--hpb-sb-btn-bg, #fff);
        color: var(--hpb-sb-btn-fg, #4c1d95) !important;
        font-size: 0.85rem;
        font-weight: 700;
    }

    .hpb-shops-banner__cta-ico {
        font-size: 1rem;
        line-height: 1;
    }

    .hpb-shops-banner__chevron {
        display: none;
    }
}

@media (max-width: 480px) {
    .hpb-shops-banner__card {
        gap: 10px;
        padding: 11px 12px;
        min-height: 88px;
        border-radius: 14px;
    }

    .hpb-shops-banner__media {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .hpb-shops-banner__img {
        width: 34px;
        height: 34px;
    }

    .hpb-shops-banner__title {
        font-size: 0.92rem;
    }

    .hpb-shops-banner__body {
        font-size: 0.74rem;
        -webkit-line-clamp: 2;
    }

    .hpb-shops-banner__chevron {
        width: 26px;
        height: 26px;
    }
}
