/*
Theme Name: Ghế Ô Tô Cho Bé Theme
Theme URI: https://gheotochobe.com
Author: Antigravity
Author URI: https://gheotochobe.com
Description: Theme WordPress thiết kế riêng cho cửa hàng Ghế Ô Tô Cho Bé CarSeat Mart.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gheotochobe
Tags: custom-theme, woocommerce, responsive
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ======== BIẾN MÀU (THEME GHẾ Ô TÔ CHO BÉ) ======== */
:root {
    --primary: #0f4c81;      /* Classic Blue - Uy tín, trung thực của hệ thống phân phối */
    --dark: #0b2545;         /* Deep Navy - Sang trọng, vững chãi */
    --accent: #e65c00;       /* Dynamic Orange - Kích thích mua sắm, hành động */
    --gold: #e65c00;         /* Mapped to accent for compatibility */
    --gold-light: #ffeedd;   /* Mapped to light orange for compatibility */
    --cream: #f4f6f9;        /* Nền xám nhạt hiện đại, giúp sản phẩm nổi bật */
    --white: #ffffff;
    --text-dark: #1d2a3a;
    --text-muted: #64748b;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --max-width: 1200px;

    /* WooCommerce variables mapping */
    --primary-blue: #0f4c81; 
    --secondary-blue: #0b2545; 
    --accent-blue: #e65c00;
    --bg-light-gray: #f4f6f9;
    --text-light: #FFFFFF;
    --sale-red: #e65c00; 
    --border-gray: #e2e8f0;
    --shadow: 0 4px 12px rgba(11, 37, 69, 0.08);
}

/* ======== RESET & THIẾT LẬP CƠ BẢN ======== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--secondary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Dùng cho lựa chọn "Nền Xám Nhạt" */
.bg-light-gray {
    background-color: var(--bg-light-gray);
}

/* Dùng cho lựa chọn "Nền Trắng" */
.bg-white {
    background-color: #fff;
}
/* === HEADER SEARCH (YẾN SÀO) === */

/* === FIX: Xếp các nút Header nằm trên 1 dòng === */

.header-actions {
    display: flex !important; /* BẮT BUỘC: Biến nó thành hàng ngang */
    align-items: center; /* Căn giữa các icon theo chiều dọc */
    gap: 20px; /* Khoảng cách giữa Nút Gọi, Search, và Giỏ hàng */
}

/* Đảm bảo các div con không chiếm hết dòng */
.header-search-icon,
.header-cart-icon,
.mobile-nav-toggle {
    display: flex; /* Để căn giữa icon SVG bên trong */
    align-items: center;
    margin: 0 !important; /* Xóa margin thừa nếu có */
}

/* Tùy chỉnh riêng cho từng icon nếu cần */
.header-search-icon a,
.header-cart-icon a {
    display: flex;
    align-items: center;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.header-search-icon a:hover,
.header-cart-icon a:hover {
    color: var(--secondary-blue);
}

/* Điều chỉnh vị trí giỏ hàng */
.header-cart-icon {
    margin-left: 15px; /* Cách nút Search */
}

/* Form tìm kiếm ẩn */
.header-search-form {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    z-index: 999;
}

.header-search-form.is-visible {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Style cho form input */
.header-search-form form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.header-search-form input[type="search"] {
    width: 100%;
    padding: 15px 50px 15px 20px; /* Padding phải để chứa nút tìm */
    border: 1px solid #ddd;
    border-radius: 30px; /* Bo tròn */
    font-size: 16px;
    outline: none;
    background: #f9f9f9;
}
.header-search-form input[type="search"]:focus {
    background: #fff;
    border-color: var(--primary-blue);
}

/* Nút Submit (Kính lúp bên trong input) */
.header-search-form button.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--primary-blue);
    border: none;
    width: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.header-search-form button.search-submit:hover {
    background: var(--secondary-blue);
}

/* Nút Đóng (X) */
.header-search-form .close-search {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px;
}
.header-search-form .close-search:hover {
    color: #333;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .header-search-form .close-search {
        right: 10px; /* Đưa nút X vào trong container */
        top: -30px; /* Đưa lên trên form */
    }
    .header-search-form {
        padding-top: 40px; /* Chừa chỗ cho nút X */
    }
}

/* ======== CÁC NÚT BẤM (BUTTONS) (Giữ nguyên) ======== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.main-nav .nav-mobile-only .btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-light);
}
.main-nav .nav-mobile-only .btn-primary:hover {
    background-color: var(--secondary-blue);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}
.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--text-light);
}


/* ======== HEADER (Giữ nguyên) ======== */
.site-header {
    background: var(--text-light);
    border-bottom: 1px solid var(--border-gray);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 24px; font-weight: 700; color: var(--primary-blue); }
.main-nav ul { list-style: none; display: flex; gap: 25px; }
.main-nav a { font-weight: 600; color: var(--text-dark); }
.main-nav a:hover { color: var(--primary-blue); }
/* === CSS CHO MENU 3 CẤP (DROPDOWN EXTENDED) === */

/* 1. Thiết lập lại vị trí (Dùng lại CSS cũ, nhưng thêm context) */
.main-nav ul li {
    position: relative; /* Neo cho dropdowns */
}


/* 2. Cấp 2 (Sub-menu container) */
.main-nav ul ul {
    visibility: hidden; /* Ẩn menu con mặc định */
    opacity: 0;
    position: absolute;
    top: 100%; /* Đẩy menu xuống dưới menu cha */
    left: 0;
    
    /* Style thẩm mỹ */
    background-color: var(--text-light); /* Nền trắng */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid var(--border-gray);
    padding: 10px 0;
    min-width: 200px; /* Chiều rộng cố định */
    z-index: 1050; /* Đảm bảo nó nổi lên trên */
    transition: all 0.3s ease; 
    
    /* FIX: Buộc UL phải là block để ngăn chặn Flexbox thừa kế */
    display: block; 
}

/* 3. Style cho Item Menu con (Cấp 2 & Cấp 3) */
.main-nav ul ul li {
    display: block; /* Ép xếp DỌC */
    margin-left: 0; /* Xóa margin ngang thừa */
}

/* --- CSS MENU CẤP 2 CHUẨN (FLEXBOX) --- */

/* 1. Style cho Link (Thẻ A) */
.main-nav ul ul li a {
    /* BẮT BUỘC: Dùng Flex để căn chỉnh giống theme Nuôi Con */
    display: flex !important; 
    justify-content: space-between; /* Đẩy chữ sang trái, mũi tên sang phải */
    align-items: center; /* Căn giữa dọc */
    
    padding: 10px 20px;
    font-size: 15px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%; /* Chiếm hết chiều rộng */
}

.main-nav ul ul li a:hover {
    background-color: var(--bg-light-gray);
    color: var(--primary-blue);
    padding-left: 25px; /* Hiệu ứng thụt vào */
}

/* 2. Style cho Mũi Tên (CSS ::after) */
/* Reset lại position absolute cũ, dùng flex item */
.main-nav ul ul li.menu-item-has-children > a::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    
    /* FIX: Bỏ absolute, để nó tự chảy theo Flexbox */
    position: static; 
    margin-left: 10px; /* Khoảng cách với chữ */
    transform: none;
    
    color: #999;
}

/* Đổi màu mũi tên khi hover */
.main-nav ul ul li:hover > a::after {
    color: var(--primary-blue);
}
/* 1. Hover vào cấp 1 -> Hiện cấp 2 */
.main-nav li:hover > ul {
    visibility: visible !important;
    opacity: 1 !important;
    top: 100%; /* Đảm bảo vị trí đúng */
}

/* 2. Hover vào cấp 2 -> Hiện cấp 3 (Nếu có) */
.main-nav ul ul li:hover > ul {
    visibility: visible !important;
    opacity: 1 !important;
    top: 0; /* Căn bằng đầu */
    left: 100%; /* Đẩy sang phải */
}

/* 3. Định vị menu cấp 3 (Cần thiết để nó không đè lên cấp 2) */
.main-nav ul ul ul {
    top: 0;
    left: 100%; 
    margin-left: 0; /* Dính liền hoặc cách ra tùy ý */
}
/* ======== CSS CẬP NHẬT CHO HERO (TÁCH NỀN) ======== */

/* 1. Class .hero-static-block (Cấu trúc chung) */
.hero-static-block {
  padding: 100px 0;
  text-align: center;
}

/* 2. Class .hero-gradient-blue (Nền mặc định) */
.hero-static-block.hero-gradient-blue {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--text-light);
}
.hero-static-block.hero-gradient-blue h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-light); /* Chữ trắng */
}
.hero-static-block.hero-gradient-blue p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--text-light); /* Chữ trắng */
}

/* 3. Style Ghi đè cho Nền Sáng (Xám hoặc Trắng) */
.hero-static-block.bg-light-gray h1,
.hero-static-block.bg-light-gray p,
.hero-static-block.bg-white h1,
.hero-static-block.bg-white p {
    color: var(--text-dark); /* Chuyển chữ sang màu TỐI */
}

/* 4. Sửa style nút bấm cho Hero Tĩnh */
.hero-static-block.hero-gradient-blue .btn-secondary {
  background-color: var(--text-light);
  color: var(--primary-blue);
  border: 1px solid var(--text-light); /* Viền trắng */
}
.hero-static-block.hero-gradient-blue .btn-secondary:hover {
  background-color: transparent; /* Nền trong suốt khi hover */
  color: var(--text-light); /* Chữ trắng */
}

/* ======== CSS MỚI CHO KHỐI CAM KẾT (TỪ BLOCK FILE) ======== */
/* (Dán vào cuối file style.css) */

.commitment-section {
    padding: 60px 0;
    background-color: #fff; 
}
/* Tiêu đề chung (Tùy chọn) */
.commitment-section .section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}
/* Mô tả chung (Tùy chọn) */
.commitment-section .section-intro {
    text-align: center;
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px auto; 
    line-height: 1.7;
}

/* Lưới (Grid) chứa các cam kết */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

/* Từng mục cam kết */
.commitment-item {
    text-align: center;
}
/* Wrapper cho icon (để căn giữa) */
.commitment-item .commitment-icon {
    margin: 0 auto 15px auto; /* Căn giữa */
    width: 48px; /* Cố định kích thước */
    height: 48px;
}
/* Style cho icon khi là <img> */
.commitment-item .commitment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}
/* Style cho icon khi là <svg> (quan trọng!) */
.commitment-item .commitment-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    fill: var(--primary-blue); /* Tự động đổi màu SVG */
}

.commitment-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.commitment-item p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* ======== CSS MỚI CHO MENU RESPONSIVE ======== */

/* Nút Hamburger & Nút Close (Mặc định ẩn trên desktop) */
.mobile-nav-toggle,
.nav-close-btn {
    display: none;
    cursor: pointer;
    color: var(--primary-blue); /* Màu xanh chủ đạo */
}
/* Ẩn nút "Gọi Tư Vấn" trong menu (chỉ hiện trên mobile) */
.nav-mobile-only {
    display: none;
}

/* Lớp phủ mờ (Mặc định ẩn) */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Nền đen mờ */
    z-index: 1001; /* Nằm dưới menu mobile, trên nội dung trang */
}

/* Khi menu mobile được kích hoạt (class 'is-active') */
.nav-overlay.is-active {
    display: block;
}


/* ======== MEDIA QUERY (Thiết bị Tablet & Mobile) ======== */
/* Bất cứ khi nào màn hình nhỏ hơn 992px */

@media (max-width: 992px) {

    /* 1. Ẩn menu desktop và nút "Gọi Tư Vấn" trên header */
    .main-nav ul {
        /* Chuyển hướng thành cột dọc */
        flex-direction: column;
        align-items: flex-start; /* Căn trái các mục */
        gap: 20px; /* Khoảng cách giữa các mục */
        padding: 60px 30px 30px 30px; /* Thêm padding bên trong menu */
    }

    .main-nav a {
        font-size: 18px; /* Tăng cỡ chữ cho dễ bấm */
    }

    .header-actions .btn-primary {
        display: none; /* Ẩn nút "Gọi Tư Vấn" (bản desktop) */
    }
    
    /* 2. Hiện nút Hamburger */
    .mobile-nav-toggle {
        display: block;
    }
    
    /* 3. Hiển thị nút "Gọi Tư Vấn" (bản mobile - bên trong menu) */
    .nav-mobile-only {
        display: block;
        width: 100%;
        margin-top: 15px;
    }
    .nav-mobile-only .btn {
        width: 100%; /* Nút bấm chiếm 100% chiều rộng */
    }


    /* 4. Hiện nút Close (bên trong menu) */
    .nav-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 28px;
    }

    /* 1. Khung Menu Chính */
    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 1002;
        padding-top: 60px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    .main-nav.is-active { right: 0; }

    /* 2. Reset Danh Sách */
    .main-nav ul { display: block; margin: 0; padding: 0; width: 100%; list-style: none; }
    .main-nav li { display: block; width: 100%; margin: 0; border-bottom: 1px solid #f0f0f0; position: relative; }

    /* 3. STYLE LINK (MỌI CẤP ĐỘ) */
    .main-nav li a {
        display: flex;
        align-items: center;       /* Căn giữa dọc */
        justify-content: space-between; /* Đẩy text trái, mũi tên phải */
        flex-wrap: nowrap;         /* QUAN TRỌNG: Cấm xuống dòng */
        
        padding: 12px 15px;        /* Padding gọn gàng */
        font-size: 16px;
        color: #333;
        font-weight: 600;
        text-decoration: none;
        width: 100%;
        background: #fff;
        box-sizing: border-box;
    }

    /* 4. STYLE NÚT MŨI TÊN (TOGGLE - CLEAN) */
    .mobile-dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        
        /* Kích thước vùng bấm */
        width: 40px; 
        height: 40px;
        flex-shrink: 0; /* QUAN TRỌNG: Cấm bị co nhỏ khi text dài */
        
        /* Style Icon */
        color: #999; /* Màu xám nhạt tinh tế */
        font-size: 12px;
        
        /* Bỏ nền hộp thô kệch */
        background: transparent; 
        border-left: 1px solid #f0f0f0; /* Chỉ giữ 1 đường kẻ mờ ngăn cách */
        margin-left: 10px;
        transition: transform 0.3s ease;
    }

    /* Khi mở: Xoay mũi tên & Đổi màu */
    .main-nav li.dropdown-open > a .mobile-dropdown-toggle {
        transform: rotate(180deg);
        color: var(--primary-blue); /* Đổi màu icon thành màu chủ đạo */
    }
    .main-nav li.dropdown-open > a {
        color: var(--primary-blue);
        background-color: #fafafa; /* Highlight nhẹ nền link mẹ */
    }

    /* 5. MENU CON (CẤP 2, 3...) */
    .main-nav ul ul {
        display: none; /* Cơ chế ẩn hiện bằng display */
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        width: 100%;
        
        /* Nền cho cấp con */
        background-color: #f9f9f9; 
        box-shadow: inset 0 4px 8px -4px rgba(0,0,0,0.05); /* Bóng đổ trong nhẹ */
    }

    /* Khi mở */
    .main-nav li.dropdown-open > ul {
        display: block;
    }

    /* --- THỤT ĐẦU DÒNG (Indentation) --- */
    
    /* Cấp 2 */
    .main-nav ul ul li a {
        padding-left: 35px; 
        font-size: 15px;
        font-weight: 500;
        color: #555;
        background-color: transparent; /* Trong suốt để ăn màu nền cha (#f9f9f9) */
        border-bottom: 1px solid #eee;
    }
    
    /* Cấp 3 */
    .main-nav ul ul ul li a {
        padding-left: 55px; 
        font-size: 14px;
        color: #666;
        background-color: #f2f2f2; /* Đậm hơn xíu nữa */
    }

    /* Nút Đóng */
    .nav-close-btn {
        display: flex; justify-content: center; align-items: center;
        position: absolute; top: 15px; right: 20px;
        width: 35px; height: 35px; font-size: 24px; color: #333;
        cursor: pointer; z-index: 1003;
    }
    
    /* Ẩn nút CTA */
    .header-actions .btn-primary { display: none; }

    /* Overlay */
    .nav-overlay {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 1001;
    }
    .nav-overlay.is-active { display: block; }
}

/* ======== CSS MỚI CHO NÚT GIỎ HÀNG ======== */

.header-cart-icon {
    position: relative;
    margin-left: 15px; /* Khoảng cách với nút "Gọi Tư Vấn" */
}

.header-cart-icon a {
    color: var(--primary-blue); /* Màu xanh chủ đạo */
    text-decoration: none;
    display: block;
    position: relative;
}
.header-cart-icon a:hover {
    color: var(--secondary-blue);
}

/* "Bong bóng" đếm số lượng */
.header-cart-icon .cart-count {
    position: absolute;
    top: -8px;    /* Đẩy lên trên icon */
    right: -10px; /* Đẩy sang phải icon */
    
    background-color: var(--sale-red); /* Dùng màu đỏ cho nổi bật */
    color: var(--text-light); /* Chữ trắng */
    
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    
    border-radius: 50%; /* Bo tròn */
    width: 18px;
    height: 18px;
    
    /* Căn giữa số bên trong */
    display: flex;
    align-items: center;
    justify-content: center;
    
    border: 1px solid var(--text-light); /* Viền trắng nhỏ */
}

/* Ẩn giỏ hàng trên menu mobile (vì nó nằm ngoài) */
@media (max-width: 992px) {
    .header-cart-icon {
        /* * Bạn có thể chọn ẨN nó đi (display: none)
         * hoặc giữ lại nó bên cạnh nút hamburger.
         * Ở đây tôi sẽ giữ lại.
        */
        margin-left: 10px;
    }
}
/* ======== CSS MỚI CHO COMMITMENT SECTION ======== */
.commitment-section {
    padding: 60px 0;
    background-color: #fff; /* Nền trắng để tách biệt với khối xám */
}

.commitment-item {
    flex: 1; /* Chia đều 3 cột */
    max-width: 350px; /* Giới hạn độ rộng */
    text-align: center;
}

.commitment-item svg {
    color: var(--primary-blue); /* Dùng màu xanh chủ đạo */
    margin-bottom: 15px;
}

.commitment-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.commitment-item p {
    font-size: 16px;
    color: #555; /* Màu chữ mô tả */
    line-height: 1.5;
}
/* Conflicting process section styles removed to allow original dark styling to apply */

/* ======== PRODUCTS SECTION (Giữ nguyên) ======== */
.products-section {
    padding: 80px 0;
    background-color: var(--bg-light-gray);
}
.products-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 50px;
}

/* ======== CSS SỬA LỖI GIÁ & NÚT TRANG SHOP (GHI ĐÈ WOOCOMMERCE) ======== */

/* 1. Áp dụng style "thẻ" của chúng ta cho "li.product" của WooCommerce */
/* (Thay thế cho .product-card cũ) */
ul.products li.product {
  background: var(--text-light);
  border-radius: 12px;
  overflow: hidden; /* Quan trọng */
  box-shadow: var(--shadow);
  border: 1px solid var(--border-gray);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 0; /* Reset padding mặc định của WC */
  margin-bottom: 30px;

    /* === THÊM 3 DÒNG NÀY ĐỂ SỬA LỖI === */
    display: flex; /* Biến thẻ <li> thành một flex container */
    flex-direction: column; /* Sắp xếp các con (link, nút) theo cột */
    height: 100%; /* Đảm bảo nó lấp đầy ô grid (quan trọng!) */
}
ul.products li.product:hover {
    transform: translateY(-8px);
  border-color: var(--primary-blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 2. Style link bọc (chứa ảnh, tên, giá) */
ul.products li.product a.woocommerce-LoopProduct-link {
  text-decoration: none;
  color: var(--text-dark);
    
    /* === THÊM 3 DÒNG NÀY ĐỂ SỬA LỖI === */
    flex-grow: 1; /* CHO PHÉP KHỐI NÀY NỞ RA, ĐẨY NÚT XUỐNG DƯỚI */
    display: flex; /* Biến nó thành flex column */
    flex-direction: column; /* để img, h2, price xếp dọc */
}

/* 3. Style ảnh */
ul.products li.product a img {
    width: 100%;
  height: 300px; 
  object-fit: cover;
  transition: transform 0.3s ease;
    margin-bottom: 0; 
}
ul.products li.product a:hover img {
    transform: scale(1.05);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding: .5em 1.1em;}
/* 4. Style Tiêu đề */
/* ---- ĐÂY LÀ CODE MỚI (ĐÃ SỬA LỖI 2 DÒNG) ---- */
ul.products li.product .woocommerce-loop-product__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  padding: 0 25px;
  margin-top: 25px;
  line-height: 1.3em; /* Đặt chiều cao dòng cụ thể */
  min-height: 3.6em; 
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* SỐ DÒNG TỐI ĐA */
  -webkit-box-orient: vertical;
}

.tab-content ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.5em; /* Đặt chiều cao 3.5em CHỈ cho trang shop */
}
ul.products li.product a:hover .woocommerce-loop-product__title {
    color: var(--primary-blue);
}

/* 5. SỬA LỖI GIÁ (Dùng class .price) */
ul.products li.product .price {
	padding: 11px 25px;      /* Giữ padding (lề trái/phải) */

}
.price del {
  display: block;
  font-size: 15px;
    color: #888;
    margin-bottom: 5px;
    line-height: 1.2;
}
.price del::before {
  content: 'Giá thị trường: ';
    margin-right: 5px;
  text-decoration: none;
  display: inline-block;
}

.price ins {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--sale-red);
  text-decoration: none;
  line-height: 1.2;
}
.price ins::before {
  content: 'Tại đây: ';
    margin-right: 5px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}
.price > .woocommerce-Price-amount {
    display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--sale-red);
  text-decoration: none;
    line-height: 1.2;
}
.price > .woocommerce-Price-amount::before {
    content: 'Giá: ';
    margin-right: 5px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

/* 6. SỬA LỖI NÚT (Target .button) */
ul.products li.product .button {
    display: block; 
  padding: 12px 24px;
  border-radius: 0; /* Nút full-width ở dưới */
  font-weight: 600;
  text-align: center;
    border: none;
  background-color: var(--primary-blue);
  color: var(--text-light);
  width: 100%; 
  font-size: 15px;
    margin: 0; /* Reset margin */
    border-bottom-left-radius: 12px; 
    border-bottom-right-radius: 12px; 
    transition: all 0.3s ease;
}
ul.products li.product .button:hover {
    background-color: var(--secondary-blue);
  color: var(--text-light);
}

/* 7. ẨN NÚT .btn-primary CŨ (nếu còn) */
.product-card .btn-primary {
  display: none;
}
/* ======== CSS CHO TABS SẢN PHẨM (Giữ nguyên) ======== */
.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-gray);
}

.tab-nav {
    list-style: none;
    display: flex;
    gap: 20px;
}

.tab-link {
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    bottom: -2px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}
.tab-link:hover { color: var(--secondary-blue); }
.tab-link.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ======== CSS MỚI CHO BLOG SECTION ======== */

.blog-section {
    padding: 80px 0;
    background-color: #fff; /* Nền trắng, tách biệt với nền xám của sản phẩm */
}

.post-card {
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.post-image {
    overflow: hidden; /* Cần thiết cho hiệu ứng zoom */
}
.post-image img {
    width: 100%;
    height: 200px; /* Chiều cao cố định cho ảnh blog */
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hiệu ứng zoom ảnh khi hover vào thẻ post-card */
.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-info {
    padding: 25px;
}

/* Kiểu cho thẻ H3 (tiêu đề bài viết) */
.post-info h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    /* Đảm bảo chiều cao cố định (2 dòng) và ẩn nếu dài quá */
    height: 2.4em; 
    line-height: 1.2em;
    overflow: hidden;
}

/* Tiêu đề bài viết là một liên kết */
.post-info h3 a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}
.post-info h3 a:hover {
    color: var(--primary-blue);
}

/* Đoạn tóm tắt bài viết */
.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px; /* Khoảng cách với nút Đọc thêm */
    margin-top: 10px;    /* Khoảng cách với Meta */
    
    /* Đảm bảo không có margin thừa từ thẻ p cũ */
    padding: 0;
}

/* Nút "Đọc Thêm" (kiểu link) */
.btn-link {
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}
/* ======== CSS MỚI CHO CERTIFICATION SECTION (SWIPER) ======== */

.certification-section {
    padding: 80px 0;
    /* Dùng lại nền xám nhạt cho đồng bộ */
    background-color: var(--bg-light-gray); 
    position: relative; /* Cần thiết để định vị các nút điều hướng */
}

/* Căn chỉnh lại tiêu đề và mô tả cho khối này */
.certification-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px; /* Giảm margin dưới */
}
.certification-section .section-intro {
    margin-bottom: 50px; /* Tăng khoảng cách với slider */
}

/* Đảm bảo Swiper slider nằm trong container */
.certification-slider {
    width: 100%;
    /* Thêm khoảng trống ở dưới cho các dấu chấm pagination */
    padding-bottom: 60px; 
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    
    /* Giữ cho ảnh hiển thị đẹp */
    display: flex;
    justify-content: center;
    align-items: center;
}

.certification-slider .swiper-slide img {
    display: block;
    width: 100%;
    
    /* THAY ĐỔI CHIỀU CAO (giảm từ 400px xuống) */
    height: 350px; /* Bạn có thể thử 350px hoặc 300px */

    object-fit: cover;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ======== TÙY CHỈNH MÀU SẮC SWIPER ======== */
/* Đổi màu mũi tên và dấu chấm sang màu xanh chủ đạo */

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-blue); /* Dùng biến màu xanh */
    /* Thu nhỏ lại một chút cho đỡ thô */
    transform: scale(0.7); 
}

.swiper-pagination-bullet-active {
    background: var(--primary-blue); /* Dùng biến màu xanh */
}
/* ======== CSS CẬP NHẬT CHO TESTIMONIAL SECTION (SWIPER) ======== */

.testimonial-section {
    padding: 80px 0;
    background-color: #fff;
}

.testimonial-section h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}
.testimonial-section .section-intro {
    margin-bottom: 50px;
}

.testimonial-slider {
    width: 100%;
    max-width: 900px; /* Tăng chiều rộng tối đa một chút để có chỗ cho ảnh và text */
    margin: 0 auto;
    padding-bottom: 60px;
}

/* CẬP NHẬT CHÍNH TẠI ĐÂY: Sử dụng Flexbox để chia 2 cột */
.testimonial-card {
    background: var(--bg-light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 30px; /* Giảm padding một chút */
    text-align: left; /* Căn chỉnh text sang trái */
    box-shadow: var(--shadow);

    display: flex; /* Dùng Flexbox */
    align-items: flex-start; /* Căn trên đầu */
    gap: 30px; /* Khoảng cách giữa ảnh và nội dung */
}

/* Phần thông tin khách hàng (ảnh, tên, chức danh) */
.customer-profile {
    flex-shrink: 0; /* Không cho phép co lại */
    width: 168px; /* Chiều rộng cố định cho phần profile */
    text-align: center; /* Căn giữa nội dung profile */
}

.testimonial-section .customer-avatar{
    width: 120px;      /* Tăng kích thước avatar lên 100px */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto; /* Căn giữa ảnh và tạo margin dưới */
    border: 3px solid var(--text-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.customer-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.customer-title {
    font-size: 15px;
    color: #777;
    margin-top: 5px;
}

/* Phần nội dung đánh giá */
.testimonial-content {
    flex-grow: 1; /* Cho phép nội dung đánh giá chiếm hết phần còn lại */
}

.testimonial-text {
    font-size: 18px;
    font-style: italic;
    color: #333;
    line-height: 1.7;
    margin-bottom: 0; /* Bỏ margin-bottom nếu không cần */
    position: relative;
    padding-top: 15px; /* Thêm padding để dấu quote không bị đè */
}

/* Dấu ngoặc kép lớn */
.testimonial-text::before {
    content: '“';
    font-size: 60px; /* Tăng kích thước quote */
    color: var(--primary-blue);
    opacity: 0.3;
    position: absolute;
    top: -10px; /* Điều chỉnh vị trí */
    left: 0; /* Căn sát trái */
    line-height: 1; /* Quan trọng để quote không chiếm nhiều không gian */
}

/* Điều chỉnh lại cho màn hình nhỏ hơn (responsive) */
@media (max-width: 768px) {
    .testimonial-card {
        flex-direction: column; /* Chuyển sang xếp chồng dọc trên mobile */
        align-items: center; /* Căn giữa các item */
        padding: 25px;
    }
    .customer-profile {
        width: 100%; /* Chiếm toàn bộ chiều rộng */
        margin-bottom: 20px; /* Thêm khoảng cách dưới profile */
    }
    .customer-avatar {
        width: 90px; /* Giảm kích thước avatar trên mobile */
        height: 90px;
    }
    .testimonial-text::before {
        left: 50%; /* Căn giữa quote trên mobile */
        transform: translateX(-50%);
    }
    .testimonial-text {
        text-align: center; /* Căn giữa text trên mobile */
    }
}


/* Tùy chỉnh pagination cho slider này */
.testimonial-slider .swiper-pagination-bullet-active {
    background: var(--primary-blue);
}
/* ======== CSS MỚI CHO CALL TO ACTION (CTA) ======== */

.cta-section {
    padding: 80px 0;
    /* Dùng lại nền gradient của hero để tạo ấn tượng mạnh */
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--text-light); /* Toàn bộ chữ trong khối này màu trắng */
    text-align: center; /* Căn giữa mọi thứ */
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    max-width: 700px; /* Giới hạn chiều rộng cho dễ đọc */
    margin: 0 auto 30px auto; /* Căn giữa và tạo khoảng cách */
    opacity: 0.9; /* Cho chữ mờ đi một chút, chuyên nghiệp hơn */
}

/* Tùy chỉnh nút trong CTA cho to và nổi bật hơn.
   Nó vẫn dùng nền trắng (từ .btn-secondary) 
   nhưng chúng ta tăng kích thước chữ và padding.
*/
.cta-section .btn-secondary {
    font-size: 18px;
    padding: 15px 30px;
    
    /* Thêm hiệu ứng hover nổi bật */
    transition: transform 0.3s ease;
    transform: scale(1);
}

.cta-section .btn-secondary:hover {
    /* Style hover cũ của .btn-secondary là đổi nền xanh, chữ trắng.
       Chúng ta thêm hiệu ứng phóng to nhẹ để nó nổi bật hơn. 
    */
    transform: scale(1.05);
}
/* ======== CSS CẬP NHẬT CHO FOOTER (3 CỘT) ======== */

.site-footer {
    background: var(--text-dark); /* Dùng lại màu nền đen */
    color: #ccc; /* Màu chữ phụ */
    padding: 60px 0 30px 0; /* Tăng padding trên, giảm padding dưới */
}

/* Lớp này chứa 3 cột */
.footer-main {
    display: flex;
    flex-wrap: wrap; /* Cho phép tự động xuống dòng trên mobile */
    gap: 40px; /* Khoảng cách giữa các cột */
    padding-bottom: 40px;
    border-bottom: 1px solid #555; /* Viền ngăn cách với copyright */
    margin-bottom: 30px;
}

/* Định dạng chung cho các cột */
.footer-col {
    min-width: 200px; /* Chiều rộng tối thiểu cho 1 cột */
}

/* Cột 1: Giới thiệu */
.footer-col-about {
    flex: 2; /* Chiếm 2 phần (gấp đôi các cột khác) */
    min-width: 300px; /* Cho phép cột này rộng hơn khi xuống dòng */
}

/* Cột 2 & 3: Menu */
.footer-col-menu {
    flex: 1; /* Chiếm 1 phần */
}

/* Logo ở Footer */
.footer-logo {
    display: inline-block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-light); /* Màu trắng */
    text-decoration: none;
    margin-bottom: 10px;
}

/* Tiêu đề của các cột */
.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light); /* Màu trắng */
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Văn bản giới thiệu */
.footer-col-about p {
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 15px;
}

/* Danh sách menu */
.footer-col-menu ul {
    list-style: none; /* Bỏ dấu chấm đầu dòng */
}

.footer-col-menu li {
    margin-bottom: 12px;
}

.footer-col-menu a {
    color: #ccc; /* Màu chữ liên kết */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col-menu a:hover {
    color: var(--text-light); /* Đổi sang màu trắng khi hover */
    padding-left: 5px; /* Hiệu ứng thụt vào nhẹ */
}

/* Phần Copyright */
.footer-bottom {
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

/* ======== CSS MỚI CHO TRANG GIỚI THIỆU ======== */

/* Đánh dấu link "active" trong menu (tùy chọn) */
.main-nav li.active a {
    color: var(--primary-blue);
    font-weight: 700;
}

/* Khối tiêu đề đầu trang */
.page-header {
    padding: 100px 0;
    background-color: var(--primary-blue);
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    color: var(--white);
    border-bottom: 1px solid rgba(215, 181, 109, 0.2);
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 66, 108, 0.75); /* Cinematic dark overlay */
    z-index: 1;
}
.page-header .container {
    position: relative;
    z-index: 2;
}
.page-header h1 {
    font-size: 2.8rem;
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Khối nội dung chính (Câu chuyện) */
.about-story {
    padding: 80px 0;
    background: #fff;
}
.about-story .container {
    max-width: 800px; /* Giới hạn chiều rộng cho dễ đọc */
    margin: 0 auto;
    text-align: center;
}
.about-story h2 {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 25px;
}
.about-story p {
    font-size: 17px;
    line-height: 1.8; /* Dãn dòng cho dễ đọc */
    color: #333;
    margin-bottom: 20px;
}

/* Khối Tầm nhìn (50/50) */
.about-mission {
    padding: 80px 0;
    background: var(--bg-light-gray); /* Nền xám */
}

/* Lưới 2 cột chung */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px; /* Khoảng cách giữa 2 cột */
    align-items: center;
}

.image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.text-content h3 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}
.text-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.about-mission .text-content ul {
    list-style: none; /* Bỏ dấu chấm */
    padding-left: 0;
}
.about-mission .text-content li {
    font-size: 16px;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}
/* Tạo dấu check (thay cho dấu chấm) */
.about-mission .text-content li::before {
    content: '✓'; /* Ký tự check */
    color: var(--primary-blue);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}


/* Responsive cho khối 50/50 */
@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    }
}

/* ======== CSS MỚI CHO TRANG LIÊN HỆ ======== */

.contact-main {
    padding: 80px 0;
    background: #fff;
}

/* Cột thông tin (Trái) */
.contact-info ul {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
}
.contact-info li {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.5;
}
.contact-info li strong {
    display: block; /* Cho tiêu đề (Địa chỉ, Hotline) xuống 1 dòng */
    color: var(--primary-blue);
    font-size: 17px;
    margin-bottom: 5px;
}
.contact-info li a {
    color: #333;
    text-decoration: none;
}
.contact-info li a:hover {
    color: var(--primary-blue);
}


/* Cột Form (Phải) */
.contact-form h3 {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

/* Input & Textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(13, 71, 161, 0.2); /* Hiệu ứng focus */
}

/* Nút Gửi */
.contact-form .btn-primary {
    width: 100%; /* Nút bấm chiếm 100% */
    font-size: 16px;
    padding: 15px;
}

/* Phần bản đồ bên trong cột grid */
.contact-map-holder iframe {
    display: block;
    width: 100% !important;
    height: 380px !important;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 0;
}
/* ======== CSS MỚI CHO TRANG BLOG (ARCHIVE) ======== */

.blog-main {
    padding: 80px 0;
    background: #fff;
}

/* Lưới 2 cột (Nội dung 2/3, Sidebar 1/3) */
.blog-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Chia 2 cột theo tỷ lệ 2:1 */
    gap: 50px;
}

/* Thẻ bài viết (kiểu danh sách) */
.post-list-item {
    display: flex; /* Xếp ngang: Ảnh (trái) - Info (phải) */
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-gray);
}
.post-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.post-list-item .post-image {
    flex-shrink: 0; /* Không co lại */
    width: 300px;
}
.post-list-item .post-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.post-list-item .post-info {
    flex-grow: 1; /* Tự lấp đầy phần còn lại */
}

.post-list-item .post-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}
.post-list-item .post-info h3 a {
    color: var(--text-dark);
}
.post-list-item .post-info h3 a:hover {
    color: var(--primary-blue);
}

/* Thông tin ngày tháng, danh mục */
.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}
.post-meta span {
    margin-right: 10px;
}

/* Đoạn tóm tắt */
.post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

/* Nút "Đọc Thêm" (đã có style từ trang chủ) */
.post-list-item .btn-link {
    font-size: 15px;
}

/* ======== CSS CHO SIDEBAR ======== */

.blog-sidebar .sidebar-widget {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-light-gray);
    border-radius: 8px;
    border: 1px solid var(--border-gray);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
}

/* Form tìm kiếm */
.search-form {
    display: flex;
}
.search-form input[type="search"] {
    flex-grow: 1;
    border: 1px solid var(--border-gray);
    padding: 10px 15px;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-blue);
}
.search-form button {
    background: var(--primary-blue);
    color: var(--text-light);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
}

/* Danh sách (cho danh mục, bài mới) */
.sidebar-widget ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.sidebar-widget li {
    margin-bottom: 12px;
}
.sidebar-widget li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}
.sidebar-widget li a:hover {
    color: var(--primary-blue);
}

/* ======== CSS CHO PHÂN TRANG (PAGINATION) ======== */
.pagination {
    text-align: center;
    margin-top: 40px;
}
.page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.page-numbers:hover {
    background: var(--bg-light-gray);
    border-color: var(--secondary-blue);
}
/* Trang hiện tại */
.page-numbers.current {
    background: var(--primary-blue);
    color: var(--text-light);
    border-color: var(--primary-blue);
}


/* ======== RESPONSIVE CHO TRANG BLOG ======== */
@media (max-width: 992px) {
    /* Chuyển 2 cột thành 1 cột */
    .blog-layout-grid {
        grid-template-columns: 1fr; 
    }
    /* Đẩy sidebar xuống dưới */
    .blog-sidebar {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    /* Bài viết xếp dọc trên mobile */
    .post-list-item {
        flex-direction: column;
    }
    .post-list-item .post-image {
        width: 100%; /* Ảnh chiếm 100% */
        max-width: 350px; /* Nhưng không quá to */
    }
}
/* ======== CSS MỚI CHO TRANG CHI TIẾT BÀI VIẾT (SINGLE POST) ======== */

/* Tiêu đề đầu trang (kiểu bài viết) */
.page-header-single {
    padding-top: 60px;
    padding-bottom: 60px;
    background: var(--bg-light-gray);
    text-align: center;
}
.page-header-single .container {
    max-width: 800px; /* Thu hẹp container cho tiêu đề */
}

/* Thẻ danh mục */
.post-category-tag {
    margin-bottom: 15px;
}
.post-category-tag a {
    display: inline-block;
    padding: 6px 15px;
    background: var(--primary-blue);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.page-header-single h1 {
    font-size: 42px;
    color: var(--text-dark); /* Đổi màu cho dễ đọc */
    margin-bottom: 15px;
    line-height: 1.2;
}
.page-header-single .post-meta {
    color: #555;
    font-size: 16px;
    font-weight: 500;
}


/* Ảnh đại diện của bài viết */
.post-featured-image {
    margin-bottom: 30px;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Định dạng nội dung (Rich Text) bên trong bài viết */
.post-content-area {
    /* Đây là nơi nội dung từ trình soạn thảo WordPress sẽ hiển thị */
}
.post-content-area p {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
}
.post-content-area h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 20px;
}
.post-content-area h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}
.post-content-area ul,
.post-content-area ol {
    padding-left: 25px;
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.8;
}
.post-content-area li {
    margin-bottom: 10px;
}

/* Trích dẫn (Blockquote) */
.post-content-area blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: var(--bg-light-gray);
    border-left: 5px solid var(--primary-blue);
    font-size: 18px;
    font-style: italic;
    color: #333;
    line-height: 1.7;
}

/* Hình ảnh bên trong nội dung bài viết */
.post-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
/* ======== CSS MỚI CHO TRANG SHOP (WOOCOMMERCE) ======== */

.shop-main {
    padding: 80px 0;
    background: #fff;
}

/* Thanh Sắp xếp & Đếm kết quả */
.woocommerce-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-gray);
}
.woocommerce-result-count {
    color: #555;
    font-size: 15px;
}
.woocommerce-ordering select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    font-size: 15px;
    background-color: #fff;
}
.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* * KẾ THỪA STYLE CHO LƯỚI SẢN PHẨM
 * Chúng ta đã thêm class "product-grid" vào "ul.products"
 * và "product-card" vào "li.product"
 * nên nó sẽ tự động kế thừa style từ trang chủ.
 * Chúng ta chỉ cần reset lại list-style của <ul>.
*/
ul.products {
    list-style: none; /* Bỏ dấu chấm đầu dòng của <ul> */
    margin: 0;
    padding: 0;
}


/* CSS cho Widget Lọc Theo Giá (Mô phỏng) */
.widget_price_filter .price_slider_amount {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.widget_price_filter .price_label {
    font-size: 15px;
    color: #555;
}
.widget_price_filter .btn-small {
    padding: 8px 15px; /* Nút nhỏ hơn */
    font-size: 14px;
}

/* Responsive (Tái sử dụng style của trang blog)
 * Vì .blog-layout-grid đã responsive,
 * nên trang shop cũng sẽ tự động responsive.
 * Chúng ta chỉ cần chỉnh lại số cột grid của sản phẩm
 * trên mobile cho đẹp hơn.
*/

@media (max-width: 768px) {
    /* Thanh sắp xếp xếp dọc */
    .woocommerce-header-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 600px) {
    /* * Mặc định, .product-grid có minmax(300px, 1fr)
     * nó sẽ thành 1 cột trên mobile.
     * Nếu muốn 2 cột, chúng ta sửa ở đây.
     * Tạm thời 1 cột là ổn.
    */
}

/* ======== CSS MỚI CHO TRANG CHI TIẾT SẢN PHẨM (SINGLE) ======== */

.product-detail-main {
    padding: 40px 0 80px 0; /* Ít padding hơn ở trên */
    background: #fff;
}

/* Breadcrumbs (Đường dẫn) */
.woocommerce-breadcrumb {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
}
.woocommerce-breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb-separator {
    margin: 0 8px;
}

/* * Lưới 2 cột (Ảnh / Thông tin)
 * Chúng ta dùng lại .grid-2-col nhưng thêm class
 * để tùy chỉnh khoảng cách
*/
.product-gallery-summary {
    gap: 50px; /* Khoảng cách lớn giữa ảnh và thông tin */
    margin-bottom: 60px;
}

/* Cột Trái: Thư viện ảnh */
.woocommerce-product-gallery .main-image img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.woocommerce-product-gallery .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.woocommerce-product-gallery .thumbnails img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.woocommerce-product-gallery .thumbnails img:hover {
    border-color: var(--primary-blue);
}

/* Cột Phải: Thông tin (Summary) */
.summary .product_title {
    font-size: 32px;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}
.summary .price {
    font-size: 24px;
    margin-bottom: 20px;
}
.summary .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 25px;
}

/* Form Add to Cart */
.summary form.cart {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}
.summary .quantity label {
    font-weight: 600;
    margin-right: 10px;
}
.summary .quantity .input-text.qty {
    width: 60px;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
}
.summary .single_add_to_cart_button {
    padding: 12px 24px;
    font-size: 16px;
}

/* Meta (SKU, Danh mục) */
.product_meta {
    font-size: 14px;
    color: #555;
    border-top: 1px dashed var(--border-gray);
    padding-top: 20px;
}
.product_meta span {
    display: block;
    margin-bottom: 5px;
}
.product_meta a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* CSS cho Tab (Kế thừa từ .product-tabs) */
.woocommerce-tabs {
    margin-top: 40px;
}
/* Style cho nội dung trong tab */
.woocommerce-tabs .tab-content {
    padding: 30px;
    border: 1px solid var(--border-gray);
    border-top: none;
    border-radius: 0 0 8px 8px;
    /* Dùng lại style của bài viết chi tiết */
}
.woocommerce-tabs .review-item {
    margin-bottom: 20px;
}
.woocommerce-tabs .review-item:last-child {
    margin-bottom: 0;
}

/* Sản Phẩm Tương Tự */
section.related.products {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--border-gray);
}
section.related.products h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 50px;
}
/* Lưới sản phẩm đã kế thừa style từ .product-grid */

/* Responsive cho trang sản phẩm */
@media (max-width: 768px) {
    /* * .grid-2-col đã tự động chuyển 1 cột
     * nên layout chính đã responsive.
     * Chúng ta chỉ cần chỉnh lề.
    */
    .product-detail-main {
        padding-top: 20px;
    }
    .summary .product_title {
        font-size: 28px;
    }
}
/* ======== CSS MỚI CHO KHỐI CẨM NANG (TRANG SẢN PHẨM) ======== */

section.related-guides {
    margin-top: 60px; /* Khoảng cách với tab bên trên */
    padding-top: 60px; /* Khoảng cách với tiêu đề */
    border-top: 1px solid var(--border-gray); /* Phân cách với tab */
}

/* Tái sử dụng style tiêu đề của "Sản phẩm tương tự" */
section.related-guides h2 {
    text-align: center;
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 50px;
}

/* * Do .blog-grid và .post-card đã được định nghĩa
 * ở trang chủ nên chúng ta không cần viết lại.
 * Layout sẽ tự động hiển thị 3 cột.
*/
/* ======== CSS MỚI CHO LAYOUT TRANG SHOP (3 CỘT + 1 SIDEBAR) ======== */

/* 1. Định nghĩa layout CHUNG (3 phần nội dung, 1 phần sidebar) */
.shop-layout-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; /* 3 phần cho shop, 1 phần cho sidebar */
    gap: 50px;
}

/* 2. Ép lưới sản phẩm bên trong layout này
   phải là 3 cột (vừa khít)
*/
.shop-layout-grid .shop-content .product-grid {
    grid-template-columns: 1fr 1fr 1fr; /* 3 Cột */
}

/* 3. Responsive cho layout mới này */
@media (max-width: 992px) {
    /* Về 1 cột (sidebar xuống dưới) */
    .shop-layout-grid {
        grid-template-columns: 1fr; 
    }
    
    /* Giữ 2 cột cho sản phẩm trên tablet */
    .shop-layout-grid .shop-content .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Về 1 cột cho sản phẩm trên mobile */
    .shop-layout-grid .shop-content .product-grid {
        grid-template-columns: 1fr;
    }
}
/* ======== CSS FIX LỖI 1 CỘT (TRANG CHỦ & SP LIÊN QUAN) ======== */
/* (Dán khối này vào cuối file style.css) */

/* 1. Định nghĩa layout 3 cột cho CÁC LƯỚI TĨNH CÒN LẠI */
/* (Trang chủ: Tab SP, Khối Blog) */
/* (Trang SP: SP Tương Tự, Cẩm Nang) */
.products-section .product-grid,
.blog-section .blog-grid,
section.related ul.products,
section.related-guides .blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 Cột */
    gap: 30px;
}

/* 2. Responsive cho các grid tĩnh này */
@media (max-width: 992px) {
    .products-section .product-grid,
    .blog-section .blog-grid,
    section.related ul.products,
    section.related-guides .blog-grid {
        grid-template-columns: 1fr 1fr; /* 2 Cột */
    }
}

@media (max-width: 768px) {
    .products-section .product-grid,
    .blog-section .blog-grid,
    section.related ul.products,
    section.related-guides .blog-grid {
        grid-template-columns: 1fr; /* 1 Cột */
    }
}

/* Dùng class mới .hero-slider-block */
.hero-slider-block {
    width: 100%;
    height: 650px; 
    position: relative;
    overflow: hidden;
    padding: 0;
    display: block;
}
.hero-slider-block .swiper-slide {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
/* Dùng class mới .slider-content */
.hero-slider-block .slider-content {
    max-width: 900px;
    padding: 30px 40px;
}
.hero-slider-block h1 {
    font-size: 52px;
    margin-bottom: 25px;
    font-weight: 700;
    color: var(--text-light); 
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); 
}
.hero-slider-block p {
    font-size: 22px; 
    margin-bottom: 35px;
    opacity: 0.95; 
    color: var(--text-light); 
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3); 
}
/* Dùng class mới .btn-slider */
.hero-slider-block .btn-slider {
    background-color: var(--primary-blue); 
    color: var(--text-light); 
    border: 2px solid var(--primary-blue); 
    padding: 14px 30px; 
    font-size: 18px; 
    font-weight: 600;
    border-radius: 8px; 
    transition: all 0.3s ease;
    position: relative; 
    z-index: 15; 
    text-decoration: none; /* Đảm bảo là link */
}
.hero-slider-block .btn-slider:hover {
    background-color: var(--secondary-blue); 
    border-color: var(--secondary-blue); 
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); 
}

/* CSS CHO LINK BỌC SLIDE */
.hero-slider-block .swiper-slide a.slide-full-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}
.hero-slider-block .container {
    position: relative;
    z-index: 10;
}

/* CSS cho Swiper controls (giữ nguyên) */
.hero-slider-block .swiper-button-next,
.hero-slider-block .swiper-button-prev {
    color: var(--text-light); 
    --swiper-navigation-size: 35px; 
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.hero-slider-block .swiper-button-next:hover,
.hero-slider-block .swiper-button-prev:hover {
    opacity: 1;
}
.hero-slider-block .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4); 
}
.hero-slider-block .swiper-pagination-bullet-active {
    background: var(--text-light); 
    transform: scale(1.2); 
}
@media (max-width: 992px) {
    .hero-slider-block { height: 550px; }
    .hero-slider-block h1 { font-size: 42px; }
    .hero-slider-block p { font-size: 18px; }
}
@media (max-width: 768px) {
    .hero-slider-block { height: 400px; }
    .hero-slider-block h1 { font-size: 28px; margin-bottom: 15px; }
    .hero-slider-block p { font-size: 15px; margin-bottom: 20px; }
    .hero-slider-block .slider-content { padding: 15px 20px; }
    .hero-slider-block .btn-slider { padding: 10px 20px; font-size: 15px; }
}
/* 1. Nền Xanh (Mặc định) -> Nút phải là nền trắng */
.hero-static-block.hero-gradient-blue .btn-secondary {
  background-color: var(--text-light);
  color: var(--primary-blue);
  border: 1px solid var(--text-light);
}
.hero-static-block.hero-gradient-blue .btn-secondary:hover {
  background-color: transparent;
  color: var(--text-light);
}

/* 2. Nền Sáng (Xám/Trắng) -> Nút là nền trắng (mặc định) */
.hero-static-block.bg-light-gray .btn-secondary,
.hero-static-block.bg-white .btn-secondary {
    background-color: var(--text-light);
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
}
.hero-static-block.bg-light-gray .btn-secondary:hover,
.hero-static-block.bg-white .btn-secondary:hover {
    background-color: var(--primary-blue);
  color: var(--text-light);
}
/* Table of Contents (Mục lục) */
        .toc-box { background-color: #f0f8ff; padding: 25px; border-radius: 8px; margin-bottom: 40px; border: 1px solid #e1ecf4; }
        .toc-title { font-weight: 700; font-size: 18px; margin-bottom: 15px; display: block; color: #333; }
        .toc-list { list-style: none; padding: 0; margin: 0; }
        .toc-list li { margin-bottom: 10px; }
        .toc-list a { text-decoration: none; color: #0066cc; font-weight: 500; transition: color 0.2s; }
        .toc-list a:hover { color: #ff69b4; text-decoration: underline; }
        
/* ================================================= */
/* FIX: SẢN PHẨM TƯƠNG TỰ (RELATED PRODUCTS) 4 CỘT */
/* ================================================= */

/* 1. Reset và Ép Grid 4 Cột */
.related.products ul.products {
    display: grid !important;
    /* Thay đổi: 1fr 1fr 1fr 1fr (4 cột đều nhau) */
    grid-template-columns: 1fr 1fr 1fr 1fr !important; 
    gap: 20px !important; /* Giảm khoảng cách một chút cho vừa vặn */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Reset các style thừa của li.product */
.related.products ul.products li.product {
    width: auto !important; /* Bỏ width % cũ của Woo */
    margin: 0 !important;   /* Bỏ margin cũ */
    float: none !important; /* Bỏ float cũ */
    
    /* Đảm bảo style card giống trang Shop */
    background: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-gray);
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* 3. Responsive: Tablet (2 Cột - Để không bị quá nhỏ) */
@media (max-width: 992px) {
    .related.products ul.products {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* 4. Responsive: Mobile (1 Cột) */
@media (max-width: 768px) {
    .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}
/* ================================================= */
/* FIX LỖI CỘT TRỐNG ĐẦU TIÊN (KILL WOOCOMMERCE CLEARFIX) */
/* ================================================= */

.related.products ul.products::before,
.related.products ul.products::after {
    display: none !important; /* Ẩn nó đi */
    content: none !important; /* Xóa nội dung */
}
/* === STYLE CHO PRODUCT VERSIONS (Kiểu CellphoneS) === */

.product-versions-wrap {
    margin-bottom: 20px;
}
.product-versions-wrap .version-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}
.version-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Nút phiên bản */
.version-btn {
    display: flex;
    flex-direction: column; /* Xếp tên và giá dọc */
    align-items: center;
    justify-content: center;
    
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    background: #fff;
    min-width: 100px;
    text-align: center;
    transition: all 0.3s ease;
}

.version-btn .v-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}
.version-btn .v-price {
    font-size: 13px;
    color: #d70018; /* Màu đỏ giá */
}
.version-btn .v-price .amount {
    font-weight: 700;
}
.version-btn del {
    display: none; /* Ẩn giá gốc cho gọn nếu muốn */
}

/* Trạng thái Hover */
.version-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* Trạng thái Đang chọn (Active) */
.version-btn.current-version {
    border-color: #d70018; /* Viền đỏ */
    background-color: #ffebeb; /* Nền hồng nhạt */
    color: #d70018;
    position: relative;
}
/* Thêm dấu tích (Optional) */
.version-btn.current-version::after {
    content: '✔';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #d70018;
    color: #fff;
    width: 16px;
    height: 16px;
    font-size: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.version-list {
    display: flex;
    flex-wrap: wrap; /* Tự động xuống hàng nếu có nhiều phiên bản */
    gap: 10px;
}
.version-btn {
    flex: 1 0 30%; /* Chia 3 cột nếu muốn, hoặc để auto */
    /* ... */
}
/* === CUSTOM PRODUCT GALLERY (FIX LAYOUT & SVG THUMBS) === */

/* 1. Fix Layout Cột Trái */
.woocommerce-product-gallery.custom-product-gallery {
    /* Reset các float của Woo nếu cần, nhưng giữ nguyên width */
    margin-bottom: 30px;
}

/* 2. SLIDER LỚN */
.gallery-top {
    width: 100%;
    height: 400px; /* Chiều cao vừa phải */
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
}

.gallery-top .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}
.gallery-top iframe {
    width: 100%;
    height: 100%;
}

/* 2. SLIDER NHỎ (THUMBNAILS) - FIX VUÔNG 1:1 */
.gallery-thumbs {
    width: 100%;
    height: auto; /* Để chiều cao tự động theo tỷ lệ */
    box-sizing: border-box;
    padding-top: 10px; /* Khoảng cách với ảnh lớn */
}

.gallery-thumbs .swiper-slide {
    /* Kích thước width do JS (slidesPerView) quyết định */
    /* Dòng này ép thumbnail luôn là hình vuông */
    aspect-ratio: 1 / 1 !important; 
    
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    
    /* Style khung */
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    box-sizing: border-box;
}

/* Trạng thái Active */
.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--primary-blue); /* Viền màu chủ đạo */
    box-shadow: 0 0 0 1px var(--primary-blue); /* Viền đôi cho rõ */
}

/* --- STYLE RIÊNG CHO THUMB CÓ TEXT (VIDEO & HIGHLIGHT) --- */
.ksp-thumbs {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5px;
    height: 100%; /* Full chiều cao vuông */
}

.ksp-thumbs svg {
    width: 28px; /* Icon to hơn chút cho cân đối */
    height: 28px;
    margin-bottom: 4px;
}
.ksp-thumbs svg path {
    stroke: #555;
}

.ksp-thumbs p {
    margin: 0;
    font-size: 10px; /* Chữ nhỏ gọn */
    line-height: 1.1;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

/* Khi Active đổi màu icon/text */
.swiper-slide-thumb-active.ksp-thumbs svg path {
    stroke: var(--primary-blue); 
}
.swiper-slide-thumb-active.ksp-thumbs p {
    color: var(--primary-blue);
}

/* --- STYLE CHO THUMB ẢNH THƯỜNG --- */
.gallery-thumbs .thumb-inner {
    width: 100%;
    height: 100%;
}
.gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cắt ảnh vừa khít khung vuông */
    object-position: center;
    display: block;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .gallery-top {
        height: 350px; /* Vuông vức hơn trên mobile */
    }
}
/* ================================================= */
/* FIX VIDEO KHÔNG HIỂN THỊ (CHIỀU CAO 100%) */
/* ================================================= */

/* 1. Đảm bảo Slider Slide và Slide Inner chiếm hết chiều cao */
.gallery-top .swiper-slide,
.gallery-top .slide-inner {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* 2. Video Wrapper: Khung chứa iframe */
.video-wrapper {
    position: relative;
    width: 100% !important;
    height: 100% !important; /* Bắt buộc phải có chiều cao */
    background: #000; /* Nền đen để thấy nếu video chưa load */
    display: block;
    overflow: hidden;
}

/* 3. Xử lý các thẻ rác của WordPress oEmbed (nếu có) */
/* WordPress hay tự thêm các thẻ này làm vỡ layout */
.video-wrapper .wp-block-embed,
.video-wrapper .wp-block-embed__wrapper {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* 4. Ép Iframe (YouTube/Vimeo) bung lụa */
.video-wrapper iframe,
.video-wrapper object,
.video-wrapper embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* ==========================================================================
   HOMEPAGE CUSTOM SECTIONS (CỐ ĐÔ THEME)
   ========================================================================== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header .subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: 10px;
    display: block;
}

.section-header .title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--dark);
    position: relative;
    padding-bottom: 20px;
}

.section-header .title::after {
    content: "✦";
    font-size: 1.2rem;
    color: var(--gold);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--dark);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* 2. HERO BANNER */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background-color: var(--dark);
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 66, 108, 0.9) 30%, rgba(10, 66, 108, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-content .subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: 20px;
    display: block;
}

.hero-content h2 {
    font-size: 4.5rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-btns .btn-primary {
    background-color: var(--gold);
    color: var(--dark);
}

.hero-btns .btn-primary:hover {
    background-color: var(--white);
    color: var(--dark);
}

.hero-btns .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.hero-btns .btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
}

/* 3. BRAND STORY */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-images {
    position: relative;
}

.story-img-large {
    width: 85%;
    border: 1px solid var(--gold);
    padding: 15px;
    background: var(--white);
}

.story-img-small {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 50%;
    border: 8px solid var(--cream);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.story-content .subtitle {
    font-size: 1.4rem;
    color: var(--gold);
    font-family: var(--font-heading);
    font-style: italic;
    margin-bottom: 15px;
    display: block;
}

.story-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.story-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* 4. WHY CHOOSE US */
.why-section {
    background-color: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 40px 25px;
    background-color: var(--cream);
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.why-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--gold);
    box-shadow: 0 15px 35px rgba(10, 66, 108, 0.05);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-block;
}

.why-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* 6. PROCESS */
.process-section {
    background-color: var(--dark);
    color: var(--white);
}

.process-section .section-header .title {
    color: var(--white);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 70px;
    height: 70px;
    background-color: var(--dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold);
    margin: 0 auto 25px auto;
    transition: var(--transition);
}

.process-step:hover .step-number {
    background-color: var(--gold);
    color: var(--dark);
}

.process-step h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* 7. CERTIFICATE & OCOP */
.cert-section {
    background-color: var(--white);
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cert-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.badge-card {
    border: 1px dashed var(--gold);
    padding: 30px 15px;
    text-align: center;
    background: var(--cream);
}

.badge-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.badge-card p {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
}

/* 8. BENEFITS */
.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.benefit-col ul li {
    margin-bottom: 35px;
}

.benefit-col.text-right ul li {
    text-align: right;
}

.benefit-item h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.benefit-center-img {
    border: 1px solid var(--gold);
    padding: 10px;
    background: var(--white);
}

/* 9. TESTIMONIAL */
.testimonial-section {
    background-color: var(--white);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testi-card {
    background: var(--cream);
    padding: 40px;
    position: relative;
}

.testi-quote {
    font-size: 3rem;
    color: rgba(215, 181, 109, 0.3);
    font-family: var(--font-heading);
    position: absolute;
    top: 20px;
    left: 30px;
}

.testi-card p {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testi-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testi-meta h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.testi-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* 11. CTA */
.cta-section {
    background: linear-gradient(rgba(10, 66, 108, 0.95), rgba(10, 66, 108, 0.95)), url('https://placehold.co/1920x1080/0a426c/faf8f2?text=Premium+Background') no-repeat center/cover;
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.cta-section .btn {
    background-color: var(--gold);
    color: var(--dark);
}

.cta-section .btn:hover {
    background-color: var(--white);
    color: var(--dark);
}


/* ==========================================================================
   HOMEPAGE CUSTOM PRODUCTS & BLOG CARD STYLES
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid rgba(215, 181, 109, 0.2);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(10, 66, 108, 0.08);
    transform: translateY(-5px);
}

.product-img-holder {
    background-color: var(--cream);
    padding: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.product-img-holder img {
    transition: var(--transition);
    width: 100%;
}

.product-card:hover .product-img-holder img {
    transform: scale(1.08);
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    text-transform: uppercase;
    z-index: 2;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.product-price {
    font-family: var(--font-body);
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.product-card .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
    width: 100%;
    justify-content: center;
}

/* 10. BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.blog-card:hover {
    border-bottom-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.blog-img {
    overflow: hidden;
}

.blog-img img {
    transition: var(--transition);
    width: 100%;
}

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-body {
    padding: 30px 25px;
}

.blog-date {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}

.blog-body h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.blog-body h3 a:hover {
    color: var(--primary);
}

.blog-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   1. HEADER & MEGA MENU (CỐ ĐÔ)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(250, 248, 242, 0.95);
    box-shadow: 0 2px 20px rgba(10, 66, 108, 0.05);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

header.scrolled {
    padding: 5px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text h1 {
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    color: var(--dark);
}

.logo-text span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-top: 4px;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-menu {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-link, .nav-desktop .menu-item a {
    padding: 0 22px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-item:hover > a {
    color: var(--gold) !important;
}

/* Mega Menu / Sub Menu */
.nav-desktop .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 240px;
    background-color: var(--white);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-top: 3px solid var(--gold);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    display: block;
}

.nav-desktop .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-desktop .sub-menu li {
    display: block;
}

.nav-desktop .sub-menu li a {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    display: block;
    height: auto;
}

.nav-desktop .sub-menu li a:hover {
    color: var(--primary);
    padding-left: 25px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-icon {
    font-size: 1.2rem;
    color: var(--dark);
    cursor: pointer;
}

.action-icon:hover {
    color: var(--gold);
}

/* Menu Mobile Toggle Button */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Mobile Menu Canvas */
.nav-mobile-wrapper {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--cream);
    z-index: 2000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    padding: 40px 30px;
    transition: var(--transition);
    overflow-y: auto;
}

.nav-mobile-wrapper.active {
    right: 0;
}

.mobile-close {
    text-align: right;
    font-size: 1.5rem;
    margin-bottom: 40px;
    cursor: pointer;
    color: var(--dark);
}

.mobile-menu-list .mob-item, .mobile-menu-list li {
    border-bottom: 1px solid rgba(15, 111, 181, 0.1);
}

.mobile-menu-list .mob-link, .mobile-menu-list li a {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--dark);
}

.mobile-sub-menu {
    display: none;
    padding-left: 15px;
    background-color: rgba(255,255,255,0.4);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 66, 108, 0.4);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Fixed Header Subpage Offset */
body {
    padding-top: 90px;
}
.home body, .error404 body {
    padding-top: 0;
}

/* ==========================================================================
   12. FOOTER ĐẦY ĐỦ (CỐ ĐÔ)
   ========================================================================== */
footer {
    background-color: #062c49;
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3, .footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
}

.footer-about .logo-text h2 {
    color: var(--white);
    font-size: 1.8rem;
    font-family: var(--font-heading);
}

.footer-about p {
    margin: 20px 0;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.footer-socials a:hover {
    background: var(--gold);
    color: var(--dark);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* ======== TÙY CHỈNH CHO SWIPER PRODUCT SLIDER ======== */
.product-slider {
    padding-bottom: 50px !important;
}
.product-slider .swiper-slide {
    height: auto; /* Đảm bảo các slide có chiều cao bằng nhau */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-slider .product-card {
    flex-grow: 1;
    margin-bottom: 5px; /* Khoảng cách nhỏ tránh bóng đổ bị che */
}
.product-slider-prev,
.product-slider-next {
    background: var(--white) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(215, 181, 109, 0.2) !important;
    transition: var(--transition) !important;
}
.product-slider-prev:hover,
.product-slider-next:hover {
    background: var(--gold) !important;
    color: var(--dark) !important;
    border-color: var(--gold) !important;
}
.product-slider-prev::after,
.product-slider-next::after {
    font-size: 1.1rem !important;
    font-weight: bold !important;
}
.product-slider .swiper-pagination-bullet-active {
    background: var(--gold) !important;
}

/* ======== HIỆU CHỈNH RESPONSIVE TRANG CHỦ & HỆ THỐNG ======== */
@media (max-width: 1100px) {
    .why-grid, .product-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
    .process-timeline { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 30px; 
    }
    .benefit-grid { 
        grid-template-columns: 1fr !important; 
    }
    .benefit-col.text-right ul li { 
        text-align: left !important; 
    }
    .footer-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}

@media (max-width: 768px) {
    .section-header .title { 
        font-size: 2.2rem !important; 
    }
    .nav-desktop { 
        display: none !important; 
    }
    .mobile-toggle { 
        display: block !important; 
    }
    .story-grid, 
    .cert-grid, 
    .testi-grid, 
    .blog-grid, 
    .footer-grid { 
        grid-template-columns: 1fr !important; 
        gap: 30px !important;
    }
    .hero-content h2 { 
        font-size: 2.8rem !important; 
    }
    .story-images { 
        margin-bottom: 50px !important; 
    }
    .process-timeline { 
        grid-template-columns: 1fr !important; 
    }
    .hero-btns { 
        flex-direction: column !important; 
    }
}

/* ======== FLOATING WIDGETS (CONTACTS & BACK TO TOP) ======== */
.floating-widgets {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: none;
    cursor: pointer;
    text-decoration: none;
    outline: none;
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.float-btn i {
    font-size: 1.4rem;
}

/* Nút gọi điện */
.float-phone {
    background-color: #2ecc71; /* Màu xanh lá cây */
    animation: float-phone-pulse 1.8s infinite;
}

@keyframes float-phone-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Nút Zalo */
.float-zalo {
    background-color: #0068ff; /* Màu xanh Zalo */
    padding: 0;
}
.float-zalo svg {
    width: 32px;
    height: 32px;
    display: block;
}

/* Nút Back to Top */
.float-backtop {
    background-color: var(--white) !important;
    border: 1px solid rgba(215, 181, 109, 0.3) !important;
    color: var(--primary-blue) !important;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.float-backtop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.float-backtop:hover {
    background-color: var(--gold) !important;
    color: var(--dark) !important;
    border-color: var(--gold) !important;
}

/* Responsive cho điện thoại (dưới 768px) */
@media (max-width: 768px) {
    .floating-widgets {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    .float-btn {
        width: 46px;
        height: 46px;
    }
    .float-btn i {
        font-size: 1.25rem;
    }
    .float-zalo svg {
        width: 28px;
        height: 28px;
    }
}


/* ==========================================================================
   CUSTOM STYLE OVERRIDES FOR GHẾ Ô TÔ CHO BÉ (CARSEAT MART)
   ========================================================================== */

/* 1. Header Mega Menu & Navigation */
.mega-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(15px);
    width: 960px; background-color: var(--white); box-shadow: 0 20px 45px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary); padding: 35px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
    opacity: 0; visibility: hidden; transition: var(--transition); pointer-events: none;
}
.menu-item:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-col-title { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--cream); display: block; }
.mega-sub-list li { margin-bottom: 8px; }
.mega-sub-link { font-size: 0.85rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.mega-sub-link:hover { color: var(--primary); padding-left: 3px; }

/* Cấp 3 (Dòng sản phẩm theo phân khúc giá) */
.level3-menu { position: absolute; left: 100%; top: 0; width: 200px; background: var(--white); box-shadow: 0 5px 20px rgba(0,0,0,0.05); padding: 12px; border-left: 2px solid var(--accent); opacity: 0; visibility: hidden; }
.has-level3 { position: relative; }
.has-level3:hover .level3-menu { opacity: 1; visibility: visible; }
.level3-menu a { font-size: 0.8rem; padding: 5px 0; display: block; color: var(--text-muted); }
.level3-menu a:hover { color: var(--accent); }

/* 2. Brand Portfolio Section */
.brand-section { background-color: var(--white); padding: 60px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.brand-logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: center; }
.brand-logo-card { border: 1px solid #e2e8f0; border-radius: 6px; padding: 15px; text-align: center; background: var(--white); transition: var(--transition); cursor: pointer; }
.brand-logo-card:hover { border-color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,0.04); transform: translateY(-3px); }
.brand-logo-card span { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.brand-logo-card:hover span { color: var(--primary); }

/* 3. Why Store Us Section */
.why-card { padding: 35px 20px; background-color: var(--cream); border-radius: 8px; transition: var(--transition); text-align: center; }
.why-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.05); }
.why-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 15px; }
.why-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.why-card p { font-size: 0.8rem; color: var(--text-muted); }

/* 4. Product Card & Badges */
.product-card { background: var(--white); border-radius: 8px; padding: 15px; border: 1px solid rgba(0,0,0,0.04); transition: var(--transition); position: relative; }
.product-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.06); transform: translateY(-4px); }
.product-img-holder { background-color: var(--cream); border-radius: 6px; padding: 15px; margin-bottom: 15px; position: relative; text-align: center; }
.product-brand-tag { position: absolute; top: 10px; left: 10px; background: var(--dark); color: var(--white); font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.product-sale-tag { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--white); font-size: 0.65rem; font-weight: 700; padding: 3px 6px; border-radius: 4px; }
.product-card h4 { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; }
.product-card h3 { font-size: 0.95rem; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.6rem; line-height: 1.3; }
.price-box { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.price-new { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: 0.85rem; }
.product-card .btn { width: 100%; justify-content: center; padding: 10px 0; font-size: 0.8rem; border-radius: 4px; }

/* 5. Shop by Age / Weight (Filter section) */
.filter-section { background-color: var(--dark); color: var(--white); }
.filter-section .section-header .title { color: var(--white); }
.filter-section .section-header p { color: rgba(255,255,255,0.6); }
.filter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.filter-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 25px 15px; text-align: center; transition: var(--transition); cursor: pointer; }
.filter-box:hover { background: var(--white); border-color: var(--white); }
.filter-box:hover h3, .filter-box:hover p { color: var(--dark); }
.filter-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 12px; }
.filter-box h3 { color: var(--white); font-size: 1rem; margin-bottom: 5px; }
.filter-box p { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* 6. Services & Warranties Section */
.service-section { background-color: var(--white); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.service-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-item { display: flex; gap: 15px; background: var(--cream); padding: 20px; border-radius: 6px; }
.service-item i { font-size: 1.8rem; color: var(--primary); margin-top: 3px; }
.service-item h4 { font-size: 1.05rem; margin-bottom: 5px; }
.service-item p { font-size: 0.85rem; color: var(--text-muted); }

/* 8. Compare Utility Section */
.compare-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 30px; align-items: center; }
.compare-list-left { text-align: right; }
.compare-item h3 { font-size: 1.15rem; margin-bottom: 5px; }
.compare-item p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 25px; }
.compare-center { background: var(--white); border: 1px solid rgba(0,0,0,0.05); padding: 20px; border-radius: 8px; text-align: center; }
.compare-list-right { text-align: left; }

/* 9. Testimonials Section */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.testi-card { background: var(--cream); padding: 30px; border-radius: 6px; position: relative; }
.testi-quote { font-size: 2.5rem; color: rgba(15,76,129,0.1); position: absolute; top: 10px; left: 15px; font-weight: 900; }
.testi-card p { font-size: 0.85rem; color: var(--text-dark); margin-bottom: 20px; font-style: italic; position: relative; z-index: 2; }
.testi-user { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; }
.testi-meta h4 { font-size: 0.95rem; }
.testi-meta span { font-size: 0.75rem; color: var(--text-muted); }

/* 10. Blog Section */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.blog-card { background: var(--white); border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,0.04); }
.blog-body { padding: 20px; }
.blog-date { font-size: 0.75rem; color: var(--accent); font-weight: 700; margin-bottom: 8px; display: block; }
.blog-body h3 { font-size: 1.05rem; line-height: 1.4; margin-bottom: 10px; }
.blog-body p { font-size: 0.8rem; color: var(--text-muted); }

/* 11. CTA Section */
.cta-section {
    color: var(--white); text-align: center; padding: 90px 0;
}
.cta-section h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 15px; }
.cta-section p { font-size: 0.95rem; color: rgba(255,255,255,0.7); margin-bottom: 30px; }
.cta-section .btn { background-color: var(--accent); color: var(--white); }

/* 12. Footer Custom Styling */
footer { background-color: #07162c; color: rgba(255, 255, 255, 0.6); padding: 70px 0 30px 0; font-size: 0.85rem; border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-col h3, .footer-col h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-socials { display: flex; gap: 10px; margin-top: 15px; }
.footer-socials a { width: 34px; height: 34px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--white); }
.footer-socials a:hover { background: var(--accent); }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-contact i { color: var(--accent); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .mega-menu { width: 740px; }
    .brand-logo-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid, .product-grid, .filter-grid { grid-template-columns: repeat(2, 1fr); }
    .compare-grid { grid-template-columns: 1fr; }
    .compare-list-left { text-align: left; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .section-header .title { font-size: 1.8rem; }
    .nav-desktop { display: none; }
    .mobile-toggle { display: block; }
    .story-grid, .service-grid, .testi-grid, .blog-grid, .footer-grid, .filter-grid { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
}
