/* ==================== RESET & BIẾN TOÀN CỤC ==================== */
:root {
    --primary: #448812;
    --primary-2: #558731;
    --primary-dark: #a17c30;
    --secondary: #7a0000;
    --secondary-light: #777777;
    --accent: #d4af37;
    --light-bg: #f9f6f0;
    --card-bg: #ffffff;
    --card-bg-2: #f3dcad;
    --text: #000000;
    --text-hover: #000000;
    --text-light: #fff;
    --text-light-hover: #a8a8a8;
    --text-white: #fff;
    --border: #a4a4a4;
    --border-2: #c59c47;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --star-color: #ffc107;
    --header-bg: #ffffff;
    --footer-bg: #000000;
    --topbar-bg: #448812;
    --topbar-color: #ffffff;
    --main-menu-bg: #448812;
    --base-color: #000;
    --section-bg:#000;
    --section-bg-2:#1b1b1b;
    --background: #000;
    
}

.dark-mode {
    --primary: #e0b354;
    --primary-dark: #c49a2e;
    --secondary: #1a120e;
    --secondary-light: #2a1e18;
    --accent: #e6c468;
    --light-bg: #121212;
    --card-bg: #1e1e1e;
    --card-bg-2: #4825131a;
    --text: #f0f0f0;
    --text-hover: #fff;
    --text-light: #b0b0b0;
    --text-white: #fff;
    --border: #3a3a3a;
    --shadow: 0 4px 15px rgba(0,0,0,0.4);
    --header-bg: #1a1a1a;
    --footer-bg: #0f0f0f;
    --topbar-bg: #0a0a0a;
    --topbar-color: #FEF8EC;
    --main-menu-bg: #e0b354;
    --base-color: #000;
    --section-bg:#171412;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CONFIG SHOW/HIDE =============*/
@media screen and (max-width: 768px){
    .onlypc{
        display: none;
    }
}

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.2s ease;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--text);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ==================== COMMON STYLES ==================== */
.section-product-list-selected {
    background: var(--base-color);
    border-top: solid 1px var(--border);
    padding-top: 30px;
    padding-bottom: 30px;
}

.section-product-list-selected .section-title{
    color: var(--text-light);
}
.section-product-list-selected .section-subtitle {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 14px;
}
.category-section .section-title{
    color: var(--text-light);
}

.category-section .section-subtitle {
    color: var(--text-light);
}

.home-collections-section .section-title{
    color: var(--text-light);
}

.home-collections-section .section-subtitle {
    color: var(--text-light);
}

.cert-section .section-title{
    color: var(--text-light);
}

.cert-section .section-subtitle {
    color: var(--text-light);
}

.blog-section .section-title{
    color: var(--text-light);
}

.blog-section .section-subtitle {
    color: var(--text-light);
}
.new-products-section {
    margin-bottom: 0px;
    background: var(--base-color);
    padding: 30px;
    border-radius: 0px;
}

.new-products-section .section-title{
    color: var(--text-light);
}

.new-products-section .section-subtitle {
    color: var(--text-light);
}

.project-section .section-title{
    color: var(--text-light);
}
.project-section .section-subtitle {
    color: var(--text-light);
}

.testimonial-section .section-title{
    color: var(--text-light);
}
.testimonial-section .section-subtitle {
    color: var(--text-light);
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    position: relative;
    text-align: center;
    padding-bottom: 5px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: var(--border);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 12px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    height: 40px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ==================== TOP BAR ==================== */
#top-bar {
    background: var(--topbar-bg);
    padding: 0px 0;
    font-size: 12px;
    transition: background 0.3s;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-nav ul {
    z-index:10000;
}

.top-bar-nav ul li {
    
}
.topmenu-sub-item{
    margin-right: 0px;
}
.top-bar-nav ul li:last-child {
    margin-right: 0;
}

.top-bar-social ul {
    display: flex;
}

.top-bar-social ul li {
    margin-left: 15px;
}

.top-bar-social ul li a {
    color: var(--primary);
    font-size: 16px;
}

.top-bar-social ul li a:hover {
    color: var(--accent);
}

/* ==================== TOP MENU DROPDOWN ==================== */
.topmenu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topmenu-item {
    position: relative;
    margin-right: 20px;
}

.topmenu-item:last-child {
    margin-right: 0;
}

.topmenu-link {
    color: var(--topbar-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 5px 0;
}

.topmenu-link:hover {
    color: var(--base-color);
}

/* Submenu (cấp 2) */
.topmenu-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: #fff;
    box-shadow: var(--shadow, 0 4px 15px rgba(0, 0, 0, 0.1));
    border-radius: 0 0 3px 3px;
    padding: 0px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 999;
    list-style: none;
}

.topmenu-item:hover .topmenu-submenu,
.topmenu-item:focus-within .topmenu-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topmenu-sub-item {
    border-bottom: 1px solid var(--border);
}

.topmenu-sub-item:last-child {
    border-bottom: none;
}

.topmenu-sub-link {
    display: block;
    padding: 5px 10px;
    color: var(--text, #1a1a1a);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.topmenu-sub-link:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Dark mode (nếu có) */
.dark-mode .topmenu-submenu {
    background: var(--card-bg, #1e1e1e);
    border-color: var(--border, #3a3a3a);
}

.dark-mode .topmenu-sub-link {
    color: var(--text, #f0f0f0);
}

.dark-mode .topmenu-sub-link:hover {
    background: var(--light-bg, #2a2a2a);
    color: var(--primary, #e0b354);
}

/* ==================== HEADER ==================== */
#header-wrap {
    background: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
    height: 70px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    height: 70px;
}


.logo {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin-left: 0px;
}

.logo img {
    max-height: 50px;
    padding-left: 5px;
}

.logo-text {
    margin-left: 15px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.logo-text p {
    font-size: 14px;
    color: var(--text-light);
}


/* ----- Ô TÌM KIẾM ----- */
.header-search {
    flex: 1;
    max-width: 380px;
    position: relative;
    margin: 0 15px;
}

.search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 7px 15px;
    border: 1px solid var(--border);
    border-radius: 40px 0 0 40px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
}

.search-btn {
    background: var(--primary);
    border: none;
    border-radius: 0 40px 40px 0;
    width: 46px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Dropdown kết quả gợi ý */
.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 1001;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--border);
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 5px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
    background: var(--light-bg);
}

.result-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 3px;
}

.result-info {
    flex: 1;
}

.result-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 15px;
}

.result-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
}

.search-no-result {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-buttons {
    display: flex;
    gap: 15px;
}
.header-button-tel{
    background: var(--primary);
    border-radius: 25px;
    padding: 0 20px 0px 10px;
    color: var(--text);
}
.header-buttons .header-buttons-call-icon{
    font-size: 20px;
    padding-right: 5px;
}
.header-buttons .phone-number{
    font-size: 20px;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    .header-buttons {
        display: none;
    }
}



.theme-toggle {
    background: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    font-size: 18px;
    margin-left: 5px;
}
.theme-toggle:hover {
    background: var(--primary);
    transform: rotate(15deg);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.cart-icon .fa-cart-shopping:before, .cart-icon .fa-shopping-cart:before {
    content: "\f07a";
    font-size: 25px;
}

.cart-icon:hover {
    transform: scale(1.05);
}

.cart-icon a {
    font-size: 24px;
    color: var(--text);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-icon.bounce {
    animation: cartBounce 0.3s ease;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
}

/* ==================== MAIN NAVIGATION (cấp 3) ==================== */
#main-nav {
    background: var(--primary);
    position: sticky;
    top: 70px;
    z-index: 999;
    transition: background 0.3s;
}

.main-menu {
    display: flex;
    justify-content: flex-start;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    color: #dddddd;
    padding: 12px 10px;
    font-weight: normal;
    transition: var(--transition);
    font-size: 16px;
    text-transform: uppercase;
}

.main-menu > li:hover > a {
    background: #ffffff;
    color: #000000;
}

.main-menu > li.has-sub > a:after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 12px;
}

/* Dropdown level 2 */
.has-sub:not(.mega-menu) .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    min-width: 185px;
    
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border-radius: 0 0 3px 3px;
}

.has-sub:not(.mega-menu):hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    position: relative;
    border-bottom: 1px solid var(--border);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    display: block;
    padding: 5px 10px;
    color: var(--text);
    font-weight: normal;
    transition: var(--transition);
    font-size: 12px;
}

.submenu li a:hover {
    background: #000;
    color: #ffffff;
}

/* Dropdown cấp 3 */
.submenu .has-sub-level3 {
    position: relative;
}
.submenu .has-sub-level3 > a:after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    float: right;
    font-size: 12px;
}
.submenu .submenu-level3 {
    position: fixed;
    top: 0;
    left: 100%;
    background: var(--card-bg);
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition);
    z-index: 101;
    border-radius: 0 3px 3px 0;
    min-height: 100%;
}
.submenu .has-sub-level3:hover .submenu-level3 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.submenu-level3 li {
    border-bottom: 1px solid var(--border);
}
.submenu-level3 li a {
    padding: 5px 10px;
    white-space: nowrap;
}

/* Mega menu */
.mega-menu {
    position: static;
}

.submegamenu {
    position: absolute;
    top: 100%;
    left: 288%;
    transform: translateX(-50%);
    width: 1000px;
    max-width: 1000px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    padding: 30px 0;
    border-radius: 0 0 8px 8px;
}
    
.mega-menu:hover .submegamenu {
    opacity: 1;
    visibility: visible;
}

.submegamenu .mega-container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    width: 100%;
}

.mega-col {
    flex: 1;
}

.mega-col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--primary);
    display: inline-block;
}

.mega-col ul {
    margin-top: 10px;
}

.mega-col ul li {
    margin-bottom: 0px;
    border-bottom: none;
}

.mega-col ul li a {
    padding: 5px 0;
    display: inline-block;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.mega-col ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/*  --*/
@media screen and (max-width:768px){
    .logo {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 280px;
        margin-left: 30px;
    }
}


/* Home page content =================================== */
    .product-swiper {
        width: 100%;
        padding: 10px 0 30px; /* Thêm padding dưới cho pagination */
    }
    .product-swiper .swiper-slide {
        height: auto; /* Quan trọng để các thẻ có chiều cao bằng nhau */
    }
    .product-swiper .swiper-slide:hover .product-item {
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        transform: translateY(-5px);
    }
    
    .product-swiper .swiper-slide .product-item .product-title {
        color: #000;
    }
    .product-swiper .swiper-button-next,
    .product-swiper .swiper-button-prev {
        color: #333;
        background: rgba(255,255,255,0.85);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        transition: 0.3s;
    }
    .product-swiper .swiper-button-next:hover,
    .product-swiper .swiper-button-prev:hover {
        background: #fff;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .product-swiper .swiper-button-next:after,
    .product-swiper .swiper-button-prev:after {
        font-size: 18px;
        font-weight: bold;
    }
    .product-swiper .swiper-pagination-bullet {
        background: #ccc;
        opacity: 0.8;
    }
    .product-swiper .swiper-pagination-bullet-active {
        background: #e74c3c;
    }
    @media (max-width: 768px) {
        .product-swiper .swiper-button-next,
        .product-swiper .swiper-button-prev {
            display: none; /* Ẩn nút điều hướng trên mobile để tránh che mất hình */
        }
        .product-swiper {
            padding: 10px 0 30px;
        }
    }
    
.product-swiper{
    overflow:hidden;
}

.product-swiper .swiper-wrapper{
    display:flex !important;
    align-items:stretch;
}

.product-swiper .swiper-slide{
    display:block !important;
    height:auto;
    flex-shrink:0;
}

.product-item{
    width:100%;
    text-align: center; 
    padding: 0px; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    background: var(--primary); 
    border-radius: 2px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    transition: 0.3s;
}
.product-item h4{
    margin: 12px 0 5px; font-size: 1rem; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product-item span{
    color: #e74c3c; font-weight: bold; font-size: 1.1rem; margin: 5px 0;
    
}


/* ===== Container chính ===== */
.home-content-section{
    background: var(--primary-2);
}
.home-content {
    padding: 50px 0px;
}

.home-content-group {
    border-radius: none;
    padding: 0;
    transition: box-shadow 0.3s ease;
}

.home-content-group:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.10);
}

/* ===== Heading ===== */
.home-content-heading {
    text-align: center;
    margin-bottom: 25px;
}

.home-content-heading-name span {
    font-weight: 700;
    color: #eaeaea;
    letter-spacing: 0.5px;
    display: inline-block;
    padding-bottom: 0px;
}

.home-content-heading-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #c7ac78, #e8d5b5);
    margin: 10px auto 0;
    border-radius: 4px;
}

.home-content-heading-sub {
    font-weight: 300;
    color: #cecece;
    margin-top: 8px;
    font-size: 14px;
}

/* ===== Icon ===== */
.home-content-icon {
    text-align: center;
    margin-bottom: 20px;
}

.home-content-icon img {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
    margin: 0 auto;
    width: 100%;
}

.home-content-icon i {
    font-size: 3rem;
    color: #c7ac78;
}

/* ===== short_content (luôn hiển thị) ===== */
.home-content-short {
    color: #f1f1f1;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 14px;
}

/* ===== content đầy đủ (ẩn mặc định) ===== */
.home-content-full {
    display: none;
    color: #cecece;
    line-height: 20px;
    margin-top: 15px;
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
    font-size: 14px;
}


/* Khi checkbox được tick => hiện content */
.home-content-main-check:checked ~ .home-content-full {
    display: block;
}

/* Ẩn checkbox (giữ nguyên để toggle) */
.home-content-main-check {
    display: none;
}

/* ===== Nút toggle ===== */
.home-content-main-bottom {
    text-align: center;
    margin-top: 20px;
}

.home-content-main-bottom-label {
    display: inline-block;
    cursor: pointer;
    color: #000000;
    font-weight: 600;
    font-size: 14px;
    padding: 5px 15px;
    border: 2px solid #000000;
    border-radius: 30px;
    background: #ffffff;
    transition: all 0.25s ease;
    user-select: none;
}

.home-content-main-bottom-label:hover {
    background: #c7ac78;
    color: #fff;
    box-shadow: 0 4px 12px rgba(199, 172, 120, 0.3);
}

.home-content-main-bottom-label i {
    margin-left: 6px;
    font-size: 0.9rem;
}

/* Mặc định: ẩn nút "Rút gọn", hiện nút "Chi tiết" */
.home-content-main-bottom-label--top {
    display: none;
}

/* Khi checkbox được tick: ẩn "Chi tiết", hiện "Rút gọn" */
.home-content-main-check:checked ~ .home-content-main-bottom .home-content-main-bottom-label--down {
    display: none;
}
.home-content-main-check:checked ~ .home-content-main-bottom .home-content-main-bottom-label--top {
    display: inline-block;
}

/* ===== Style chung cho nội dung HTML bên trong ===== */
.home-content-short h2, .home-content-short h3, .home-content-short h4, .home-content-full h2, .home-content-full h3, .home-content-full h4 {
    color: #cccccc;
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 20px;
    font-size: 14px;
}
.home-content-short p,
.home-content-full p {
    margin-bottom: 1rem;
}
.home-content-short img, .home-content-full img {
    max-width: 100%;
    height: 100%;
    border-radius: 0px;
    margin: 0px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
}
.home-content-short table,
.home-content-full table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.home-content-short table td,
.home-content-full table td {
    padding: 0px;
    border: 1px solid #eee;
    vertical-align: middle;
}
.home-content-short ul,
.home-content-short ol,
.home-content-full ul,
.home-content-full ol {
    padding-left: 25px;
    margin: 10px 0;
}
.home-content-short li,
.home-content-full li {
    margin-bottom: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .home-content {
        padding: 20px 0px;
    }
    
    .home-content-group {
        padding: 20px 10px;
    }
    .home-content-heading-name span {
        font-size: 1.6rem !important;
    }
    .home-content-icon i {
        font-size: 2.2rem !important;
    }
    .home-content-icon img {
        max-width: 100%;
    }
    .home-content-main-bottom-label {
        font-size: 0.9rem;
        padding: 6px 18px;
    }
}
@media (max-width: 480px) {
    .home-content-heading-name span {
        font-size: 1.3rem !important;
    }
}

.home-collections-section {
    background: var(--base-color);
    border-top: solid 2px var(--border);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}
.product-card {
    background: var(--base-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: solid 1px var(--border-2);
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.product-image {
    position: relative;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
.wishlist-btn-img {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wishlist-btn-img.active {
    color: #e74c3c;
}
.wishlist-btn-img:hover {
    background: #fff;
    transform: scale(1.1);
}
.product-info {
    padding: 15px;
}
.product-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 0px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: auto;
}
.product-title a{
    color: var(--text-light);
}
.product-title a:hover{
    color: var(--text-light-hover);
}
.product-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 5px;
}
.product-price old {
    font-size: 14px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}
.product-actions {
    display: flex;
    gap: 8px;
}
.product-actions button {
    flex: 1;
    padding: 8px 0;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}
.add-to-cart-btn {
    background: #2d3436;
    color: #fff;
}
.add-to-cart-btn:hover {
    background: #1e272e;
}
.buynow-btn {
    background: #c0392b;
    color: #fff;
}
.buynow-btn:hover {
    background: #a93226;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pagination .page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination .page-btn.active {
    background: var(--base-color);
    border-color: var(--border);
    color: var(--text-light);
}
.pagination .page-btn:hover:not(.active) {
    background: #f5f5f5;
}
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.empty-cart i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #555;
}
.quick-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
    opacity: 0;
    z-index: 9999;
    pointer-events: none;
}
.quick-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ==================== CATEGORIES ==================== */
.homepage-section{
    padding: 30px 0px;
}

.category-section {
    margin-bottom: 0px;
    background: #262626;
    border-top: solid 1px #898988;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    text-align: center;
    background: var(--base-color);
    padding: 0px 0px;
    border-radius: 0px;
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.category-card i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0px;
    font-weight: normal;
    line-height: initial;
    text-transform: uppercase;
    padding: 10px 0px 0px 0px;
}
.category-card a{
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

.category-card a:hover{
    text-decoration: none;
    color: var(--text-light-hover);
    transition: var(--transition);
}

.category-card p {
    color: var(--text-light);
}


/* Hiện góc khi card được kích hoạt */
.category-card.inview .corner {
    opacity: 1;
}

/* ===== KÍCH HOẠT ANIMATION ===== */
.category-card.inview .top {
    animation: drawTop 10s ease-in-out infinite;
}
.category-card.inview .right {
    animation: drawRight 10s ease-in-out infinite;
}
.category-card.inview .bottom {
    animation: drawBottom 10s ease-in-out infinite;
}
.category-card.inview .left {
    animation: drawLeft 10s ease-in-out infinite;
}

/* ===== KEYFRAMES – VẼ CÁC CẠNH ===== */

/* Top: 0% → 15% (trái → phải) */
@keyframes drawTop {
    0%   { transform: scaleX(0); opacity: 0; }
    15%  { transform: scaleX(1); opacity: 1; }
    80%  { transform: scaleX(1); opacity: 1; }
    90%  { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(0); opacity: 0; }
}

/* Right: 15% → 30% (trên → dưới) */
@keyframes drawRight {
    0%   { transform: scaleY(0); opacity: 0; }
    15%  { transform: scaleY(0); opacity: 0; }
    30%  { transform: scaleY(1); opacity: 1; }
    80%  { transform: scaleY(1); opacity: 1; }
    90%  { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(0); opacity: 0; }
}

/* Bottom: 30% → 45% (phải → trái) */
@keyframes drawBottom {
    0%   { transform: scaleX(0); opacity: 0; }
    30%  { transform: scaleX(0); opacity: 0; }
    45%  { transform: scaleX(1); opacity: 1; }
    80%  { transform: scaleX(1); opacity: 1; }
    90%  { transform: scaleX(0); opacity: 0; }
    100% { transform: scaleX(0); opacity: 0; }
}

/* Left: 45% → 60% (dưới → lên) */
@keyframes drawLeft {
    0%   { transform: scaleY(0); opacity: 0; }
    45%  { transform: scaleY(0); opacity: 0; }
    60%  { transform: scaleY(1); opacity: 1; }
    80%  { transform: scaleY(1); opacity: 1; }
    90%  { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(0); opacity: 0; }
}

/* ===== HIỆU ỨNG GLOW CHO VIỀN KHI HOVER ===== */
.category-card:hover .line {
    animation-play-state: paused;        /* tạm dừng animation khi hover */
    opacity: 1 !important;
    transform: scale(1) !important;
    background: linear-gradient(90deg, #f9d423, #ff6b6b, #f9d423);
    background-size: 300% 100%;
    animation: glowPulse 1.5s ease-in-out infinite;
}
/* Thêm animation glow riêng khi hover */
@keyframes glowPulse {
    0%   { filter: brightness(1); box-shadow: 0 0 12px rgba(255,215,0,0.5); }
    50%  { filter: brightness(1.6); box-shadow: 0 0 30px rgba(255,215,0,0.9); }
    100% { filter: brightness(1); box-shadow: 0 0 12px rgba(255,215,0,0.5); }
}

/* Nếu hover, ẩn góc tạm thời để viền nổi bật */
.category-card:hover .corner {
    opacity: 0.3 !important;
    transition: opacity 0.3s;
}


/* ==================== PRODUCTS ==================== */

/* ===== SIDEBAR ===== */
.sidebar-widget {
    background: var(--background);
    border-radius: 5px;
    padding: 0px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.sidebar-widget .widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    padding: 10px 15px;
}
.sidebar-widget .widget-title i {
    color: #000000;
}

/* ===== CATEGORY CHECKBOX LIST ===== */
.sidebar-widget .category-list {
    list-style: none;
    margin: 0;
    padding: 0px 10px 20px 10px;
}

.sidebar-widget .category-list li:last-child {
    margin-bottom: 0;
}

.sidebar-widget .category-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 0px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #212529;
    text-decoration: none;
}

.sidebar-widget .category-item:hover {
    background: var(--primary-dark);
    color: #000000;
    padding-left: 10px;
}


.category-item .cat-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-light);
}


.category-item .cat-count {
    font-size: 12px;
    color: #adb5bd;
    background: #f1f3f5;
    padding: 2px 8px;
    border-radius: 12px;
}

.category-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #000000;
}



.category-item.active {
    background: var(--primary-dark);
    color: #000000;
    padding-left: 10px;
}


.category-item.active .cat-count {
    background: #d0e3ff;
}

/* Category children indentation */
.category-children {
    padding-left: 15px;
    margin-top: 5px;
    border-left: 2px solid #e9ecef;
}

/* ===== PRICE FILTER ===== */
.price-filter {
    padding: 10px;
}

.price-range-slider {
    margin: 0px 0;
    padding: 0 5px;
}

.price-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.price-inputs .price-group {
    flex: 1;
}

.price-inputs label {
    font-size: 12px;
    color: #6c757d;
    display: block;
    margin-bottom: 3px;
}

.price-inputs input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.price-inputs input[type="number"]:focus {
    border-color: #000000;
}

  .price-range-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    outline: none;
  }
  .price-range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #ddd;
    border-radius: 4px;
  }
  .price-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -7px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  /* Firefox */
  .price-range-slider input[type="range"]::-moz-range-track {
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    border: none;
  }
  .price-range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
  }
  /* Đổi màu riêng cho từng slider nếu muốn */
  #priceMinSlider::-webkit-slider-thumb {
    background: #28a745;
  }
  #priceMaxSlider::-webkit-slider-thumb {
    background: #dc3545;
  }
  #priceMinSlider::-moz-range-thumb {
    background: #28a745;
  }
  #priceMaxSlider::-moz-range-thumb {
    background: #dc3545;
  }

.price-separator {
    color: #6c757d;
    font-size: 14px;
    padding-top: 18px;
}

.btn-apply-filter {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply-filter:hover {
    background: var(--primary-2);
}

.btn-reset-filter {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-filter:hover {
    background: #e9ecef;
}

#catRecentlyViewedList{
    padding: 10px;
}
#catProductCount{
    color:#6c757d;font-size:14px;margin-top:5px;
}
.recent-item {
    display:flex;
    gap:10px;
    padding:8px 0;
    border-bottom:1px solid #f1f3f5;
    text-decoration:none;
    color:inherit;
}
.recent-item img{
    width:70px;
    height:70px;
    flex-shrink:0;
    border-radius:3px;
    overflow:hidden;
    
}
.recent-item-content{
    
}
.recent-item-content-price{
    color: var(--text-light);
}
.recent-item-content-price:hover{
    color: var(--primary);
}
.recent-item .recent-item-content h4{
    font-size:14px;
    font-weight:600;
    color: var(--text-light);
}
.recent-item .recent-item-content h4:hover{
    color: var(--text-light-hover);
}
/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}



/* ===== LOADING & EMPTY ===== */
.loading-spinner {
    text-align: center;
    padding: 60px 0;
    color: #6c757d;
    font-size: 16px;
}

.loading-spinner i {
    font-size: 30px;
    display: block;
    margin-bottom: 15px;
    color: #000000;
}

.empty-cart {
    text-align: center;
    padding: 60px 0;
    color: #6c757d;
}

.empty-cart i {
    font-size: 48px;
    color: #dee2e6;
    display: block;
    margin-bottom: 15px;
}

/* ===== SELECTED CATEGORIES BADGE ===== */
.selected-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px 0;
}

.selected-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--border);
    color: #000000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.selected-category-badge .remove {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #6c757d;
    transition: color 0.2s;
}

.selected-category-badge .remove:hover {
    color: #dc3545;
}

/* ===== SIDEBAR TOGGLE MOBILE ===== */
.sidebar-toggle-btn {
    display: none;
    background: #000000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

.sidebar-toggle-btn i {
    margin-right: 8px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.sidebar-overlay.active {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .category-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        overflow-y: auto;
        z-index: 999;
        background: #fff;
        padding: 20px;
        transition: left 0.3s ease;
        max-width: 320px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle-btn {
        display: inline-flex;
        align-items: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 12px;
        height: 34px;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .product-actions button {
        font-size: 11px;
        padding: 6px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}


/* ==================== BANNER ==================== */
.banner-section {
    background: var(--primary);
}

.banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.banner-content {
    position: relative;
    z-index: 2;
    background: #00000094;
    padding: 30px 10px 50px 10px;
    border-radius: 0px;
}

.banner-content h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.banner-content .btn-call-action{
    padding: 10px 25px;
    font-size: 20px;
    font-family: inherit;
    background: var(--base-color);
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 25px;
    border: solid 3px var(--border);
}
.banner-content .btn-call-action:hover{
    padding: 8px 25px;
    font-size: 24px;
    font-family: inherit;
    box-shadow: 0px 0px 5px var(--base-color);
    background: var(--secondary-light);
    color: white;
    transform: translateY(-2px);

}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background: var(--section-bg-2);
    padding: 60px 0;
    transition: background 0.3s;
    border-top: solid 1px var(--border);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 26px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image img {
    border-radius: 8px;
    width: 100%;
}
.about-text .btn {
    background: var(--base-color);
    border: solid 2px var(--border);
    color: var(--text-light);
}

/* ==================== TESTIMONIALS (2 cột slider) ==================== */
.testimonial-section {
    margin-bottom: 0px;
    background: var(--section-bg);
    padding: 30px 0;
    color: var(--text-light);
    transition: background 0.3s;
    position: relative;
}
.testimonial-section .section-title {
    color: var(--text-light);
}
.testimonial-section .section-title:after {
    background: var(--accent);
}

/* Container swiper – tạo không gian cho nút */
.testimonial-swiper {
    position: relative;
    background: var(--section-bg-2);
    border-radius: 20px;
    padding: 10px;
    border: solid 2px var(--border);
    margin-top: 30px;
    max-width: 100%;
    max-width: 750px;
}

/* Mỗi slide – dùng flex row */
.testimonial-item {
    padding: 0 10px; /* khoảng cách giữa các slide */
    
}

.testimonial-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 10px 10px;
    backdrop-filter: blur(2px);
    min-height: 220px;
    
    margin: 0 auto;
}

/* Cột trái – ảnh cố định 150px */
.testimonial-col-left {
    flex: 0 0 auto;
    width: 150px;
    max-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-avatar-wrapper {
    width: 130px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cột phải – chiếm phần còn lại */
.testimonial-col-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-stars {
    color: var(--star-color);
    font-size: 12px;
    margin-bottom: 5px;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 5px;
    color: var(--text-light);
    word-wrap: break-word; /* Ngăn tràn chữ dài */
}
.testimonial-text .fa-quote-left {
    color: var(--primary);
    font-size: 30px;
    padding-right: 20px;
}
.testimonial-text .fa-quote-right {
    color: var(--primary);
    font-size: 30px;
    padding-left: 20px;
}
.testimonial-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2px;
}
.testimonial-role {
    font-size: 0.95rem;
    opacity: 0.7;
    color: var(--primary);
}

/* ===== NÚT ĐIỀU HƯỚNG (prev / next) ===== */
.testimonial-swiper .swiper-button-next, .testimonial-swiper .swiper-button-prev {
    color: --var(--header-bg);
    background: var(--border);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    border: 2px solid var(--border);
}
.testimonial-swiper .swiper-button-next:hover,
.testimonial-swiper .swiper-button-prev:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}
.testimonial-swiper .swiper-button-next::after,
.testimonial-swiper .swiper-button-prev::after {
    display: none;
}
.testimonial-swiper .swiper-button-next i,
.testimonial-swiper .swiper-button-prev i {
    font-size: 14px;
}
.testimonial-swiper .swiper-button-next {
    right: 10px;
}
.testimonial-swiper .swiper-button-prev {
    left: 10px;
}

/* ===== PAGINATION (dấu chấm) ===== */
.testimonial-swiper .swiper-pagination {
    bottom: 0;
}
.testimonial-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}
.testimonial-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
}

/* ===== RESPONSIVE ===== */

/* Màn hình tablet (768px) – giữ 2 cột, thu nhỏ ảnh và điều chỉnh khoảng cách, chữ */
@media (max-width: 768px) {
    .testimonial-swiper {
        padding: 20px 30px; /* Giảm padding ngang để nút không bị che */
    }

    .testimonial-row {
        gap: 15px;
        padding: 15px 15px;
        min-height: auto;
        flex-wrap: nowrap;
    }

    /* Ảnh thu nhỏ xuống 100px */
    .testimonial-col-left {
        width: 100px;
        max-width: 100px;
    }
    .testimonial-avatar-wrapper {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    /* Chữ nhỏ hơn một chút */
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .testimonial-text .fa-quote-left,
    .testimonial-text .fa-quote-right {
        font-size: 20px;
    }
    .testimonial-text .fa-quote-left {
        padding-right: 10px;
    }
    .testimonial-text .fa-quote-right {
        padding-left: 10px;
    }

    .testimonial-author {
        font-size: 1rem;
    }
    .testimonial-role {
        font-size: 0.85rem;
    }
    .testimonial-stars {
        font-size: 1rem;
    }

    /* Nút điều hướng nhỏ hơn và dịch sát mép */
    .testimonial-swiper .swiper-button-next,
    .testimonial-swiper .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    .testimonial-swiper .swiper-button-next i,
    .testimonial-swiper .swiper-button-prev i {
        font-size: 12px;
    }
    .testimonial-swiper .swiper-button-next {
        right: 5px;
    }
    .testimonial-swiper .swiper-button-prev {
        left: 5px;
    }
}

/* Màn hình điện thoại nhỏ (480px) – chuyển sang 1 cột (nếu cần) */
@media (max-width: 480px) {
    .testimonial-swiper {
        padding: 20px 15px;
    }

    .testimonial-row {
        flex-wrap: wrap; /* Chuyển xuống dòng để ảnh trên, nội dung dưới */
        justify-content: center;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }

    .testimonial-col-left {
        width: 80px;
        max-width: 80px;
    }
    .testimonial-avatar-wrapper {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }
    .testimonial-text .fa-quote-left,
    .testimonial-text .fa-quote-right {
        font-size: 18px;
    }
    .testimonial-text .fa-quote-left {
        padding-right: 6px;
    }
    .testimonial-text .fa-quote-right {
        padding-left: 6px;
    }
    .testimonial-stars {
        font-size: 0.9rem;
        justify-content: center;
    }

    .testimonial-swiper .swiper-button-next,
    .testimonial-swiper .swiper-button-prev {
        width: 26px;
        height: 26px;
    }
    .testimonial-swiper .swiper-button-next i,
    .testimonial-swiper .swiper-button-prev i {
        font-size: 10px;
    }
    .testimonial-swiper .swiper-button-next {
        right: 5px;
    }
    .testimonial-swiper .swiper-button-prev {
        left: 5px;
    }
}
/* ==================== PROJECTS (bổ sung CSS) ==================== */
.project-section {
    margin-bottom: 0px;
    background: #262626;
    border-top: solid 1px var(--border);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.project-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: solid 2px var(--border-2);
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.project-card a{
    color: var(--text-white);
}
.project-card a:hover {
    color: var(--accent);
}
.project-card .project-card-button{
    background: var(--base-color);
    padding: 5px;
    border: solid 1px var(--border-2);
}
.project-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: 0.4s;
    opacity: 0.8;
}
.project-card:hover .project-img {
    transform: scale(1.05);
    opacity: 1;
}
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 10px 10px 10px;
    background: var(--base-color);
    color: #000000;
    transition: all 0.3s;
    opacity: 0.8;
}
.project-overlay:hover {
    background: linear-gradient(#00000036, rgb(0 0 0));
}
.project-overlay h4 {
    font-size: 14px;
    margin-bottom: 0px;
}

.project-overlay p {
    font-size: 14px;
    opacity: 0.9;
    color: var(--primary);
    padding-bottom: 5px;
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}
/* ==================== BLOGS =================== */
.blogs-pages{
    background: var(--background);
    padding: 30px 0px;
}
/* ===== BLOG GRID STYLES ===== */
.loading-spinner {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #888;
}

/* Grid layout */
.blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--background);
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.15);
    border-color: var(--border, #cbd5e0);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px 22px 22px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    padding: 2px;
    border-top: solid 1px var(--border);
    border-bottom: solid 1px var(--border);
}

.meta-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.meta-comment {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--card-bg-2, #edf2f7);
    color: var(--primary, #2b6cb0);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.blog-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
}

.blog-title a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--accent, #3182ce);
}

.btn-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: gap 0.2s, color 0.2s;
    border-radius: 3px;
    border: solid 1px var(--text-light);
    padding: 3px 10px;
}

.btn-readmore:hover {
    gap: 8px;
    color: var(--primary, #2b6cb0);
}

.no-results {
    
}


.no-results h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.no-results p {
    color: #718096;
}

/* SIDEBAR */
.category-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
}
.sidebar {
    flex: 0 0 250px;
    min-width: 250px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.category-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    text-decoration: none;
    color: var(--border);
    transition: background 0.2s, color 0.2s;
    background: var(--card-bg);
    border-radius: 25px;
    max-width: max-content;
}
.category-link:hover {
    background: var(--light-bg, #f7fafc);
    color: var(--primary, #2b6cb0);
}
.category-link.active {
    background: var(--primary, #2b6cb0);
    color: #fff;
}
.category-link i {
    width: 20px;
    text-align: center;
}
.main-content {
    flex: 1;
    min-width: 0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.pagination button {
    min-width: 40px;
    height: 40px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination button:hover {
    background: #f7fafc;
}
.pagination button.active {
    background: var(--primary, #2b6cb0);
    color: #fff;
    border-color: var(--primary, #2b6cb0);
}

/* Sidebar toggle mobile */
.sidebar-toggle-btn {
    display: none;
    background: var(--primary, #2b6cb0);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    margin: 15px 0 5px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
    align-items: center;
    gap: 8px;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}
.sidebar-overlay.active {
    display: block;
}

@media (max-width: 991px) {
    .sidebar-toggle-btn {
        display: inline-flex;
    }
    .category-layout {
        flex-direction: column;
        gap: 20px;
    }
    .main-content {
        padding: 0 15px;
    }
    .blogs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 640px) {
    .blogs-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================== BLOG ==================== */
.blog-section {
    background: #1b1b1b;
    padding: 50px 0;
    transition: background 0.3s;
    border-top: solid 1px var(--border);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.blog-img {
    height: 200px;
    overflow: hidden;
}
.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.blog-content {
    padding: 10px;
}

.blog-meta i {
    margin-right: 5px;
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 5px;
}
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* BLOG PAGE CONTENT ===========================================*/
.blog-page{
    background: var(--background);
    padding: 30px;
}

/* ==================== CAM KẾT & CHỨNG NHẬN ==================== */
.cert-section {
    padding: 30px 0;
    background: var(--base-color);
    transition: background 0.3s;
    border-top: solid 2px var(--border);
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 30px;
}
.cert-item {
    background: #040914;
    padding: 0px 0px;
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.cert-item:hover {
    transform: translateY(-8px);
}
.cert-item-content-box{
    padding: 10px;
}
.cert-icon {
    font-size: 120px;
    color: var(--primary);
    margin-bottom: 0px;
}
.cert-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}
.cert-desc {
    font-size: 14px;
    color: var(--primary);
    line-height: 1.5;
}
@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== FOOTER ==================== */
#footer {
    background: var(--footer-bg);
    color: var(--text-white);
    padding: 50px 0 0;
    transition: background 0.3s;
    border-top: solid 1px var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-white);
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-widget p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--text-white);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--text-light-hover);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    margin-bottom: 15px;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: var(--text-white);
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 20px 0;
    text-align: center;
}

.social-widget ul{
    display: flex;
    gap: 10px;
}
.social-widget .social-item{
    background: var(--card-bg);
    padding: 8px;
    border-radius: 4px;
    width: 36px;
    height: 40px;
    text-align: center;
}
/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: var(--card-bg);
    z-index: 1001;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-header h3 {
    color: white;
    margin: 0;
}

.close-menu {
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: rotate(90deg);
}

.mobile-nav ul li {
    border-bottom: 1px solid var(--border);
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text);
    font-weight: 500;
}

.mobile-nav ul li a:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.mobile-nav ul li.has-sub > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu {
    display: none;
    background: var(--light-bg);
    padding-left: 15px;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu .has-sub-level3 > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-submenu .submenu-level3 {
    display: none;
    padding-left: 15px;
    background: var(--card-bg);
}
.mobile-submenu .submenu-level3.active {
    display: block;
}

.mobile-mega-cols {
    padding: 0px;
    background: var(--light-bg);
}

.mobile-mega-col {
    margin-bottom: 2px;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.mobile-mega-col-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    padding: 15px 20px;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dark-mode .mobile-mega-col-title {
    background: #2a2a2a;
}

.mobile-mega-col-content {
    display: none;
    padding: 10px 15px;
}

.mobile-mega-col-content.active {
    display: block;
}

.mobile-mega-col-content ul li a {
    padding: 10px 15px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==================== MODAL CHO THÊM VÀO GIỎ ==================== */
.addcart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.addcart-modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-container {
    background: var(--card-bg);
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.addcart-modal.show .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.modal-header h3 {
    font-size: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 25px 20px;
    text-align: center;
}

.modal-body i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-body p {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 5px;
}

.modal-body .product-name {
    font-weight: 700;
    color: var(--primary);
}

.modal-footer {
    padding: 0 20px 25px 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-footer .btn {
    flex: 1;
    padding: 12px;
}



/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .category-grid, .products-grid, .project-grid, .blog-grid, .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: row;
        gap: 10px;
        text-align: center;
    }
    .header-content {
        flex-direction: row;
        gap: 20px;
    }
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        left: 15px;
    }

    .header-search {
        max-width: 100%;
        margin: 10px 0;
        order: 3;
    }
    .header-actions {
        justify-content: center;
    }
    #main-nav {
        display: none;
    }
    .category-grid, .products-grid, .project-grid, .blog-grid, .cert-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .modal-footer {
        flex-direction: column;
    }
    .quick-toast {
        bottom: 80px;
        right: 20px;
        left: 20px;
        text-align: center;
        justify-content: center;
    }
}

/* ==================== MOBILE SEARCH OVERLAY ==================== */
#mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    z-index: 1100;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}
#mobile-search-overlay.active { visibility: visible; opacity: 1; }
.mobile-search-header { display: flex; justify-content: flex-end; margin-bottom: 20px; }
.close-search { font-size: 28px; cursor: pointer; color: var(--text); transition: transform 0.2s; }
.close-search:hover { transform: rotate(90deg); }
.mobile-search-form { 
    display: flex; 
    align-items: center; 
    background: var(--light-bg); 
    border-radius: 40px; border: 1px solid var(--border); 
    /*overflow: hidden; */
    margin-bottom: 30px; 
    
}
.mobile-search-input { 
    flex: 1; 
    padding: 10px 20px; 
    font-size: 16px; 
    background: transparent; 
    border: none; 
    color: var(--text); 
    outline: none; 
    border-radius: 0px 25px 25px 0px;
}
.mobile-search-btn { background: var(--primary); border: none; width: 54px; color: white; cursor: pointer; font-size: 18px; height: 100%; transition: background 0.2s; }
.mobile-search-btn:hover { background: var(--primary-dark); }
.popular-keywords { margin-top: 20px; }
.popular-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.popular-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.popular-tag { background: var(--light-bg); padding: 8px 16px; border-radius: 40px; font-size: 14px; color: var(--primary); cursor: pointer; transition: all 0.2s; border: 1px solid var(--border); }
.popular-tag:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.mobile-search-results { margin-top: 20px; max-height: 300px; overflow-y: auto; background: var(--card-bg); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: none; }
.mobile-search-result-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
.mobile-search-result-item:hover { background: var(--light-bg); }
.mobile-result-img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.mobile-result-info { flex: 1; }
.mobile-result-name { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.mobile-result-price { color: var(--primary); font-weight: 700; font-size: 14px; }
@media (max-width: 768px) {
    .header-search { display: none !important; }
    .mobile-search-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background: none;
        border-radius: 50%;
        color: var(--primary);
        cursor: pointer;
        transition: all 0.2s;
        font-size: 26px;
    }
    .mobile-search-icon:hover { background: var(--primary); transform: scale(1.05); }
    .header-actions { gap: 12px; }
}
@media (min-width: 769px) {
    .mobile-search-icon { display: none !important; }
}

/* Tạm ẩn light/dark */
.theme-toggle{
    /*display: none;*/
}


/* PRODUCT CATEGORIES =======================*/

/* ==================== LAYOUT 2 CỘT ==================== */
.products-page{
    background: var(--footer-bg);
    padding: 50px 0px;
}



/* Nút mở sidebar trên mobile */
.sidebar-toggle-btn {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 8px;
    cursor: pointer;
    z-index: 998;
    font-size: 16px;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 6px;
    writing-mode: horizontal-tb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.sidebar-toggle-btn i {
    font-size: 20px;
}

.sidebar-toggle-btn:hover {
    background: var(--primary-dark);
    padding-right: 12px;
}

/* Sidebar responsive (slide-in) */
@media (max-width: 991px) {
    .category-layout {
        position: relative;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        height: 100%;
        z-index: 1003;
        background: var(--card-bg);
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        flex: auto;
        border-radius: 0;
    }
    .sidebar.active {
        left: 0;
    }
    .sidebar-toggle-btn {
        display: flex;
    }
    /* Overlay khi sidebar mở */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}



/* Recently viewed */
.recent-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.recent-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.recent-item-info .price {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.empty-recent {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}


/* Loading */
.loading-spinner {
    text-align: center;
    padding: 50px;
    font-size: 24px;
    color: var(--primary);
}

.category-header {
    margin-bottom: 30px;
}

.category-header h2 {
    font-size: 28px;
    color: var(--text-light);
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

/* ==================== CART SIDEBAR ==================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--card-bg);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    background: var(--secondary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}

.remove-item {
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--border);
    background: var(--light-bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.empty-cart {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.addcart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.addcart-modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-container {
    background: var(--card-bg);
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    transform: scale(0.9);
    transition: 0.3s;
}

.addcart-modal.show .modal-container {
    transform: scale(1);
}

.modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.modal-body {
    padding: 25px 20px;
    text-align: center;
}

.modal-footer {
    padding: 0 20px 25px;
    display: flex;
    gap: 15px;
}

.modal-footer .btn {
    flex: 1;
}


/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        grid-template-columns: repeat(1);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 14px;
        left: 20px;
    }
    #main-nav {
        display: none;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

 /* ==================== COLLECTION TABS ==================== */
 .collection-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}
.collection-tabs .tab-btn {
    padding: 7px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    background: #fff;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.collection-tabs .tab-btn:hover {
    border-color: var(--base-color);
    color: #c0392b;
}
.collection-tabs .tab-btn.active {
    background: var(--base-color);
    border-color: var(--border);
    color: #fff;
}
.collection-banner {
    margin: 20px 0 30px;
    border-radius: 12px;
    overflow: hidden;
}
.collection-banner img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}
.collection-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}
.collection-content {
    margin: 20px 0 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.8;
}
.collection-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
 

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-btn:hover:not(.active) {
    color: var(--text);
}

/* ==============PRODUCT PAGE ======================*/
.product-page{
    background: var(--background);
    padding: 40px 0px;
}
/* ===== Product Detail ===== =====*/
.product-detail {
    padding: 0px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    border-radius: 3px;
    box-shadow: var(--shadow);
    transition: background 0.3s;
}
.product-gallery { position: relative; }
.main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: zoom-in;
    transition: 0.3s;
}
.main-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}
.main-image:hover img { transform: scale(1.05); }
.thumb-list {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}
.thumb-item.active { border-color: var(--primary); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.product-info-detail h1 {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 5px;
}
.product-category-link {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 14px;
    color: var(--background);
    font-weight: 500;
    background: var(--light-bg);
    border-radius: 25px;
    padding: 5px 15px;
}
.product-category-link i { margin-right: 5px; }
.product-price-detail {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}
.product-rrp-detail {
    font-size: 18px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 15px;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    color: var(--accent);
}
.stars {
    color: #f1c40f;
    font-size: 12px;
    letter-spacing: 2px;
}
.product-stock {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.product-stock.unlimited { color: #27ae60; }
.product-stock.in-stock { color: #27ae60; }
.product-stock.out-of-stock { color: #e74c3c; }
.product-description {
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.8;
}
.product-actions-detail {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}



.product-actions-button{
    display: flex;
    gap: 10px;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0px;
    margin-bottom: 10px;
    background: var(--light-bg);
    width: 100px;
}
.quantity-selector button {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 0px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
    color: var(--text);
}
.quantity-selector button:hover { background: var(--primary); color: white; }
.quantity-selector span {
    font-size: 18px;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    color: var(--text);
}
#addToCartDetail{
    background: var(--background);
    border: solid 2px var(--border);
    color: var(--text-light);
    max-width: 135px;
}

#buyNowDetail{
    background: var(--primary);
    color: var(--text-light);
    max-width: 100px;
}


.wishlist-btn-detail {
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
}
.wishlist-btn-detail.active {
    color: var(--primary-2);
    border-color: var(--primary-2);
}
.wishlist-btn-detail i { font-size: 18px; }




/* ===== Related Products ===== */
.related-section {
    margin: 60px 0;
}
.related-title {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}
.related-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ===== Reviews ===== */
.reviews-section {
    margin: 40px 0 60px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.reviews-title {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.reviews-title .stars { font-size: 22px; }
.review-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}
.review-item:last-child { border-bottom: none; }
.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.review-author { font-weight: 600; color: var(--text); }
.review-date { color: var(--text-light); font-size: 14px; }
.review-rating { color: #f1c40f; }
.review-content { color: var(--text-light); line-height: 1.6; }
.no-reviews { color: var(--text-light); text-align: center; padding: 20px; }


/* Responsive */
@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .related-grid { grid-template-columns: 1fr; }
    .product-actions-detail { flex-direction: column; }
    .product-actions-detail .btn { width: 100%; }
    .product-info-detail h1 { font-size: 24px; }
}


/* blog ===================================================*/
       
.post-layout { display: flex; gap: 40px; margin: 40px 0; position: relative; }
.category-list li { margin-bottom: 12px; }
.category-list li a i { width: 24px; color: var(--primary); }
.recent-item { display: flex; gap: 12px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.recent-item-img { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; }
.recent-item-img img { width: 100%; height: 100%; object-fit: cover; }
.recent-item-info h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.recent-item-info .price { font-size: 13px; color: var(--primary); font-weight: 600; }
.empty-recent { text-align: center; padding: 20px; color: var(--text-light); }
.post-detail {
    border-radius: 3px;
    padding: 10px;
    box-shadow: var(--shadow);
}
.post-detail h1 {
    font-size: 32px;
    color: var(--text-light);
    margin-bottom: 15px;
}
.post-meta { display: flex; gap: 20px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border); color: var(--text-light); font-size: 14px; }
.post-meta i { margin-right: 5px; color: var(--primary); }
.post-featured-image {
    margin-bottom: 25px;
    border-radius: 3px;
    overflow: hidden;
}
.post-featured-image img { width: 100%; height: auto; }
.post-content { color: var(--text-light); line-height: 1.8; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin: 15px 0 15px 25px; }
.post-content li { margin-bottom: 8px; }
.related-posts { margin-top: 50px; }
.related-title { font-size: 24px; color: var(--text); margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.related-card { background: var(--card-bg); border-radius: 12px; overflow: hidden; transition: 0.3s; box-shadow: var(--shadow); }
.related-card:hover { transform: translateY(-5px); }
.related-img { height: 160px; overflow: hidden; }
.related-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.related-card:hover .related-img img { transform: scale(1.05); }
.related-info { padding: 15px; }
.related-info h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.related-info .date { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }

@media (max-width: 1024px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .post-detail { padding: 20px; }
    .post-detail h1 { font-size: 24px; }
    .related-grid { grid-template-columns: 1fr; }
   
}

/* Contact action ==============================*/
/* ========== POPUP LIÊN HỆ CAO CẤP ========== */
.royalart_contact_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.royalart_contact_overlay.active {
    opacity: 1;
    visibility: visible;
}
.royalart_contact_popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 550px;
    background: transparent;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1), 
                transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
                visibility 0.4s;
}
.royalart_contact_popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.royalart_form_action {
    padding: 5px;
    background: linear-gradient(135deg, #2ab574, #3da341);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.royalart_form_action .royalart_col_inner {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
}
.royalart_close_btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.2s;
    z-index: 10000;
}
.royalart_close_btn:hover {
    background: #2ab574;
    color: #fff;
    transform: rotate(90deg);
}
.royalart_text_center {
    text-align: center;
    margin: 0 0 5px;
    font-size: 14px;
    letter-spacing: 2px;
    color: #666;
}
.royalart_text_center + h3 {
    margin-top: 0;
    font-size: 26px;
    font-weight: 800;
    color: #222;
}
.royalart_hr_dots {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2ab574, #283891);
    border-radius: 4px;
    margin: 15px auto 25px;
}
/* Form style */
.wpcf7-form input, .royalart-contact-form input {
    width: 100%;
    padding: 12px 0;
    margin-bottom: 15px;
    border: none;
    border-bottom: 1px solid #ddd;
    background: transparent;
    transition: border 0.2s;
}
.wpcf7-form input:focus, .royalart-contact-form input:focus {
    border-bottom-color: #2ab574;
    outline: none;
}
.wpcf7-form input[type="submit"], .royalart-contact-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(248deg, #2ab574, #3da341);
    border: none;
    border-radius: 40px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wpcf7-form input[type="submit"]:hover, .royalart-contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.royalart_form_action ul {
    margin-top: 25px;
    padding-left: 0;
}
.royalart_form_action ul li {
    list-style: none;
    margin-bottom: 8px;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}
.royalart_form_action ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2ab574;
    font-weight: bold;
}
/* Contact bar */
.royalart_contact_bar {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 9997;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}
.royalart_contact_item {
    display: flex;
    align-items: center;
    height: 50px;
    border-radius: 60px;
    overflow: hidden;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    animation: royalartFloat 3s ease-in-out infinite;
    max-width: max-content;
    position: relative;
    transform-origin: right center;
    will-change: transform;
}
.royalart_contact_item:hover {
    transform: translateX(-8px) scale(1.03);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.royalart_contact_item:hover .royalart_icon img {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
/* Hiệu ứng riêng từng nút */
.royalart_phone {
    background: linear-gradient(135deg, #ff1800, #ff0000);
    animation: royalart_pulse 1.2s infinite;
}
@keyframes royalart_pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 24, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 24, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 24, 0, 0); }
}
.royalart_zalo {
    background: linear-gradient(135deg, #009dff, #0062ff);
}
.royalart_zalo:hover .royalart_icon img {
    transform: rotate(5deg) scale(1.1);
}
.royalart_facebook {
    background: linear-gradient(135deg, #1877f2, #0d5fd8);
}
.royalart_facebook:hover {
    animation: royalart_shake 0.3s ease-in-out 0s 2;
}
@keyframes royalart_shake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}
.royalart_register {
    background: linear-gradient(135deg, #4caf50, #08790d);
    transition: background 0.3s, transform 0.2s;
}
.royalart_register:hover {
    background: linear-gradient(135deg, #5cb85c, #0a5c0a);
}
.royalart_icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.royalart_icon img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}
.royalart_text {
    padding-right: 20px;
    font-weight: 600;
    font-size: 14px;
}
.royalart_hot {
    position: absolute;
    top: -0px;
    right: 8px;
    background: #ff8600;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 20px;
}
@keyframes royalartFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
/* Rung icon phone */
.royalart_phone:hover .royalart_icon img {
    animation: royalart_phoneShake 0.3s ease-in-out 0s 2;
}
@keyframes royalart_phoneShake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}
/* Ripple effect */
.ripple-effect {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    z-index: 2;
}
@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}
@media (max-width: 768px) {
    .royalart_contact_bar { right: 10px; bottom: 10px; }
    .royalart_text { display: none; }
    .royalart_icon { width: 48px; height: 48px; }
    .royalart_icon img { width: 24px; }
}

/* GENERAL RESPONSIVE =======ALL===================================*/
@media screen and (max-width: 480px){
    .product-actions-button{
        display: block;
    }
    .wishlist-btn-detail {
        margin-top: 5px;
    }
}
