* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
    --primary-color: #235338;
    --primary-hover: #1b422c;
    --secondary-color: #3A7553;
    --bg-light: #F8F9FA;
    --text-color: #212529;
    --text-muted: #6C757D;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
}
body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul, ol {
    list-style: none;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/*-----Header--------*/
.top-header-wrapper {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 13px;
    padding: 2px 0;
    overflow: hidden;
}
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-header-message {
    width: 60%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.top-header-message ul {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    padding-left: 100%;
}
.top-header-message li {
    display: inline-block;
    margin-right: 30px;
}
.top-header-message li i {
    margin-right: 5px;
}
.top-header-contact {
    width: 40%;
}
.top-header-contact ul {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.top-header-contact a {
    color: var(--white);
    transition: opacity 0.2s;
}
.top-header-contact a:hover {
    opacity: 0.8;
}
@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}
.main-header-wrapper {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.main-header-logo img {
    height: 70px;
    object-fit: contain;
}
.main-header-category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    user-select: none;
}
.main-header-category-btn:hover {
    background-color: var(--primary-hover);
}
.main-header-category-btn .arrow-icon {
    font-size: 12px;
}
.main-header-search-box {
    flex: 1;
    position: relative;
    max-width: 500px;
}
.main-header-search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    background-color: var(--bg-light);
    transition: border-color 0.2s;
}
.main-header-search-box input:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
}
.main-header-search-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.main-header-contact-btn {
    position: relative;
}
.main-header-contact-btn > a {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}
.main-header-contact-btn > a:hover {
    background-color: var(--primary-hover);
}
.contact-icon-box {
    display: flex;
    align-items: center;
    gap: 5px;
}
.contact-text {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    color: var(--text-color);
    width: 320px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}
.main-header-contact-btn:hover .contact-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}
.contact-text .contact-label {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 3px;
}
.contact-text .contact-number {
    font-weight: 600;
}
.contact-text .contact-sub, 
.contact-text .contact-address {
    color: var(--text-muted);
    font-size: 12px;
}
/*Menu*/
.header{
    position:sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.top-header-wrapper .main-header-wrapper{position:relative;z-index:999!important;}
.camera-category-overlay{position:fixed;margin-top: 95px;top:0;left:0;width:100%;height:100vh;background:var(--text-muted);z-index:998;display:none}
.camera-category-menu{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:100%;max-height:650px;z-index:1000;display:none;background:var(--bg-light);border-radius:0 0 8px 8px;box-shadow:0 8px 30px var(--text-color);overflow:hidden}
.camera-category-menu.is-open{display:flex}
.camera-category-list{width:25%;flex:0 0 25%;background:var(--bg-light);border-right:1px solid var(--border-color);padding:8px 0;overflow-y:auto;max-height:650px}
.camera-category-list>a{display:block;text-decoration:none;color:inherit}
.camera-category-item{width:100%;min-height:58px;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;cursor:pointer;background:#fff;transition:background-color .2s ease,color .2s ease;box-sizing:border-box}
.camera-category-item-left{min-width:0;display:flex;align-items:center;gap:12px}
.camera-category-item-left img{width:34px;height:34px;object-fit:contain;flex:0 0 34px}
.camera-category-item-left span{font-size:15px;font-weight:500;line-height:1.35;color:#333}
.camera-category-arrow{flex:0 0 auto;margin-left:10px;font-size:25px;line-height:1;color:#888;transition:transform .2s ease,color .2s ease}
.camera-category-item:hover,.camera-category-item.active{background:#f5f5f5}
.camera-category-item:hover .camera-category-item-left span,.camera-category-item.active .camera-category-item-left span{color:var(--secondary-color)}
.camera-category-item:hover .camera-category-arrow,.camera-category-item.active .camera-category-arrow{color:var(--secondary-color);transform:translateX(3px)}
.camera-mega-menu{width:75%;flex:0 0 75%;background:#fff;max-height:650px;overflow-y:auto;overflow-x:hidden}
.camera-mega-content{width:100%;min-height:100%;padding:25px 28px;box-sizing:border-box}
.camera-mega-panel{width:100%;display:none;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:25px;row-gap:30px}
.camera-mega-panel.active{display:grid}
.camera-mega-column{min-width:0}
.camera-mega-column-title{display:block;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid var(--secondary-color);font-size:15px;font-weight:700;line-height:1.35;color:#222}
.camera-mega-column a{display:block;padding:5px 0;color:#444;font-size:14px;line-height:1.4;text-decoration:none;transition:color .2s ease,padding-left .2s ease}
.camera-mega-column a:hover{color:var(--secondary-color);padding-left:5px}
.camera-category-list::-webkit-scrollbar,.camera-mega-menu::-webkit-scrollbar{width:6px}
.camera-category-list::-webkit-scrollbar-track,.camera-mega-menu::-webkit-scrollbar-track{background:#f5f5f5}
.camera-category-list::-webkit-scrollbar-thumb,.camera-mega-menu::-webkit-scrollbar-thumb{background:#ccc;border-radius:10px}
.camera-category-list::-webkit-scrollbar-thumb:hover,.camera-mega-menu::-webkit-scrollbar-thumb:hover{background:#aaa}
.camera-category-close {display: none;}
/*Banner*/
.banner-container {
    position: relative;
    max-width: 1200px;
    margin: 5px auto;
    padding: 0 15px;
    animation: bannerZoomIn 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes bannerZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.banner-3d-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    perspective: 1200px;
    transform-style: preserve-3d;
}
.banner-item {
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transform: scale(0.8) translateZ(-200px);
}
.banner-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.banner-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 3;
    transform: translateX(0) scale(1) rotateY(0) translateZ(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    filter: brightness(1);
}
.banner-item.prev {
    opacity: 0.5;
    visibility: visible;
    z-index: 2;
    transform: translateX(-33%) scale(0.82) rotateY(25deg) translateZ(-100px);
    filter: brightness(0.7);
}
.banner-item.next {
    opacity: 0.5;
    visibility: visible;
    z-index: 2;
    transform: translateX(33%) scale(0.82) rotateY(-25deg) translateZ(-100px);
    filter: brightness(0.7);
}
.banner-item-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
    color: var(--white);
    transform: translateY(25px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.6s ease 0.2s;
}
.banner-item.active .banner-item-text {
    transform: translateY(0);
    opacity: 1;
}
.banner-item-text h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}
.banner-item-text span {
    font-size: 13px;
    color: #e2e8f0;
}
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: background-color 0.3s, transform 0.2s;
}

.banner-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}
.prev-btn {
    left: calc(15% + 15px); 
}
.next-btn {
    right: calc(15% + 15px);
}
.banner-dots {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.banner-dots .dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, width 0.3s;
}
.banner-dots .dot.active {
    width: 22px;
    border-radius: 4px;
    background-color: var(--primary-color);
}
/*-- Catergory--*/
.categories-section {
    padding: 10px 0;
    margin-top: 30px;
    background-color: var(--bg-light);
    animation: fadeInUpCat 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpCat {
    0% {
        opacity: 0.5;
        transform: translateY(200px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.categories-slider-wrapper {
    position: relative;
    padding: 0 40px;
}

.categories-grid-icon {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    padding: 5px 2px;
}

.categories-grid-icon::-webkit-scrollbar {
    display: none; 
}
.cat-item {
    width: 250px;
    flex: 0 0 calc((100% - (7 * 15px)) / 8); 
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.cat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(35, 83, 56, 0.12);
}

.cat-icon-wrap {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cat-item:hover .cat-icon-wrap {
    transform: scale(1.1);
}

.cat-icon-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cat-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.cat-item:hover span {
    color: var(--primary-color);
}
.cat-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}
.cat-slider-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.cat-prev-btn {
    left: -5px;
}
.cat-next-btn {
    right: -5px;
}
/*Product sale*/
.product-section {
    padding: 20px !important;
    margin-bottom: 20px !important;
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
}
.product-section.show {
    opacity: 1;
    transform: translateX(0);
}
.product-box {
    display: grid;
    grid-template-columns: 20% 80%; 
    gap: 20px;
}
.product-left > div {
    background-color: var(--white);
    padding: 10px;
}
.product-left h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}
.product-left ul li {
    font-size: 13px;
    margin-bottom: 6px;
}
.product-left ul li a {
    color: var(--text-color);
    transition: color 0.2s;
}
.product-left ul li a:hover {
    color: var(--primary-color);
}
.product-left-technology ul li.tech-header {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 8px;
    font-size: 14px;
}
.product-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0; 
}
.product-right-img {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.product-right-img img {
    width: 100%;
    aspect-ratio: 12 / 2;
    object-fit: cover;
    display: block;
}
.product-right-list {
    background-color: var(--white);
    padding: 10px 0;
}
.product-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 5px 2px;
}
.product-track {
    display: grid;
    grid-template-rows: repeat(2, 1fr); 
    grid-auto-flow: column; 
    grid-auto-columns: calc((100% - (3 * 15px)) / 4);
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    background-color: var(--white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(35, 83, 56, 0.1);
}
.product-card-img {
    width: 100%;
    aspect-ratio: 11 / 9;
    margin-bottom: 10px;
    position: relative;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-card-info h4 {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-color);
}
.product-card-info h4 a:hover {
    color: var(--primary-color);
}
.product-card-info .price {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 14px;
}
.product-card-info del {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 5px;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(35, 83, 56, 0.75);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    transition: all 0.3s ease;
}
.slider-btn:hover {
    background-color: var(--primary-color);
}
.prev-btn {
    left: 5px;
}
.next-btn {
    right: 5px;
}
/* Review atp*/
.animation-1 {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.animation-1.show {
    opacity: 1;
    transform: translateY(0);
}
.shorts-section {
    padding: 35px 0;

}

.shorts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.shorts-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.view-youtube {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    transition: opacity 0.2s;
}

.view-youtube:hover {
    opacity: 0.8;
}

.view-youtube i {
    font-size: 11px;
    margin-left: 3px;
}

/* --- Khung chứa thanh cuộn ngang --- */
.shorts-slider-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 15px; 
}

/* Tùy chỉnh thanh cuộn ngang đẹp mắt, gọn gàng */
.shorts-slider-wrapper::-webkit-scrollbar {
    height: 6px;
}

.shorts-slider-wrapper::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.shorts-slider-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.shorts-slider-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}
.shorts-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

/* --- Từng Card Video (Short Card) --- */
.short-card {
    width: 240px; /* Chiều rộng cố định chuẩn form video Shorts */
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.short-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(35, 83, 56, 0.12);
    border-color: var(--primary-color);
}

/* Khung video dọc tỷ lệ Shorts (9:16) */
.short-video-wrap {
    width: 100%;
    aspect-ratio: 9 / 16;
    background-color: #000;
    position: relative;
}

.short-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Phần thông tin sản phẩm đính kèm bên dưới video --- */
.short-product-info {
    padding: 12px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.product-mini-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-mini-box img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.product-mini-text h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.product-mini-text .price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}
/*list sp */
.product-slider-wrapper-01,
.product-slider-wrapper-02,
.product-slider-wrapper-03,
.product-slider-wrapper-04 {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.product-track-01,
.product-track-02,
.product-track-03,
.product-track-04 {
    display: grid;
    grid-auto-flow: column; 
    grid-auto-columns: calc((100% - (4 * 15px)) / 5);
    gap: 15px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}
.banner-internet {
    background-color: var(--bg-light); 
    padding: 15px;                    
    border-radius: 12px;              
    margin: 30px auto;              
}
.banner-internet img {
    width: 100%;                    
    aspect-ratio: 4 / 1;             
    object-fit: cover;              
    border-radius: 8px;          
    display: block;
}
/*New section*/
.news-section {
    padding: 40px 0;
}
.news-header {
    display: flex;
    justify-content: space-between; 
    align-items: center;           
    width: 100%;
    margin-bottom: 25px;
}
.news-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    margin: 0;
}
.news-header a {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.news-header a:hover {
    opacity: 0.8;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.news-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}
.news-card:hover {
    box-shadow: 0 10px 25px rgba(35, 83, 56, 0.12);
    border-color: var(--primary-color);
}
.news-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    display: block;
}
.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-img-wrap img {
    transform: scale(1.05);
}
.news-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 18px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.news-title-overlay h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-title-overlay i {
    color: var(--white);
    font-size: 14px;
    flex-shrink: 0;
}
.news-hover-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; 
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(5px);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
}
.news-card:hover .news-title-overlay {
    opacity: 0;
    pointer-events: none;
}
.news-card:hover .news-hover-panel {
    transform: translateY(0);
}

.news-title-hover {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 6px 0;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.news-card:hover .news-title-hover {
    color: var(--primary-color); /* Đổi sang màu chủ đạo */
}

.news-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}
.news-meta span i {
    margin-right: 4px;
    color: var(--primary-color);
}
/* Footer */
.footer {
    background-color: var(--primary-color); /* Nền màu chủ đạo #235338 */
    color: var(--white);                    /* Chữ màu trắng */
    padding-top: 50px;
    margin-top: 40px;
    font-size: 14px;
    line-height: 1.6;
}
.footer a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.25s ease;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 0.9fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}
.footer-logo {
    display: inline-block;
    background-color: var(--white); 
    padding: 8px 14px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.footer-logo img {
    max-height: 45px;
    display: block;
}
.footer-desc {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 18px;
    font-size: 13.5px;
}
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13.5px;
}
.footer-contact-list li i {
    margin-top: 4px;
    color:var(--bg-light); 
    width: 16px;
    text-align: center;
}
.footer-contact-list li a:hover {
    text-decoration: underline;
    color: #a7f3d0;
}
.footer-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
    letter-spacing: 0.5px;
}
.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13.5px;
}
.footer-links li a i {
    font-size: 11px;
    transition: transform 0.2s ease;
}
.footer-links li a:hover {
    color: var(--white);
    transform: translateX(5px);
}
.footer-social-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13.5px;
    margin-bottom: 16px;
}
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.social-item {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
}
.social-item.zalo span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.social-item:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-support-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 15px;
    border-radius: 10px;
}
.footer-support-box i {
    font-size: 24px;
    color: #a7f3d0;
}
.footer-support-box span {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}
.footer-support-box a {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.22);
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}
/*nút liên hệ */
.floating-contact {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-main-btn {
    width: 55px;
    height: 55px;
    background-color: var(--primary-color); /* Sử dụng màu chủ đạo #235338 */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(35, 83, 56, 0.4);
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.contact-main-btn:hover {
    transform: scale(1.08);
}
.contact-main-btn .main-icon-close {
    display: none;
}
.ping-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: wavePulse 2s infinite;
    z-index: -1;
}
@keyframes wavePulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}
.contact-popup {
    position: absolute;
    bottom: 65px; 
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.floating-contact:hover .contact-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.floating-contact:hover .contact-main-btn .main-icon-open {
    display: none;
}
.floating-contact:hover .contact-main-btn .main-icon-close {
    display: block;
}
.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    position: relative;
    transition: all 0.25s ease;
}
.contact-icon:hover {
    transform: scale(1.15);
    color: var(--white);
}
.contact-icon.hotline:hover { background-color: #e11d48; } 
.contact-icon.zalo:hover { background-color: #0180c7; }   
.contact-icon.facebook:hover { background-color: #1877f2; }
.contact-icon.youtube:hover { background-color: #ff0000; } 
.contact-icon.tiktok:hover { background-color: #000000; }  
.contact-icon.zalo .zalo-text {
    font-size: 11px;
    font-weight: 700;
}
.contact-icon .tooltip {
    position: absolute;
    right: 55px;
    background-color: rgba(0, 0, 0, 0.85);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}
.contact-icon .tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
    border-width: 4px 0 4px 4px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0, 0, 0, 0.85);
}
.contact-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 52px;
}
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    .top-header-contact ul {
        gap: 5px;
        font-size: 12px;
    }
    /*Menu */
    .camera-category-menu{width:calc(100% - 30px);max-height:600px}
    .camera-category-list{width:32%;flex-basis:32%;max-height:600px}
    .camera-mega-menu{width:68%;flex-basis:68%;max-height:600px}
    .camera-category-item{padding:9px 14px}
    .camera-category-item-left{gap:9px}
    .camera-category-item-left img{width:30px;height:30px;flex-basis:30px}
    .camera-category-item-left span{font-size:14px}
    .camera-mega-content{padding:22px 20px}
    .camera-mega-panel{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:20px;row-gap:25px}
    .camera-mega-column-title{font-size:14px}
    .camera-mega-column a{font-size:13px}
    /*catergory*/
    .cat-item {
        flex: 0 0 calc((100% - (5 * 15px)) / 6);
    }
    /*list sp */
    .product-track-01,
    .product-track-02,
    .product-track-03,
    .product-track-04 {
        grid-auto-columns: calc((100% - (3 * 15px)) / 4);
    }
}
@media screen and (max-width: 991px) {
    .main-header-logo img {
        height: 60px;
    }
    .top-header-contact ul {
        font-size: 10px;
    }
    .main-header-category-btn,
    .main-header-contact-btn > a {
        padding: 5px 10px;
        font-weight: 500;
        font-size: 14px;
    }
    /*Menu*/
    .camera-category-overlay{margin-top:85px;}
    .camera-category-menu{width:calc(100% - 20px);max-height:550px;}
    .camera-category-list{width:35%;flex-basis:35%;max-height:550px}
    .camera-mega-menu{width:65%;flex-basis:65%;max-height:550px}
    .camera-category-item{min-height:52px;padding:8px 11px}
    .camera-category-item-left{gap:8px}
    .camera-category-item-left img{width:27px;height:27px;flex-basis:27px}
    .camera-category-item-left span{font-size:13px}
    .camera-category-arrow{font-size:21px}
    .camera-mega-content{padding:18px 15px}
    .camera-mega-panel{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:22px}
    .camera-mega-column-title{font-size:13px}
    .camera-mega-column a{font-size:12px;padding:4px 0}
    /*catergory*/
    .cat-item {
        flex: 0 0 calc((100% - (4 * 15px)) / 5);
    }
    /*Product sale*/
    .product-box {
        grid-template-columns: 25% 75%;
        gap: 15px;
    }
    .product-left ul li {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .product-track {
        grid-auto-columns: calc((100% - (2 * 15px)) / 3);
    }
    /*list sp */
    .product-track-01,
    .product-track-02,
    .product-track-03,
    .product-track-04 {
        grid-auto-columns: calc((100% - (2 * 15px)) / 3);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}
@media screen and (max-width: 767px) {
    .main-header {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .main-header-logo {
        order: 1;
    }
    .main-header-category-btn {
        order: 2;
        margin-left: auto; 
    }
    .main-header-contact-btn {
        order: 3;
    }
    .main-header-logo img {
        height: 50px;
    }
    .main-header-search-box {
        display: none; 
    }
    .contact-text {
        right: auto;
        left: -133px;
        width: 220px;
        font-size: 12px;
    }
    .top-header-contact{
        display: none;
    }
    .top-header-message{
        width: 100%;
    }
    /*Menu MOBILE*/
    .camera-category-close {display: block;}
     .camera-category-overlay{
        position:fixed;
        inset:0;
        width:100%;
        height:100vh;
        background:rgba(0,0,0,.55);
        z-index:998;
        visibility:hidden;
        opacity:0;
        pointer-events:none;
        transition:opacity .3s ease,visibility .3s ease;
    }
    .camera-category-overlay.is-open{
        visibility:visible;
        opacity:1;
        pointer-events:auto;
    }
    .camera-category-menu{
        position:fixed;
        top:0;
        left:0;
        width:85%;
        max-width:360px;
        height:100vh;
        max-height:none;
        margin:0;
        padding:0;
        transform:translateX(-100%);
        display:block;
        visibility:hidden;
        opacity:1;
        pointer-events:none;
        z-index:999;
        background:#fff;
        border-radius:0;
        box-shadow:5px 0 25px rgba(0,0,0,.2);
        overflow:hidden;
        transition:transform .4s cubic-bezier(.22,1,.36,1),visibility .4s ease;
    }
    .camera-category-menu.is-open{
        display:block;
        visibility:visible;
        opacity:1;
        pointer-events:auto;
        transform:translateX(0);
    }
    .camera-category-list{
        width:100%;
        height:100vh;
        max-height:none;
        padding:55px 0 15px;
        border-right:0;
        overflow-y:auto;
        overflow-x:hidden;
        box-sizing:border-box;
    }
    .camera-category-item{
        width:100%;
        min-height:58px;
        padding:10px 18px;
        border-bottom:1px solid #eee;
    }
    .camera-category-item-left{
        width:100%;
        gap:12px;
    }
    .camera-category-item-left img{
        width:32px;
        height:32px;
        flex:0 0 32px;
    }
    .camera-category-item-left span{
        font-size:15px;
        font-weight:500;
        color:#333;
    }
    .camera-category-arrow{
        display:none!important;
    }
    .camera-mega-menu{
        display:none!important;
    }
    .camera-category-list>a{
        width:100%;
    }
    .camera-category-item:hover{
        background:#fff;
    }
    .camera-category-item.active{
        background:#f5f5f5;
    }
    .camera-category-item:hover .camera-category-item-left span{
        color:#333;
    }
    .camera-category-item.active .camera-category-item-left span{
        color:var(--primary-color);
    }
    .camera-category-close{
        position:absolute;
        top:0;
        right:0;
        width:50px;
        height:50px;
        display:flex;
        align-items:center;
        justify-content:center;
        border:0;
        background:var(--primary-color);
        color:#fff;
        font-size:28px;
        line-height:1;
        cursor:pointer;
        z-index:1001;
    }
    .camera-category-close:hover{
        background:var(--primary-color);
    }
    body.camera-menu-open{
        overflow:hidden;
    }
    /* Banner */
    .banner-container {
        padding: 0 10px;
        margin: 5px auto;
    }
    .banner-3d-slider {
        perspective: none;
    }
    .banner-item {
        left: 0;
        width: 100%;
        transform: none !important;
    }
    .banner-item.prev,
    .banner-item.next {
        display: none;
    }
    .banner-item.active {
        opacity: 1;
        visibility: visible;
        transform: none;
        filter: none;
    }
    .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
    .banner-item-text {
        padding: 12px 15px;
    }
    .banner-item-text h3 {
        font-size: 14px;
        margin-bottom: 2px;
    }
    .banner-item-text span {
        font-size: 11px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .banner-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    /*catergory*/
    .categories-slider-wrapper {
        padding: 0 30px;
    }
    .cat-item {
        flex: 0 0 calc((100% - (3 * 15px)) / 3);
        padding: 12px 8px;
    }
    .cat-icon-wrap {
        width: 45px;
        height: 45px;
    }
    .cat-item span {
        font-size: 12px;
    }
    /*Product sale*/
    .product-left {
        display: none;
    }
    .product-box {
        grid-template-columns: 100%;
    }
    .product-track {
        grid-auto-columns: calc((100% - (3 * 15px)) / 4);
    }
    /*review atp*/
    .short-card {
        width: 200px;
    }
    
    .shorts-header h2 {
        font-size: 17px;
    }
    /*New  */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .news-title-overlay h3 {
        font-size: 12px;
    }
    
    .news-title-hover {
        font-size: 13px;
    }
    
    .news-desc {
        font-size: 12px;
    }
    
    .news-hover-panel {
        padding: 12px;
        height: 70%; 
    }
}
@media screen and (max-width:600px){
    /*Product sale*/
    .product-track {
        gap: 10px;
        grid-auto-columns: calc((100% - (1 * 10px)) / 2);
    }
    .product-track-01,
    .product-track-02,
    .product-track-03,
    .product-track-04 {
        gap: 10px;
        grid-auto-columns: calc((100% - (1 * 10px)) / 2);
    }
    .footer {
        padding-top: 35px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
@media screen and (max-width: 390px) {
    .top-header {
        font-size: 11px;
    }
    .main-header {
        background-color: var(--);
        gap: 5px;
    }
    .main-header-category-btn,
    .main-header-contact-btn > a {
        padding: 8px 10px;
        font-size: 12px;
    }
    .contact-text {
        width: 260px;
    }
    .categories-slider-wrapper {
        padding: 0 25px;
    }
    .cat-item {
        flex: 0 0 calc((100% - (2 * 10px)) / 2);
        gap: 8px;
    }
    .cat-icon-wrap {
        width: 40px;
        height: 40px;
    }
    .cat-item span {
        font-size: 11px;
    }
    .cat-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}