/* ND369 — Custom footer */
/* =========================================
   FOOTER T?Y CH?NH - NH? M?Y N??C ?? 369
   ========================================= */

/* Footer Container */
.nd369-custom-footer {
    background: #1a1a1a;
    color: #fff;
    margin-top: 0;
}

/* FOOTER TOP */
.footer-top {
    background: #2c2c2c;
    padding: 60px 0 40px;
    border-bottom: 1px solid #3a3a3a;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col {
    padding: 0 15px;
}

.footer-title {
    color: #4da6ff !important; /* Xanh s?ng n?i b?t */
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-desc {
    color: #e0e0e0 !important; /* Tr?ng s?ng h?n */
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 400;
}

.footer-cert {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.cert-badge {
    background: rgba(0, 77, 153, 0.2);
    color: #4da6ff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid rgba(0, 77, 153, 0.3);
}

/* Footer Contact List */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    margin-bottom: 12px;
    color: #e0e0e0 !important; /* Tr?ng s?ng h?n */
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-list strong {
    color: #ffffff !important; /* Tr?ng tinh khi?t */
    display: inline-block;
    min-width: 100px;
    font-weight: 700;
}

/* Contact items c?ng h?ng */
.footer-contact-list li.footer-contact-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 12px;
}

.footer-contact-list .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.footer-contact-list .contact-item strong {
    min-width: auto;
    margin-right: 5px;
}

.footer-link {
    color: #66b3ff !important; /* Xanh s?ng h?n */
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-link:hover {
    color: #ff6600 !important; /* Cam s?ng khi hover */
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #e0e0e0 !important; /* Tr?ng s?ng h?n */
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
    padding-left: 15px;
    position: relative;
    font-weight: 400;
}

.footer-menu a::before {
    content: "?";
    position: absolute;
    left: 0;
    color: #ff6600; /* Cam s?ng */
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: bold;
}

.footer-menu a:hover {
    color: #ffffff !important; /* Tr?ng tinh khi?t khi hover */
    padding-left: 20px;
    font-weight: 500;
}

.footer-menu a:hover::before {
    opacity: 1;
}

/* FOOTER CTA */
.footer-cta {
    background: linear-gradient(135deg, var(--primary-color), #0066cc);
    padding: 40px 0;
    text-align: center;
}

.footer-cta-content h3 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
}

.footer-cta-content p {
    font-size: 16px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-footer-call {
    background: var(--secondary-color);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(204, 51, 0, 0.4);
}

.btn-footer-call:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(204, 51, 0, 0.5);
}

.btn-footer-zalo {
    background: #0088ff;
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 136, 255, 0.4);
}

.btn-footer-zalo:hover {
    background: var(--accent-color, #ff6600);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.5);
}

/* FOOTER BOTTOM */
.footer-bottom {
    background: #1a1a1a;
    padding: 25px 0;
    border-top: 1px solid #2c2c2c;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: #d0d0d0 !important; /* X?m s?ng h?n */
    font-size: 14px;
    margin: 0;
    font-weight: 400;
}

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

.footer-social span {
    color: #d0d0d0 !important;
    font-size: 14px;
    font-weight: 400;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    line-height: 1;
    color: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.social-icon--facebook {
    background: #1877f2;
}

.social-icon--zalo {
    background: #0068ff;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.social-icon-svg {
    display: block;
    width: 18px;
    height: 18px;
}

.social-icon img {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    object-fit: contain;
}

/* RESPONSIVE FOOTER */
@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 30px;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Contact items tr?n mobile - xu?ng d?ng n?u c?n */
    .footer-contact-list li.footer-contact-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-contact-list .contact-item {
        width: 100%;
    }

    .footer-cta-content h3 {
        font-size: 22px;
    }

    .footer-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-footer-call,
    .btn-footer-zalo {
        width: 100%;
        max-width: 300px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .home-hero {
        padding: 36px 0 32px;
        text-align: center !important;
        background-position: center 28%;
    }
    
    .home-hero .ast-container {
        display: flex !important;
        justify-content: center !important;
    }
    
    .hero-content {
        width: 100%;
        padding: 0;
    }
    
    .home-hero h1 {
        font-size: clamp(1.4rem, 6.2vw, 1.7rem);
        text-align: center !important;
        margin: 0 auto 10px auto !important;
    }
    
    .hero-desc {
        font-size: 0.88rem;
        padding: 0;
        text-align: center !important;
        margin: 0 auto 12px auto !important;
    }
    
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 6px;
        margin: 0 auto 14px auto !important;
    }
    
    .hero-features li {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .hero-btn-group {
        flex-direction: column;
        justify-content: center !important;
        gap: 8px;
        width: 100%;
        padding: 0;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .btn-secondary-hero {
        margin-left: 0;
    }
    
    .section-pad {
        padding: 50px 0;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .section-sub {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* --- RESPONSIVE MOBILE CHO SẢN PHẨM --- */
    .home-products .nd369-product-grid.woocommerce ul.products,
    .home-products .nd369-product-grid ul.products {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding: 0 16px 12px !important;
        scrollbar-width: none;
    }

    .home-products .nd369-product-grid ul.products::-webkit-scrollbar {
        display: none;
    }

    .home-products .nd369-product-grid.woocommerce ul.products li.product,
    .home-products .nd369-product-grid ul.products li.product,
    .home-products .nd369-product-grid.woocommerce ul.products.columns-4 li.product {
        flex: 0 0 78% !important;
        width: 78% !important;
        max-width: 78% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 12px;
        scroll-snap-align: start;
        float: none !important;
        height: auto !important;
    }

    .home-products .nd369-product-grid ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px !important;
        min-height: calc(1.4em * 2) !important;
    }
    
    .loc-preview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-placeholder {
        height: 200px;
        font-size: 14px;
    }
    
    .home-cta-bottom {
        padding: 48px 0;
        margin: 0;
        border-radius: 0;
    }
    
    .home-cta-bottom h2 {
        font-size: 1.45rem;
    }
    
    .home-cta-bottom p {
        font-size: 0.95rem;
    }
    
    .cta-buttons-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .home-cta-bottom .btn-primary-hero,
    .home-cta-bottom .btn-secondary-hero {
        font-size: 1rem;
        padding: 14px 22px;
        width: 100%;
        box-sizing: border-box;
        max-width: none;
        text-align: center;
    }
}
