/*
Theme Name: Natel
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/* 1. MÀU SẮC CHỦ ĐẠO & FONT CHỮ */
:root {
    /* Đổi tông màu chủ đạo thành Xanh đậm công nghệ (Deep Blue) */
    --primary-color: #0A192F; 
    --fs-color-primary: #0A192F;
    
    /* Màu nút bấm, CTA thành Cam Neon (Neon Orange) */
    --secondary-color: #FF6B00;
    --fs-color-secondary: #FF6B00;
}
body, h1, h2, h3, h4, h5, h6, .nav > li > a {
    font-family: 'Roboto', 'Montserrat', sans-serif !important;
}
/* Đổi màu toàn bộ nút bấm thành Cam Neon */
.button.primary, .button.secondary, button[type="submit"] {
    background-color: var(--secondary-color) !important;
    border-radius: 4px;
}
/* 2. THANH MENU GLASSMORPHISM (KÍNH MỜ TRONG SUỐT) */
.header-bg-color, .header-bg-image {
    /* Tạo độ mờ như kính */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(10, 25, 47, 0.75) !important; /* Xanh đậm trong suốt 75% */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* Đổi chữ menu thành màu trắng để nổi bật trên nền xanh đậm */
.header-main .nav > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
}
.header-main .nav > li > a:hover {
    color: var(--secondary-color) !important;
}
/* 3. HIỆU ỨNG TƯƠNG TÁC (MICRO-INTERACTIONS) */
/* a. Hiệu ứng quét sáng (Shine) cho các nút bấm */
.button, button {
    position: relative;
    overflow: hidden;
}
.button::after, button::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}
.button:hover::after, button:hover::after {
    left: 150%;
    transition: all 0.6s ease-in-out;
}
/* b. Hiệu ứng Hover 3D Rotate cho Danh mục sản phẩm (Mega Menu / Ảnh sản phẩm) */
.product-small .box-image, .menu-item .ux-menu-image {
    perspective: 1000px;
}
.product-small .box-image img, .menu-item .ux-menu-image img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.product-small:hover .box-image img, .menu-item:hover .ux-menu-image img {
    /* Xoay ảnh 3D nhẹ và đẩy lên */
    transform: rotateY(10deg) scale(1.05) translateZ(20px);
    box-shadow: -10px 10px 20px rgba(0,0,0,0.15);
}
/* c. Vòng tròn sóng lan tỏa (Pulse) cho nút Hỗ trợ / Điện thoại */
.header-contact a[href^="tel:"] {
    position: relative;
    color: var(--secondary-color) !important;
    font-weight: bold;
}
.header-contact a[href^="tel:"]::before {
    content: '';
    position: absolute;
    width: 30px; height: 30px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    z-index: -1;
    left: -10px; top: -5px;
    opacity: 0.4;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
}

/* 4. PRELOADER (MÀN HÌNH CHỜ TẢI TRANG) */
#natel-preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: var(--primary-color);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease, visibility 0.5s;
}
#natel-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.loader-spinner {
    width: 50px; height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--secondary-color);
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}