/* ============================================
   FOOTER — Responsive (mobile-first)
   Trên desktop, style.css cũ đã có CSS đầy đủ.
   File này bù CSS cho mobile (<769px style.css không load)
   và override responsive cho desktop dùng bootstrap-grid.
   ============================================ */

/* ----- Container chung ----- */
.footer {
    background: #fff;
    color: #333;
}

.footer .container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ----- Box info main: 3 cột menu ----- */
.box-info-main {
    padding: 28px 0 0;
    background: #fff;
}

.footer-list-info-main {
    /* dùng bootstrap .row, gap mặc định từ grid */
}

.item-info-main {
    padding: 14px 12px;
    display: block;
}

.item-info-main .title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    margin: 0 0 14px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.item-info-main .text {
    display: block;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.item-info-main .text:hover {
    color: var(--shop-color-accent, #1ba4f1);
}

/* ----- Footer bottom ----- */
.footer-bottom {
    margin-top: 24px;
    padding: 20px 0;
    background: #f4f5f7;
    border-top: 1px solid #e5e5e5;
}

.footer-bottom .search-example {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.footer-bottom .search-example p {
    margin: 0 0 6px;
}
.footer-bottom .search-example a {
    color: #555;
    text-decoration: none;
    padding: 0 4px;
}
.footer-bottom .search-example a:hover {
    color: var(--shop-color-accent, #1ba4f1);
}

.copyright {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #555;
}
.copyright a {
    color: #555;
    text-decoration: none;
}
.copyright a:hover {
    color: var(--shop-color-accent, #1ba4f1);
}

.list-contact-footer {
    margin: 8px 0 0;
    gap: 6px 16px;
}
.list-contact-footer span {
    display: inline-block;
}

/* ============================================
   MOBILE (<768px)
   ============================================ */
@media (max-width: 767.98px) {
    /* Image reset toàn cục (style.css không load) */
    img { max-width: 100%; height: auto; }
    svg { max-width: 100%; }

    .footer .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .box-info-main {
        padding: 20px 0 0;
    }

    .item-info-main {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .item-info-main:last-child {
        border-bottom: 0;
    }

    .item-info-main .title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .item-info-main .text {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .footer-bottom {
        margin-top: 12px;
        padding: 16px 0;
    }
    .footer-bottom .search-example {
        font-size: 12px;
        text-align: center;
    }
    .footer-bottom .search-example a {
        padding: 0 3px;
    }

    .copyright {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.5;
    }

    .list-contact-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 4px;
        padding: 0;
    }
    .list-contact-footer span {
        word-break: break-word;
    }

    /* ============================================
       MOBILE FIX — ẩn / reset element rác lộ ra
       trên mobile (do style.css desktop không load)
       ============================================ */

    /* Popup success cart — luôn ẩn khi có class hide */
    .success-form,
    .success-form.hide { display: none !important; }

    /* Tooltip global — ẩn khi rỗng */
    #tooltip.global-tooltip:empty { display: none !important; }

    /* Floating chat icons bên phải — gọn lại */
    .global-fixed-right {
        position: fixed;
        right: 10px;
        bottom: 16px;
        z-index: 99;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
        width: auto;
    }
    .global-fixed-right > a {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
        overflow: hidden;
        color: #fff !important;
        text-decoration: none;
        font-size: 18px;
    }
    .global-fixed-right .fix-face { background: #1877f2 !important; }
    .global-fixed-right .fix-youtube { background: #ff0000 !important; }
    .global-fixed-right .messenger { background: #fff !important; }
    .global-fixed-right .messenger svg {
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
    }
    .global-fixed-right .messenger .contact-info,
    .global-fixed-right a .contact-info { display: none !important; }
    .global-fixed-right > a img {
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
    }
    .global-fixed-right .scroll-top-btn {
        background: rgba(0, 0, 0, 0.55) !important;
        color: #fff !important;
    }

    /* Fancybox showroom popup — ẩn mặc định */
    #fancybox-showroom { display: none !important; }
}

/* ============================================
   TABLET (768-991px) — 3 cột, padding gọn hơn
   ============================================ */
@media (min-width: 768px) and (max-width: 991.98px) {
    .item-info-main {
        padding: 14px 8px;
    }
    .item-info-main .title { font-size: 14px; }
    .item-info-main .text { font-size: 13px; }
}
