a{
    text-decoration : none;
}

/* --- Style Header 1 Updated --- */

/* 1. Top Bar */
.header1-topbar {
    background-color: #1a1a2e;
    font-size: 0.9rem;
    color: white;
    border-bottom: 1px solid #ffaa00;
}

/* 2. Main Header */
.header1-main {
    border-bottom: 1px solid #eee; /* Đường kẻ mờ ngăn cách với menu */
}

/* Logo */
.header1-logo img {
    height: 70px;
    width: 100%;
}

/* Nút 3 gạch trên Mobile */
.header1-toggler-icon {
    font-size: 24px;
    color: #333333;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Thanh tìm kiếm */
.header1-search-form {
    position: relative;
    background-color: #f7f7f7;
    border-radius: 50px;
    padding: 5px;
}
.header1-search-form input {
    background-color: transparent !important;
    box-shadow: none !important;
}
.header1-search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff9100;
}

/* Hotline Box */
.header1-hotline-box .icon-wrap , .header1-hotline-box .icon-wrap i {
    width: 45px;
    height: 45px;
    background-color: #1a1a2e;
    color: #ff7700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* 3. Navigation Bar */
.header1-navbar {
    background-color:#1a1a2e;
    padding: 0;
}

/* Link Menu cấp 1 */
.header1-navbar .nav-link {
    font-size: 0.95rem;
    padding: 12px 15px !important; /* Tăng khoảng cách bấm cho dễ */
    transition: color 0.3s;
}
.header1-navbar .nav-link:hover {
    color: #ff7700 !important;
}

/* --- CUSTOM DROPDOWN  --- */
.header1-navbar .dropdown-menu {
    border-radius: 10px; /* Bo tròn khung dropdown */
    padding: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Đổ bóng mềm mại */
    min-width: 200px;
}

/* Item trong Dropdown */
.header1-navbar .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 6px; /* Bo góc từng item */
    color: #555;
    transition: all 0.2s;
}

.header1-navbar .dropdown-item:hover {
    background-color: #fff4e6; /* Màu nền cam nhạt khi hover */
    color: #e67e22; /* Chữ chuyển màu cam */
    padding-left: 20px; /* Hiệu ứng đẩy chữ sang phải nhẹ */
}

.header1-navbar .dropdown-divider {
    border-top-color: #f0f0f0;
}

/* Nút Khuyến mãi */
.header1-btn-promo {
    border: 1px solid #e67e22;
    color: #5e1d1d;
    border-radius: 8px;
    padding: 8px 15px;
    white-space: nowrap;
    transition: all 0.3s;
}
.header1-btn-promo:hover {
    background-color: #e67e22 !important;
    color: white !important;
    border-color: #e67e22;
}
.header1-btn-promo:hover i {
    color: white !important;
}

.header1-btn-promo:hover span {
    color: white !important;
}

/* --- Responsive Mobile Tweaks --- */
@media (max-width: 768px) {
    .header1-navbar {
        background-color: #1a1a2e; /* Trên mobile nền trắng cho menu dễ nhìn */
    }
    .header1-navbar .nav-link {
        border-bottom: 1px solid #f5f5f5; /* Kẻ dòng giữa các menu */
        padding: 15px !important;
    }
    .header1-navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 20px; /* Thụt đầu dòng cho dropdown con */
        background-color: #fafafa;
    }
}



/* ---                                ------------CAROUSEL------------------                                       --- */

/* 1. Thiết lập chung */
.carousel2-section {
    position: relative;
}

/* 2. Ảnh Slide */
.carousel2-img {
    height: 650px; /* Chiều cao cố định của slide */
    object-fit: cover; /* Cắt ảnh tự động để lấp đầy khung */
    object-position: center;
}

/* 3. Lớp phủ tối (Overlay) - Tạo nền đen mờ để chữ trắng dễ đọc */
.carousel2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Đen mờ 50% */
    z-index: 1;
}

/* Caption nổi lên trên lớp phủ */
.carousel-caption {
    z-index: 2;
    bottom: 0; /* Căn giữa theo chiều dọc nhờ flexbox trong HTML */
}

/* 4. Typography (Chữ) */
/* Font có chân cho tiêu đề lớn (giống ảnh mẫu) */
.carousel2-title {
    font-family: 'Times New Roman', Times, serif; /* Hoặc dùng 'Playfair Display' nếu có Google Fonts */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Bóng chữ nhẹ */
    line-height: 1.2;
}

/* Subtitle nhỏ bên trên */
.ls-3 {
    letter-spacing: 3px; /* Giãn cách chữ rộng ra */
    font-size: 0.9rem;
    color: #ff7700 !important; /* Màu vàng trầm */
}

/* Mô tả */
.text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important; /* Trắng mờ */
    font-size: 1.1rem;
}

/* 5. Nút bấm (Button) */
.carousel2-btn {
    background-color: #ff7700;
    color: #fff;
    border: 2px solid #ff7700;
    padding: 12px 40px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.carousel2-btn:hover {
    background-color: transparent; /* Hover thành nền trong suốt */
    border-color: #ff7700; /* Viền trắng */
    color: #fff;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .carousel2-img {
        height: 500px; /* Giảm chiều cao trên điện thoại */
    }
    .carousel2-title {
        font-size: 2.5rem; /* Giảm cỡ chữ tiêu đề */
    }
    .ls-3 {
        letter-spacing: 1px;
    }
}
/* --- ANIMATION CHO CAROUSEL 2 --- */

/* 1. Định nghĩa Keyframes (Cách chuyển động) */

/* Hiệu ứng 1: Trượt nhẹ từ dưới lên và hiện dần (Fade In Up) */
@keyframes fadeInUpSmooth {
    from {
        opacity: 0;
        transform: translateY(30px); /* Bắt đầu ở vị trí thấp hơn 30px */
        filter: blur(5px); /* Mờ nhẹ lúc bắt đầu */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Kết thúc ở vị trí chuẩn */
        filter: blur(0);
    }
}

/* Hiệu ứng 2: Zoom chậm hình nền (Ken Burns Effect) */
@keyframes kenBurnsSlow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1); /* Phóng to nhẹ lên 110% */
    }
}

/* 2. Áp dụng Animation khi Slide được kích hoạt (.active) */

/* --- A. Ẩn các phần tử nội dung trước khi slide hiện --- */
/* Mục đích: Để tránh việc nội dung bị nháy trước khi animation bắt đầu */
.carousel-caption h6,
.carousel-caption h1,
.carousel-caption p,
.carousel-caption .btn {
    opacity: 0;
}

/* --- B. Kích hoạt animation cho nội dung --- */
/* 'forwards' giúp giữ nguyên trạng thái cuối cùng (hiện rõ) sau khi chạy xong */

/* Subtitle (Tinh hoa trà Việt...) */
.carousel-item.active .carousel-caption h6 {
    animation: fadeInUpSmooth 0.8s ease-out forwards;
    animation-delay: 0.3s; /* Xuất hiện sau 0.3s */
}

/* Title lớn */
.carousel-item.active .carousel-caption h1 {
    animation: fadeInUpSmooth 0.8s ease-out forwards;
    animation-delay: 0.5s; /* Xuất hiện sau 0.5s */
}

/* Mô tả (Đoạn văn) */
.carousel-item.active .carousel-caption p {
    animation: fadeInUpSmooth 0.8s ease-out forwards;
    animation-delay: 0.7s; /* Xuất hiện sau 0.7s */
}

/* Nút bấm */
.carousel-item.active .carousel-caption .btn {
    animation: fadeInUpSmooth 0.8s ease-out forwards;
    animation-delay: 0.9s; /* Xuất hiện cuối cùng */
}

/* --- C. Kích hoạt animation cho ảnh nền --- */
/* Chỉ áp dụng cho slide đang active để tiết kiệm tài nguyên */
.carousel-item.active .carousel2-img {
    animation: kenBurnsSlow 20s linear infinite alternate; 
    /* 20s: rất chậm, alternate: zoom vào rồi lại zoom ra */
}

/* --- MOBILE: Tắt hoặc giảm nhẹ animation trên điện thoại --- */
@media (max-width: 768px) {
    /* Tắt hiệu ứng zoom nền trên mobile cho đỡ lag */
    .carousel-item.active .carousel2-img {
        animation: none;
    }
    /* Giảm thời gian delay trên mobile cho nhanh hơn */
    .carousel-item.active .carousel-caption h6 { animation-delay: 0.1s; }
    .carousel-item.active .carousel-caption h1 { animation-delay: 0.2s; }
    .carousel-item.active .carousel-caption p { animation-delay: 0.3s; }
    .carousel-item.active .carousel-caption .btn { animation-delay: 0.4s; }
}




/*                                         Tiện ích                                 */

.tienich1-box {
        background: white;
        padding: 20px;
        border-radius: 10px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        height: 100%;
        border: 1px solid #eee;
    }
    .tienich1-icon {
        font-size: 2rem;
        color: #ffaa00;
        margin-bottom: 10px;
    }







    /*                                         Product 1 (Flash Sale)                                */


.product1-section {
    background: linear-gradient(180deg, #fff5eb 0%, #ffffff 100%); /* Nền chuyển màu nhẹ */
}

/* Tiêu đề */
.product1-title {
    color: #e67e22; /* Màu cam chủ đạo */
    font-weight: 700;
}
.product1-title .diamond {
    font-size: 0.8em;
    vertical-align: middle;
}

/* Bộ đếm ngược */
.countdown-item {
    background-color: #e55325; /* Nền cam đậm giống ảnh */
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.countdown-item .num {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}
.countdown-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Card Sản phẩm */
.product1-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    border-bottom: 3px solid #e55325; /* Viền cam dưới đáy giống ảnh */
}
.product1-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* Khung ảnh */
.product1-img-box {
    position: relative;
    overflow: hidden;
}
.product1-img-box img {
    aspect-ratio: 3/4; 
    width: 100%;
    object-fit: cover; /* Giữ ảnh lấp đầy khung mà không bị méo */
    display: block;
}

/* Icon Wishlist (Trái tim) */
.product1-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}
.product1-wishlist:hover {
    color: red;
}

/* --- HIỆU ỨNG HOVER LIÊN HỆ --- */
.product1-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Lớp phủ mờ nhẹ */
    display: flex;
    align-items: center; /* Căn giữa dọc */
    justify-content: center; /* Căn giữa ngang */
    opacity: 0; /* Ẩn mặc định */
    transition: all 0.3s ease;
    z-index: 3;
}

/* Nút Liên Hệ */
.product1-btn-contact {
    background-color: #e55325;
    color: #fff;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transform: translateY(20px); /* Dịch xuống dưới một chút */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(229, 83, 37, 0.4);
}
.product1-btn-contact:hover {
    background-color: #d35400;
    color: #fff;
}

/* Khi hover vào Card -> Hiện overlay và nút */
.product1-card:hover .product1-overlay {
    opacity: 1;
}
.product1-card:hover .product1-btn-contact {
    transform: translateY(0); /* Nút trượt lên vị trí giữa */
}

/* Thanh tiến trình (Đã bán) */
.product1-progress {
    border-radius: 10px;
    overflow: hidden;
    background-color: #fcece8; /* Nền hồng nhạt */
}
.product1-sold-text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    z-index: 2;
}


/* --- Style Product 2  --- */

.product2-section {
    background-color: #fff;
}

/* 1. Cột Banner Trái */
.product2-banner img {
    object-fit: cover;
    /* Giữ ảnh banner luôn đẹp dù màn hình co giãn */
    max-height: 500px; 
}

/* 2. Tiêu đề */
.product2-title {
    color: #e67e22; /* Màu cam */
    font-size: 1.8rem;
}
.product2-title .diamond {
    font-size: 0.7em;
    vertical-align: middle;
}

/* 3. Card Sản phẩm */
.product2-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

/* Hiệu ứng hover lên card: Nổi lên và đổ bóng */
.product2-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: #ffe0b2; /* Viền chuyển màu cam nhạt */
}

/* Ảnh sản phẩm */
.product2-img-box {
    position: relative;
    overflow: hidden;
}
.product2-img-box img {
    /* Tỷ lệ 1/1 (Vuông) giống mẫu thiết kế */
    aspect-ratio: 1/1; 
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product2-card:hover .product2-img-box img {
    transform: scale(1.05); /* Zoom nhẹ ảnh khi hover */
}

/* Nút Wishlist (Trái tim) */
.product2-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #888;
    cursor: pointer;
}
.product2-wishlist:hover {
    color: #ff4757; /* Tim đổi màu đỏ khi hover */
}

/* Tên và giá */
.product2-name {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 5px;
}
.product2-price {
    color: #e55325 !important; /* Màu cam đỏ đậm */
    font-size: 1rem;
}

/* 4. Nút Xem tất cả */
.product2-btn-all {
    background-color: #e67e22;
    color: #fff;
    font-weight: 600;
    border: none;
    transition: background 0.3s;
}
.product2-btn-all:hover {
    background-color: #d35400;
    color: #fff;
}

/* Responsive: Trên mobile banner sẽ nằm trên, sản phẩm nằm dưới */
@media (max-width: 992px) {
    .product2-banner {
        height: 300px !important; /* Giới hạn chiều cao banner trên mobile */
        margin-bottom: 20px;
    }
}


/* --- STYLE TINTUC 1 (BLOG & SỰ KIỆN) --- */

.tintuc1-section {
    background-color: #ffffff; /* Nền trắng sạch */
}

/* 1. Header Section (Đồng bộ style cũ) */
.tintuc1-subtitle {
    font-family: 'Segoe UI', sans-serif;
    color: #ffaa00;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.tintuc1-title {
    font-family: 'Times New Roman', serif;
    color: #ffaa00;
    font-size: 2.5rem;
}

.tintuc1-divider {
    width: 60px;
    height: 3px;
    background-color: #ffaa00;
}

.tintuc1-view-all {
    color: #ffaa00;
    transition: color 0.3s;
}
.tintuc1-view-all:hover {
    color: #ff7b00;
}

/* 2. Card Bài viết */
.tintuc1-card {
    border: none;
    transition: transform 0.3s;
}

/* Khung ảnh & Hiệu ứng */
.tintuc1-img-wrap {
    height: 240px; /* Chiều cao cố định cho ảnh */
    width: 100%;
}

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

/* Hover vào bài viết -> Phóng to ảnh nhẹ */
.tintuc1-card:hover .tintuc1-img-wrap img {
    transform: scale(1.1);
}

/* Tag (Sự kiện, Kiến thức...) */
.tintuc1-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffaa00 !important; /* Chữ tag màu nâu */
}

/* 3. Nội dung bài viết */
.tintuc1-date {
    color: #999;
}

.tintuc1-post-title {
    font-family: 'Times New Roman', serif;
    font-size: 1.4rem;
    line-height: 1.4;
}

.tintuc1-post-title a {
    color: #333;
    transition: color 0.3s;
}

.tintuc1-card:hover .tintuc1-post-title a {
    color: #ffaa00; /* Hover tiêu đề chuyển nâu */
}

.tintuc1-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Cắt dòng nếu dài quá 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nút Đọc thêm */
.tintuc1-read-more {
    color: #ffaa00;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 2px;
}

/* Hiệu ứng gạch chân chạy khi hover nút Đọc thêm */
.tintuc1-read-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffaa00;
    transition: width 0.3s;
}

.tintuc1-read-more:hover::after {
    width: 100%; /* Gạch chân chạy full chiều dài */
}


/* --- Style Email 1 --- */

.email1-section {
    background-color: #ffaa00; 
    padding: 40px 0;
    color: #ffffff;
}

/* Tiêu đề */
.email1-title {
    font-weight: 700;
    font-size: 1.75rem;
    margin-bottom: 5px;
}

/* Dòng mô tả nhỏ */
.email1-desc {
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Tùy chỉnh khung input và nút bấm */
.email1-form .input-group {
    background-color: #fff;
    border-radius: 50px; /* Bo tròn toàn bộ khung */
    padding: 3px; /* Tạo khoảng hở nhỏ nếu muốn, hoặc bỏ đi */
    overflow: hidden;
}

/* Ô nhập liệu */
.email1-form .form-control {
    border: none;
    background: transparent;
    padding-left: 20px;
    height: 45px; /* Chiều cao ô nhập */
    box-shadow: none !important; /* Bỏ viền xanh khi click */
}

/* Nút Đăng ký (Màu đen) */
.email1-form .email1-btn {
    background-color: #000000;
    color: #ffffff;
    font-weight: 700;
    padding: 0 30px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    border-top-left-radius: 50px; /* Bo tròn nút để nó khớp với khung */
    border-bottom-left-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.email1-form .email1-btn:hover {
    background-color: #333; /* Màu xám đen khi di chuột */
    color: #fff;
}

/* Responsive: Trên mobile thì form dãn rộng ra */
@media (max-width: 768px) {
    .email1-form .input-group {
        width: 100%;
    }
}


footer {
    background-color:  #1a1a2e;
    color: #ffffff;
    padding: 60px 0 20px;
}
footer h5 { color: #ffaa00; margin-bottom: 20px; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 10px; }
footer a { color: #ffffff; text-decoration: none; transition: 0.3s; }
footer a:hover { color: #ffaa00; }

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-section { height: 70vh; }
}