body {
    font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
}

.container {
    max-width: 1400px !important;
}

#carouselExampleIndicators {
    width: 100%;
    max-height: unset;
    overflow: hidden;
}


.carousel-inner {
    width: 100%;
    height: auto;
    /* Không gò ép chiều cao */
}

.custom-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Đảm bảo ảnh không bị cắt */
}



/* Đảm bảo phần inner chiếm toàn bộ không gian */
.carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 900;
    /* Tự co giãn theo tỷ lệ */
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ảnh luôn lấp đầy, không chừa viền */
    display: block;
}


/* Tăng kích thước button điều hướng */
.carousel-control-prev,
.carousel-control-next {
    width: 80px;
    /* Button to hơn */
    height: 100%;
}

/* Giữ icon nhỏ hơn với padding */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 15px;
    width: 40px;
    height: 40px;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Làm mờ nền */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

/* Đảm bảo nội dung content nằm trong caption */
.carousel-caption .content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Chỉnh sửa phần chữ và nút */
.text-xl-carousel {
    font-size: 24px;
}

.text-xl-small {
    font-size: 16px;
    max-width: 600px;
    /* Giữ text không quá dài */
    text-align: center;
}

.view-more-btn {
    margin-top: 10px;
    background-color: #1472BA;
    /* Màu cam */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.0.5s ease;
}

.view-more-btn:hover {
    background-color: #D46828;
    /* Cam đậm hơn */
    transform: scale(1.05);
    /* Hiệu ứng phóng to nhẹ */
}

.view-more-btn:active {
    background-color: #B85520;
    /* Cam đậm hơn nữa khi bấm */
    transform: scale(0.98);
    /* Hiệu ứng nhấn */
}


/* Responsive cho mobile */
@media (max-width: 768px) {
    .carousel-caption {
        font-size: 14px;
        padding: 10px;
    }

    .view-more-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 100%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 10px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 823px) {
    .language {
        display: none;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.pulse-wave::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #2196f3;
    /* Màu cam mờ */
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-out;
}

/* Hiệu ứng rung */
@keyframes shake {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

.shake-animation i {
    animation: shake 0.5s infinite alternate ease-in-out;
}

.fixed {
    position: fixed !important;
    bottom: 16px !important;
    /* Luôn nằm ở góc phải dưới */
    right: 16px !important;
    z-index: 999 !important;
    /* Tăng độ ưu tiên hiển thị */
}

#search-box,
#filter-container {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.scale-x-0 {
    transform: scaleX(0);
    opacity: 0;
}

.scale-y-0 {
    transform: scaleY(0);
    opacity: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.language-group:hover>div {
    display: block !important;
}

#product-menu {
    position: absolute;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Ngăn chặn hover/click khi ẩn */

    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    /* Thêm hiệu ứng trượt */
}

#product-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fade-in-top {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-out 0.5s, transform 0.5s ease-out 0.5s;
}

.fade-in-bottom {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out 0.5s, transform 0.5s ease-out 0.5s;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out 0.5s, transform 0.5s ease-out 0.5s;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease-out 0.5s, transform 0.5s ease-out 0.5s;
}

.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}
