/* =========================================================================
   eOnlineBazar Global Footer — Premium Slate Navy
   Mobile (<768px): 4 compact rows
   Desktop (≥768px): dynamic multi-column grid
   ========================================================================= */

.site-footer {
    background: #0f172a;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.site-footer .footer-container {
    margin: 0;
    padding: 0;
}

.site-footer .footer-loading {
    text-align: center;
    padding: 12px;
    color: #64748b;
    font-size: 0.8rem;
}

/* Tailwind equivalents: block md:hidden / hidden md:block */
.footer-mobile {
    display: block;
}

.footer-desktop {
    display: none;
}

@media (min-width: 768px) {
    .footer-mobile {
        display: none !important;
    }

    .footer-desktop {
        display: block !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE — same 4-row structure, premium styling
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .site-footer {
        background: #0f172a;
        border-top: 1px solid #1e293b;
        padding: 0;
    }

    /* ROW 1: 4 links horizontal */
    .footer-mobile-links-row {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 16px 12px;
        border-bottom: 1px solid #1e293b;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .footer-mobile-link {
        color: #94a3b8;
        font-size: 0.72rem;
        font-weight: 500;
        text-decoration: none;
        text-align: center;
        white-space: nowrap;
        transition: color 0.15s;
        padding: 4px 6px;
        background: none;
        border: none;
        border-radius: 0;
    }

    .footer-mobile-link:hover {
        color: #ffffff;
        background: none;
        border: none;
    }

    /* Separator dots between links */
    .footer-mobile-sep {
        color: #334155;
        font-size: 0.6rem;
    }

    /* ROW 2: Newsletter — distinct block */
    .footer-newsletter-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px 16px;
        border-bottom: 1px solid #1e293b;
    }

    .footer-newsletter-row .footer-newsletter-title {
        margin-bottom: 0;
    }

    .footer-newsletter-form {
        display: flex;
        gap: 0;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .footer-newsletter-input {
        flex: 1;
        padding: 10px 14px;
        background: #1e293b;
        border: 1px solid #334155;
        border-right: none;
        color: #fff;
        font-size: 0.875rem;
        outline: none;
        min-width: 0;
        border-radius: 6px 0 0 6px;
    }

    .footer-newsletter-input::placeholder {
        color: #64748b;
    }

    .footer-newsletter-btn {
        padding: 10px 18px;
        background: #6366f1;
        border: 1px solid #6366f1;
        color: #fff;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.15s;
        border-radius: 0 6px 6px 0;
        flex-shrink: 0;
    }

    .footer-newsletter-btn:hover {
        background: #4f46e5;
        border-color: #4f46e5;
    }

    .footer-newsletter-row .footer-newsletter-msg {
        text-align: center;
        margin-top: 0;
    }

    /* ROW 3: Follow Us — distinct block, never merges with newsletter */
    .footer-socials-block--mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 0;
        padding: 14px 16px;
        border-bottom: 1px solid #1e293b;
    }

    .footer-socials-block--mobile .footer-follow-heading {
        margin-bottom: 0;
        text-align: center;
    }

    .footer-socials-block--mobile .footer-social-icons {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ROW 4: Copyright */
    .footer-copyright-row {
        padding: 12px 16px;
        text-align: center;
    }

    .footer-copyright-text {
        color: #64748b;
        font-size: 0.72rem;
        margin: 0;
        line-height: 1.5;
    }

    .footer-copyright-text a {
        color: #64748b;
        text-decoration: none;
    }

    .footer-copyright-text a:hover {
        color: #94a3b8;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   DESKTOP — premium slate navy layout
   ══════════════════════════════════════════════════════════════════════════ */

.footer-main {
    display: grid;
    grid-template-columns: minmax(160px, 200px) repeat(auto-fit, minmax(140px, 1fr)) minmax(280px, 320px);
    gap: 32px;
    padding: 40px 60px 32px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 1024px) {
    .footer-desktop .footer-main {
        grid-template-columns: 1fr 1fr;
        padding: 32px 40px;
    }

    .footer-desktop .footer-col--engage {
        grid-column: 1 / -1;
        max-width: 480px;
    }
}

.footer-brand-section {
    min-width: 0;
}

.footer-brand-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.footer-brand-tagline {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* Section headers — crisp white */
.footer-col-heading,
.footer-newsletter-title,
.footer-follow-heading {
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0;
}

/* Sub-links — readable slate-gray */
.footer-col ul li a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 10px;
    transition: color 0.15s;
    padding-left: 12px;
    position: relative;
}

.footer-col ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-size: 0.7rem;
    opacity: 0.7;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-col ul li:last-child a {
    margin-bottom: 0;
}

/* ── Engage column: newsletter + socials as stacked, non-overlapping blocks ── */
.footer-col--engage {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.footer-newsletter-block {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.footer-newsletter-title {
    margin-bottom: 12px;
}

.footer-newsletter-form-desktop {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 320px;
}

.footer-newsletter-input-desktop {
    flex: 1;
    padding: 10px 14px;
    background: #1e293b;
    border: 1px solid #334155;
    border-right: none;
    color: #fff;
    font-size: 0.875rem;
    outline: none;
    min-width: 0;
    border-radius: 6px 0 0 6px;
}

.footer-newsletter-input-desktop::placeholder {
    color: #64748b;
}

.footer-newsletter-input-desktop:focus {
    border-color: #475569;
    background: #1e293b;
}

.footer-newsletter-btn-desktop {
    padding: 10px 18px;
    background: #6366f1;
    border: 1px solid #6366f1;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    border-radius: 0 6px 6px 0;
    flex-shrink: 0;
}

.footer-newsletter-btn-desktop:hover {
    background: #4f46e5;
    border-color: #4f46e5;
}

.footer-newsletter-msg {
    font-size: 0.72rem;
    margin: 6px 0 0;
    line-height: 1.3;
    color: #94a3b8;
}

/* Follow Us block — always below newsletter, never collides */
.footer-socials-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
    min-width: 0;
}

.footer-socials-block .footer-follow-heading {
    margin-bottom: 0;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Dark glassmorphism social buttons */
.footer-social-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.15s;
    line-height: 0;
    overflow: hidden;
    padding: 8px;
    box-sizing: border-box;
}

.footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-social-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

/* Bottom bar */
.footer-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 32px;
    border-top: 1px solid #1e293b;
    background: #0b1220;
}

.footer-copyright {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    margin: 0;
    line-height: 1.45;
}

.footer-copyright a {
    color: #64748b;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #94a3b8;
}

/* Payment badges */
.footer-payment-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-payment-badge {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid #334155;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: all 0.15s;
}

.footer-payment-badge:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.footer-payment-badge--img {
    padding: 0;
    background: transparent;
    border: none;
    height: 18px;
    width: auto;
    border-radius: 4px;
}

.footer-payment-badge--img:hover {
    background: transparent;
    opacity: 0.9;
}
