/* Custom CSS - Navbar Text Color */
.nav-bar .link {
    color: #2d3436 !important;
}

.nav-bar .link:hover {
    color: var(--primary_color) !important;
}

/* Custom CSS - Cart Button Style như Login Button */
.cart-btn .btn-outline-light {
    border-color: var(--primary_color);
    color: var(--primary_color);
    background-color: transparent;
}

.cart-btn .btn-outline-light:active,
.cart-btn .btn-outline-light:focus,
.cart-btn .btn-outline-light:hover {
    background-color: var(--primary_color);
    border-color: var(--primary_color);
    color: #fff;
}

/* Chế độ máy tính (Desktop) - từ 992px trở lên */
@media (min-width: 992px) {
    .nav-bar.nav-bar-sm .drop-down .drop-down-btn {
        color: #ffffff !important;
        transition: transform 0.2s ease;
    }

    .nav-bar.nav-bar-sm .drop-down .drop-down-btn:hover {
        color: #ffffff !important;
        transform: translateY(-2px);
        transition: transform 0.2s ease;
    }
}

/* Chế độ Phone/Tablet (Mobile) - dưới 992px */
@media (max-width: 991px) {
    .nav-bar.nav-bar-sm .drop-down .drop-down-btn {
        color: var(--text_muted);
        transition: color 0.2s ease;
    }

    .nav-bar.nav-bar-sm .drop-down .drop-down-btn:hover {
        color: var(--primary_color);
        transition: color 0.2s ease;
    }
}


/* Custom CSS - Search Form Reverse: Placeholder & Icon Color */
.form-search.form-search-reverse .form-control::placeholder {
    color: #2d3436 !important;
}

.form-search.form-search-reverse button,
.form-search.form-search-reverse .icon {
    color: #2d3436 !important;
}

/* Custom CSS - Reduce Nav 2nd Height */
.nav-bar.nav-bar-sm .nav-bar-container {
    height: 48px !important;
}
.form-search.form-search-reverse .form-control {
    height: 39px !important;
    /*padding: 8px 16px !important;*/
    border: 1px solid var(--primary_color) !important;
}

.form-search.form-search-reverse .form-control:focus {
    border-color: var(--primary_color) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 116, 190, 0.15) !important;
}

.nav-bar .drop-down .drop-down-btn {
    color: #2d3436 !important;
}

.nav-bar .drop-down .drop-down-btn:hover {
    color: #2d3436 !important;
}

/* Screenshot Swiper Thumbnails - Tỉ lệ 4:3 cho các ảnh nhỏ phía dưới */
.itemSwiper .swiper-slide {
    position: relative;
    width: 104px !important;
    height: 78px !important;
    overflow: hidden;
    border-radius: 8px;
}

.itemSwiper .swiper-slide .item-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.itemSwiper .swiper-slide .item-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

/* Item Image - Trang tổng hợp, tìm kiếm, category */
.item-img {
    width: 368px !important;
    height: 276px !important;
    min-width: 368px;
    flex-shrink: 1;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive: Co giãn width khi màn hình nhỏ */
@media (max-width: 768px) {
    .item-img {
        width: 100% !important;
        min-width: 368px;
        max-width: 100%;
    }
}

.nav-bar .nav-bar-menu-btn {
    color: var(--primary_color);
}

.nav-bar.nav-bar-sm .nav-bar-menu-btn {
    color: var(--text_muted);
}