/* 1. NHÚNG FONT CHỮ HIỆN ĐẠI TỪ GOOGLE */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* 2. KHAI BÁO BIẾN MÀU SẮC THƯƠNG HIỆU */
:root {
    --primary-blue: #0f172a; 
    --accent-gold: #eab308;  
    --bg-light: #f8fafc;     
    --text-main: #334155;    
    --white: #ffffff;
}

/* 3. ĐỊNH DẠNG CHUNG */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-main); line-height: 1.6; }

/* 4. THANH MENU (STICKY & KÍNH MỜ) */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Hiệu ứng kính mờ */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo a { text-decoration: none; font-size: 20px; font-weight: 700; color: var(--primary-blue); }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--primary-blue); font-weight: 600; font-size: 15px; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-gold); }

/* Nút Zalo trên menu với hiệu ứng nảy nhẹ */
.btn-cta-header { background-color: var(--accent-gold); color: #000; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 14px; transition: all 0.3s ease; }
.btn-cta-header:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(234, 179, 8, 0.4); }
.btn-cta-mobile { display: none; }

/* --- MENU DROPDOWN (MÁY TÍNH) --- */
.dropdown { position: relative; display: inline-block; }
.dropbtn { display: inline-block; cursor: pointer; }
.arrow { font-size: 12px; margin-left: 5px; }

.dropdown-content {
    display: none; position: absolute; background-color: var(--white); min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; border-radius: 8px;
    top: 100%; left: 0; padding: 10px 0; margin-top: 10px;
}
/* CẦU NỐI VÔ HÌNH CHỐNG RỚT MENU */
.dropdown-content::before { content: ""; position: absolute; top: -15px; left: 0; width: 100%; height: 15px; background: transparent; }

.dropdown-content a { color: var(--text-main); padding: 12px 20px; text-decoration: none; display: block; font-size: 14px; transition: background-color 0.2s; }
.dropdown-content a:hover { background-color: var(--bg-light); color: var(--accent-gold); }
.dropdown:hover .dropdown-content { display: block; }

/* NÚT HAMBURGER (ẨN TRÊN MÁY TÍNH) */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 25px; height: 3px; background-color: var(--primary-blue); border-radius: 3px; transition: 0.3s; }

/* 5. BANNER (HERO SECTION) */
.hero { background: linear-gradient(135deg, var(--primary-blue) 0%, #1e293b 100%); color: var(--white); text-align: center; padding: 60px 20px; margin-bottom: 40px; }
.hero h1 { font-size: 32px; margin-bottom: 15px; font-weight: 700; line-height: 1.3;}
.hero p { font-size: 16px; margin-bottom: 25px; opacity: 0.9; }

/* Nút bấm Banner nổi bật 3D */
.btn-cta { display: inline-block; background-color: var(--accent-gold); color: #000; padding: 12px 28px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; box-shadow: 0 4px 6px -1px rgba(234, 179, 8, 0.4);}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.5); }

/* 6. DANH SÁCH SẢN PHẨM & HIỆU ỨNG THẺ NỔI 3D PRO */
.products { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    padding: 0 5%; 
    max-width: 1200px; 
    margin: 0 auto 60px auto; 
}

/* Thẻ sản phẩm mượt mà - Thêm overflow để chứa ảnh zoom */
.card { 
    background: var(--white); 
    border-radius: 16px; 
    padding: 20px; 
    text-align: center; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); 
    border: 1px solid #e2e8f0; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hiệu ứng nảy nhẹ cực mượt */
    overflow: hidden;
}

/* HIỆU ỨNG NỔI LÊN MẠNH MẼ KHI RÊ CHUỘT */
.card:hover { 
    transform: translateY(-15px); /* Nổi cao hẳn lên 15px */
    box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.05); /* Bóng đổ sâu và xịn hơn */
    border-color: var(--accent-gold); /* Viền sáng lên màu Vàng Gold */
}

/* Ảnh sản phẩm */
.product-img { 
    width: 100%; 
    border-radius: 12px; 
    margin-bottom: 15px; 
    object-fit: cover; 
    aspect-ratio: 1/1; 
    transition: transform 0.5s ease; /* Thời gian zoom ảnh */
}

/* Tự động phóng to ảnh (zoom in) khi rê chuột vào thẻ */
.card:hover .product-img {
    transform: scale(1.08); /* Phóng to ảnh 8% */
}

.card h3 { color: var(--primary-blue); font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; margin-bottom: 15px; color: #64748b; min-height: 45px;}

/* Nút "Xem các loại" */
.card-link { 
    display: inline-block; color: var(--primary-blue); text-decoration: none; font-weight: 700; 
    padding: 8px 15px; border: 2px solid var(--primary-blue); border-radius: 8px; width: 100%; transition: all 0.3s; 
}
.card-link:hover { background-color: var(--primary-blue); color: var(--white); }

/* 7. CHÂN TRANG */
footer { background-color: var(--primary-blue); color: var(--white); text-align: center; padding: 40px 20px 20px; margin-top: 40px; }

/* Tên công ty: Kéo giảm margin-bottom để Hotline xích lên sát hơn */
footer h2 { color: var(--accent-gold); margin-bottom: 5px; font-size: 22px; }

/* Dòng Hotline: To, Vàng Gold áp dụng cho cả Máy tính và Điện thoại */
footer p:nth-of-type(1) { font-size: 18px; color: var(--accent-gold); font-weight: 700; margin-bottom: 20px; margin-top: 0; }

footer p { margin-bottom: 8px; font-size: 14px; }
.copyright { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; }

/* --- 8. TỐI ƯU CỰC MẠNH CHO ĐIỆN THOẠI --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; } 
    .btn-cta-header { display: none; } 
    
    .nav-links {
        display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background-color: rgba(255, 255, 255, 0.98); padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); align-items: flex-start; gap: 15px;
    }
    .nav-links.active { display: flex; } 

    .dropdown { width: 100%; }
    .dropdown-content { display: none; position: static; box-shadow: none; padding-left: 20px; margin-top: 10px; background: transparent; width: 100%; border-left: 2px solid var(--accent-gold); border-radius: 0; }
    .dropdown-content.show { display: block; }
    
    .btn-cta-mobile { display: inline-block; background-color: var(--accent-gold); color: #000; padding: 10px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; margin-top: 10px; width: 100%; text-align: center; }

    .menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero { padding: 40px 15px; }
    .hero h1 { font-size: 24px; }
}

/* --- ÉP TUYỆT ĐỐI KHÔNG RỚT DÒNG TRÊN MOBILE --- */
@media (max-width: 768px) {
    /* Ép tiêu đề Banner thẳng 1 hàng */
    .hero h1 { font-size: 4.2vw !important; white-space: nowrap !important; }
    
    /* Mở rộng tối đa lề 2 bên của chân trang */
    footer { padding-left: 2px !important; padding-right: 2px !important; overflow-x: hidden !important; }
    
    /* Ép 2 dòng địa chỉ và chi nhánh thẳng 1 hàng */
    footer p:nth-of-type(2),
    footer p:nth-of-type(3) { font-size: 2.6vw !important; white-space: nowrap !important; }
    
    /* Ép dòng bản quyền thẳng 1 hàng */
    .copyright { font-size: 2.3vw !important; white-space: nowrap !important; }
}
