/* ==========================================================================
   HANZY FOOTER STYLES (FIXED)
   ========================================================================== */

/* --- 0. Khai báo biến màu riêng cho Footer (để tránh lỗi thiếu biến) --- */
:root {
    --footer-bg: #ffffff;
    --footer-text: #555555;
    --footer-heading: #2c3e50;
    --primary-color: #0B74E5; /* Màu xanh Tiki đồng bộ với Header */
    --accent-color: #0B74E5;  /* Dùng luôn màu chủ đạo cho các icon */
}

/* --- 1. Footer Commitments Bar (Thanh Cam Kết) --- */
.footer-commitments {
    background-color: #f5f8fa;
    padding: 35px 0;
    border-top: 1px solid #e1e8ed;
    border-bottom: 1px solid #e1e8ed;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.commit-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.commit-item .c-icon {
    font-size: 2rem;
    color: var(--accent-color);
    width: 50px;
    text-align: center;
}

.commit-item .c-text {
    display: flex;
    flex-direction: column;
}

.commit-item .c-text strong {
    font-size: 0.95rem;
    color: var(--footer-heading);
    margin-bottom: 2px;
}

.commit-item .c-text span {
    font-size: 0.8rem;
    color: #666;
}

/* --- 2. Footer Main (Cột thông tin) --- */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 0;
    font-family: 'Be Vietnam Pro', sans-serif; /* Đảm bảo font chữ đẹp */
}

.footer-main {
    padding: 60px 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 40px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--footer-heading);
    letter-spacing: 0.5px;
}

/* Hotline Column */
.hotline-col .hotline-box {
    margin-bottom: 25px;
}
.hotline-box p { margin: 0; color: #666; font-size: 0.9rem; }

.hotline-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #d0021b; /* Đỏ nổi bật cho Hotline */
    margin: 5px 0;
    text-decoration: none;
}

.working-time { font-size: 0.8rem !important; font-style: italic; color: #888; }

.social-links { display: flex; gap: 15px; margin-top: 25px; }
.social-links a {
    width: 40px; height: 40px;
    background: #f0f2f5;
    color: #333;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
    border: 1px solid #eee;
    text-decoration: none;
}
.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Links Columns */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #555;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.2s;
    display: block; /* Để hover trượt mượt hơn */
}
.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px); /* Hiệu ứng trượt sang phải */
}

/* Payment Icons */
.payment-icons {
    display: flex; gap: 15px; font-size: 2rem; color: #888; 
    margin-bottom: 20px;
}
.certification-badge img { max-width: 150px; height: auto; }

/* --- 3. Footer Bottom --- */
.footer-bottom {
    background-color: var(--footer-heading);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* --- 4. Floating Contact (Nút nổi) --- */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    transition: 0.3s;
}

.contact-btn .c-icon {
    width: 55px; height: 55px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    position: relative; z-index: 2;
}

.contact-btn .c-label {
    position: absolute; right: 65px;
    background: #fff; 
    padding: 6px 15px; border-radius: 5px;
    color: #333; 
    font-size: 0.85rem; font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden;
    transform: translateX(10px); transition: 0.3s;
}

.contact-btn:hover .c-label {
    opacity: 1; visibility: visible; transform: translateX(0);
}

/* Zalo & Phone Colors */
.zalo-btn .c-icon { background-color: #0068ff; }
.phone-btn .c-icon { background-color: #d0021b; animation: shake 1.5s infinite; }

/* Address Box */
.address-box {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}
.address-row {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 8px 0; color: #333; font-size: 0.95rem; line-height: 1.5;
}
.address-row i { color: var(--primary-color); margin-top: 3px; }
.map-link {
    font-size: 0.85rem; color: var(--primary-color); font-weight: 600;
    text-decoration: none; margin-left: 25px;
}

/* --- Animations --- */
@keyframes shake {
    0% { transform: rotate(0) scale(1); }
    10% { transform: rotate(-15deg) scale(1.1); }
    40% { transform: rotate(15deg) scale(1.1); }
    100% { transform: rotate(0) scale(1); }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .floating-contact { bottom: 80px; right: 15px; }
    .contact-btn .c-icon { width: 45px; height: 45px; font-size: 1.2rem; }
    
    .commitment-grid { grid-template-columns: 1fr 1fr; gap: 20px 10px; }
    .commit-item { flex-direction: column; text-align: center; }
    
    .footer-widgets { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .social-links, .payment-icons { justify-content: center; }
    .address-row { justify-content: center; }
    .contact-btn .c-label { display: none; } /* Ẩn label trên mobile cho gọn */
}