/* =======================================
   TÙY CHỈNH TOOLTIP JQUERY UI
======================================= */
.ui-tooltip {
    background-color: #b0b435 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2) !important;
}

.ui-helper-hidden-accessible {
    display: none !important;
}

/* =======================================
   CÁC CLASS DÙNG CHUNG CHO SẢN PHẨM
======================================= */
.sort-form-inline {
    display: inline-block;
}

.product-title-link {
    color: inherit;
}

.old-price-strike {
    color: #929292;
    font-size: 14px;
    margin-left: 8px;
}

.slider-amount-input {
    border: 0;
    color: #b0b435;
    font-weight: bold;
    width: 100%;
}

/* =======================================
   NÚT BẤM (GRID & LIST VIEW)
======================================= */
/* Nút Hết Hàng (Grid) */
.btn-grid-disabled {
    background-color: #6c757d !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Nút Thêm vào giỏ / Xem chi tiết (List) */
.btn-list-action {
    border-radius: 0;
    padding: 10px 20px;
    font-weight: 700;
    height: 44px;
    display: flex;
    align-items: center;
}

/* Nút Hết hàng (List) */
.btn-list-disabled {
    background-color: #6c757d !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Nút Trái tim Yêu thích (List) */
.btn-list-heart {
    border-radius: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #b0b435;
    position: relative;
    z-index: 20;
    transition: background 0.3s;
}

    .btn-list-heart:hover {
        background-color: #222222; /* Đổi màu khi hover */
    }

/* =======================================
   FIX LỖI CHỮ TRẮNG Ở DẠNG LIST VIEW
======================================= */
.list-view-box .why-text h4,
.list-view-box .why-text h4 a,
.shop-list-view h4 a {
    color: #333333 !important; /* Ép về màu đen/xám đậm */
    font-weight: 500 !important;
    text-decoration: none;
    transition: color 0.3s ease; /* Hiệu ứng chuyển màu mượt mà */
}

    /* Đổi sang màu xanh/vàng đặc trưng của web khi di chuột vào */
    .list-view-box .why-text h4 a:hover,
    .shop-list-view h4 a:hover {
        color: #b0b435 !important;
    }

/* ═══════════════════════════════════════
   SỐ ĐÃ BÁN - đồng bộ brand color #b0b435
   ═══════════════════════════════════════ */

/* Wrapper hàng giá + đã bán (grid view) */
.price-sold-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-sold-row h5 {
    margin-bottom: 0;
    flex: 1;
}

/* Text "Đã bán X" bên phải giá */
.sold-count {
    font-size: 12px;
    color: #b0b435;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

    .sold-count i {
        font-size: 11px;
        margin-right: 2px;
    }

    .sold-count strong {
        color: #b0b435;
        font-weight: 700;
    }

/* List view: "Đã bán X" dạng inline nhỏ */
.sold-count-inline {
    font-size: 13px;
    color: #b0b435;
    font-weight: 600;
    margin: 4px 0 0 0;
}

    .sold-count-inline i {
        margin-right: 3px;
    }

    .sold-count-inline strong {
        font-weight: 700;
    }
