/*
Theme Name: Innoteck Custom Theme
Theme URI: https://innoteck.vn
Author: Innoteck Team
Author URI: https://innoteck.vn
Description: Theme Custom độc quyền cho hệ sinh thái thương mại điện tử B2B Innoteck. Giao diện High-tech, tối ưu UI/UX, tương phản cao, chuẩn SEO.
Version: 1.0.1
Text Domain: innoteck
*/

/* ========================================================== */
/* 1. HỆ THỐNG BIẾN TOÀN CỤC (GLOBAL VARIABLES)               */
/* ========================================================== */
:root {
    /* Brand Colors (Màu nhận diện thương hiệu từ Logo) */
    --brand-navy: #001C66;
    --brand-blue: #0070C0;
    --brand-cyan: #00B4FF;

    /* UI Colors (Màu giao diện sáng sủa chuẩn B2B V9) */
    --ui-base: #F4F7FB;       /* Màu nền website: Xám xanh nhạt, đỡ mỏi mắt */
    --ui-surface: #FFFFFF;    /* Màu nền các thẻ Card */
    --ui-dark: #001C66;       /* Màu nền các vùng tối (Hero, Footer) */
    
    /* Text Colors */
    --ui-text: #0F172A;       /* Slate-900: Chữ đen xám đậm chuẩn B2B */
    --ui-muted: #475569;      /* Slate-600: Chữ phụ, mô tả */
    
    /* Borders */
    --ui-border: #E2E8F0;     /* Border xám nhạt */
    
    /* Grid pattern cho nền sáng */
    --grid-color-light: rgba(0, 112, 192, 0.05);

    /* Typography (Google Sans) */
    --font-main: "Google Sans", sans-serif;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px -2px rgba(0, 28, 102, 0.05);
    --shadow-hover: 0 10px 40px -10px rgba(0, 112, 192, 0.15);
}

/* ========================================================== */
/* 2. GLOBAL RESET & TYPOGRAPHY                               */
/* ========================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--ui-base);
    color: var(--ui-text);
    line-height: 1.6; /* Chuẩn để không bị lẹm dấu Tiếng Việt */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Heading Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--brand-navy); 
    line-height: 1.4 !important;
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    padding-bottom: 0.1em;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--ui-muted);
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-cyan);
}

/* ========================================================== */
/* 3. NỀN LƯỚI CÔNG NGHỆ (TECH GRID)                          */
/* ========================================================== */
.tech-grid-bg {
    position: fixed; 
    inset: 0; 
    z-index: -2;
    background-image: linear-gradient(to right, var(--grid-color-light) 1px, transparent 1px), 
                      linear-gradient(to bottom, var(--grid-color-light) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ========================================================== */
/* 4. CUSTOM CURSOR HIGH-TECH (TƯƠNG PHẢN CAO, ZERO-LAG)      */
/* ========================================================== */
@media (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, select, .cursor-interactive { cursor: none !important; }
    
    /* Dấu chấm trung tâm */
    #cursor-dot {
        position: fixed; top: 0; left: 0; width: 12px; height: 12px; 
        background: var(--brand-blue); border: 2px solid white;
        border-radius: 50%; pointer-events: none; z-index: 999999;
        transform: translate(-50%, -50%); 
        box-shadow: 0 0 4px rgba(0,0,0,0.5);
        transition: width 0.2s, height 0.2s; /* Không transition transform để tránh lag */
    }
    
    /* Vòng Radar bao quanh */
    #cursor-ring {
        position: fixed; top: 0; left: 0; width: 44px; height: 44px; 
        border: 2px solid var(--brand-cyan);
        border-radius: 50%; pointer-events: none; z-index: 999998;
        transform: translate(-50%, -50%); 
        box-shadow: 0 0 10px rgba(0, 180, 255, 0.4);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }
    
    /* Hiệu ứng khi hover/click */
    body.cursor-hover #cursor-ring { 
        width: 60px; height: 60px; 
        background: rgba(0, 112, 192, 0.1); 
        border-color: var(--brand-blue); 
    }
    body.cursor-hover #cursor-dot { 
        transform: translate(-50%, -50%) scale(0.5); 
    }
    body.cursor-click #cursor-ring { 
        width: 30px; height: 30px; 
        background: rgba(0, 180, 255, 0.3); 
        border-width: 4px; 
    }
}

/* ========================================================== */
/* 5. GLOBAL UI COMPONENTS (BUTTONS & CARDS)                  */
/* ========================================================== */

/* Nút bấm chính (Primary) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-blue), #005a9e); 
    color: white !important;
    border: none; 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden;
}
.btn-primary:hover { 
    box-shadow: 0 4px 15px rgba(0, 112, 192, 0.4); 
    transform: translateY(-1px); 
}

/* Nút viền (Outline Dark) */
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent; 
    color: var(--brand-navy); 
    border: 1.5px solid var(--brand-navy); 
    transition: all 0.3s ease;
}
.btn-outline-dark:hover { 
    background: var(--brand-navy); 
    color: #ffffff !important; 
}

/* Thẻ Card sáng sủa */
.card-light {
    background: var(--ui-surface);
    border: 1px solid var(--ui-border);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.card-light:hover {
    border-color: var(--brand-blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* ========================================================== */
/* 6. MODULE: VERTICAL MENU (SIDEBAR)                         */
/* ========================================================== */
.vertical-menu-item {
    position: relative; 
    transition: all 0.2s ease;
}
.vertical-menu-item:hover {
    background-color: var(--ui-base);
}
.vertical-menu-item:hover > a {
    color: var(--brand-blue);
}

/* Bảng menu con trượt ngang ra từ Sidebar */
.vertical-sub-menu {
    position: absolute; 
    top: 0; 
    left: 100%; 
    min-width: 600px; 
    min-height: 100%;
    background: white; 
    border: 1px solid var(--ui-border);
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1); 
    border-radius: 0 12px 12px 0;
    opacity: 0; 
    visibility: hidden; 
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 50;
}
.vertical-menu-item:hover .vertical-sub-menu {
    opacity: 1; 
    visibility: visible; 
    transform: translateX(0);
}

/* ========================================================== */
/* 7. MODULE: SECTOR CARDS (HIGH CONTRAST & UNIQUE FX)        */
/* ========================================================== */
.sector-card { 
    height: 360px; 
    position: relative; 
    overflow: hidden; 
    background: white; 
    border: 1px solid var(--ui-border); 
    border-radius: 16px; 
    transition: all 0.3s ease;
}
.sector-card:hover { 
    border-color: transparent; 
}

/* Trạng thái chưa hover */
.sector-default { 
    position: absolute; 
    inset: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 24px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 10; 
}
.sector-card:hover .sector-default { 
    opacity: 0; 
    transform: scale(0.9); 
}

/* Lớp Overlay phủ nền Navy đặc khi Hover (Đảm bảo Contrast 100%) */
.sector-overlay { 
    position: absolute; 
    inset: 0; 
    padding: 30px 24px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    background: var(--ui-dark); 
    color: white;
    z-index: 20; 
    opacity: 0; 
    pointer-events: none; 
    transition: all 0.4s ease-out; 
}
.sector-card:hover .sector-overlay { 
    opacity: 1; 
    pointer-events: auto; 
}

/* Nội dung bên trong Overlay */
.overlay-content { 
    opacity: 0; 
    transform: translateY(15px); 
    transition: all 0.4s ease 0.1s; 
}
.sector-card:hover .overlay-content { 
    opacity: 1; 
    transform: translateY(0); 
}

/* -- Hiệu ứng từng ngành hàng (Unique FX) -- */

/* POS: Laser Scan từ trên xuống */
.pos-overlay { 
    clip-path: inset(0 0 100% 0); 
    border-bottom: 3px solid var(--brand-cyan); 
}
.sector-card:hover .pos-overlay { 
    clip-path: inset(0 0 0 0); 
}

/* AV: Mở rộng màn hình TV */
.av-overlay { 
    transform: scaleY(0); 
    transform-origin: center; 
    border-top: 2px solid #a855f7; 
    border-bottom: 2px solid #a855f7; 
}
.sector-card:hover .av-overlay { 
    transform: scaleY(1); 
}

/* EDU: Touch Ripple tròn */
.edu-overlay { 
    clip-path: circle(0% at 50% 50%); 
    background: var(--brand-navy); 
}
.sector-card:hover .edu-overlay { 
    clip-path: circle(150% at 50% 50%); 
}

/* IT: Trượt cánh cửa tủ Server */
.it-overlay { 
    transform: translateX(-100%); 
    border-right: 3px solid var(--brand-blue); 
}
.sector-card:hover .it-overlay { 
    transform: translateX(0); 
}

/* EXPORT: Radar Zoom in */
.export-overlay { 
    transform: scale(1.3) rotate(5deg); 
    opacity: 0 !important; 
}
.sector-card:hover .export-overlay { 
    transform: scale(1) rotate(0deg); 
    opacity: 1 !important; 
}

/* ========================================================== */
/* 8. UTILITIES (CAROUSEL, SCROLL REVEAL, SPECS GRID)         */
/* ========================================================== */

/* Ẩn thanh cuộn của Product Carousel */
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* Bắt điểm cuộn mượt mà (Snap scrolling) */
.snap-container { 
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
}
.snap-item { 
    scroll-snap-align: start; 
}

/* Lưới thông số (Specs Grid) - Căn chỉnh hoàn hảo không đè chữ */
.specs-grid { 
    display: grid; 
    grid-template-columns: 1fr auto; 
    gap: 8px; 
    align-items: end; 
    border-bottom: 1px solid var(--ui-border); 
    padding-bottom: 6px; 
    margin-bottom: 6px;
}
.specs-grid:last-child { 
    border-bottom: none; 
    margin-bottom: 0;
}
.specs-label {
    color: var(--ui-muted); 
    font-size: 0.75rem; 
    line-height: 1.4;
}
.specs-value {
    color: var(--brand-navy); 
    font-family: monospace; 
    font-size: 0.75rem; 
    white-space: nowrap; 
    text-align: right;
    font-weight: 700;
}

/* Giới hạn độ rộng tối đa của toàn bộ website về 1280px */
.container {
    max-width: 1280px !important;
}