/* ================================================================
   Footer buyer app block — dynamic layouts
   ================================================================ */

/* ── Base ─────────────────────────────────────────────────────── */
.footer-buyer-app-wrap { margin-bottom: 40px; }
.footer-buyer-app {
    background: linear-gradient(135deg, #111827 0%, #1d2d44 50%, #0f172a 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 28px;
    padding: 44px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 44px;
    align-items: center;
    margin-top: -70px;
    margin-left: 40px;
    margin-right: 40px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.footer-buyer-app::before {
    content: '';
    position: absolute; top: -100px; right: -80px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79,140,255,0.12), transparent 70%);
    pointer-events: none;
}
.footer-buyer-app .footer-app-content small {
    color: #5ea2ff; font-size: 13px; letter-spacing: 1.2px;
    font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.footer-buyer-app .footer-app-content h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.1;
    margin: 0 0 14px; font-weight: 800;
}
.footer-buyer-app .footer-app-content h2 span { color: #5ea2ff; }
.footer-buyer-app .footer-app-content p {
    color: #cbd5e1; font-size: 16px; line-height: 1.7;
    max-width: 680px; margin-bottom: 30px;
}
.footer-buyer-app .feature-row { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-buyer-app .feature-box { display: flex; align-items: center; gap: 12px; }
.footer-buyer-app .feature-icon {
    width: 50px; height: 50px; border-radius: 14px;
    background: rgba(79,140,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: #5ea2ff; font-size: 22px; flex-shrink: 0;
    transition: all .25s;
}
.footer-buyer-app .feature-box:hover .feature-icon { background: rgba(79,140,255,0.3); transform: scale(1.08); }
.footer-buyer-app .feature-box span { font-size: 14px; color: #e2e8f0; line-height: 1.5; white-space: pre-line; font-weight: 500; }
.footer-buyer-app .download-side { border-left: 1px solid rgba(255,255,255,0.08); padding-left: 40px; }
.footer-buyer-app .download-side h3 { font-size: 17px; margin-bottom: 20px; text-align: center; font-weight: 700; color: #e2e8f0; }
.footer-buyer-app .qr-box {
    width: 120px; height: 120px; background: #fff; border-radius: 12px;
    padding: 10px; margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.footer-buyer-app .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.footer-buyer-app .store-btn,
.footer-buyer-app a.store-btn {
    width: 100%; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 14px;
    padding: 13px 16px; display: flex; align-items: center; gap: 14px;
    margin-bottom: 12px; cursor: pointer; transition: all .25s;
    text-decoration: none; color: #fff;
}
.footer-buyer-app .store-btn:hover,
.footer-buyer-app a.store-btn:hover {
    background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25);
    transform: translateY(-3px); color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.footer-buyer-app .store-btn i { font-size: 34px; }
.footer-buyer-app .store-btn span { display: block; color: rgba(255,255,255,0.65); font-size: 11px; }
.footer-buyer-app .store-btn strong { font-size: 14px; color: #fff; }
.footer-buyer-app .mobile-image { text-align: center; }
.footer-buyer-app .mobile-image img { width: 220px; max-width: 100%; filter: drop-shadow(0 25px 40px rgba(0,0,0,0.5)); }

/* ── Layout: banner_qr_bottom ─────────────────────────────────── */
.footer-buyer-app.layout-banner_qr_bottom { grid-template-columns: 1fr; }
.footer-buyer-app.layout-banner_qr_bottom .download-side {
    border-left: none; border-top: 1px solid rgba(255,255,255,0.08);
    padding-left: 0; padding-top: 28px;
    display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 18px; align-items: start;
}
.footer-buyer-app.layout-banner_qr_bottom .download-side h3 { grid-column: 1/-1; }

/* ── Layout: compact_inline ───────────────────────────────────── */
.footer-buyer-app.layout-compact_inline {
    grid-template-columns: 1fr auto; padding: 26px 30px;
    margin-left: 20px; margin-right: 20px; border-radius: 22px;
}
.footer-buyer-app.layout-compact_inline .footer-app-content p { margin-bottom: 18px; font-size: 14px; }
.footer-buyer-app.layout-compact_inline .feature-row { gap: 18px; }
.footer-buyer-app.layout-compact_inline .download-side { border-left: none; padding-left: 0; min-width: 200px; }

/* ── Layout: minimal_strip ────────────────────────────────────── */
.footer-buyer-app.layout-minimal_strip {
    grid-template-columns: 1fr auto auto; gap: 20px;
    padding: 20px 28px; border-radius: 18px; margin-top: -36px;
}
.footer-buyer-app.layout-minimal_strip .footer-app-content p { display: none; }
.footer-buyer-app.layout-minimal_strip .feature-row { display: none; }
.footer-buyer-app.layout-minimal_strip .footer-app-content h2 { margin: 6px 0; font-size: 1.3rem; }
.footer-buyer-app.layout-minimal_strip .download-side {
    border-left: none; padding-left: 0; display: flex; align-items: center; gap: 14px;
}
.footer-buyer-app.layout-minimal_strip .download-side h3 { margin: 0; font-size: 13px; white-space: nowrap; }
.footer-buyer-app.layout-minimal_strip .qr-box { width: 72px; height: 72px; margin: 0; padding: 7px; }
.footer-buyer-app.layout-minimal_strip .store-btn,
.footer-buyer-app.layout-minimal_strip a.store-btn { width: auto; min-width: 170px; margin-bottom: 0; }

/* ── Layout: full_banner ──────────────────────────────────────── */
.footer-buyer-app.layout-full_banner {
    grid-template-columns: 1fr;
    margin-left: 0; margin-right: 0; border-radius: 0;
    padding: 56px 60px;
    text-align: center;
}
.footer-buyer-app.layout-full_banner .footer-app-content h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 18px; }
.footer-buyer-app.layout-full_banner .footer-app-content p { font-size: 18px; max-width: 680px; margin-left: auto; margin-right: auto; }
.footer-buyer-app.layout-full_banner .feature-row { justify-content: center; gap: 32px; margin-bottom: 32px; }
.footer-buyer-app.layout-full_banner .download-side {
    border-left: none; border-top: 1px solid rgba(255,255,255,0.08);
    padding-left: 0; padding-top: 32px;
    display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.footer-buyer-app.layout-full_banner .download-side h3 { margin: 0; font-size: 16px; }
.footer-buyer-app.layout-full_banner .qr-box { margin: 0; width: 100px; height: 100px; }
.footer-buyer-app.layout-full_banner .store-btn,
.footer-buyer-app.layout-full_banner a.store-btn { width: auto; min-width: 190px; margin-bottom: 0; }

/* ── Layout: cards_row ────────────────────────────────────────── */
.footer-buyer-app.layout-cards_row {
    grid-template-columns: 1fr;
    padding: 40px;
}
.footer-buyer-app.layout-cards_row .feature-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px; margin-bottom: 28px;
}
.footer-buyer-app.layout-cards_row .feature-box {
    flex-direction: column; text-align: center;
    background: rgba(255,255,255,0.06); border-radius: 16px;
    padding: 20px 16px; border: 1px solid rgba(255,255,255,0.1);
    transition: all .3s;
}
.footer-buyer-app.layout-cards_row .feature-box:hover {
    background: rgba(255,255,255,0.1); transform: translateY(-4px);
}
.footer-buyer-app.layout-cards_row .feature-icon { margin-bottom: 10px; width: 56px; height: 56px; }
.footer-buyer-app.layout-cards_row .feature-box span { text-align: center; white-space: normal; }
.footer-buyer-app.layout-cards_row .download-side {
    border-left: none; border-top: 1px solid rgba(255,255,255,0.08);
    padding-left: 0; padding-top: 28px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-buyer-app.layout-cards_row .download-side h3 { margin: 0; font-size: 15px; }
.footer-buyer-app.layout-cards_row .qr-box { margin: 0; }
.footer-buyer-app.layout-cards_row .store-btn,
.footer-buyer-app.layout-cards_row a.store-btn { width: auto; min-width: 185px; margin-bottom: 0; }

/* ── Layout: dark_split ───────────────────────────────────────── */
.footer-buyer-app.layout-dark_split {
    background: linear-gradient(135deg, #020817 0%, #0f1b30 100%);
    border: 1px solid rgba(94,162,255,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.footer-buyer-app.layout-dark_split .footer-app-content small { color: #7eb3ff; }
.footer-buyer-app.layout-dark_split .footer-app-content h2 span { color: #7eb3ff; }
.footer-buyer-app.layout-dark_split .feature-icon { background: rgba(126,179,255,0.12); color: #7eb3ff; }
.footer-buyer-app.layout-dark_split .download-side { border-left-color: rgba(94,162,255,0.15); }
.footer-buyer-app.layout-dark_split .store-btn,
.footer-buyer-app.layout-dark_split a.store-btn {
    background: rgba(255,255,255,0.04); border-color: rgba(94,162,255,0.2);
}
.footer-buyer-app.layout-dark_split .store-btn:hover,
.footer-buyer-app.layout-dark_split a.store-btn:hover { background: rgba(94,162,255,0.12); border-color: rgba(94,162,255,0.4); }

/* ── Layout: neon_glow ────────────────────────────────────────── */
.footer-buyer-app.layout-neon_glow {
    background: #0a0a0f;
    border: 1px solid rgba(100,220,200,0.2);
    box-shadow: 0 0 60px rgba(100,220,200,0.07), 0 16px 48px rgba(0,0,0,0.4);
}
.footer-buyer-app.layout-neon_glow::before {
    background: radial-gradient(circle, rgba(100,220,200,0.15), transparent 70%);
}
.footer-buyer-app.layout-neon_glow .footer-app-content small { color: #64dcc8; }
.footer-buyer-app.layout-neon_glow .footer-app-content h2 span { color: #64dcc8; }
.footer-buyer-app.layout-neon_glow .feature-icon { background: rgba(100,220,200,0.1); color: #64dcc8; }
.footer-buyer-app.layout-neon_glow .download-side { border-left-color: rgba(100,220,200,0.15); }
.footer-buyer-app.layout-neon_glow .store-btn,
.footer-buyer-app.layout-neon_glow a.store-btn {
    background: rgba(100,220,200,0.06); border-color: rgba(100,220,200,0.15);
}
.footer-buyer-app.layout-neon_glow .store-btn:hover,
.footer-buyer-app.layout-neon_glow a.store-btn:hover {
    background: rgba(100,220,200,0.12); border-color: rgba(100,220,200,0.3);
    box-shadow: 0 0 20px rgba(100,220,200,0.15);
}
.footer-buyer-app.layout-neon_glow .qr-box { border: 2px solid rgba(100,220,200,0.3); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 991px) {
    .footer-buyer-app {
        grid-template-columns: 1fr;
        margin-left: 16px; margin-right: 16px;
        padding: 28px 22px; margin-top: -44px;
        border-radius: 20px;
    }
    .footer-buyer-app .download-side {
        border-left: none; padding-left: 0;
        padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08);
    }
    .footer-buyer-app.layout-minimal_strip { grid-template-columns: 1fr; gap: 14px; }
    .footer-buyer-app.layout-minimal_strip .download-side { flex-wrap: wrap; justify-content: center; }
    .footer-buyer-app.layout-full_banner { padding: 36px 24px; border-radius: 20px; }
    .footer-buyer-app.layout-full_banner .download-side { gap: 16px; }
    .footer-buyer-app.layout-cards_row .download-side { justify-content: center; }
}
@media (max-width: 576px) {
    .footer-buyer-app { margin-left: 10px; margin-right: 10px; padding: 22px 16px; border-radius: 18px; }
    .footer-buyer-app .footer-app-content p { font-size: 14px; margin-bottom: 20px; }
    .footer-buyer-app .feature-row { gap: 14px; }
    .footer-buyer-app .feature-icon { width: 42px; height: 42px; font-size: 18px; }
    .footer-buyer-app .feature-box span { font-size: 12px; }
    .footer-buyer-app.layout-full_banner { padding: 24px 14px; }
    .footer-buyer-app.layout-full_banner .store-btn,
    .footer-buyer-app.layout-full_banner a.store-btn { min-width: unset; width: 100%; }
}
