/* ==========================================================================
   MEMIP FOOTER — 3 tầng tone tối + accent đỏ vang #ed1c24
   Selector prefix `body` để override Flatsome default + né bẫy #content.
   ========================================================================== */

body .memip-footer {
    color: #b8b8b8;
    font-size: 14px;
    line-height: 1.65;
    font-family: inherit;
}
body .memip-footer * { box-sizing: border-box; }
body .memip-footer a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease, padding-left .2s ease;
}
body .memip-footer a:hover,
body .memip-footer a:focus {
    color: #fff;
    text-decoration: none;
}
body .memip-footer__container {
    width: 100%;
    max-width: var(--site-max-width, 1230px);
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------- TẦNG 1: MAIN ------------------------------ */
body .memip-footer__main {
    background: #1a1a1a;
    padding: 48px 0 36px;
    border-top: 3px solid #ed1c24;
}
body .memip-footer__main .memip-footer__container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

/* --- Cột brand --- */
body .memip-footer__brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
}
body .memip-footer__brand:hover { color: #fff; }
body .memip-footer__brand-name {
    font-size: 30px;
    color: #ed1c24;
}
body .memip-footer__brand-sub {
    font-size: 14px;
    color: #fff;
    letter-spacing: .35em;
    padding-bottom: 4px;
}
body .memip-footer__tagline {
    margin: 0 0 18px;
    color: #a8a8a8;
    font-size: 13.5px;
    line-height: 1.7;
    max-width: 380px;
}
body .memip-footer__social {
    display: flex;
    gap: 10px;
}

/* --- Trust badge list (cột About) --- */
body .memip-footer__trust-list {
    list-style: none;
    margin: 6px 0 18px;
    padding: 0;
}
body .memip-footer__trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    color: #d9d9d9;
    font-size: 13.5px;
    line-height: 1.5;
}
body .memip-footer__trust-tick {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: #ed1c24;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* --- Support box (cột About) --- */
body .memip-footer__support {
    margin: 4px 0 18px;
    padding: 12px 14px;
    background: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
}
body .memip-footer__support-label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
body .memip-footer__support-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body .memip-footer__support-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    transition: opacity .2s ease, transform .2s ease;
}
body .memip-footer__support-btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
body .memip-footer__support-btn--msg  { background: #0084ff; }
body .memip-footer__support-btn--zalo { background: #0068ff; }
body .memip-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #3a3a3a;
    border-radius: 50%;
    color: #d9d9d9;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
body .memip-footer__social-link:hover {
    background: #ed1c24;
    border-color: #ed1c24;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Heading cột --- */
body .memip-footer__heading {
    position: relative;
    margin: 4px 0 18px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
body .memip-footer__heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: #ed1c24;
}

/* --- Tên công ty cột liên hệ --- */
body .memip-footer__company {
    margin: 0 0 12px;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .01em;
}

/* --- List liên hệ + chính sách + danh mục --- */
body .memip-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
body .memip-footer__list-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 10px;
    font-size: 13.5px;
}
body .memip-footer__list-item--address { align-items: flex-start; }
body .memip-footer__icon {
    flex-shrink: 0;
    width: 18px;
    line-height: 1.5;
    text-align: center;
    font-size: 13px;
}
body .memip-footer__list--links li {
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid #262626;
}
body .memip-footer__list--links li:last-child { border-bottom: 0; }
body .memip-footer__list--links a {
    display: inline-block;
    font-size: 13.5px;
}
body .memip-footer__list--links a:hover {
    color: #fff;
    padding-left: 4px;
}

/* ------------------------------ TẦNG 2: LEGAL ------------------------------ */
body .memip-footer__legal {
    background: #0f0f0f;
    padding: 22px 0;
    border-top: 1px solid #262626;
}
body .memip-footer__legal-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
body .memip-footer__legal-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    flex: 1 1 460px;
}
body .memip-footer__bct {
    display: flex;
    align-items: center;
    gap: 14px;
}
body .memip-footer__bct svg { flex-shrink: 0; }
body .memip-footer__bct-badge {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
    transition: opacity .2s ease, transform .2s ease;
}
body .memip-footer__bct-badge:hover { opacity: .85; transform: translateY(-1px); }
body .memip-footer__bct-badge img {
    display: block;
    width: 135px;
    max-width: 100%;
    height: auto;
}
body .memip-footer__bct-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    color: #a8a8a8;
}
body .memip-footer__bct-info:empty { display: none; }
body .memip-footer__bct-info strong { color: #d9d9d9; font-weight: 600; }
body .memip-footer__bct-company { color: #d9d9d9; font-weight: 700; }
body .memip-footer__warning {
    margin: 0;
    font-size: 12.5px;
    color: #f0a8aa;
    font-style: italic;
}
body .memip-footer__legal-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 1 1 360px;
}
body .memip-footer__pay-label {
    font-size: 12.5px;
    color: #8e8e8e;
    text-transform: uppercase;
    letter-spacing: .05em;
}
body .memip-footer__pay {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
body .memip-footer__pay-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #1f1f1f;
    border: 1px solid #2e2e2e;
    border-radius: 4px;
    color: #d9d9d9;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .03em;
}
body .memip-footer__pay-pill--vnpay { background: #003a7a; border-color: #003a7a; color: #fff; }
body .memip-footer__pay-pill--momo  { background: #a50064; border-color: #a50064; color: #fff; }

/* ---------------------------- TẦNG 3: COPYRIGHT --------------------------- */
body .memip-footer__copyright {
    background: #000;
    padding: 14px 0;
    border-top: 1px solid #1a1a1a;
}
body .memip-footer__copy-inner {
    text-align: center;
}
body .memip-footer__copy-text {
    color: #8a8a8a;
    font-size: 12.5px;
}

/* --------------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 1199px) {
    body .memip-footer__main .memip-footer__container {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 28px;
    }
}
@media (max-width: 959px) {
    body .memip-footer__main { padding: 40px 0 28px; }
    body .memip-footer__main .memip-footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 32px 28px;
    }
    body .memip-footer__col--about { grid-column: 1 / -1; }
    body .memip-footer__tagline { max-width: 100%; }
    body .memip-footer__legal-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    /* Reset flex-basis của 2 cột → tránh bị ép min-height 460/360px trên column flex */
    body .memip-footer__legal-left,
    body .memip-footer__legal-right { flex: 0 0 auto; width: 100%; }
    body .memip-footer__legal-right { align-items: flex-start; }
    body .memip-footer__pay { justify-content: flex-start; }
}
@media (max-width: 549px) {
    body .memip-footer__main { padding: 32px 0 20px; }
    body .memip-footer__main .memip-footer__container {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    body .memip-footer__brand-name { font-size: 26px; }
    body .memip-footer__brand-sub { font-size: 12px; letter-spacing: .25em; }
    body .memip-footer__heading { font-size: 14px; margin-bottom: 14px; }
    body .memip-footer__legal { padding: 18px 0; }
    body .memip-footer__legal-inner { gap: 12px; }
    body .memip-footer__bct { gap: 12px; flex-wrap: wrap; }
    body .memip-footer__bct-badge img { width: 110px; }
    body .memip-footer__warning { font-size: 12px; line-height: 1.55; }
    body .memip-footer__pay-label { font-size: 11.5px; letter-spacing: .04em; }
    body .memip-footer__pay { gap: 5px; }
    body .memip-footer__pay-pill { padding: 3px 8px; font-size: 11px; }
    body .memip-footer__copyright { padding: 16px 0 22px; }
    /* tránh đè bottom-nav fix-mobile (Flatsome bottom nav cao ~56px) */
    body.has-bottom-nav .memip-footer__copyright { padding-bottom: 70px; }
}
