/* header.css */
@import "root.css";

.main-site-header {
    width: 100%;
}

/* --- TẦNG 1: MAROON BAR --- */
.header-top-bar {
    background-color: var(--primary-maroon);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-toggle::after {
    display: none !important;
}

.header-top-bar .small-menu{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 16px;
}


.header-top-bar .small-menu a,
.header-top-bar .menu a{
    font-size: 13px;
    font-weight: 400;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.header-top-bar .small-menu a:hover,
.header-top-bar .menu a:hover{
    color: var(--accent-gold) !important;
}


.header-top-bar .menu .dropdown-menu {
    min-width: 200px;
}

@media (max-width: 1400px) {
    .header-top-bar a .menu-label{
        font-size: 11px;
    }

    .nav-item  .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .header-top-bar a .menu-label{
        font-size: 9px;
    }

    .header-top-bar .logo{
        height: 35px;
    }
    .nav-item  .nav-link {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .header-top-bar .logo{
        height: 30px;
    }
    .site-footer .footer-logo img {
        height: 55px;
    }
}

@media (max-width: 325px) {
    .header-top-bar .logo{
        height: 25px;
    }
    .site-footer .footer-logo img {
        height: 45px;
    }
}


/* --- TẦNG 2: WHITE NAVBAR --- */
.navbar-desktop {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.desktop-menu-list {
    position: relative;
    display: flex;
    gap: 30px;
}

/* Desktop Nav */
.navbar-desktop {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    padding: 12px 0;
}

.nav-link {
    font-family: var(--font-btn);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
}

/* Active & Hover State */
.nav-item:hover .nav-link,
.nav-item.active .nav-link {
    color: var(--primary-maroon);
}

.nav-item.active {
    border-bottom: solid 3px var(--primary-maroon);
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-maroon);
    z-index: 1000;
    padding: 30px;
}

.nav-item:hover .mega-menu { display: block; }

.mega-title a {
    font-family: var(--font-btn);
    font-weight: bold;
    color: var(--primary-maroon);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.mega-list { list-style: none; padding: 0; }
.mega-list a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    display: block;
    padding: 4px 0;
}
.mega-list a:hover { color: var(--accent-gold); }


/* Mobile Nav Custom */
.account-mobile-section {
    background-color: #f8f9fa;
}

.mobile-nav-links .nav-link {
    color: #333;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-nav-links .nav-link:active {
    background-color: rgba(0,0,0,0.05);
}
.mobile-nav-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-family: var(--font-btn);
}
.mobile-nav-item a {
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    width: 100%;
}

/* --- MOBILE ELEMENTS --- */
.square-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: transparent;
    color: white;
}

.badge-cart {
    color: #ffffff !important;
    font-size: 10px;
}

.offcanvas-title {
    font-family: var(--font-btn);
    font-weight: bold;
}


/* Footer Styles */
.site-footer {
    background-color: var(--primary-maroon);
    background-image: url('/plugins/VGS_Ecommerce/asset/image/lotus-pattern.jpg');
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
    padding: 60px 0 20px;
    font-family: var(--font-btn); /* Font yêu cầu */
}

.footer-logo {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 30px;
}

.footer-logo img {
    height: 80px;
}

.footer-title {
    /* Đường dẫn đến ảnh vân vàng của bạn */
    background-image: url('/plugins/VGS_Ecommerce/asset/image/gold-texture.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;

    /* Kỹ thuật đổ nền vào chữ */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    display: inline-block;
}

.footer-subtitle {
    font-size: 14px;
    color: var(--text-white);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-info,
.footer-links{
    font-family: var(--font-main);
}

.footer-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    color: #FFFFFF;
    font-size: 18px;
    width: 35px;
    height: 35px;
    border: 1px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .footer-col {
        text-align: left;
        margin-bottom: 40px;
    }

    .footer-logo img {
        height: 60px;
    }

    .footer-main-content {
        padding: 0 15px;
    }
}

/* --- STICKY HEADER --- */
.main-site-header {
    transition: all 0.3s ease;
    width: 100%;
    z-index: 1000;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Đảm bảo nội dung không bị nhảy khi header cố định */
body.header-is-sticky {
    padding-top: 140px; /* Điều chỉnh con số này bằng chiều cao header của bạn */
}

/* --- FIXED CONTACT BUTTONS --- */
.fixed-contact-group {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.contact-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-maroon);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    border: solid 1px #fff800;
}

.contact-item:hover{
    transform: scale(1.2);
    animation: quickShake 2s infinite;
}

.contact-item img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
}

/* CSS cho SVG chữ cong */
.contact-label-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Để không chặn sự kiện click vào link */
    z-index: 1;
}

.contact-label-svg text {
    fill: #ffffff; /* Màu chữ trắng */
    font-size: 14px; /* Kích thước chữ nhỏ để vừa cung tròn */
    font-weight: bold;
    font-family: Arial, sans-serif; /* Hoặc font hệ thống rõ nét */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nút Scroll Top */
.scroll-top-btn {
    background: #fff;
    color: var(--primary-maroon);
    border: 1px solid var(--primary-maroon);
    display: none; /* Ẩn mặc định, hiện khi scroll */
}

.scroll-top-btn:hover {
    background: var(--primary-maroon);
    color: #fff;
}

@keyframes quickShake {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1) rotate(3deg); }
    20%, 40% { transform: scale(1.1) rotate(-3deg); }
}

.section-title {
    font-family: var(--font-btn);
    font-size: 32px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 767px) {
    .section-title {
        font-size: 20px;
    }
}

.line {
    width: 248px;
    height: 0px;

    border: 1px solid var(--primary-maroon);
}

/* --- Featured News Section --- */
.featured-news {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.news-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--accent-gold);
}

.news-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.1);
}

.news-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-family: var(--font-btn);
    font-size: 16px;
    color: #18181B;
    font-weight: 600;
    line-height: 1.4;
    min-height: 44px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    font-size: 14px;
    color: #52525C;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-maroon);
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    /* Giới hạn 2 dòng văn bản */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.news-date {
    font-size: 12px;
    color: #999;
}

.news-more {
    font-size: 13px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}

.news-more span {
    font-size: 10px;
    margin-left: 4px;
}

/* Tùy chỉnh nút Swiper cho tiệp màu thiết kế */
.newsSwiper {
    padding: 20px 10px;
}

/* Responsive */
@media (max-width: 767px) {
    .featured-news { padding: 40px 0; }
    .news-title { font-size: 15px; }
}

.swiper-button-next,
.swiper-button-prev {
    color: #3E0A10;
    background: #FFFFFF;
    border: 1px solid #E4E4E7;
    box-shadow: 0px 4px 8px -2px rgba(10, 13, 18, 0.1), 0px 2px 4px -2px rgba(10, 13, 18, 0.06);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}

.swiper-button-next {
    right: var(--swiper-navigation-sides-offset, 65px);
}

.swiper-button-prev {
    left: var(--swiper-navigation-sides-offset, 65px);
}


.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #FFFFFF;
    background: #3E0A10;
    transform: scale(1.2);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 1) !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    background: var(--bg-light) !important;
    opacity: 1 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

@media (max-width: 1440px) {
    .swiper-button-next {
        right: var(--swiper-navigation-sides-offset, 10px) !important;
    }

    .swiper-button-prev {
        left: var(--swiper-navigation-sides-offset, 10px) !important;
    }
}

.swiper-pagination-bullet-active {
    width: 25px;
    border-radius: 10px;
    background: var(--bg-light);
}

/* --- HERO BANNER --- */
.hero-banner {
    position: relative;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: 412px;
    display: block;
    object-fit: cover;
}

/* Ẩn nút điều hướng mặc định */
.hero-banner .swiper-button-next,
.hero-banner .swiper-button-prev {
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #adabab;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

@media (max-width: 1440px) {
    .hero-banner img {
        height: 350px;
    }
}

@media (max-width: 991px) {
    .hero-banner img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero-banner img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-banner img {
        height: 150px;
    }
}

@media (max-width: 375px) {
    .hero-banner .swiper-button-next,
    .hero-banner .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .hero-banner img {
        height: 130px;
    }
}

.hero-banner .swiper-button-next::after,
.hero-banner .swiper-button-prev::after {
    font-size: 12px;
    font-weight: bold;
}

/* Hiện nút khi hover */
.hero-banner:hover .swiper-button-next,
.hero-banner:hover .swiper-button-prev {
    opacity: 1;
}

.hero-banner:hover .swiper-button-next {
    right: 6%;
}

.hero-banner:hover .swiper-button-prev {
    left: 6%;
}

.hero-banner .swiper-button-next:hover,
.hero-banner .swiper-button-prev:hover {
    color: var(--primary-maroon);
    background: #fff;
    transform: scale(1.2);
}

/* --- END HERO BANNER --- */
