/* Maava storefront premium footer — visual layer only */
@font-face {
    font-family: 'MaavaSamim';
    src: url('/fonts/samim/Farsi-Digits/Samim-FD.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

.footer:not(.mobile-footer) > footer,
.footer > footer.shadow-md {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 38%, #f6f9fd 100%);
    border-top: 1px solid rgba(22, 131, 255, .08);
    color: #334155;
    font-family: 'MaavaSamim', 'Samim', sans-serif;
}
.footer > footer.shadow-md::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 230px;
    background: radial-gradient(circle at 50% -20%, rgba(22,131,255,.13), transparent 66%);
    pointer-events: none;
}
.footer > footer.shadow-md > .container { position: relative; z-index: 1; }

/* Feature strip */
.footer-feature { padding: 30px 0 26px; border-bottom: 1px solid #e7edf5; }
.footer-feature .row { row-gap: 14px; }
.footer-feature-item {
    position: relative; height: 100%; padding: 18px 12px 16px; text-align: center;
    border: 1px solid rgba(221,231,243,.9); border-radius: 18px;
    background: rgba(255,255,255,.72); box-shadow: 0 8px 30px rgba(15,23,42,.045);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.footer-feature-item::before {
    content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px;
    border-radius: 0 0 8px 8px; background: linear-gradient(90deg, transparent, #1683ff, transparent); opacity: .65;
}
.footer-feature-item:hover { transform: translateY(-4px); border-color: rgba(22,131,255,.22); box-shadow: 0 16px 38px rgba(15,23,42,.09); }
.footer-feature-item img { width: 46px; height: 46px; object-fit: contain; margin-bottom: 10px; }
.footer-feature-item h6 { margin: 0; color: #172033; font-weight: 800; font-size: 13px; }

/* Main footer */
.footer > footer.shadow-md > .container > .footer { background: transparent; padding: 42px 0 30px; }
.footer > footer.shadow-md .footer .row { row-gap: 30px; }
.footer-item, .footer-stats { height: 100%; }
.footer-item h5, .footer-section h5 {
    position: relative; margin: 0 0 18px; padding-bottom: 12px;
    color: #111827; font-size: 15px; font-weight: 900;
}
.footer-item h5::after, .footer-section h5::after {
    content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 3px;
    border-radius: 10px; background: #1683ff;
}
.footer-item-link, .footer-section ul { padding: 0; margin: 0; list-style: none; }
.footer-item-link li, .footer-section li { margin-bottom: 10px; }
.footer-item-link a {
    display: inline-flex; align-items: center; gap: 7px; color: #64748b;
    font-size: 12.5px; text-decoration: none; transition: color .2s ease, transform .2s ease;
}
.footer-item-link a::before { content: "‹"; color: #1683ff; font-weight: 900; }
.footer-item-link a:hover { color: #1683ff; transform: translateX(-3px); }
.footer-section li { color: #64748b; font-size: 12.5px; line-height: 2.05; }

/* Newsletter card */
.feed {
    padding: 21px; border: 1px solid #e1eaf5; border-radius: 22px;
    background: linear-gradient(145deg, #ffffff 0%, #f3f8ff 100%);
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
}
.feed::before {
    content: ""; display: block; width: 42px; height: 4px; margin-bottom: 12px;
    border-radius: 10px; background: #1683ff;
}
.feed h6 { margin: 0 0 14px; color: #172033; font-size: 13px; font-weight: 900; line-height: 1.8; }
.feed .form-group { display: flex; gap: 8px; }
.feed-inp {
    min-width: 0; height: 44px; border: 1px solid #d8e3f0; border-radius: 12px !important;
    background: #fff; box-shadow: none !important; font-size: 12px;
}
.feed-inp:focus { border-color: rgba(22,131,255,.55); }
.feed-btn {
    flex: 0 0 auto; height: 44px; padding: 0 18px; border: 0; border-radius: 12px;
    background: linear-gradient(135deg, #1683ff, #075ec8); color: #fff; font-weight: 800;
    font-size: 12px; box-shadow: 0 8px 20px rgba(22,131,255,.24); transition: transform .2s ease;
}
.feed-btn:hover { transform: translateY(-2px); }
.social { margin-top: 20px; padding-top: 19px; border-top: 1px dashed #dce6f2; }
.social p { margin: 0 0 11px; color: #64748b; font-size: 11.5px; font-weight: 700; }
.social-link { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link a {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #dfe8f3; border-radius: 12px; background: #fff;
    box-shadow: 0 7px 18px rgba(15,23,42,.05); transition: transform .2s ease, box-shadow .2s ease;
}
.social-link a:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(15,23,42,.10); }

/* About / trust row */
.footer-desc { margin-top: 14px; padding-top: 28px; border-top: 1px solid #e5ecf5; }
.footer-desc-item { height: 100%; }
.footer-desc-item h6 { color: #172033; font-weight: 900; font-size: 14px; margin: 0 0 9px; }
.footer-text .text-container { position: relative; }
.footer-text .more-content { color: #6b7a90; font-size: 11.5px; line-height: 2.05; max-height: 82px; overflow: hidden; }
.footer-text .toggle-btn { display: inline-block; margin-top: 7px; color: #1683ff; font-size: 11.5px; font-weight: 800; cursor: pointer; }
.footer-desc-item > ul { gap: 10px; margin: 0; padding: 0; list-style: none; align-items: center; }
.footer-desc-item > ul li {
    padding: 8px; border: 1px solid #e1e9f3; border-radius: 15px; background: rgba(255,255,255,.9);
    box-shadow: 0 7px 20px rgba(15,23,42,.045); transition: transform .2s ease;
}
.footer-desc-item > ul li:hover { transform: translateY(-2px); }
.footer-desc-item > ul img { max-height: 70px; width: auto; }

/* Keep the legacy desktop back-to-top away from the chat control. */
@media (min-width: 768px) {
    #back-to-top, #backToTop, .back-to-top, .backToTop, .scroll-top, .scrollToTop {
        left: 22px !important;
        right: auto !important;
    }
}

/* Copyright */
.copy-right { position: relative; border-top: 1px solid rgba(22,131,255,.09); background: #eef4fa; }
.copy-right .footer-links { padding: 16px 12px; }
.copy-right ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.copy-right .footer-link-item { color: #6b7a90; font-size: 10.5px; }

@media (max-width: 767.98px) {
    .footer > footer.shadow-md { border-radius: 24px 24px 0 0; }
    .footer-feature { padding: 22px 0 18px; }
    .footer-feature-item { padding: 14px 7px; border-radius: 15px; }
    .footer-feature-item img { width: 38px; height: 38px; margin-bottom: 7px; }
    .footer-feature-item h6 { font-size: 11.5px; }
    .footer > footer.shadow-md > .container > .footer { padding: 28px 0 18px; }
    .footer-item h5, .footer-section h5 { font-size: 14px; }
    .feed { padding: 17px; border-radius: 19px; }
    .footer-desc { padding-top: 22px; }
    .footer-desc-item > ul { justify-content: center !important; }
    .copy-right ul { gap: 5px 12px; }
}
