/* Compact RTL storefront footer, layered over the modular footer renderer. */
.sf-footer {
    margin-top: 3rem;
    background: #fff !important;
    color: #333 !important;
    border-top: 1px solid #e7edf3;
    overflow: visible;
}
.sf-footer::before { display: none; }
.sf-footer__benefits { border-bottom: 1px solid #edf1f5; background: #fff; }
.sf-footer__benefits-inner {
    width: min(1440px, 100%); margin-inline: auto; padding: 26px max(var(--site-gutter), 20px) 22px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 52px);
}
.sf-footer__benefit { text-align: center; }
.sf-footer__benefit svg {
    width: 50px; height: 50px; margin: 0 auto 10px; fill: none;
    stroke: color-mix(in srgb, var(--primary) 72%, #fff); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.sf-footer__benefit h2 { margin: 0 0 5px; color: #222; font-size: 1rem; font-weight: 900; }
.sf-footer__benefit p { max-width: 290px; margin: auto; color: #777; font-size: .8rem; line-height: 1.7; }
.sf-footer__inner { max-width: 1540px; padding: 32px max(var(--site-gutter), 20px) 14px; }
.sf-footer__grid {
    display: grid; direction: ltr;
    grid-template-columns: minmax(380px, 1.4fr) minmax(165px, .68fr) minmax(185px, .76fr) minmax(250px, 1.05fr);
    grid-template-areas: "trust purchase customer brand" "trust site customer brand";
    align-items: start; column-gap: clamp(24px, 3vw, 52px); row-gap: 14px;
}
.sf-footer__col { direction: rtl; min-width: 0; padding: 0 !important; }
.sf-footer__col--brand { grid-area: brand; }
.sf-footer__col--customer { grid-area: customer; }
.sf-footer__col--site { grid-area: site; }
.sf-footer__col--purchase { grid-area: purchase; }
.sf-footer__col--trust { grid-area: trust; }
.sf-footer__col-title { margin: 0 0 13px; color: #242424 !important; font-size: 1.02rem; font-weight: 900; }
.sf-footer__col-title::after { display: none; }
.sf-footer__brand {
    display: grid; justify-items: center; gap: 11px; margin: 0 0 20px;
    color: #20252b !important; text-align: center; text-decoration: none !important;
}
.sf-footer__brand img { display: block; width: min(138px, 100%); height: 138px; max-width: none; object-fit: contain; }
.sf-footer__brand-mark {
    width: 110px; height: 110px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 22px; background: color-mix(in srgb, var(--primary) 12%, white); font-size: 2.4rem;
}
.sf-footer__brand > span:last-child { display: grid; gap: 5px; }
.sf-footer__brand strong { font-size: 1.25rem; font-weight: 950; }
.sf-footer__brand small { color: #262626; font-size: 1.02rem; font-weight: 900; line-height: 1.65; }
.sf-footer__text { color: #777; font-size: .9rem; line-height: 2; }
.sf-footer__list { gap: 9px; }
.sf-footer__list li { padding: 0; }
.sf-footer__list li::before { display: none; }
.sf-footer__list a, .sf-footer__contact a { color: #777 !important; font-size: .92rem; font-weight: 500; }
.sf-footer__list a:hover, .sf-footer__contact a:hover { color: var(--primary) !important; }
.sf-footer__contact { color: #777; gap: 10px; }
.sf-footer__social-strip { align-items: center; margin-top: 23px; padding-top: 18px; border-top: 1px solid #dbe2e9; }
.sf-footer__social-strip-title { color: #242424; font-size: .98rem; font-weight: 900; }
.sf-footer__social { justify-content: center; }
.sf-footer__social a {
    background: color-mix(in srgb, var(--primary) 9%, #fff) !important;
    border-color: color-mix(in srgb, var(--primary) 18%, #fff) !important; color: var(--primary); border-radius: 50%;
}
.sf-footer__social .sf-footer__social-link { width: 38px; height: 38px; border: 0 !important; }
.sf-footer__social .sf-footer__social-link svg { width: 19px; height: 19px; fill: #fff; }
.sf-footer__social .sf-footer__social-link--linkedin { background: #0a66c2 !important; }
.sf-footer__social .sf-footer__social-link--whatsapp { background: #25d366 !important; }
.sf-footer__social .sf-footer__social-link--x { background: #050505 !important; }
.sf-footer__social .sf-footer__social-link--telegram { background: #229ed9 !important; }
.sf-footer__social .sf-footer__social-link:hover { filter: brightness(.93); transform: translateY(-3px); }
.sf-footer__certs--inmod { min-height: 118px; justify-content: center; flex-wrap: nowrap; gap: 10px; }
.sf-footer__certs--inmod > a, .sf-footer__certs--inmod > span, .sf-footer__trust-seal {
    width: 112px; height: 124px; display: flex; align-items: center; justify-content: center;
    padding: 6px; border: 0; border-radius: 10px; background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}
.sf-footer__certs--inmod > a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 24, 40, .08); }
.sf-footer__certs.sf-footer__certs--inmod img {
    display: block; width: 100%; height: 100%; max-width: 102px; max-height: 114px;
    padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain;
}
.sf-footer__trust-seal #zarinpal img { max-height: 104px; }
.sf-footer__address {
    margin: 14px 0 0; color: #777; font-size: .84rem; font-style: normal; line-height: 1.7; text-align: center;
}
.sf-footer__bar {
    justify-content: center; margin-top: 24px; padding-top: 15px; border-top-color: #edf1f5; text-align: center;
}
.sf-footer__copyright { color: #777 !important; }
@media (max-width: 1120px) {
    .sf-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "customer brand" "purchase site" "trust trust";
    }
    .sf-footer__col--trust { max-width: 620px; width: 100%; justify-self: center; }
}
@media (max-width: 720px) {
    .sf-footer__benefits-inner { grid-template-columns: 1fr 1fr; gap: 22px 14px; padding-block: 24px; }
    .sf-footer__benefit svg { width: 46px; height: 46px; }
    .sf-footer__benefit h2 { font-size: .9rem; }
    .sf-footer__benefit p { font-size: .75rem; line-height: 1.75; }
    .sf-footer__inner { padding-top: 28px; }
    .sf-footer__grid { grid-template-columns: 1fr; grid-template-areas: "brand" "customer" "site" "purchase" "trust"; gap: 26px; }
    .sf-footer__brand img { width: 130px; height: 130px; }
    .sf-footer__brand small { font-size: 1.05rem; }
    .sf-footer__social-strip { margin-top: 25px; }
    .sf-footer__certs--inmod { flex-wrap: wrap; }
    .sf-footer__bar { flex-direction: column; }
}

@media (max-width: 640px) {
    .sf-footer { margin-top: 1.5rem; }
    .sf-footer__benefits-inner {
        gap: 15px 10px;
        padding: 18px 12px 15px;
    }
    .sf-footer__benefit svg { width: 36px; height: 36px; margin-bottom: 5px; }
    .sf-footer__benefit h2 { margin-bottom: 2px; font-size: .78rem; }
    .sf-footer__benefit p { font-size: .66rem; line-height: 1.55; }

    .sf-footer__inner { padding: 20px 14px 10px; }
    .sf-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "brand brand"
            "customer site"
            "purchase purchase"
            "trust trust";
        gap: 18px 14px;
    }
    .sf-footer__brand { gap: 6px; margin-bottom: 10px; }
    .sf-footer__brand img { width: 88px; height: 88px; }
    .sf-footer__brand strong { font-size: 1rem; }
    .sf-footer__brand small { font-size: .82rem; }
    .sf-footer__col-title { margin-bottom: 8px; font-size: .86rem; }
    .sf-footer__list { gap: 5px; }
    .sf-footer__list a,
    .sf-footer__contact a { font-size: .76rem; }
    .sf-footer__text { font-size: .76rem; line-height: 1.7; }
    .sf-footer__social-strip { margin-top: 14px; padding-top: 12px; }
    .sf-footer__social-strip-title { font-size: .82rem; }
    .sf-footer__social .sf-footer__social-link { width: 34px; height: 34px; }
    .sf-footer__certs--inmod { min-height: 86px; flex-wrap: nowrap; gap: 6px; }
    .sf-footer__certs--inmod > a,
    .sf-footer__certs--inmod > span,
    .sf-footer__trust-seal { width: 88px; height: 94px; padding: 4px; }
    .sf-footer__certs.sf-footer__certs--inmod img { max-width: 82px; max-height: 88px; }
    .sf-footer__address { margin-top: 8px; font-size: .72rem; }
    .sf-footer__bar { margin-top: 14px; padding-top: 10px; font-size: .72rem; }
}
