html {
    scroll-behavior: smooth;
}

/* Style cho nút back-to-top của bạn (nếu chưa có) */
.back-to-top {
    position: fixed;
    /* Cố định vị trí */
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    /* Các style khác của bạn... */
}

/* --- Reset CSS & Variables --- */
:root {
    --primary-color: #a87b61;
    /* Màu nâu chủ đạo giống thiết kế */
    --text-color: #4a4a4a;
    --light-bg: #f5f5f5;
    --border-color: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ĐƯA RA NGOÀI CÙNG --- */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #a87b61;
    --text-color: #4a4a4a;
    --light-bg: #f5f5f5;
    --border-color: #eaeaea;
    --gray: #888;
    --gray-light: #f7f7f7;
    --gray-dark: #333;
}

/* --- HEADER --- */
.header {
    background-color: #fff;
    padding-top: 15px;
}

.header-main {
    padding-bottom: 15px;
}

.logo i {
    font-size: 45px;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active {
    border-bottom: 2px solid var(--primary-color);
    align-items: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    padding: 10px 15px;
    border-radius: 4px;
    width: 260px;
}

.search-bar i {
    color: #999;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
}

.user-actions {
    display: flex;
    gap: 25px;
    font-size: 20px;
    color: var(--primary-color);
}

.sub-nav {
    padding: 15px 0;
    overflow-x: auto;
}

.sub-nav ul {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.sub-nav li {
    flex: 0 0 auto;
}

.sub-nav a {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-transform: capitalize;
    white-space: nowrap;
}

.sub-nav a:hover {
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Khung chứa các slide */
.slide-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Định dạng từng ảnh */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* Giấu các ảnh đi */
    transition: opacity 0.6s ease-in-out;
    /* Hiệu ứng chuyển cảnh mượt */
    background-color: rgba(180, 150, 130, 0.2);
    background-blend-mode: multiply;
}

/* Chỉ hiện ảnh nào có class 'active' */
.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Chữ và Nút bấm phải nổi lên trên ảnh */
.hero-content {
    text-align: center;
    color: #fff;
    z-index: 3;
}

.hero-content h1 {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

.btn-buy {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-buy:hover {
    background-color: #8a654d;
    color: #fff;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 3;
    /* Nổi lên trên để click được */
}

.slider-btn:hover {
    color: var(--primary-color);
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

/* --- MAIN CONTENT (Giới thiệu & Dự án) --- */
.main-content {
    padding: 60px 0 80px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 40px;
}

.about-section {
    padding: 60px 0;
    /* Dịch toàn bộ block qua bên phải một chút bằng cách thêm padding-left, 
       đồng thời bóp nhẹ padding-right để cân đối lại không gian */
    padding-left: 40px !important;
    padding-right: 20px !important;
    
}

/* 1. Căn đều hai bên cho chữ (Justify) */
.about-section p {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    /* Ép chữ thẳng hàng đều tăm tắp ở cả 2 lề */
    color: var(--text-color);
    padding-right: 30px;
    /* Tạo khoảng trống nhỏ giữa chữ và hình */
}

/* 2. Phóng to hình ảnh và đảm bảo bo tròn/hiển thị đẹp */
.about-section img {
    width: 100%;
    /* Chiếm hết chiều rộng của cột col-lg-6 */
    height: auto;
    max-height: 450px;
    /* Bạn có thể tăng/giảm số này để chỉnh độ cao tối đa mong muốn của ảnh */
    object-fit: cover;
    /* Giúp ảnh không bị méo, móp khi phóng to */
    border-radius: 8px;
    /* Bo tròn nhẹ các góc ảnh cho hiện đại, đồng bộ với web */
    display: block;
    transition: transform 0.3s ease;
}

/* Hiệu ứng zoom nhẹ khi rê chuột vào ảnh (Tùy chọn giúp web sinh động hơn) */
.about-section img:hover {
    transform: scale(1.02);
}

.about-grid {
    /*  display: flex; */
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    text-align: justify;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-height: 300px;
    /* Ép chiều cao tối đa của ảnh thấp xuống */
    object-fit: cover;
    /* Giúp ảnh không bị méo khi bị ép chiều cao */
    display: block;
    border-radius: 8px;
    /* Tùy chọn: bo tròn 4 góc ảnh cho đẹp hơn */
}

/* Dự án (4 cột) */
.projects-grid {
    /*display: grid;
    grid-template-columns: repeat(4, 1fr);*/
    gap: 30px;
    overflow: hidden;
    /* tránh tràn */
}

.project-card {
    text-align: center;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

/* --- Responsive cơ bản --- */
@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* --- MAIN PRODUCTS SECTION --- */
.main-products-section {
    margin-top: 80px;
}

.product-category {
    margin-bottom: 60px;
}

/* ==========================================================================
   CATEGORY HEADER (TIÊU ĐỀ DANH MỤC & NÚT ĐIỀU HƯỚNG SẢN PHẨM)
   ========================================================================== */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    /* Tăng khoảng cách dưới một chút cho thông thoáng */
}

.cat-title {
    background-color: #f7f7f7;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    /* Thêm bo góc nhẹ cho khung tiêu đề Tables tinh tế hơn */
}

.cat-title i {
    color: #666;
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   CẬP NHẬT TOÀN DIỆN: ÉP HIỂN THỊ VÒNG TRÒN CHO TẤT CẢ NÚT MŨI TÊN (ALL ARROW BUTTONS)
   ========================================================================== */

/* Target chi tiết vào cả nút ở danh mục sản phẩm (.nav-arrows) và các phần khác */
.arrow-btn,
.nav-arrows .arrow-btn,
.gallery-nav .arrow-btn,
.tips-header-nav .arrow-btn {
    display: flex !important;
    /* Ép buộc sử dụng flexbox để căn giữa icon */
    align-items: center !important;
    /* Căn giữa theo chiều dọc */
    justify-content: center !important;
    /* Căn giữa theo chiều ngang */

    width: 38px !important;
    /* Ép chiều rộng cố định */
    height: 38px !important;
    /* Ép chiều cao cố định để tạo khối vuông */

    border: 1px solid #ddd !important;
    /* ĐƯỜNG VIỀN VÒNG TRÒN BAO NGOÀI MŨI TÊN */
    border-radius: 50% !important;
    /* ÉP BUỘC BO TRÒN TUYỆT ĐỐI 100% */
    background-color: #fff !important;
    /* Nền trắng để làm nổi bật đường viền */

    cursor: pointer;
    font-size: 14px;
    color: #555;
    /* Màu xám của icon mũi tên */
    transition: all 0.3s ease;
    /* Hiệu ứng mượt mà */
    box-sizing: border-box;
}

/* ==========================================================================
   HIỆU ỨNG TƯƠNG TÁC KHI RÊ CHUỘT (HOVER) CHO TẤT CẢ CÁC NÚT
   ========================================================================== */
.arrow-btn:hover,
.nav-arrows .arrow-btn:hover,
.gallery-nav .arrow-btn:hover,
.tips-header-nav .arrow-btn:hover {
    background-color: var(--primary-color) !important;
    /* Nền hóa nâu chủ đạo */
    color: #fff !important;
    /* Mũi tên hóa trắng */
    border-color: var(--primary-color) !important;
    /* Viền cũng hóa nâu đồng bộ */
    box-shadow: 0 4px 10px rgba(168, 123, 97, 0.25);
    /* Đổ bóng mờ nhẹ */
    transform: translateY(-2px);
    /* Nhích nhẹ lên trên */
}

/* Hiệu ứng khi click chuột */
.arrow-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   BỔ SUNG: HIỆU ỨNG TƯƠNG TÁC (HOVER & ACTIVE) CHO NÚT BẤM
   ========================================================================== */

/* Khi người dùng rà chuột vào nút (Hover) */
.arrow-btn:hover {
    background-color: var(--primary-color);
    /* Nền chuyển sang màu nâu chủ đạo */
    color: #fff;
    /* Icon mũi tên chuyển sang màu trắng */
    border-color: var(--primary-color);
    /* Đường viền chuyển sang màu nâu đồng bộ */
    box-shadow: 0 4px 10px rgba(168, 123, 97, 0.25);
    /* Đổ bóng mờ nhẹ màu nâu tạo độ nổi */
    transform: translateY(-2px);
    /* Nút nhích nhẹ lên trên 2px đầy tinh tế */
}

/* Khi người dùng click chuột vào nút (Active) */
.arrow-btn:active {
    transform: translateY(0);
    /* Nút lún xuống lại vị trí cũ khi nhấn */
    box-shadow: 0 2px 5px rgba(168, 123, 97, 0.15);
    /* Giảm độ đổ bóng khi nhấn */
}

/* Hiệu ứng Hover chuyên nghiệp màu nâu phối nội thất */
.arrow-btn:hover {
    background-color: var(--primary-color);
    /* Nền chuyển sang màu nâu chủ đạo */
    color: #fff;
    /* Icon chuyển sang màu trắng */
    border-color: var(--primary-color);
    /* Viền chuyển sang màu nâu cho đồng bộ */
    box-shadow: 0 4px 10px rgba(168, 123, 97, 0.2);
    /* Thêm đổ bóng mờ nhẹ khi hover cực sang */
    transform: translateY(-2px);
    /* Nút nhích nhẹ lên trên tạo cảm giác tương tác tốt */
}

/* Container bao ngoài để cố định khung nhìn */
.product-category {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Lưới Sản phẩm */
.product-grid {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    /* Đây là dòng quan trọng nhất */
    scroll-behavior: smooth;
    padding-bottom: 15px;
    scrollbar-width: none;
    /* Ẩn thanh cuộn Firefox */
}

.product-grid::-webkit-scrollbar {
    display: none;
    /* Ẩn thanh cuộn Chrome/Safari/Edge */
}

/* Phần tử sản phẩm */
.product-item {
    flex: 0 0 calc((100% - 50px) / 3);
    /* Hiện 3 sản phẩm */
    min-width: 250px;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 992px) {
    .product-item {
        flex: 0 0 calc((100% - 25px) / 2);
    }

    /* Hiện 2 sản phẩm */
}

@media (max-width: 576px) {
    .product-item {
        flex: 0 0 100%;
    }

    /* Hiện 1 sản phẩm */
}

/* Bọc hình ảnh, nhãn dán, tim */
.product-img-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #f9f9f9;
    margin-bottom: 12px;
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-item:hover .product-img-wrap img {
    transform: scale(1.05);
}

/* Badge NEW / SALE */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fff;
    color: #333;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --- ICON TRÁI TIM (LƯU SẢN PHẨM) --- */
.heart-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 18px;
    color: #888;
    /* Màu xám khi chưa lưu */
    z-index: 10;
    /* Nổi lên trên cùng để đảm bảo click được */
    cursor: pointer;
    /* Đổi con trỏ thành hình bàn tay */
    transition: all 0.3s ease;
}

.heart-icon:hover {
    color: #e74c3c;
    /* Màu đỏ khi lướt chuột qua */
}

/* MÀU ĐỎ KHI ĐÃ ĐƯỢC LƯU (Ấn vào) */
.heart-icon.saved {
    color: #e74c3c !important;
    /* Đỏ đậm luôn giữ nguyên */
    font-weight: 900;
}

/* Thông tin tên & giá sản phẩm (Giữ nguyên cấu trúc của bạn) */
.product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.product-price {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.product-price del {
    color: #999;
    font-weight: 400;
    margin-left: 8px;
    font-size: 13px;
}

/* Responsive cho Sản phẩm - ĐÃ SỬA THEO CƠ CHẾ TRƯỢT */
@media (max-width: 992px) {
    .product-item {
        /* Màn hình máy tính bảng / vừa: Trượt và hiển thị 2 sản phẩm trên một khung nhìn */
        flex: 0 0 calc((100% - 25px) / 2);
    }
}

@media (max-width: 576px) {
    .product-item {
        /* Màn hình điện thoại nhỏ: Trượt và hiển thị full 1 sản phẩm trên một khung nhìn */
        flex: 0 0 100%;
    }
}

/* --- NÚT XEM THÊM --- */
.view-more-container {
    text-align: center;
    margin: 40px 0 60px 0;
}

.view-more-link {
    font-size: 16px;
    font-weight: 600;
    color: #888;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.view-more-link:hover {
    color: var(--primary-color);
}

/* --- ĐÁNH GIÁ TỪ NGƯỜI DÙNG --- */
.reviews-section {
    margin-bottom: 60px;
}

.reviews-box {
    background-color: #eaeaea;
    /* Màu nền xám nhạt */
    display: flex;
    padding: 40px;
    gap: 40px;
    position: relative;
}

.reviews-text {
    flex: 0 0 35%;
    /* Chiếm 35% chiều rộng */
    padding-right: 20px;
}

.reviews-text h3 {
    font-size: 20px;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.reviews-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.rating-info {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.rating-info i {
    color: var(--primary-color);
    /* Màu sao */
}

/* Khu vực cuộn ảnh đánh giá */
.reviews-gallery-wrap {
    flex: 1;
    position: relative;
    overflow-x: auto;
    /* Đổi từ hidden sang auto */
    padding-bottom: 10px;
    /* Chừa chỗ cho thanh cuộn */
}

/* Tùy chỉnh làm ẩn thanh cuộn cho đẹp (tùy chọn) */
.reviews-gallery-wrap::-webkit-scrollbar {
    height: 6px;
}

.reviews-gallery-wrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.gallery-nav {
    position: absolute;
    top: -20px;
    right: 0;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.reviews-gallery img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.reviews-gallery img:hover {
    transform: scale(1.05);
}

/* Responsive cơ bản cho phần mới */
@media (max-width: 992px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-box {
        flex-direction: column;
    }

    .reviews-text {
        flex: auto;
    }
}

@media (max-width: 576px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .reviews-gallery img {
        width: 150px;
        height: 150px;
    }
}

/* --- CẬP NHẬT GIAO DIỆN ĐÁNH GIÁ --- */
.reviews-gallery {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.review-item {
    width: 250px;
    flex-shrink: 0;
}

.review-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.review-item img:hover {
    transform: scale(1.03);
}

.review-stars {
    color: var(--primary-color);
    font-size: 13px;
    margin-bottom: 10px;
}

.review-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
    text-align: justify;
}

.review-author {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-align: right;
}

/* --- ĐĂNG KÝ EMAIL --- */
.newsletter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.newsletter-content {
    flex: 0 0 50%;
}

.newsletter-content h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.newsletter-content p {
    text-align: justify;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    font-weight: 500;
}

.newsletter-form {
    display: flex;
    width: 100%;
    /* Đổi từ 450px thành 100% */
    max-width: 450px;
    /* Thêm max-width để giới hạn độ rộng trên PC */
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--primary-color);
    outline: none;
    font-size: 14px;
}

.newsletter-form button {
    padding: 0 35px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #8a654d;
}

/* --- TÍNH NĂNG NỔI BẬT --- */
.features-section {
    display: flex;
    justify-content: space-between;
    padding: 60px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 35px;
    color: #666;
}

.feature-info h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.feature-info a {
    font-size: 13px;
    color: #aaa;
    text-decoration: underline;
    transition: color 0.3s;
}

.feature-info a:hover {
    color: var(--primary-color);
}

/* --- FOOTER --- */
.footer {
    background-color: #2b2b40;
    color: #d1d1d1;
    padding: 70px 0 30px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.brand-col {
    flex: 0 0 30%;
}

/* SỬA ĐỔI: Chuyển logo ngôi nhà và chữ "House" thành hàng ngang cho gọn */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 25px;
}

/* SỬA ĐỔI: Thu nhỏ icon ngôi nhà lại một chút để cân đối với chữ */
.footer-logo i {
    font-size: 35px;
    margin-bottom: 0;
}

/* SỬA ĐỔI: Ép toàn bộ các thẻ danh sách (ul) mất dấu chấm tròn và sát lề trái */
.contact-info,
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    /* CẬP NHẬT: Chữ to hơn (từ 14px lên 16px) */
}

/* SỬA ĐỔI: Cố định chiều rộng của các icon liên hệ để chữ phía sau thẳng hàng tăm tắp */
.contact-info li i {
    width: 22px;
    /* CẬP NHẬT: Nới rộng khung để icon to không bị lẹm chữ */
    font-size: 18px;
    /* CẬP NHẬT: Icon to và rõ ràng hơn */
    text-align: center;
}

.social-links {
    margin-top: 30px;
}

.social-links p {
    margin-bottom: 10px;
    font-size: 16px;
    /* CẬP NHẬT: Chữ to hơn */
}

.social-links a {
    color: #d1d1d1;
    font-size: 26px;
    /* CẬP NHẬT: Icon mạng xã hội to hơn (từ 20px lên 26px) */
    margin-right: 15px;
    transition: all 0.3s ease;
    /* Chuyển thành all để mượt cả màu lẫn hiệu ứng di chuyển */
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    /* CẬP NHẬT: Nhích nhẹ lên khi hover nhìn xịn hơn */
}

/* Đảm bảo footer không bị tràn và các cột luôn thẳng hàng */
.footer {
    background-color: #2b2b40;
    /* Màu nền tối cho footer */
    color: #a0a0b0;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-col ul li a {
    display: inline-block;
    color: #a0a0b0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Phần footer-bottom: dùng flex-grow-1 ở HTML và căn chỉnh tại đây */
.footer-bottom {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-links a {
    color: #888;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.back-to-top {
    width: 50px;
    height: 50px;
    background-color: #fff;
    color: #2b2b40;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-container {
        flex-wrap: wrap;
        gap: 40px;
    }

    .brand-col {
        flex: 0 0 100%;
    }

    .newsletter-section {
        flex-direction: column;
        gap: 20px;
    }

    .newsletter-form {
        width: 100%;
    }

    .features-section {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Đảm bảo khung chứa ngoài cùng luôn hiển thị theo dạng block dọc */
.main-content {
    display: block;
    width: 100%;
    clear: both;
}

/* Ép các khu vực luôn tự rớt xuống dòng mới */
.main-products-section,
.design-tips-section,
.reviews-section,
.newsletter-section,
.features-section {
    width: 100%;
    clear: both;
}

.project-card,
.tip-card {
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    /* Thêm dòng này */
    border-radius: 8px;
    /* Thêm bo góc nhẹ cho hiện đại (tùy chọn) */
}

/* Ngăn chặn việc xuất hiện vạch nhấp nháy khi click vào icon/button */
.heart-icon,
.arrow-btn,
.category-header {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    user-select: none;
    /* Standard */
    outline: none;
    /* Loại bỏ đường viền xanh khi focus */
}

/* Đảm bảo khi click vào button không bị hiệu ứng chọn văn bản */
.arrow-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    outline: none;
}

/* ==========================================================================
   VÙNG ĐIỀU CHỈNH: SLIDER MẸO THIẾT KẾ & ĐÁNH GIÁ 
   ========================================================================== */

/* 1. ĐỊNH DẠNG CHUNG CHO CÁC SLIDER CUỘN NGANG */
.slider-grid,
.reviews-gallery {
    display: flex;
    gap: 25px;
    /* Giữ khoảng cách đồng bộ 25px */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Ẩn thanh cuộn trên Firefox */
}

/* Ẩn thanh cuộn trên Chrome, Safari, và Edge */
.slider-grid::-webkit-scrollbar,
.reviews-gallery::-webkit-scrollbar {
    display: none;
}

/* Khai báo chung khoảng cách cho tiêu đề Section */
.section-title {
    margin-bottom: 55px;
}


/* 2. CẤU TRÚC PHẦN MẸO THIẾT KẾ (DESIGN TIPS) */
.design-tips-section {
    position: relative;
    margin-bottom: 120px;
}

.tips-header-nav {
    position: absolute;
    top: 20px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

/* Card Mẹo vặt và định dạng ảnh không bo góc */
.tip-card {
    width: 260px;
    flex-shrink: 0;
}

.tip-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 0;
    /* Giữ nguyên không bo góc */
}

.tip-content {
    text-align: center;
    padding: 18px 10px;
}

.tip-content h4 {
    min-height: 70px;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #222;
}

.tip-content p {
    min-height: 90px;
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}


/* 3. CẤU TRÚC PHẦN ĐÁNH GIÁ (REVIEWS SLIDER) */
.reviews-section {
    position: relative;
    margin-top: 40px;
    margin-bottom: 120px;
}

.reviews-gallery-wrap {
    position: relative;
}

.review-item {
    min-width: 240px;
    flex-shrink: 0;
}

/* Định vị nút bấm để không bị che khuất */
.gallery-nav {
    position: absolute;
    top: -45px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 20;
}


/* 4. TỐI ƯU ĐỒNG BỘ NÚT ĐIỀU HƯỚNG (ARROWS NAVIGATION) */
.gallery-nav .arrow-btn,
.tips-header-nav .arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Hiệu ứng Hover dùng chung với màu nâu chủ đạo của bạn */
.gallery-nav .arrow-btn:hover,
.tips-header-nav .arrow-btn:hover {
    background: #a87b61;
    /* Màu chủ đạo phối nội thất */
    color: #fff;
    border-color: #a87b61;
}

/* ===== MŨI TÊN MẸO THIẾT KẾ ===== */

.design-tips-section {
    position: relative;
    margin-bottom: 120px;
}

.tips-header-nav {
    position: absolute;
    top: 20px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

.tips-header-nav .arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

/* ===== REVIEW SLIDER ===== */

.reviews-gallery {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.reviews-gallery::-webkit-scrollbar {
    display: none;
}

.review-item {
    min-width: 240px;
    flex-shrink: 0;
}

.reviews-gallery-wrap {
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: -55px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 50;
}

.gallery-nav .arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

/* ================= REVIEW NAV ================= */

.reviews-gallery-wrap {
    position: relative;
    padding-top: 70px;
}

.gallery-nav {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 100;
}

.gallery-nav .arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.gallery-nav .arrow-btn:hover {
    background: #a87b61;
    color: #fff;
}

/* =====================================
   FIX TRIỆT ĐỂ: XÓA DẤU "|" NHẤP NHÁY 
   ===================================== */
.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;

    /* Ngăn trình duyệt bọc khối text ảo tạo ra con trỏ nhấp nháy '|' */
    user-select: none;
    -webkit-user-select: none;
    /* Hỗ trợ trình duyệt Chrome, Safari, Edge */
    -moz-user-select: none;
    /* Hỗ trợ trình duyệt Firefox */
}

/* Định dạng các thẻ chứa icon thành các nút ấn chuyên nghiệp */
.user-actions .action-btn,
.user-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    /* Ép con trỏ chuột luôn biến thành hình bàn tay click */
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
    /* Hiệu ứng mượt mà */

    /* Chặn tuyệt đối việc hiện dấu nhấp nháy tại bản thân thẻ bấm */
    outline: none;
}

/* Hiệu ứng khi di chuột vào (Hover) */
.user-actions .action-btn:hover,
.user-actions a:hover {
    color: var(--primary-color);
    /* Đổi sang màu nâu chủ đạo của bạn khi hover */
    transform: scale(1.1);
    /* Phóng to nhẹ icon lên 1.1 lần trông rất sống động */
}

/* Hiệu ứng khi nhấn click chuột vào nút (Active) */
.user-actions .action-btn:active,
.user-actions a:active {
    transform: scale(0.95);
    /* Icon hơi co nhỏ lại tạo cảm giác nút thực sự bị ấn xuống */
}

/* Áp dụng chặn bôi đen/hiện con trỏ văn bản ảo cho cả thanh Header và Footer */
.header,
.footer {
    /* Khóa hoàn toàn con trỏ gõ văn bản "|" khi người dùng click vào chữ */
    user-select: none;
    -webkit-user-select: none;
    /* Hỗ trợ Chrome, Cốc Cốc, Edge, Safari */
    -moz-user-select: none;
    /* Hỗ trợ Firefox */
    -ms-user-select: none;
    /* Hỗ trợ IE cũ */
}

/* Định hình lại con trỏ chuột chuẩn chỉnh cho các thành phần bên trong */
.main-nav ul li a,
.footer-col ul li a{
    font-size: 14px;
}
.footer-bottom-links a,
.user-actions a {
    cursor: pointer !important;
    /* Ép buộc con trỏ chuột luôn là hình bàn tay click sạch sẽ */
    outline: none !important;
    /* Xóa bỏ đường viền nét đứt mặc định khi click chọn */
}

.footer-col h4 {
    cursor: default;
    /* Tiêu đề Footer giữ nguyên con trỏ mũi tên mặc định, không biến thành hình chữ I */
    color: #fff;
    font-size: 18px;
    /* CẬP NHẬT: Tiêu đề to hơn (từ 16px lên 18px) */
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

html,
body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- CHỈNH LOGO NGÔI NHÀ TRÊN THANH MENU --- */

/* Can thiệp trực tiếp vào thẻ <li> chứa ngôi nhà */
.main-nav ul li.d-none.d-lg-block {
    margin-right: 30px;
    /* Tăng/giảm số này để đẩy cụm chữ "Trang chủ" ra xa hoặc lại gần */
    display: flex;
    align-items: center;
    /* Đảm bảo căn giữa theo trục dọc so với menu */
}

/* Đảm bảo thẻ <a> bọc ngoài icon cũng được căn chỉnh cân đối, không bị lệch do line-height */
.main-nav ul li.d-none.d-lg-block a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* Cân bằng chiều cao với chữ "Trang chủ" bên cạnh */
}

/* Chỉnh lại kích thước ngôi nhà trên thanh menu nếu bạn muốn nó to hơn (tuỳ chọn) */
.main-nav ul li.d-none.d-lg-block i {
    font-size: 40px;
    /* Chỉnh độ to của ngôi nhà */
}


