﻿/* Hiệu ứng nổi sản phẩm khi hover */
.room-item {
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.11);
    overflow: hidden;
    position: relative;
}

    .room-item:hover {
        transform: translateY(-8px); /* nổi lên */
        box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* đổ bóng mạnh hơn */
        z-index: 10;
    }

    .room-item img {
        transition: all 0.3s ease;
    }

    .room-item:hover img {
        transform: scale(1.05); /* phóng to nhẹ ảnh */
    }

    /* Bỏ gạch chân khi hover */
    .room-item a {
        text-decoration: none;
        color: inherit;
    }

        .room-item a:hover {
            text-decoration: none;
        }

    /* Thêm hiệu ứng sáng nền */
    .room-item::after {
        content: "";
        position: absolute;
        inset: 0;
        /* background: linear-gradient(to top, rgba(0,0,0,0.3), transparent); */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .room-item:hover::after {
        opacity: 1;
    }

    .room-item img {
        width: 100%;
        aspect-ratio: 1 / 1; /* giữ hình vuông */
        object-fit: cover; /* ảnh lấp đầy khung, không méo */
        border-radius: 8px;
        display: block;
    }
/* Khung chứa ảnh — căn giữa ảnh */
.image-wrapper {
    width: 100%;
    height: 296px; /* chiều cao khung */
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    overflow: hidden;
}

    /* Ảnh tỉ lệ tự nhiên, căn giữa */
    .image-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

/* Nếu bạn muốn giảm chiều cao ảnh khi màn hình nhỏ hơn */
@media (max-width: 768px) {
    .room-item img {
        aspect-ratio: 4 / 3; /* chuyển thành hình chữ nhật cân đối */
    }
}

@media (max-width: 576px) {
    .room-item img {
        aspect-ratio: 16 / 9; /* ngang hơn, phù hợp mobile */
    }
}
/* Ẩn mặc định */
#header-carousel111 .carousel-control-prev,
#header-carousel111 .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Khi hover mới hiện */
#header-carousel111:hover .carousel-control-prev,
#header-carousel111:hover .carousel-control-next {
    opacity: 1;
}
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

/* Ảnh sản phẩm */
.product-image {
    height: 296px;
    width: 247px;
    object-fit: cover;
    border-radius: 8px;
}

/* Giá sản phẩm hiển thị khi hover */
.price-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(36, 60, 147, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

/* Khi hover vào card thì hiện giá */
.product-card:hover .price-tag {
    opacity: 1;
    transform: translateY(0);
}


.logo-wrapper {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    overflow: hidden;
}

.brand-logo {
    max-height: 160px;
    max-width: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover: logo phóng nhẹ + đổi màu chữ */
a:hover .brand-logo {
    transform: scale(1.08);
}

a .room-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a:hover .room-item {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

a .room-item h7, a .room-item h6 {
    color: #333;
    transition: color 0.3s ease;
    font-weight: 500;
}
/* Khi hover vào thẻ a hoặc card thì chữ đổi sang màu xanh thương hiệu */
a:hover .room-item h7, a:hover .room-item h6 {
    color: #243c93; /* 🔵 màu xanh thương hiệu của bạn */
    text-decoration: none;
    font-weight:700;
}
.view-all-btn {
    display: block;
    width: 95%;
    background-color: #1a3c92; /* xanh đậm */
    color: #fff;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 15px;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 5px;
    margin:30px;
    margin-top:10px;
}

    /* hiệu ứng hover */
    .view-all-btn:hover {
        background-color: #264fc2; /* xanh sáng hơn khi hover */
        transform: translateY(-1px);
        color: #fff;
        font-weight:700;
    }

    /* icon chỉnh căn đều */
    .view-all-btn i {
        margin-left: 6px;
    }
.radi-5 {
    border-radius: 5px;
}
.newsClass {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

